options

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogOptions

type LogOptions struct {
	Verbose bool
}

LogOptions provides options for log customization.

func (LogOptions) Logger added in v1.2.0

func (l LogOptions) Logger() zerolog.Logger

Logger returns a zerolog.Logger configured according to LogOptions.

func (*LogOptions) RegisterFlags

func (l *LogOptions) RegisterFlags(fs *flag.FlagSet)

func (LogOptions) Validate

func (l LogOptions) Validate() error

type OutputOptions

type OutputOptions struct {
	OutputFilePath string
	OutputVersion  string
	UseJSON        bool
}

OutputOptions provides options for customizing the output.

func (*OutputOptions) RegisterFlags

func (o *OutputOptions) RegisterFlags(fs *flag.FlagSet)

func (OutputOptions) Validate

func (o OutputOptions) Validate() error

type SBOMOptions

type SBOMOptions struct {
	AssertLicenses  bool
	IncludeStd      bool
	NoSerialNumber  bool
	ResolveLicenses bool
	SerialNumber    string
}

SBOMOptions provides options for customizing the SBOM.

func (*SBOMOptions) RegisterFlags

func (s *SBOMOptions) RegisterFlags(fs *flag.FlagSet)

func (SBOMOptions) Validate

func (s SBOMOptions) Validate() error

type ValidationError

type ValidationError struct {
	Errors []error
}

ValidationError represents a validation error for options. It can contain multiple errors with details about which validation operations failed. The Errors slice should never be empty.

func (ValidationError) Error

func (e ValidationError) Error() string

Jump to

Keyboard shortcuts

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