Documentation ¶
Index ¶
- func AWSProviderAccountIdGetter(comm Common) *int64
- func AWSProviderAdditionalRegionsGetter(comm Common) []string
- func AWSProviderProfileGetter(comm Common) *string
- func AWSProviderRegionGetter(comm Common) *string
- func AWSProviderVersionGetter(comm Common) *string
- func BackendBucketGetter(comm Common) *string
- func BackendDynamoTableGetter(comm Common) *string
- func BackendProfileGetter(comm Common) *string
- func BackendRegionGetter(comm Common) *string
- func ExtraVarsGetter(comm Common) map[string]string
- func OwnerGetter(comm Common) *string
- func ProjectGetter(comm Common) *string
- func ResolveModuleTerraformVersion(def Defaults, module v1.Module) *string
- func ResolveOptionalString(getter func(Common) *string, commons ...Common) *string
- func ResolveOptionalStringSlice(getter func(Common) []string, commons ...Common) []string
- func ResolveRequiredInt64(getter func(Common) *int64, commons ...Common) int64
- func ResolveRequiredString(getter func(Common) *string, commons ...Common) string
- func ResolveStringArray(def []string, override []string) []string
- func ResolveStringMap(getter func(Common) map[string]string, commons ...Common) map[string]string
- func SnowflakeProviderAccountGetter(comm Common) *string
- func SnowflakeProviderRegionGetter(comm Common) *string
- func SnowflakeProviderRoleGetter(comm Common) *string
- func TerraformVersionGetter(comm Common) *string
- func ValidateAWSProvider(p *AWSProvider, component string) error
- func ValidateSnowflakeProvider(p *SnowflakeProvider, component string) error
- type AWSProvider
- type Account
- type Backend
- type Common
- type Component
- type Config
- type Defaults
- type Env
- type Providers
- type SnowflakeProvider
- type Tools
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSProviderAccountIdGetter ¶ added in v0.21.0
func AWSProviderAdditionalRegionsGetter ¶ added in v0.21.0
func AWSProviderProfileGetter ¶ added in v0.21.0
func AWSProviderRegionGetter ¶ added in v0.21.0
func AWSProviderVersionGetter ¶ added in v0.21.0
func BackendBucketGetter ¶ added in v0.21.0
func BackendDynamoTableGetter ¶ added in v0.21.0
func BackendProfileGetter ¶ added in v0.21.0
func BackendRegionGetter ¶ added in v0.21.0
func ExtraVarsGetter ¶ added in v0.21.0
func OwnerGetter ¶ added in v0.21.0
func ProjectGetter ¶ added in v0.21.0
func ResolveModuleTerraformVersion ¶ added in v0.21.0
func ResolveOptionalString ¶ added in v0.21.0
func ResolveOptionalStringSlice ¶ added in v0.21.0
func ResolveRequiredInt64 ¶ added in v0.21.0
ResolveRequiredInt will resolve the value and panic if it is nil. Only to be used after validations are run.
func ResolveRequiredString ¶ added in v0.21.0
ResolveRequiredString will resolve the value and panic if it is nil. Only to be used after validations are run.
func ResolveStringArray ¶ added in v0.21.0
func ResolveStringMap ¶ added in v0.21.0
func SnowflakeProviderAccountGetter ¶ added in v0.21.0
func SnowflakeProviderRegionGetter ¶ added in v0.21.0
func SnowflakeProviderRoleGetter ¶ added in v0.21.0
func TerraformVersionGetter ¶ added in v0.21.0
func ValidateAWSProvider ¶ added in v0.21.0
func ValidateAWSProvider(p *AWSProvider, component string) error
func ValidateSnowflakeProvider ¶ added in v0.21.0
func ValidateSnowflakeProvider(p *SnowflakeProvider, component string) error
Types ¶
type AWSProvider ¶
type AWSProvider struct { // the aws provider is optional (above) but if supplied you must set account id and region AccountID *int64 `json:"account_id,omitempty"` AdditionalRegions []string `json:"additional_regions,omitempty"` Profile *string `json:"profile,omitempty"` Region *string `json:"region,omitempty"` Version *string `json:"version,omitempty"` }
func ResolveAWSProvider ¶ added in v0.21.0
func ResolveAWSProvider(commons ...Common) *AWSProvider
ResolveAWSProvider will return an AWSProvder iff one of the required fields is set somewhere in the set of Common config objects passed in. Otherwise it will return nil.
type Common ¶
type Common struct { Backend *Backend `json:"backend,omitempty"` ExtraVars map[string]string `json:"extra_vars,omitempty"` Owner *string `json:"owner,omitempty" ` Project *string `json:"project,omitempty" ` Providers *Providers `json:"providers,omitempty" ` TerraformVersion *string `json:"terraform_version,omitempty"` }
type Config ¶
type Config struct { Accounts map[string]Account `json:"accounts,omitempty"` Defaults Defaults `json:"defaults" validate:"required"` Docker bool `json:"docker,omitempty"` Envs map[string]Env `json:"envs,omitempty"` Global Component `json:"global,omitempty"` Modules map[string]v1.Module `json:"modules,omitempty"` Plugins v1.Plugins `json:"plugins,omitempty"` Tools Tools `json:"tools,omitempty"` Version int `json:"version" validate:"required,eq=2"` }
func ReadConfig ¶
func (*Config) Generate ¶
Generate is used for test/quick integration. There are supposedly ways to do this without polluting the public api, but givent that fogg isn't an api, it doesn't seem like a big deal
func (*Config) ValidateAWSProviders ¶ added in v0.21.0
func (*Config) ValidateSnowflakeProviders ¶ added in v0.21.0
func (*Config) WalkComponents ¶ added in v0.21.0
type Providers ¶
type Providers struct { AWS *AWSProvider `json:"aws"` Snowflake *SnowflakeProvider `json:"snowflake"` }
type SnowflakeProvider ¶ added in v0.21.0
type SnowflakeProvider struct { Account *string `json:"account,omitempty"` Role *string `json:"role,omitempty"` Region *string `json:"region,omitempty"` }
func ResolveSnowflakeProvider ¶ added in v0.21.0
func ResolveSnowflakeProvider(commons ...Common) *SnowflakeProvider
Click to show internal directories.
Click to hide internal directories.