Documentation
¶
Index ¶
- Constants
- func LoadValues(root string, passwords []string) (map[string]string, error)
- func MergeValues(target, replace map[string]string) map[string]string
- type DeployConfig
- func (dc *DeployConfig) GetEnvDirPath(n string) string
- func (dc *DeployConfig) GetParamPath(n string) string
- func (dc *DeployConfig) GetStackConfigByName(n string) *StackConfig
- func (dc *DeployConfig) GetStackList(f map[string]string) map[string]*StackConfig
- func (dc *DeployConfig) GetTplPath(n string) string
- func (dc *DeployConfig) Validate() error
- type StackConfig
Constants ¶
View Source
const (
// Default deployment package config file name
DEFAULT_DEPLOY_CONFIG_FILE_NAME = "stacks.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func LoadValues ¶
Load Values from value directories. The order of value override is always following the lexical order of the file names
Types ¶
type DeployConfig ¶
type DeployConfig struct { // Name of the s3 bucket for uploading template S3Bucket string `yaml:"s3Bucket"` // Template directory TemplateDir string `yaml:"templateDir"` // Environments directory EnvDir string `yaml:"envDir"` // Template directory ParamDir string `yaml:"paramDir"` // Stacks config Stacks []*StackConfig `yaml:"stacks"` // contains filtered or unexported fields }
Deploy configuration
func NewDeployConfig ¶
func NewDeployConfig(file string) (*DeployConfig, error)
Load deploy config from file. If no file path given, default to lookup file "stacks.yaml" at current directory.
func (*DeployConfig) GetEnvDirPath ¶
func (dc *DeployConfig) GetEnvDirPath(n string) string
func (*DeployConfig) GetParamPath ¶
func (dc *DeployConfig) GetParamPath(n string) string
func (*DeployConfig) GetStackConfigByName ¶
func (dc *DeployConfig) GetStackConfigByName(n string) *StackConfig
Return a stack config by its name
func (*DeployConfig) GetStackList ¶
func (dc *DeployConfig) GetStackList(f map[string]string) map[string]*StackConfig
Find stack config for given list
func (*DeployConfig) GetTplPath ¶
func (dc *DeployConfig) GetTplPath(n string) string
func (*DeployConfig) Validate ¶
func (dc *DeployConfig) Validate() error
Validate path configuration
Click to show internal directories.
Click to hide internal directories.