check

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Names = names.Components
	Verb  = verbs.Check
)

Functions

func NewAction

func NewAction(opts *output.Options) processing.ProcessChain

func NewCommand

func NewCommand(ctx clictx.Context, names ...string) *cobra.Command

NewCommand creates a new ctf command.

func OutputFactory

func OutputFactory(fmt processing.MappingFunction, wide ...string) output.OutputFactory

Types

type CheckResult

type CheckResult = check.Result

type Command

type Command struct {
	utils.BaseCommand

	Refs []string
}

func (*Command) Complete

func (o *Command) Complete(args []string) error

func (*Command) ForName

func (o *Command) ForName(name string) *cobra.Command

func (*Command) Run

func (o *Command) Run() error

type Entry

type Entry struct {
	Status           string             `json:"status"`
	ComponentVersion common.NameVersion `json:"componentVersion"`
	Results          *CheckResult       `json:",inline"` // does not work
	Error            error              `json:"error,omitempty"`
}

func (Entry) MarshalJSON added in v0.8.0

func (n Entry) MarshalJSON() ([]byte, error)

type Option

type Option struct {
	CheckLocalResources bool
	CheckLocalSources   bool
}

func From

func NewOption

func NewOption() *Option

func (*Option) AddFlags

func (o *Option) AddFlags(fs *pflag.FlagSet)

func (*Option) ApplyTo added in v0.8.0

func (o *Option) ApplyTo(opts *check.Options)

func (*Option) Usage

func (o *Option) Usage() string

Jump to

Keyboard shortcuts

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