Documentation
¶
Index ¶
- Variables
- func Exec(command string, args ...string) (string, error)
- func ExtractCABWithTool(cabPath, outputDir string) error
- func IsCabextractAvailable() bool
- func IsExpandAvailable() bool
- func Kubectl(args ...string) (string, error)
- func Syft(args ...string) (string, error)
- func Trivy(args ...string) (string, error)
- func TrivyAbsolutePath() (string, bool)
- func TrivyUpdateDb() error
- func TrivyUpdateJavaDb() error
- type ExternalCommandError
- type FileEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = exec.ErrNotFound
Functions ¶
func ExtractCABWithTool ¶
ExtractCABWithTool extracts a CAB file using the best available tool
func IsCabextractAvailable ¶
func IsCabextractAvailable() bool
IsCabextractAvailable checks if cabextract is available (Linux/macOS)
func IsExpandAvailable ¶
func IsExpandAvailable() bool
IsExpandAvailable checks if Windows expand.exe is available
func TrivyAbsolutePath ¶
func TrivyUpdateDb ¶
func TrivyUpdateDb() error
func TrivyUpdateJavaDb ¶
func TrivyUpdateJavaDb() error
Types ¶
type ExternalCommandError ¶
func (*ExternalCommandError) Error ¶
func (e *ExternalCommandError) Error() string
type FileEntry ¶
FileEntry represents a file within a CAB archive
func ListCABContents ¶
ListCABContents lists the contents of a CAB file without extracting
Click to show internal directories.
Click to hide internal directories.