Documentation ¶
Index ¶
- Variables
- func DownloadDB(appVersion, cacheDir, dbRepository string, quiet, insecure, skipUpdate bool) error
- func GetTLSConfig(caCertPath, certPath, keyPath string) (*x509.CertPool, tls.Certificate, error)
- func InitBuiltinPolicies(ctx context.Context, cacheDir string, quiet, skipUpdate bool) ([]string, error)
- type Cache
Constants ¶
This section is empty.
Variables ¶
View Source
var SuperSet = wire.NewSet( cache.NewFSCache, wire.Bind(new(cache.LocalArtifactCache), new(cache.FSCache)), NewCache, )
SuperSet binds cache dependencies
Functions ¶
func DownloadDB ¶
DownloadDB downloads the DB
func GetTLSConfig ¶ added in v0.38.0
GetTLSConfig gets tls config from CA, Cert and Key file
Types ¶
type Cache ¶
Cache implements the local cache
func NewCache ¶
func NewCache(c flag.CacheOptions) (Cache, error)
NewCache is the factory method for Cache
func (Cache) ClearArtifacts ¶ added in v0.18.2
ClearArtifacts clears the artifact cache
Click to show internal directories.
Click to hide internal directories.