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 ¶
This section is empty.
Types ¶
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
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"` }
func (*Package) UnmarshalYAML ¶
type Registries ¶
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"` }
func (*Registry) GetFilePath ¶
func (*Registry) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.