Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrToolNotInstalled = errors.New("tool not installed")
Functions ¶
This section is empty.
Types ¶
type Include ¶ added in v0.25.0
func (*Include) UnmarshalJSON ¶ added in v0.25.0
type Lock ¶ added in v0.25.0
type Lock struct {
Tools Tools `json:"tools"`
Remotes []RemoteSpec `json:"remotes"`
}
type ModuleInfo ¶
type RemoteSpec ¶ added in v0.25.0
type RemoteSpec struct {
Source string `json:"source"`
Spec Spec `json:"spec"`
Tags []string `json:"tags"`
}
func (*RemoteSpec) UnmarshalJSON ¶ added in v0.25.0
func (r *RemoteSpec) UnmarshalJSON(bb []byte) error
type Spec ¶ added in v0.25.0
type Spec struct {
// This dir is store all toolset-related files.
// This directory should be managed by toolset only.
// Deprecated: do not use this field. All tools stored into global cache directory.
Dir string `json:"dir,omitempty"`
Tools Tools `json:"tools"`
Includes []Include `json:"includes"`
}
func (*Spec) AddInclude ¶ added in v0.25.0
type Tool ¶
type Tool struct {
// Name of runtime
Runtime string `json:"runtime"`
// Path to module with version
Module string `json:"module"`
// Alias create a link in tools. Works like exposing some tools
Alias optional.Val[string] `json:"alias"`
Tags []string `json:"tags"`
}
func (Tool) IsSame ¶
IsSame returns true when it detects that this is the same tools. It does not check tool version.
func (Tool) ModuleName ¶ added in v0.32.0
func (Tool) RuntimeName ¶ added in v0.33.0
Click to show internal directories.
Click to hide internal directories.