option

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	List        `json:",inline" yaml:",inline" mapstructure:",squash"`
	Quiet       bool   `json:"quiet" yaml:"quiet" mapstructure:"quiet"`
	OsiApproved bool   `json:"osi-approved" yaml:"osi-approved" mapstructure:"osi-approved"`
	Rules       []Rule `json:"rules" yaml:"rules" mapstructure:"rules"`
}

func DefaultCheck

func DefaultCheck() Check

func (*Check) AddFlags

func (o *Check) AddFlags(flags clio.FlagSet)

type List

type List struct {
	Output       string `json:"output" yaml:"output" mapstructure:"output"`
	ShowPackages bool   `json:"show-packages" yaml:"show-packages" mapstructure:"show-packages"`
	NonSPDX      bool   `json:"non-spdx" yaml:"non-spdx" mapstructure:"non-spdx"`
}

func DefaultList

func DefaultList() List

func (*List) AddFlags

func (o *List) AddFlags(flags clio.FlagSet)

type Rule

type Rule struct {
	Name       string   `json:"name" yaml:"name" mapstructure:"name"`
	Reason     string   `json:"reason" yaml:"reason" mapstructure:"reason"`
	Pattern    string   `json:"pattern" yaml:"pattern" mapstructure:"pattern"`
	Severity   string   `json:"severity" yaml:"severity" mapstructure:"severity"`
	Mode       string   `json:"mode" yaml:"mode" mapstructure:"mode"`
	Exceptions []string `json:"exceptions" yaml:"exceptions" mapstructure:"exceptions"`
}

Jump to

Keyboard shortcuts

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