Documentation ¶
Index ¶
- func InitConfig() error
- func InitConfigFromDir(dir string) error
- type Components
- type Configuration
- type Helmfile
- type Logs
- type Stacks
- type Terraform
- type VendorComponentConfig
- type VendorComponentMetadata
- type VendorComponentMixins
- type VendorComponentSource
- type VendorComponentSpec
- type Workflows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig() error
func InitConfigFromDir ¶
Init config finds and merges CLI configuration in the followinfg order system dir, home dir current dir, ENV vars, command-line args https://dev.to/techschoolguru/load-config-from-file-environment-variables-in-golang-with-viper-2j2d https://medium.com/@bnprashanth256/reading-configuration-files-and-environment-variables-in-go-golang-c2607f912b63
Types ¶
type Components ¶
type Configuration ¶
type Configuration struct { BasePath string `yaml:"base_path" json:"base_path" mapstructure:"base_path"` Components Components Stacks Stacks Workflows Workflows Logs Logs }
var ( // Config is the CLI configuration structure Config Configuration )
type Helmfile ¶
type Helmfile struct { BasePath string `yaml:"base_path" json:"base_path" mapstructure:"base_path"` KubeconfigPath string `yaml:"kubeconfig_path" json:"kubeconfig_path" mapstructure:"kubeconfig_path"` HelmAwsProfilePattern string `yaml:"helm_aws_profile_pattern" json:"helm_aws_profile_pattern" mapstructure:"helm_aws_profile_pattern"` ClusterNamePattern string `yaml:"cluster_name_pattern" json:"cluster_name_pattern" mapstructure:"cluster_name_pattern"` }
type Stacks ¶
type Stacks struct { BasePath string `yaml:"base_path" json:"base_path" mapstructure:"base_path"` IncludedPaths []string `yaml:"included_paths" json:"included_paths" mapstructure:"included_paths"` ExcludedPaths []string `yaml:"excluded_paths" json:"excluded_paths" mapstructure:"excluded_paths"` NamePattern string `yaml:"name_pattern" json:"name_pattern" mapstructure:"name_pattern"` }
type Terraform ¶
type Terraform struct { BasePath string `yaml:"base_path" json:"base_path" mapstructure:"base_path"` ApplyAutoApprove bool `yaml:"apply_auto_approve" json:"apply_auto_approve" mapstructure:"apply_auto_approve"` DeployRunInit bool `yaml:"deploy_run_init" json:"deploy_run_init" mapstructure:"deploy_run_init"` InitRunReconfigure bool `yaml:"init_run_reconfigure" json:"init_run_reconfigure" mapstructure:"init_run_reconfigure"` AutoGenerateBackendFile bool `yaml:"auto_generate_backend_file" json:"auto_generate_backend_file" mapstructure:"auto_generate_backend_file"` }
type VendorComponentConfig ¶
type VendorComponentConfig struct { ApiVersion string `yaml:"apiVersion" json:"apiVersion" mapstructure:"apiVersion"` Kind string `yaml:"kind" json:"kind" mapstructure:"kind"` Metadata VendorComponentMetadata Spec VendorComponentSpec `yaml:"spec" json:"spec" mapstructure:"spec"` }
func ReadComponentFile ¶
func ReadComponentFile(fss *fs.FileSystem, component string, componentType string) (VendorComponentConfig, string, error)
ReadComponentFile reads and processes `component.yaml` vendor config file
type VendorComponentMetadata ¶
type VendorComponentMixins ¶
type VendorComponentSource ¶
type VendorComponentSource struct { Type string `yaml:"type" json:"type" mapstructure:"type"` Uri string `yaml:"uri" json:"uri" mapstructure:"uri"` Version string `yaml:"version" json:"version" mapstructure:"version"` IncludedPaths []string `yaml:"included_paths" json:"included_paths" mapstructure:"included_paths"` ExcludedPaths []string `yaml:"excluded_paths" json:"excluded_paths" mapstructure:"excluded_paths"` }
type VendorComponentSpec ¶
type VendorComponentSpec struct { Source VendorComponentSource Mixins []VendorComponentMixins }
Click to show internal directories.
Click to hide internal directories.