Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultLocalConfigFile = ".docker/runx.yaml"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶ added in v0.0.3
type Action struct {
ID string `yaml:"id" json:"id"`
Desc string `yaml:"desc,omitempty" json:"desc,omitempty"`
Type ActionType `yaml:"type" json:"type"`
Command string `yaml:"cmd" json:"cmd,omitempty"`
Env []string `yaml:"env,omitempty" json:"env,omitempty"`
Options []Opt `yaml:"opts,omitempty" json:"opts,omitempty"`
}
type ConfigAction ¶ added in v0.0.7
type ConfigImage ¶ added in v0.0.7
type ConfigImage struct {
Default string `yaml:"default,omitempty" json:"default,omitempty"`
Actions map[string]ConfigAction `yaml:"actions,omitempty" json:"actions,omitempty"`
}
type LocalConfig ¶ added in v0.0.6
type LocalConfig struct {
Ref string `yaml:"ref,omitempty" json:"ref,omitempty"`
Images map[string]ConfigImage `yaml:"images,omitempty" json:"images,omitempty"`
}
func GetLocalConfig ¶ added in v0.0.6
func GetLocalConfig() LocalConfig
type Opt ¶ added in v0.0.5
type Opt struct {
Name string `yaml:"name" json:"name"`
Description string `yaml:"desc" json:"desc,omitempty"`
Prompt string `yaml:"prompt,omitempty" json:"prompt,omitempty"`
Required bool `yaml:"required,omitempty" json:"required,omitempty"`
Values []string `yaml:"values,omitempty" json:"values,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.