Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependenciesIndex ¶
type DependenciesIndex struct {
Meta config.Metadata `json:"-"`
APIVersion string `json:"apiVersion,omitempty"`
Kind string `json:"kind,omitempty"`
Entries []DependenciesIndexEntry `json:"entries"`
}
type DependenciesIndexEntry ¶
type Dependency ¶
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 ¶
func (dep *Dependency) SetDefaults(defaultRegistry string)
SetDefaults puts default values for registry for alias and registry (if missing).
type IndexHandler ¶
type IndexHandler interface {
LoadDependencyIndex(filePath string) error
SaveDependencyIndex() error
GetEntries() []DependenciesIndexEntry
SetEntries(entries []DependenciesIndexEntry)
}
type LocalIndexHandler ¶
type LocalIndexHandler struct {
// contains filtered or unexported fields
}
func (*LocalIndexHandler) GetEntries ¶
func (di *LocalIndexHandler) GetEntries() []DependenciesIndexEntry
func (*LocalIndexHandler) LoadDependencyIndex ¶
func (di *LocalIndexHandler) LoadDependencyIndex(filePath string) error
LoadDependencyIndex reads a dependencies index file.
func (*LocalIndexHandler) SaveDependencyIndex ¶
func (di *LocalIndexHandler) SaveDependencyIndex() error
SaveDependencyIndex saves a dependencies index file.
func (*LocalIndexHandler) SetEntries ¶
func (di *LocalIndexHandler) SetEntries(entries []DependenciesIndexEntry)
Click to show internal directories.
Click to hide internal directories.