tool

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Messages

type Messages struct {
	Internals string `json:"internals"`
	Usage     string `json:"usage"`
	Update    string `json:"update"`
}

type Renovate

type Renovate struct {
	Datasource     string `json:"datasoruce"`
	Package        string `json:"package"`
	ExtractVersion string `json:"extractVersion,omitempty"`
	Versioning     string `json:"versioning,omitempty"`
}

type Tool

type Tool struct {
	Name                string   `json:"name"`
	Version             string   `json:"version"`
	Binary              string   `json:"binary,omitempty"`
	Check               string   `json:"check,omitempty"`
	Tags                []string `json:"tags"`
	BuildDependencies   []string `json:"build_dependencies,omitempty"`
	RuntimeDependencies []string `json:"runtime_dependencies,omitempty"`
	Platforms           []string `json:"platforms,omitempty"`
	ConflictsWith       []string `json:"conflicts_with,omitempty"`
	Homepage            string   `json:"homepage"`
	Description         string   `json:"description"`
	Messages            Messages `json:"messages,omitempty"`
	Renovate            Renovate `json:"renovate,omitempty"`
	Status              ToolStatus
}

func (*Tool) CreateMarkerFile

func (tool *Tool) CreateMarkerFile(markerFileDirectory string) error

func (*Tool) GetBinaryStatus

func (tool *Tool) GetBinaryStatus() error

func (*Tool) GetMarkerFileStatus

func (tool *Tool) GetMarkerFileStatus(markerFileDirectory string) error

func (*Tool) GetVersionStatus

func (tool *Tool) GetVersionStatus() error

func (*Tool) HasBuildDependency

func (tool *Tool) HasBuildDependency(term string) bool

func (*Tool) HasRuntimeDependency

func (tool *Tool) HasRuntimeDependency(term string) bool

func (*Tool) HasTag

func (tool *Tool) HasTag(term string) bool

func (*Tool) Inspect

func (tool *Tool) Inspect(registryImagePrefix string, raw bool) error

func (*Tool) Install

func (tool *Tool) Install(registryImagePrefix string, prefix string, target string, libDirectory string, cacheDirectory string) error

func (*Tool) List

func (tool *Tool) List()

func (*Tool) MatchesBuildDependency

func (tool *Tool) MatchesBuildDependency(term string) bool

func (*Tool) MatchesName

func (tool *Tool) MatchesName(term string) bool

func (*Tool) MatchesRuntimeDependency

func (tool *Tool) MatchesRuntimeDependency(term string) bool

func (*Tool) MatchesTag

func (tool *Tool) MatchesTag(term string) bool

func (*Tool) Print

func (tool *Tool) Print()

func (*Tool) RemoveMarkerFile

func (tool *Tool) RemoveMarkerFile(markerFileDirectory string) error

func (*Tool) ReplaceVariables

func (tool *Tool) ReplaceVariables(target string, arch string, altArch string)

func (*Tool) RunVersionCheck

func (tool *Tool) RunVersionCheck() (string, error)

func (*Tool) ShowInternals

func (tool *Tool) ShowInternals(indentation int) string

func (*Tool) ShowUpdate

func (tool *Tool) ShowUpdate(indentation int) string

func (*Tool) ShowUsage

func (tool *Tool) ShowUsage(indentation int) string

type ToolStatus

type ToolStatus struct {
	BinaryPresent      bool
	Version            string
	VersionMatches     bool
	MarkerFilePresent  bool
	MarkerFileVersion  string
	SkipDueToConflicts bool
	IsRequested        bool
}

type Tools

type Tools struct {
	Tools []Tool `json:"tools"`
}

func LoadFromBytes

func LoadFromBytes(data []byte) (Tools, error)

func LoadFromFile

func LoadFromFile(filename string) (Tools, error)

func (*Tools) AddIfMissing

func (tools *Tools) AddIfMissing(newTool *Tool)

func (*Tools) Contains

func (tools *Tools) Contains(name string) bool

func (*Tools) Describe

func (tools *Tools) Describe(name string) error

func (*Tools) Find

func (tools *Tools) Find(term string, searchInName bool, searchInTags bool, searchInDeps bool) Tools

func (*Tools) GetByName

func (tools *Tools) GetByName(name string) (*Tool, error)

func (*Tools) GetByNames

func (tools *Tools) GetByNames(names []string) Tools

func (*Tools) GetByTag

func (tools *Tools) GetByTag(tagName string) *Tools

func (*Tools) GetByTags

func (tools *Tools) GetByTags(tagNames []string) Tools

func (*Tools) GetNames

func (tools *Tools) GetNames() []string

func (*Tools) List

func (tools *Tools) List()

func (*Tools) ListWithStatus

func (tools *Tools) ListWithStatus()

func (*Tools) ResolveDependencies

func (tools *Tools) ResolveDependencies(queue *Tools, toolName string) error

Jump to

Keyboard shortcuts

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