utils

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 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 HomeDir added in v0.29.0

func HomeDir() string

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