Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependenciesIndex ¶ added in v1.1.0
type DependenciesIndex struct { Meta config.Metadata `json:"-"` APIVersion string `json:"apiVersion,omitempty"` Kind string `json:"kind,omitempty"` Entries []DependenciesIndexEntry `json:"entries"` }
type DependenciesIndexEntry ¶ added in v1.1.0
type Dependency ¶ added in v1.1.0
type Dependency struct { Name string `yaml:"name,omitempty"` Registry string `yaml:"registry,omitempty"` Version string `yaml:"version"` Alias string `yaml:"-"` }
Dependency describes project's dependency - command or plugin.
func (*Dependency) SetDefaults ¶ added in v1.1.0
func (dep *Dependency) SetDefaults(defaultRegistry string)
SetDefaults puts default values for registry for alias and registry (if missing).
type IndexHandler ¶ added in v1.1.0
type IndexHandler interface { LoadDependencyIndex(filePath string) error SaveDependencyIndex() error GetEntries() []DependenciesIndexEntry SetEntries(entries []DependenciesIndexEntry) }
type LocalIndexHandler ¶ added in v1.1.0
type LocalIndexHandler struct {
// contains filtered or unexported fields
}
func (*LocalIndexHandler) GetEntries ¶ added in v1.1.0
func (di *LocalIndexHandler) GetEntries() []DependenciesIndexEntry
func (*LocalIndexHandler) LoadDependencyIndex ¶ added in v1.1.0
func (di *LocalIndexHandler) LoadDependencyIndex(filePath string) error
LoadDependencyIndex reads a dependencies index file.
func (*LocalIndexHandler) SaveDependencyIndex ¶ added in v1.1.0
func (di *LocalIndexHandler) SaveDependencyIndex() error
SaveDependencyIndex saves a dependencies index file.
func (*LocalIndexHandler) SetEntries ¶ added in v1.1.0
func (di *LocalIndexHandler) SetEntries(entries []DependenciesIndexEntry)
Click to show internal directories.
Click to hide internal directories.