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 BlessProviderAdditionalRegionsGetter(comm Common) []string
- func BlessProviderProfileGetter(comm Common) *string
- func BlessProviderRegionGetter(comm Common) *string
- func BlessProviderVersionGetter(comm Common) *string
- func ExtraVarsGetter(comm Common) map[string]string
- func OktaProviderOrgNameGetter(comm Common) *string
- func OktaProviderVersionGetter(comm Common) *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 ResolveTfLint(commons ...Common) v1.TfLint
- func SnowflakeProviderAccountGetter(comm Common) *string
- func SnowflakeProviderRegionGetter(comm Common) *string
- func SnowflakeProviderRoleGetter(comm Common) *string
- func SnowflakeProviderVersionGetter(comm Common) *string
- func TerraformVersionGetter(comm Common) *string
- func ValidateAWSProvider(p *AWSProvider, component string) error
- type AWSProvider
- type Account
- type Backend
- type BlessProvider
- type Common
- type Component
- type Config
- func (c *Config) Generate(r *rand.Rand, size int) reflect.Value
- func (c *Config) Validate() ([]string, error)
- func (c *Config) ValidateAWSProviders() error
- func (c *Config) ValidateBlessProviders() error
- func (c *Config) ValidateOktaProviders() error
- func (c *Config) ValidateSnowflakeProviders() error
- func (c *Config) ValidateToolsTfLint() ([]string, error)
- func (c *Config) ValidateToolsTravis() ([]string, error)
- func (c *Config) WalkComponents(f func(component string, commons ...Common))
- type Defaults
- type Env
- type OktaProvider
- 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 BlessProviderAdditionalRegionsGetter ¶ added in v0.22.0
func BlessProviderProfileGetter ¶ added in v0.22.0
func BlessProviderRegionGetter ¶ added in v0.22.0
func BlessProviderVersionGetter ¶ added in v0.22.0
func ExtraVarsGetter ¶ added in v0.21.0
func OktaProviderOrgNameGetter ¶ added in v0.23.0
func OktaProviderVersionGetter ¶ added in v0.23.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 ResolveTfLint ¶ added in v0.23.0
func SnowflakeProviderAccountGetter ¶ added in v0.21.0
func SnowflakeProviderRegionGetter ¶ added in v0.21.0
func SnowflakeProviderRoleGetter ¶ added in v0.21.0
func SnowflakeProviderVersionGetter ¶ added in v0.22.0
func TerraformVersionGetter ¶ added in v0.21.0
func ValidateAWSProvider ¶ added in v0.21.0
func ValidateAWSProvider(p *AWSProvider, 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 BlessProvider ¶ added in v0.22.0
type BlessProvider struct { // the bless provider is optional (above) but if supplied you must set a region and aws_profile AdditionalRegions []string `json:"additional_regions,omitempty"` AWSProfile *string `json:"aws_profile,omitempty"` AWSRegion *string `json:"aws_region,omitempty"` Version *string `json:"version,omitempty"` }
BlessProvider allows for terraform-provider-bless configuration
func ResolveBlessProvider ¶ added in v0.22.0
func ResolveBlessProvider(commons ...Common) *BlessProvider
func (*BlessProvider) Validate ¶ added in v0.23.0
func (p *BlessProvider) Validate(component string) error
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"` Tools *Tools `json:"tools,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"` 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) ValidateBlessProviders ¶ added in v0.22.0
func (*Config) ValidateOktaProviders ¶ added in v0.23.0
func (*Config) ValidateSnowflakeProviders ¶ added in v0.21.0
func (*Config) ValidateToolsTfLint ¶ added in v0.23.0
func (*Config) ValidateToolsTravis ¶ added in v0.23.0
func (*Config) WalkComponents ¶ added in v0.21.0
type OktaProvider ¶ added in v0.23.0
type OktaProvider struct { // the okta provider is optional (above) but if supplied you must set an OrgName OrgName *string `json:"org_name,omitempty"` Version *string `json:"version,omitempty"` }
OktaProvider is an okta provider
func ResolveOktaProvider ¶ added in v0.23.0
func ResolveOktaProvider(commons ...Common) *OktaProvider
func (*OktaProvider) Validate ¶ added in v0.23.0
func (o *OktaProvider) Validate(component string) error
type Providers ¶
type Providers struct { AWS *AWSProvider `json:"aws,omitempty"` Snowflake *SnowflakeProvider `json:"snowflake,omitempty"` Bless *BlessProvider `json:"bless,omitempty"` Okta *OktaProvider `json:"okta,omitempty"` }
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"` Version *string `json:"version,omitempty"` }
func ResolveSnowflakeProvider ¶ added in v0.21.0
func ResolveSnowflakeProvider(commons ...Common) *SnowflakeProvider
func (*SnowflakeProvider) Validate ¶ added in v0.23.0
func (p *SnowflakeProvider) Validate(component string) error