Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_BRANCH = "master" DEFAULT_PATH = "deployment/k8s/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectConfig ¶
type ProjectConfig struct { Services Services `json:"services"` Settings Settings `json:"settings"` }
func ReadProjectConfigFrom ¶
func ReadProjectConfigFrom(filename string) (*ProjectConfig, error)
func (ProjectConfig) String ¶
func (c ProjectConfig) String() string
func (*ProjectConfig) WriteTo ¶
func (c *ProjectConfig) WriteTo(filename string) error
type Service ¶
type Service struct { Name string `yaml:"name,omitempty"` Repository string `yaml:"repo" mapstructure:"repo"` Path string `yaml:"path,omitempty"` Branch string `yaml:"branch,omitempty"` TemplateValues TemplateValues `yaml:"template-values"` }
type Settings ¶
type Settings struct { Kubeconfig string `yaml:"kubeconfig"` Output string `yaml:"output"` Sleep time.Duration `yaml:"sleep"` SkipShuffle bool `yaml:"skip-shuffle" mapstructure:"skip-shuffle"` RetrySleep time.Duration `yaml:"retry-sleep" mapstructure:"retry-sleep"` RetryCount int `yaml:"retry-count" mapstructure:"retry-count"` IgnoreDeployFailures bool `yaml:"ignore-deploy-failures" mapstructure:"ignore-deploy-failures"` TemplateValues TemplateValues `yaml:"template-values" mapstructure:"template-values"` }
type SettingsBuilder ¶
type SettingsBuilder func() ProjectConfig
func NewBuilder ¶
func NewBuilder(fs *pflag.FlagSet) SettingsBuilder
type TemplateValue ¶
type TemplateValues ¶
type TemplateValues []TemplateValue
func (TemplateValues) ToMap ¶
func (tv TemplateValues) ToMap() map[string]string
Click to show internal directories.
Click to hide internal directories.