Documentation
¶
Index ¶
- func AzureServicePlanResourceName(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pongo2.Error)
- func NewAzurePlugin() schema.MachComposerPlugin
- type AzureTFState
- type ComponentConfig
- type GlobalConfig
- type Plugin
- func (p *Plugin) Configure(environment string, provider string) error
- func (p *Plugin) GetValidationSchema() (*schema.ValidationSchema, error)
- func (p *Plugin) IsEnabled() bool
- func (p *Plugin) RenderTerraformComponent(site string, component string) (*schema.ComponentSchema, error)
- func (p *Plugin) SetComponentConfig(component string, data map[string]any) error
- func (p *Plugin) SetGlobalConfig(data map[string]any) error
- func (p *Plugin) SetRemoteStateBackend(data map[string]any) error
- func (p *Plugin) SetSiteComponentConfig(site, component string, data map[string]any) error
- func (p *Plugin) SetSiteConfig(site 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 SiteComponent
- type SiteComponentConfig
- type SiteConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AzureServicePlanResourceName ¶
func AzureServicePlanResourceName(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pongo2.Error)
AzureServicePlanResourceName Retrieve the resource name for a Azure app service plan. The reason to make this conditional is because of backwards compatability; existing environments already have a `functionapp` resource. We want to keep that intact.
func NewAzurePlugin ¶
func NewAzurePlugin() schema.MachComposerPlugin
Types ¶
type AzureTFState ¶
type AzureTFState struct { ResourceGroup string `mapstructure:"resource_group"` StorageAccount string `mapstructure:"storage_account"` ContainerName string `mapstructure:"container_name"` StateFolder string `mapstructure:"state_folder"` }
AzureTFState Azure storage account state backend configuration.
func (AzureTFState) Key ¶
func (a AzureTFState) Key(site string) string
type ComponentConfig ¶
type GlobalConfig ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) GetValidationSchema ¶
func (p *Plugin) GetValidationSchema() (*schema.ValidationSchema, error)
func (*Plugin) RenderTerraformComponent ¶
func (*Plugin) SetComponentConfig ¶
func (*Plugin) SetRemoteStateBackend ¶
func (*Plugin) SetSiteComponentConfig ¶
func (*Plugin) SetSiteConfig ¶
func (*Plugin) TerraformRenderProviders ¶
func (*Plugin) TerraformRenderResources ¶
type SiteComponent ¶
type SiteComponent struct { InternalName string ExternalName string Component *ComponentConfig }
type SiteComponentConfig ¶
type SiteComponentConfig struct { ServicePlan string `mapstructure:"service_plan"` Name string `mapstructure:"-"` Component *ComponentConfig `mapstructure:"-"` }
type SiteConfig ¶
type SiteConfig struct { ResourceGroup string `mapstructure:"resource_group"` ResourcePrefix string `mapstructure:"resource_prefix"` SubscriptionID string `mapstructure:"subscription_id"` Components map[string]SiteComponentConfig }
Click to show internal directories.
Click to hide internal directories.