operation

package
v0.4.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 Exit

func Exit(opts flag.Options, failedResults bool)

func ExitOnEOL added in v0.4.19

func ExitOnEOL(opts flag.Options, m types.Metadata)

func GetTLSConfig added in v0.4.19

func GetTLSConfig(caCertPath, certPath, keyPath string) (*x509.CertPool, tls.Certificate, error)

GetTLSConfig gets tls config from CA, Cert and Key file

func InitBuiltinPolicies added in v0.4.19

func InitBuiltinPolicies(ctx context.Context, cacheDir string, quiet, skipUpdate bool, policyBundleRepository string) ([]string, error)

InitBuiltinPolicies downloads the built-in policies and loads them

Types

type Cache added in v0.4.19

type Cache struct {
	cache.Cache
}

Cache implements the local cache

func NewCache added in v0.4.19

func NewCache(c flag.CacheOptions) (Cache, error)

NewCache is the factory method for Cache

func (Cache) ClearArtifacts added in v0.4.19

func (c Cache) ClearArtifacts() error

ClearArtifacts clears the artifact cache

func (Cache) ClearDB added in v0.4.19

func (c Cache) ClearDB() (err error)

ClearDB clears the DB cache

func (Cache) Reset added in v0.4.19

func (c Cache) Reset() (err error)

Reset resets the cache

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL