Documentation ¶
Index ¶
- Constants
- type Config
- type File
- type FormatOverride
- type Override
- type Package
- type PackageInfo
- func (pkgInfo *PackageInfo) GetAsset() *template.Template
- func (pkgInfo *PackageInfo) GetDescription() string
- func (pkgInfo *PackageInfo) GetFileSrc(pkg *Package, file *File) (string, error)
- func (pkgInfo *PackageInfo) GetFiles() []*File
- func (pkgInfo *PackageInfo) GetFormat() string
- func (pkgInfo *PackageInfo) GetLink() string
- func (pkgInfo *PackageInfo) GetName() string
- func (pkgInfo *PackageInfo) GetPkgPath(rootDir string, pkg *Package) (string, error)
- func (pkgInfo *PackageInfo) GetReplacements() map[string]string
- func (pkgInfo *PackageInfo) GetRosetta2() bool
- func (pkgInfo *PackageInfo) GetType() string
- func (pkgInfo *PackageInfo) HasRepo() bool
- func (pkgInfo *PackageInfo) Override(v string) error
- func (pkgInfo *PackageInfo) RenderAsset(pkg *Package) (string, error)
- func (pkgInfo *PackageInfo) RenderURL(pkg *Package) (string, error)
- func (pkgInfo *PackageInfo) Validate() error
- type PackageInfos
- type Param
- type Registries
- type Registry
- type RegistryContent
- type RootDir
Constants ¶
View Source
const ( PkgInfoTypeGitHubRelease = "github_release" PkgInfoTypeGitHubContent = "github_content" PkgInfoTypeGitHubArchive = "github_archive" PkgInfoTypeHTTP = "http" )
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"` Registries Registries `validate:"dive"` }
type FormatOverride ¶
type Override ¶
type Package ¶
type Package struct { Name string `validate:"required"` Registry string `validate:"required" yaml:",omitempty"` Version string `validate:"required" yaml:",omitempty"` Import string `yaml:",omitempty"` }
func (*Package) UnmarshalYAML ¶
type PackageInfo ¶
type PackageInfo struct { Name string Type string `validate:"required"` RepoOwner string `yaml:"repo_owner"` RepoName string `yaml:"repo_name"` Asset *template.Template Path *template.Template Format string Files []*File URL *template.Template Description string Link string Replacements map[string]string Overrides []*Override FormatOverrides []*FormatOverride `yaml:"format_overrides"` VersionConstraints *constraint.VersionConstraints `yaml:"version_constraint"` VersionOverrides []*PackageInfo `yaml:"version_overrides"` SupportedIf *constraint.PackageCondition `yaml:"supported_if"` VersionFilter *constraint.VersionFilter `yaml:"version_filter"` Rosetta2 *bool }
func (*PackageInfo) GetAsset ¶
func (pkgInfo *PackageInfo) GetAsset() *template.Template
func (*PackageInfo) GetDescription ¶
func (pkgInfo *PackageInfo) GetDescription() string
func (*PackageInfo) GetFileSrc ¶
func (pkgInfo *PackageInfo) GetFileSrc(pkg *Package, file *File) (string, error)
func (*PackageInfo) GetFiles ¶
func (pkgInfo *PackageInfo) GetFiles() []*File
func (*PackageInfo) GetFormat ¶
func (pkgInfo *PackageInfo) GetFormat() string
func (*PackageInfo) GetLink ¶
func (pkgInfo *PackageInfo) GetLink() string
func (*PackageInfo) GetName ¶
func (pkgInfo *PackageInfo) GetName() string
func (*PackageInfo) GetPkgPath ¶
func (pkgInfo *PackageInfo) GetPkgPath(rootDir string, pkg *Package) (string, error)
func (*PackageInfo) GetReplacements ¶
func (pkgInfo *PackageInfo) GetReplacements() map[string]string
func (*PackageInfo) GetRosetta2 ¶
func (pkgInfo *PackageInfo) GetRosetta2() bool
func (*PackageInfo) GetType ¶
func (pkgInfo *PackageInfo) GetType() string
func (*PackageInfo) HasRepo ¶
func (pkgInfo *PackageInfo) HasRepo() bool
func (*PackageInfo) Override ¶
func (pkgInfo *PackageInfo) Override(v string) error
func (*PackageInfo) RenderAsset ¶
func (pkgInfo *PackageInfo) RenderAsset(pkg *Package) (string, error)
func (*PackageInfo) Validate ¶
func (pkgInfo *PackageInfo) Validate() error
type PackageInfos ¶
type PackageInfos []*PackageInfo
func (*PackageInfos) ToMap ¶
func (pkgInfos *PackageInfos) ToMap() (map[string]*PackageInfo, error)
type Registries ¶
func (*Registries) UnmarshalYAML ¶
func (registries *Registries) UnmarshalYAML(unmarshal func(interface{}) error) error
type Registry ¶
type Registry struct { Name string `validate:"required"` Type string `validate:"required"` RepoOwner string `yaml:"repo_owner"` RepoName string `yaml:"repo_name"` Ref string Path string `validate:"required"` }
func (*Registry) GetFilePath ¶
func (*Registry) UnmarshalYAML ¶
type RegistryContent ¶
type RegistryContent struct {
PackageInfos PackageInfos `yaml:"packages" validate:"dive"`
}
Click to show internal directories.
Click to hide internal directories.