Documentation
¶
Index ¶
Constants ¶
View Source
const ( // IndexAutoUpdate is a flag to automatically update the index. IndexAutoUpdate = 1 << iota // ToolQuietInstall is a flag to suppress output during installation. ToolQuietInstall // LogRevertProxy is a flag to log revert proxy. LogRevertProxy )
View Source
const ( // DefaultFlags is the default flags for package installation. DefaultFlags = IndexAutoUpdate | ToolQuietInstall )
Variables ¶
View Source
var ( // ErrVersionNotFound is returned when the specified version is not found. ErrVersionNotFound = errors.New("version not found") // ErrDynamicTag is returned when the tag is dynamic. ErrDynamicTag = errors.New("dynamic tag") )
View Source
var ( // ErrNotFound is the error resulting if a path search failed to find // an executable file. ErrNotFound = exec.ErrNotFound )
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager represents a package manager for C/C++ packages.
type Package ¶
type Package struct {
Name string
Path string
Version string
Folder string
Template *Template
// contains filtered or unexported fields
}
Package represents a C/C++ package.
type Template ¶
type Template struct {
FromVer string `yaml:"from"`
Folder string `yaml:"folder"`
Tag string `yaml:"tag,omitempty"` // pattern with *, empty if dynamic tag
}
Template represents a template for package versions.
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
Tool represents a tool that can be executed.
Click to show internal directories.
Click to hide internal directories.