aqua

package
v1.30.2-1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PkgInfoTypeGitHubRelease = "github_release"
	PkgInfoTypeGitHubContent = "github_content"
	PkgInfoTypeGitHubArchive = "github_archive"
	PkgInfoTypeHTTP          = "http"
	PkgInfoTypeGo            = "go"
	PkgInfoTypeGoInstall     = "go_install"
)
View Source
const (
	RegistryTypeGitHubContent = "github_content"
	RegistryTypeLocal         = "local"
	RegistryTypeStandard      = "standard"
)

Variables

This section is empty.

Functions

func FilterPackageByTag added in v1.23.0

func FilterPackageByTag(pkg *Package, tags, excludedTags map[string]struct{}) bool

Types

type Checksum added in v1.18.0

type Checksum struct {
	Enabled *bool `json:"enabled,omitempty"`
	// RequireChecksumInAdvance bool               `yaml:"require_checksum_in_advance" json:"-"`
	// CreateJSON               bool               `yaml:"create_json" json:"-"`
	RequireChecksum bool `yaml:"require_checksum" json:"require_checksum,omitempty"`
	// SaveCalculatedChecksum   bool               `yaml:"save_calculated_checksum" json:"-"`
	// Excludes                 []*ChekcsumExclude `json:"-"`
	SupportedEnvs registry.SupportedEnvs `yaml:"supported_envs" json:"supported_envs,omitempty"`
}

func (*Checksum) GetEnabled added in v1.19.3

func (chk *Checksum) GetEnabled() bool

type Config

type Config struct {
	Packages   []*Package `validate:"dive" json:"packages"`
	Registries Registries `validate:"dive" json:"registries"`
	Checksum   *Checksum  `json:"checksum,omitempty"`
}

func (*Config) ChecksumEnabled added in v1.18.0

func (cfg *Config) ChecksumEnabled() bool

func (*Config) RequireChecksum added in v1.20.0

func (cfg *Config) RequireChecksum() bool

type Package

type Package struct {
	Name     string   `validate:"required" json:"name,omitempty"`
	Registry string   `` /* 145-byte string literal not displayed */
	Version  string   `validate:"required" yaml:",omitempty" json:"version,omitempty"`
	Import   string   `yaml:",omitempty" json:"import,omitempty"`
	Tags     []string `yaml:",omitempty" json:"tags,omitempty"`
}

func (*Package) UnmarshalYAML

func (pkg *Package) UnmarshalYAML(unmarshal func(interface{}) error) error

type Registries

type Registries map[string]*Registry

func (Registries) JSONSchema

func (Registries) JSONSchema() *jsonschema.Schema

func (*Registries) UnmarshalYAML

func (registries *Registries) UnmarshalYAML(unmarshal func(interface{}) error) error

type Registry

type Registry struct {
	Name      string `validate:"required" json:"name,omitempty"`
	Type      string `validate:"required" json:"type,omitempty" jsonschema:"enum=standard,enum=local,enum=github_content"`
	RepoOwner string `yaml:"repo_owner" json:"repo_owner,omitempty"`
	RepoName  string `yaml:"repo_name" json:"repo_name,omitempty"`
	Ref       string `json:"ref,omitempty"`
	Path      string `validate:"required" json:"path,omitempty"`
	Private   bool   `json:"private,omitempty"`
}

func (*Registry) GetFilePath

func (registry *Registry) GetFilePath(rootDir, cfgFilePath string) (string, error)

func (*Registry) UnmarshalYAML

func (registry *Registry) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Registry) Validate

func (registry *Registry) Validate() error

Jump to

Keyboard shortcuts

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