Documentation ¶
Index ¶
- Variables
- func FilterVariables(appConfig *AppConfig, ansibleVars map[string]interface{}, appName string) map[string]interface{}
- func Generate(data ConfigMapData) (string, error)
- func LoadVars(baseFolder, env, vaultPassword string) (map[string]interface{}, error)
- func SubstituteVars(vars map[string]interface{}) map[string]interface{}
- func SuggestConfig(baseDir string, levels int) ([]string, error)
- type AnsibleLookup
- type AppConfig
- type Application
- type ConfigMapData
- type GeneratorConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
Functions ¶
func FilterVariables ¶
func Generate ¶
func Generate(data ConfigMapData) (string, error)
func LoadVars ¶
Loads variables from the vimond-ansible project. baseFolder: the location of the vimond-ansible project env: the name of the environment to use
func SubstituteVars ¶
Types ¶
type AnsibleLookup ¶
func (*AnsibleLookup) Equals ¶
func (local *AnsibleLookup) Equals(other *AnsibleLookup) bool
type AppConfig ¶
type AppConfig struct {
Applications []Application
}
func (*AppConfig) CheckNameExists ¶
func (*AppConfig) SanityCheck ¶
type Application ¶
type ConfigMapData ¶
type GeneratorConfig ¶
type GeneratorConfig struct { AppName string Environment string GroupVars string VaultPassword string AppConfig *AppConfig }
func (*GeneratorConfig) GenerateConfigMap ¶
func (config *GeneratorConfig) GenerateConfigMap() (string, error)
func (*GeneratorConfig) GenerateConfigMapAsMap ¶
func (config *GeneratorConfig) GenerateConfigMapAsMap() (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.