Documentation ¶
Index ¶
- Variables
- func DownloadDB(ctx context.Context, appVersion, cacheDir, dbRepository string, ...) error
- func Exit(opts flag.Options, failedResults bool)
- func ExitOnEOL(opts flag.Options, m types.Metadata)
- 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 ¶
func DownloadDB(ctx context.Context, appVersion, cacheDir, dbRepository string, quiet, skipUpdate bool, opt ftypes.RegistryOptions) error
DownloadDB downloads the DB
func GetTLSConfig ¶
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 ¶
ClearArtifacts clears the artifact cache
Click to show internal directories.
Click to hide internal directories.