Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultProLookahead = "now+3y"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
type Project ¶
type Project struct { Name string Repo *git.Repository }
func NewProject ¶
func NewProject(repo *git.Repository) *Project
func (*Project) GetDefaultProjectName ¶
func (*Project) GetRemoteURL ¶
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
Click to show internal directories.
Click to hide internal directories.