Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Component ¶
type Component struct {
Name string `yaml:"name"`
Type string `yaml:"type"`
Versions []ComponentVersion `yaml:"versions"`
}
Component struct is main element in repository identifying component and gathering all versions of it
type ComponentCommand ¶
type ComponentCommand struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Command string `yaml:"command"`
Envs map[string]string `yaml:"envs"`
Args []string `yaml:"args"`
}
ComponentCommand struct contains information about specific command provided by component to be executed
func (*ComponentCommand) String ¶
func (cc *ComponentCommand) String() string
type ComponentVersion ¶
type ComponentVersion struct {
Name string `yaml:"-"`
Type string `yaml:"-"`
Version string `yaml:"version"`
IsLatest bool `yaml:"latest"`
Image string `yaml:"image"`
WorkDirectory string `yaml:"workdir"`
Mounts []string `yaml:"mounts"`
Commands []ComponentCommand `yaml:"commands"`
}
ComponentVersion struct contains information about version of component available to be installed
func GetModule ¶
func GetModule(repoName, moduleName, moduleVersion string) (*ComponentVersion, error)
func (*ComponentVersion) String ¶
func (cv *ComponentVersion) String() string
Click to show internal directories.
Click to hide internal directories.