utils

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

CacheDir returns the directory used for caching

func CopyFile added in v0.3.0

func CopyFile(src, dst string) (int64, error)

CopyFile copies the file content from scr to dst

func DefaultCacheDir

func DefaultCacheDir() string

DefaultCacheDir returns/creates the cache-dir to be used for trivy operations

func GetTLSConfig added in v0.23.0

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

GetTLSConfig get tls config from CA, Cert and Key file

func SetCacheDir

func SetCacheDir(dir string)

SetCacheDir sets the trivy cacheDir

Types

This section is empty.

Jump to

Keyboard shortcuts

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