func (o *ClientOpts) GetCache() string {
	if o == nil {
		return ""
	}
	return o.cacheDir
}
GetCache returns the cache directory
package types
import (
	"time"
)
type ChartDetails struct {
	PublishedAt time.Time
	Digest      string
}
type ClientOpts struct {
	cacheDir string
	insecure bool
}
type Option func(*ClientOpts)
func WithCache(dir string) Option {
	return func(s *ClientOpts) {
		s.cacheDir = dir
	}
}
func WithInsecure(enable bool) Option {
	return func(s *ClientOpts) {
		s.insecure = enable
	}
}