options

package
v0.9.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultProLookahead = "now+3y"

Variables

This section is empty.

Functions

This section is empty.

Types

type Azure

type Azure struct {
	Owner string
	Path  string
}

func (*Azure) Parse

func (r *Azure) Parse(rawurl string) error

func (*Azure) String

func (r *Azure) String() string

type Database

type Database struct {
	Dir                   string        `yaml:"cache-dir" json:"cache-dir" mapstructure:"cache-dir"`
	UpdateURL             string        `yaml:"update-url" json:"update-url" mapstructure:"update-url"`
	CACert                string        `yaml:"ca-cert" json:"ca-cert" mapstructure:"ca-cert"`
	AutoUpdate            bool          `yaml:"auto-update" json:"auto-update" mapstructure:"auto-update"`
	ValidateByHashOnStart bool          `yaml:"validate-by-hash-on-start" json:"validate-by-hash-on-start" mapstructure:"validate-by-hash-on-start"`
	ValidateAge           bool          `yaml:"validate-age" json:"validate-age" mapstructure:"validate-age"`
	MaxAllowedBuiltAge    time.Duration `yaml:"max-allowed-built-age" json:"max-allowed-built-age" mapstructure:"max-allowed-built-age"`
}

func DefaultDatabase

func DefaultDatabase(id clio.Identification) Database

func (Database) ToCuratorConfig

func (cfg Database) ToCuratorConfig() db.Config

type GitHub

type GitHub struct {
	Owner string
	Path  string
}

func (*GitHub) Parse

func (r *GitHub) Parse(rawurl string) error

func (*GitHub) String

func (r *GitHub) String() string

type GitLab

type GitLab struct {
	Owner string
	Path  string
}

func (*GitLab) Parse

func (r *GitLab) Parse(rawurl string) error

func (*GitLab) String

func (r *GitLab) String() string

type GitURL

type GitURL interface {
	Parse(url string) error
	String() string
}

type Project

type Project struct {
	Name string
	Repo *git.Repository
}

func NewProject

func NewProject(repo *git.Repository) *Project

func (*Project) GetDefaultProjectName

func (p *Project) GetDefaultProjectName() string

func (*Project) GetRemoteURL

func (p *Project) GetRemoteURL() string

type RegistryCredentials

type RegistryCredentials struct {
	Authority string `yaml:"authority" json:"authority" mapstructure:"authority"`
	// IMPORTANT: do not show the username, password, or token in any output (sensitive information)
	Username secret `yaml:"username" json:"username" mapstructure:"username"`
	Password secret `yaml:"password" json:"password" mapstructure:"password"`
	Token    secret `yaml:"token" json:"token" mapstructure:"token"`

	TLSCert string `yaml:"tls-cert,omitempty" json:"tls-cert,omitempty" mapstructure:"tls-cert"`
	TLSKey  string `yaml:"tls-key,omitempty" json:"tls-key,omitempty" mapstructure:"tls-key"`
}

type URLFormatter

type URLFormatter struct {
	URL string
}

func (*URLFormatter) Format

func (f *URLFormatter) Format() string

type Xeol

type Xeol struct {
	Outputs                []string    `yaml:"output" json:"output" mapstructure:"output"`                                           // -o, <presenter>=<file> the Presenter hint string to use for report formatting and the output file
	File                   string      `yaml:"file" json:"file" mapstructure:"file"`                                                 // --file, the file to write report output to
	Distro                 string      `yaml:"distro" json:"distro" mapstructure:"distro"`                                           // --distro, specify a distro to explicitly use
	CheckForAppUpdate      bool        `yaml:"check-for-app-update" json:"check-for-app-update" mapstructure:"check-for-app-update"` // whether to check for an application update on start up or not
	Platform               string      `yaml:"platform" json:"platform" mapstructure:"platform"`                                     // --platform, override the target platform for a container image
	Search                 search      `yaml:"search" json:"search" mapstructure:"search"`
	DB                     Database    `yaml:"db" json:"db" mapstructure:"db"`
	Lookahead              string      `yaml:"lookahead" json:"lookahead" mapstructure:"lookahead"`
	EolMatchDate           time.Time   `yaml:"-" json:"-"`
	FailOnEolFound         bool        `yaml:"fail-on-eol-found" json:"fail-on-eol-found" mapstructure:"fail-on-eol-found"` // whether to exit with a non-zero exit code if any EOLs are found
	APIKey                 string      `yaml:"api-key" json:"api-key" mapstructure:"api-key"`
	ProjectName            string      `yaml:"project-name" json:"project-name" mapstructure:"project-name"`
	ImagePath              string      `yaml:"image-path" json:"image-path" mapstructure:"image-path"`
	CommitHash             string      `yaml:"commit-hash" json:"commit-hash" mapstructure:"commit-hash"`
	Match                  matchConfig `yaml:"match" json:"match" mapstructure:"match"`
	Registry               registry    `yaml:"registry" json:"registry" mapstructure:"registry"`
	Name                   string      `yaml:"name" json:"name" mapstructure:"name"`
	DefaultImagePullSource string      `yaml:"default-image-pull-source" json:"default-image-pull-source" mapstructure:"default-image-pull-source"`
}

func DefaultXeol

func DefaultXeol(id clio.Identification) *Xeol

func (*Xeol) AddFlags

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

nolint:funlen

func (*Xeol) PostLoad

func (o *Xeol) PostLoad() error

Jump to

Keyboard shortcuts

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