option

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 11 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 {
	VerifySHA256Digest bool `json:"verify-sha256" yaml:"verify-sha256" mapstructure:"verify-sha256"`
}

func (*Check) AddFlags

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

type Core added in v0.2.0

type Core struct {
	Store `json:"" yaml:",inline" mapstructure:",squash"`
	Tools Tools `json:"tools" yaml:"tools" mapstructure:"tools"`
}

Core options make up the static application configuration on disk.

func DefaultCore added in v0.2.0

func DefaultCore() Core

type Format added in v0.7.0

type Format struct {
	Output           string   `yaml:"output" json:"output" mapstructure:"output"`
	AllowableFormats []string `yaml:"-" json:"-" mapstructure:"-"`
	JQCommand        string   `yaml:"jqCommand" json:"jqCommand" mapstructure:"jqCommand"`
}

func (*Format) AddFlags added in v0.7.0

func (o *Format) AddFlags(flags fangs.FlagSet)

type GoInstall added in v0.2.0

type GoInstall struct {
	Module     string `json:"module" yaml:"module" mapstructure:"module"`
	Entrypoint string `json:"entrypoint" yaml:"entrypoint" mapstructure:"entrypoint"`
	LDFlags    string `json:"ld-flags" yaml:"ld-flags" mapstructure:"ld-flags"`
}

func (*GoInstall) AddFlags added in v0.2.0

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

type List added in v0.5.0

type List struct {
	Updates       bool     `json:"updates" yaml:"updates" mapstructure:"updates"`
	IncludeFilter []string `json:"includeFilter" yaml:"includeFilter" mapstructure:"includeFilter"`
}

func (*List) AddFlags added in v0.5.0

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

type Store

type Store struct {
	Root string `json:"root" yaml:"root" mapstructure:"root"`
}

func DefaultStore

func DefaultStore() Store

type Tool

type Tool struct {
	Name    string            `json:"name" yaml:"name" mapstructure:"name"`
	Version ToolVersionConfig `json:"version" yaml:"version" mapstructure:"version"`

	InstallMethod string         `json:"method" yaml:"method,omitempty" mapstructure:"method"`
	Parameters    map[string]any `json:"with" yaml:"with,omitempty" mapstructure:"with"`
}

func (Tool) ToConfig

func (t Tool) ToConfig() (*tool.Config, *binny.VersionIntent, error)

func (Tool) ToTool

func (t Tool) ToTool() (binny.Tool, *binny.VersionIntent, error)

type ToolVersionConfig

type ToolVersionConfig struct {
	Want          string `json:"want" yaml:"want" mapstructure:"want"`
	Constraint    string `json:"constraint" yaml:"constraint,omitempty" mapstructure:"constraint"`
	ResolveMethod string `json:"method" yaml:"method,omitempty" mapstructure:"method"`

	Parameters map[string]any `json:"with" yaml:"with,omitempty" mapstructure:"with"`
}

type Tools

type Tools []Tool

func (Tools) GetAllOptions

func (t Tools) GetAllOptions(names []string) ([]Tool, error)

func (Tools) GetOption

func (t Tools) GetOption(name string) *Tool

func (Tools) Names

func (t Tools) Names() []string

type VersionResolution added in v0.2.0

type VersionResolution struct {
	Constraint string `json:"constraint" yaml:"constraint" mapstructure:"constraint"`
	Method     string `json:"method" yaml:"method" mapstructure:"method"`
}

func (*VersionResolution) AddFlags added in v0.2.0

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

Jump to

Keyboard shortcuts

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