Documentation
¶
Index ¶
- type License
- type Messages
- type PathRewrite
- type Renovate
- type Source
- type Tool
- func (tool *Tool) CreateMarkerFile(markerFileDirectory string) error
- func (tool *Tool) GetBinaryStatus() error
- func (tool *Tool) GetCamelCaseName() string
- func (tool *Tool) GetMarkerFileStatus(markerFileDirectory string) error
- func (tool *Tool) GetSources() (registries, repositories []string)
- func (tool *Tool) GetSourcesWithFallback(registry, repository string) (registries, repositories []string)
- func (tool *Tool) GetVersionStatus() error
- func (tool *Tool) HasBuildDependency(term string) bool
- func (tool *Tool) HasRuntimeDependency(term string) bool
- func (tool *Tool) HasTag(term string) bool
- func (tool *Tool) Inspect(w io.Writer, layer io.ReadCloser, rules []PathRewrite) error
- func (tool *Tool) Install(w io.Writer, layer io.ReadCloser, rules []PathRewrite, ...) ([]string, error)
- func (tool *Tool) List(w io.Writer)
- func (tool *Tool) MatchesBuildDependency(term string) bool
- func (tool *Tool) MatchesDescription(term string) bool
- func (tool *Tool) MatchesName(term string) bool
- func (tool *Tool) MatchesRuntimeDependency(term string) bool
- func (tool *Tool) MatchesTag(term string) bool
- func (tool *Tool) Print(w io.Writer)
- func (tool *Tool) RemoveMarkerFile(markerFileDirectory string) error
- func (tool *Tool) ReplaceVariables(target string, arch string, altArch string)
- func (tool *Tool) RunVersionCheck() (string, error)
- func (tool *Tool) ShowInternals(indentation int) string
- func (tool *Tool) ShowUpdate(indentation int) string
- func (tool *Tool) ShowUsage(indentation int) string
- type ToolStatus
- type Tools
- func (tools *Tools) AddIfMissing(newTool *Tool)
- func (tools *Tools) Contains(name string) bool
- func (tools *Tools) Describe(w io.Writer, name string) error
- func (tools *Tools) Find(term string, searchInName bool, searchInDesc bool, searchInTags bool, ...) Tools
- func (tools *Tools) GetByName(name string) (*Tool, error)
- func (tools *Tools) GetByNames(names []string) Tools
- func (tools *Tools) GetByTag(tagName string) *Tools
- func (tools *Tools) GetByTags(tagNames []string) Tools
- func (tools *Tools) GetNames() []string
- func (tools *Tools) List(w io.Writer)
- func (tools *Tools) ListWithStatus(w io.Writer)
- func (tools *Tools) ResolveDependencies(queue *Tools, toolName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PathRewrite ¶
type Tool ¶
type Tool struct {
SchemaVersion string `json:"schema_version,omitempty" yaml:"schema_version,omitempty"`
Name string `json:"name" yaml:"name"`
License License `json:"license" yaml:"license"`
Version string `json:"version" yaml:"version"`
Binary string `json:"binary,omitempty" yaml:"binary,omitempty"`
Check string `json:"check,omitempty" yaml:"check"`
Tags []string `json:"tags" yaml:"tags"`
BuildDependencies []string `json:"build_dependencies,omitempty" yaml:"build_dependencies,omitempty"`
RuntimeDependencies []string `json:"runtime_dependencies,omitempty" yaml:"runtime_dependencies,omitempty"`
Platforms []string `json:"platforms,omitempty" yaml:"platforms,omitempty"`
ConflictsWith []string `json:"conflicts_with,omitempty" yaml:"conflicts_with,omitempty"`
Homepage string `json:"homepage,omitempty" yaml:"homepage,omitempty"`
Repository string `json:"repository" yaml:"repository"`
Description string `json:"description" yaml:"description"`
Messages Messages `json:"messages,omitempty" yaml:"messages,omitempty"`
Renovate Renovate `json:"renovate,omitempty" yaml:"renovate,omitempty"`
Sources []Source `json:"sources" yaml:"sources"`
Status ToolStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
func (*Tool) CreateMarkerFile ¶
func (*Tool) GetBinaryStatus ¶
func (*Tool) GetCamelCaseName ¶
func (*Tool) GetMarkerFileStatus ¶
func (*Tool) GetSources ¶
func (*Tool) GetSourcesWithFallback ¶
func (*Tool) GetVersionStatus ¶
func (*Tool) HasBuildDependency ¶
func (*Tool) HasRuntimeDependency ¶
func (*Tool) Inspect ¶
func (tool *Tool) Inspect(w io.Writer, layer io.ReadCloser, rules []PathRewrite) error
func (*Tool) Install ¶
func (tool *Tool) Install(w io.Writer, layer io.ReadCloser, rules []PathRewrite, patchFile func(path string) string) ([]string, error)
func (*Tool) MatchesBuildDependency ¶
func (*Tool) MatchesDescription ¶
func (*Tool) MatchesName ¶
func (*Tool) MatchesRuntimeDependency ¶
func (*Tool) MatchesTag ¶
func (*Tool) RemoveMarkerFile ¶
func (*Tool) ReplaceVariables ¶
func (*Tool) RunVersionCheck ¶
func (*Tool) ShowInternals ¶
func (*Tool) ShowUpdate ¶
type ToolStatus ¶
type Tools ¶
type Tools struct {
Tools []Tool `json:"tools" yaml:"tools"`
}
func LoadFromBytes ¶
func LoadFromFile ¶
func LoadFromReader ¶
func LoadFromReader(data io.ReadCloser) (Tools, error)
func LoadMetadata ¶
func (*Tools) AddIfMissing ¶
func (*Tools) GetByNames ¶
func (*Tools) ListWithStatus ¶
Click to show internal directories.
Click to hide internal directories.