Documentation
¶
Index ¶
- func NewAWSPlugin() schema.MachComposerPlugin
- func StripProtocol(value string) string
- func TerraformRenderComponentProviders(cfg *SiteConfig) []string
- func ZoneFromURL(value string) string
- type AWSProvider
- type AWSTFState
- type ComponentConfig
- type EndpointConfig
- type Plugin
- func (p *Plugin) Configure(environment string, provider string) error
- func (p *Plugin) GetValidationSchema() (*schema.ValidationSchema, error)
- func (p *Plugin) Identifier() string
- func (p *Plugin) IsEnabled() bool
- func (p *Plugin) RenderTerraformComponent(site string, component string) (*schema.ComponentSchema, error)
- func (p *Plugin) SetComponentEndpointsConfig(component string, endpoints map[string]string) error
- func (p *Plugin) SetRemoteStateBackend(data map[string]any) error
- func (p *Plugin) SetSiteConfig(site string, data map[string]any) error
- func (p *Plugin) SetSiteEndpointConfig(site string, name string, data map[string]any) error
- func (p *Plugin) TerraformRenderProviders(site string) (string, error)
- func (p *Plugin) TerraformRenderResources(site string) (string, error)
- func (p *Plugin) TerraformRenderStateBackend(site string) (string, error)
- type SiteConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAWSPlugin ¶
func NewAWSPlugin() schema.MachComposerPlugin
func StripProtocol ¶
func TerraformRenderComponentProviders ¶
func TerraformRenderComponentProviders(cfg *SiteConfig) []string
func ZoneFromURL ¶
Types ¶
type AWSProvider ¶
type AWSTFState ¶
type AWSTFState struct { Bucket string `mapstructure:"bucket"` KeyPrefix string `mapstructure:"key_prefix"` Region string `mapstructure:"region"` RoleARN string `mapstructure:"role_arn"` LockTable string `mapstructure:"lock_table"` Encrypt bool `mapstructure:"encrypt" default:"true"` }
AWSTFState AWS S3 bucket state backend configuration.
type ComponentConfig ¶
type EndpointConfig ¶
type EndpointConfig struct { // Key is the id of the endpoint (.e.g internal) Key string `mapstructure:"key"` URL string `mapstructure:"url"` ThrottlingBurstLimit *int `mapstructure:"throttling_burst_limit"` ThrottlingRateLimit *int `mapstructure:"throttling_rate_limit"` EnableCDN bool `mapstructure:"enable_cdn"` AssociatedComponents []string `mapstructure:"-"` // Zone is the route53 DNS Zone Zone string `mapstructure:"zone"` }
func (*EndpointConfig) SetDefaults ¶
func (e *EndpointConfig) SetDefaults()
type Plugin ¶ added in v0.0.3
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) GetValidationSchema ¶ added in v0.0.3
func (p *Plugin) GetValidationSchema() (*schema.ValidationSchema, error)
func (*Plugin) Identifier ¶ added in v0.0.3
func (*Plugin) RenderTerraformComponent ¶ added in v0.0.3
func (*Plugin) SetComponentEndpointsConfig ¶ added in v0.0.3
func (*Plugin) SetRemoteStateBackend ¶ added in v0.0.3
func (*Plugin) SetSiteConfig ¶ added in v0.0.3
func (*Plugin) SetSiteEndpointConfig ¶ added in v0.0.4
func (*Plugin) TerraformRenderProviders ¶ added in v0.0.3
func (*Plugin) TerraformRenderResources ¶ added in v0.0.3
type SiteConfig ¶
Click to show internal directories.
Click to hide internal directories.