flag

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFlagGroup

type CloudFlagGroup struct {
	UpdateCache *trivyflag.Flag[bool]
	MaxCacheAge *trivyflag.Flag[time.Duration]
}

func NewCloudFlagGroup

func NewCloudFlagGroup() *CloudFlagGroup

func (*CloudFlagGroup) Flags

func (f *CloudFlagGroup) Flags() []trivyflag.Flagger

func (*CloudFlagGroup) Name

func (f *CloudFlagGroup) Name() string

func (*CloudFlagGroup) ToOptions

func (f *CloudFlagGroup) ToOptions() (CloudOptions, error)

type CloudOptions

type CloudOptions struct {
	MaxCacheAge time.Duration
	UpdateCache bool
}

type Flags

type Flags struct {
	BaseFlags      trivyFlag.Flags
	CloudFlagGroup *CloudFlagGroup
}

func (*Flags) AddFlags

func (f *Flags) AddFlags(cmd *cobra.Command)

func (*Flags) Bind

func (f *Flags) Bind(cmd *cobra.Command) error

func (*Flags) ToOptions

func (f *Flags) ToOptions(args []string) (Options, error)

type Options

type Options struct {
	trivyFlag.Options
	CloudOptions
}

Jump to

Keyboard shortcuts

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