Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func NewConfigCmd ¶
Types ¶
type CloudConfig ¶
type CloudConfig struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Username string `yaml:"username"`
Token string `yaml:"token"`
}
func (*CloudConfig) ToCloudBoxOptions ¶
func (c *CloudConfig) ToCloudBoxOptions(version string) *model.CloudBoxOptions
type ConfigRef ¶
type ConfigRef struct {
Config *ConfigV1
}
ConfigRef is a wrapper used to avoid global variables. It's used to reference the config value in the commands before they are actually loaded with viper in each PersistentPreRunE.
type ConfigV1 ¶
type ConfigV1 struct {
Kind string `yaml:"kind"`
Log LogConfig `yaml:"log"`
Template TemplateConfig `yaml:"template"`
Box BoxConfig `yaml:"box"`
Provider ProviderConfig `yaml:"provider"`
}
func LoadConfig ¶
type DockerConfig ¶
type DockerConfig struct {
NetworkName string `yaml:"networkName"`
}
func (*DockerConfig) ToDockerBoxOptions ¶
func (c *DockerConfig) ToDockerBoxOptions() *model.DockerBoxOptions
type KubeConfig ¶
type KubeConfig struct {
ConfigPath string `yaml:"configPath"`
Namespace string `yaml:"namespace"`
}
func (*KubeConfig) ToKubeBoxOptions ¶
func (c *KubeConfig) ToKubeBoxOptions() *model.KubeBoxOptions
type ProviderConfig ¶
type ProviderConfig struct {
Docker DockerConfig `yaml:"docker"`
Kube KubeConfig `yaml:"kube"`
Cloud CloudConfig `yaml:"cloud"`
}
type TemplateConfig ¶
Click to show internal directories.
Click to hide internal directories.