execx

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = exec.ErrNotFound

Functions

func Exec

func Exec(command string, args ...string) (string, error)

func ExtractCABWithTool

func ExtractCABWithTool(cabPath, outputDir string) error

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 Kubectl

func Kubectl(args ...string) (string, error)

func Syft

func Syft(args ...string) (string, error)

func Trivy

func Trivy(args ...string) (string, error)

func TrivyAbsolutePath

func TrivyAbsolutePath() (string, bool)

func TrivyUpdateDb

func TrivyUpdateDb() error

func TrivyUpdateJavaDb

func TrivyUpdateJavaDb() error

Types

type ExternalCommandError

type ExternalCommandError struct {
	Message  string
	ExitCode int
	StdErr   string
}

func (*ExternalCommandError) Error

func (e *ExternalCommandError) Error() string

type FileEntry

type FileEntry struct {
	Name           string
	Size           int64
	CompressedSize int64
	ModTime        time.Time
}

FileEntry represents a file within a CAB archive

func ListCABContents

func ListCABContents(cabPath string) ([]FileEntry, error)

ListCABContents lists the contents of a CAB file without extracting

Jump to

Keyboard shortcuts

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