Documentation
¶
Index ¶
- func AzureQueueScaleRuleSchema() *pluginsdk.Schema
- func AzureQueueScaleRuleSchemaComputed() *pluginsdk.Schema
- func ContainerAppContainerSchema() *pluginsdk.Schema
- func ContainerAppContainerSchemaComputed() *pluginsdk.Schema
- func ContainerAppEnvironmentDaprMetadataSchema() *pluginsdk.Schema
- func ContainerAppIngressCustomDomainSchema() *pluginsdk.Schema
- func ContainerAppIngressCustomDomainSchemaComputed() *pluginsdk.Schema
- func ContainerAppIngressIpSecurityRestriction() *pluginsdk.Schema
- func ContainerAppIngressIpSecurityRestrictionComputed() *pluginsdk.Schema
- func ContainerAppIngressSchema() *pluginsdk.Schema
- func ContainerAppIngressSchemaComputed() *pluginsdk.Schema
- func ContainerAppIngressTrafficWeight() *pluginsdk.Schema
- func ContainerAppIngressTrafficWeightComputed() *pluginsdk.Schema
- func ContainerAppLivenessProbeSchema() *pluginsdk.Schema
- func ContainerAppLivenessProbeSchemaComputed() *pluginsdk.Schema
- func ContainerAppProbesRemoved(metadata sdk.ResourceMetaData) bool
- func ContainerAppReadinessProbeSchema() *pluginsdk.Schema
- func ContainerAppReadinessProbeSchemaComputed() *pluginsdk.Schema
- func ContainerAppRegistrySchema() *pluginsdk.Schema
- func ContainerAppRegistrySchemaComputed() *pluginsdk.Schema
- func ContainerAppStartupProbeSchema() *pluginsdk.Schema
- func ContainerAppStartupProbeSchemaComputed() *pluginsdk.Schema
- func ContainerAppsJobsScaleSchema() *pluginsdk.Schema
- func ContainerDaprSchema() *pluginsdk.Schema
- func ContainerDaprSchemaComputed() *pluginsdk.Schema
- func ContainerEnvVarSchema() *pluginsdk.Schema
- func ContainerEnvVarSchemaComputed() *pluginsdk.Schema
- func ContainerTemplateSchema() *pluginsdk.Schema
- func ContainerTemplateSchemaComputed() *pluginsdk.Schema
- func ContainerVolumeMountSchema() *pluginsdk.Schema
- func ContainerVolumeMountSchemaComputed() *pluginsdk.Schema
- func ContainerVolumeSchema() *pluginsdk.Schema
- func ContainerVolumeSchemaComputed() *pluginsdk.Schema
- func CustomScaleRuleSchema() *pluginsdk.Schema
- func CustomScaleRuleSchemaComputed() *pluginsdk.Schema
- func DaprSecretsDataSourceSchema() *pluginsdk.Schema
- func DaprSecretsSchema() *pluginsdk.Schema
- func ExpandContainerAppDapr(input []Dapr) *containerapps.Dapr
- func ExpandContainerAppIngress(input []Ingress, appName string) *containerapps.Ingress
- func ExpandContainerAppJobConfigurationEventTriggerConfig(input []EventTriggerConfiguration) *jobs.JobConfigurationEventTriggerConfig
- func ExpandContainerAppJobConfigurationManualTriggerConfig(input []ManualTriggerConfiguration) *jobs.JobConfigurationManualTriggerConfig
- func ExpandContainerAppJobConfigurationScheduleTriggerConfig(input []ScheduleTriggerConfiguration) *jobs.JobConfigurationScheduleTriggerConfig
- func ExpandContainerAppJobRegistries(input []Registry) (*[]jobs.RegistryCredentials, error)
- func ExpandContainerAppJobScale(input []ScaleModel) *jobs.JobScale
- func ExpandContainerAppJobScaleRules(input []ScaleRule) *[]jobs.JobScaleRule
- func ExpandContainerAppJobScaleRulesAuth(input []ScaleRuleAuth) *[]jobs.ScaleRuleAuth
- func ExpandContainerAppJobSecrets(input []Secret) *[]jobs.Secret
- func ExpandContainerAppJobTemplate(input []JobTemplateModel) *jobs.JobTemplate
- func ExpandContainerAppRegistries(input []Registry) (*[]containerapps.RegistryCredentials, error)
- func ExpandContainerAppTemplate(input []ContainerTemplate, metadata sdk.ResourceMetaData) *containerapps.Template
- func ExpandContainerSecrets(input []Secret) (*[]containerapps.Secret, error)
- func ExpandDaprSecrets(input []DaprSecret) *[]daprcomponents.Secret
- func ExpandFormerContainerSecrets(metadata sdk.ResourceMetaData) *[]containerapps.Secret
- func ExpandWorkloadProfiles(input []WorkloadProfileModel) *[]managedenvironments.WorkloadProfile
- func HTTPScaleRuleSchema() *pluginsdk.Schema
- func HTTPScaleRuleSchemaComputed() *pluginsdk.Schema
- func InitContainerAppContainerSchema() *pluginsdk.Schema
- func InitContainerAppContainerSchemaComputed() *pluginsdk.Schema
- func JobTemplateSchema() *pluginsdk.Schema
- func PossibleValuesForWorkloadProfileSku() []string
- func SecretsDataSourceSchema() *pluginsdk.Schema
- func SecretsSchema() *pluginsdk.Schema
- func TCPScaleRuleSchema() *pluginsdk.Schema
- func TCPScaleRuleSchemaComputed() *pluginsdk.Schema
- func UnpackContainerDaprSecretsCollection(input *daprcomponents.DaprSecretsCollection) *[]daprcomponents.Secret
- func UnpackContainerJobSecretsCollection(input *jobs.JobSecretsCollection) *[]jobs.Secret
- func UnpackContainerSecretsCollection(input *containerapps.SecretsCollection) *[]containerapps.Secret
- func ValidateContainerAppRegistry(r Registry) error
- func WorkloadProfileSchema() *pluginsdk.Schema
- type AzureQueueScaleRule
- type BaseContainer
- type Container
- type ContainerAppLivenessProbe
- type ContainerAppReadinessProbe
- type ContainerAppStartupProbe
- type ContainerEnvVar
- type ContainerTemplate
- type ContainerVolume
- type ContainerVolumeMount
- type CustomDomain
- type CustomScaleRule
- type Dapr
- type DaprMetadata
- type DaprSecret
- type EventTriggerConfiguration
- type HTTPScaleRule
- type HttpHeader
- type Ingress
- type IpSecurityRestriction
- type JobTemplateModel
- type ManualTriggerConfiguration
- type Registry
- type ScaleModel
- type ScaleRule
- type ScaleRuleAuth
- type ScaleRuleAuthentication
- type ScheduleTriggerConfiguration
- type Secret
- type TCPScaleRule
- type TrafficWeight
- type WorkloadProfileModel
- type WorkloadProfileSku
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerAppProbesRemoved ¶
func ContainerAppProbesRemoved(metadata sdk.ResourceMetaData) bool
func ContainerDaprSchema ¶
func ContainerEnvVarSchema ¶
func ContainerTemplateSchema ¶
func ContainerVolumeSchema ¶
func CustomScaleRuleSchema ¶
func DaprSecretsSchema ¶
func ExpandContainerAppDapr ¶
func ExpandContainerAppDapr(input []Dapr) *containerapps.Dapr
func ExpandContainerAppIngress ¶
func ExpandContainerAppIngress(input []Ingress, appName string) *containerapps.Ingress
func ExpandContainerAppJobConfigurationEventTriggerConfig ¶
func ExpandContainerAppJobConfigurationEventTriggerConfig(input []EventTriggerConfiguration) *jobs.JobConfigurationEventTriggerConfig
func ExpandContainerAppJobConfigurationManualTriggerConfig ¶
func ExpandContainerAppJobConfigurationManualTriggerConfig(input []ManualTriggerConfiguration) *jobs.JobConfigurationManualTriggerConfig
func ExpandContainerAppJobConfigurationScheduleTriggerConfig ¶
func ExpandContainerAppJobConfigurationScheduleTriggerConfig(input []ScheduleTriggerConfiguration) *jobs.JobConfigurationScheduleTriggerConfig
func ExpandContainerAppJobRegistries ¶
func ExpandContainerAppJobRegistries(input []Registry) (*[]jobs.RegistryCredentials, error)
func ExpandContainerAppJobScale ¶
func ExpandContainerAppJobScale(input []ScaleModel) *jobs.JobScale
func ExpandContainerAppJobScaleRules ¶
func ExpandContainerAppJobScaleRules(input []ScaleRule) *[]jobs.JobScaleRule
func ExpandContainerAppJobScaleRulesAuth ¶
func ExpandContainerAppJobScaleRulesAuth(input []ScaleRuleAuth) *[]jobs.ScaleRuleAuth
func ExpandContainerAppJobTemplate ¶
func ExpandContainerAppJobTemplate(input []JobTemplateModel) *jobs.JobTemplate
func ExpandContainerAppRegistries ¶
func ExpandContainerAppRegistries(input []Registry) (*[]containerapps.RegistryCredentials, error)
func ExpandContainerAppTemplate ¶
func ExpandContainerAppTemplate(input []ContainerTemplate, metadata sdk.ResourceMetaData) *containerapps.Template
func ExpandContainerSecrets ¶
func ExpandContainerSecrets(input []Secret) (*[]containerapps.Secret, error)
func ExpandDaprSecrets ¶
func ExpandDaprSecrets(input []DaprSecret) *[]daprcomponents.Secret
func ExpandFormerContainerSecrets ¶
func ExpandFormerContainerSecrets(metadata sdk.ResourceMetaData) *[]containerapps.Secret
func ExpandWorkloadProfiles ¶
func ExpandWorkloadProfiles(input []WorkloadProfileModel) *[]managedenvironments.WorkloadProfile
func HTTPScaleRuleSchema ¶
func JobTemplateSchema ¶
func PossibleValuesForWorkloadProfileSku ¶
func PossibleValuesForWorkloadProfileSku() []string
func SecretsDataSourceSchema ¶
func SecretsSchema ¶
func TCPScaleRuleSchema ¶
func UnpackContainerDaprSecretsCollection ¶
func UnpackContainerDaprSecretsCollection(input *daprcomponents.DaprSecretsCollection) *[]daprcomponents.Secret
func UnpackContainerJobSecretsCollection ¶
func UnpackContainerJobSecretsCollection(input *jobs.JobSecretsCollection) *[]jobs.Secret
func UnpackContainerSecretsCollection ¶
func UnpackContainerSecretsCollection(input *containerapps.SecretsCollection) *[]containerapps.Secret
func WorkloadProfileSchema ¶
Types ¶
type AzureQueueScaleRule ¶
type AzureQueueScaleRule struct { Name string `tfschema:"name"` QueueLength int64 `tfschema:"queue_length"` QueueName string `tfschema:"queue_name"` Authentications []ScaleRuleAuthentication `tfschema:"authentication"` }
type BaseContainer ¶
type BaseContainer struct { Name string `tfschema:"name"` Image string `tfschema:"image"` CPU float64 `tfschema:"cpu"` Memory string `tfschema:"memory"` EphemeralStorage string `tfschema:"ephemeral_storage"` Env []ContainerEnvVar `tfschema:"env"` Args []string `tfschema:"args"` Command []string `tfschema:"command"` VolumeMounts []ContainerVolumeMount `tfschema:"volume_mounts"` }
type Container ¶
type Container struct { Name string `tfschema:"name"` Image string `tfschema:"image"` CPU float64 `tfschema:"cpu"` Memory string `tfschema:"memory"` EphemeralStorage string `tfschema:"ephemeral_storage"` Env []ContainerEnvVar `tfschema:"env"` Args []string `tfschema:"args"` Command []string `tfschema:"command"` LivenessProbe []ContainerAppLivenessProbe `tfschema:"liveness_probe"` ReadinessProbe []ContainerAppReadinessProbe `tfschema:"readiness_probe"` StartupProbe []ContainerAppStartupProbe `tfschema:"startup_probe"` VolumeMounts []ContainerVolumeMount `tfschema:"volume_mounts"` }
type ContainerAppLivenessProbe ¶
type ContainerAppLivenessProbe struct { Transport string `tfschema:"transport"` Host string `tfschema:"host"` Port int64 `tfschema:"port"` Path string `tfschema:"path"` Headers []HttpHeader `tfschema:"header"` InitialDelay int64 `tfschema:"initial_delay"` Interval int64 `tfschema:"interval_seconds"` Timeout int64 `tfschema:"timeout"` FailureThreshold int64 `tfschema:"failure_count_threshold"` TerminationGracePeriod int64 `tfschema:"termination_grace_period_seconds,removedInNextMajorVersion"` }
type ContainerAppReadinessProbe ¶
type ContainerAppReadinessProbe struct { Transport string `tfschema:"transport"` Host string `tfschema:"host"` Port int64 `tfschema:"port"` Path string `tfschema:"path"` Headers []HttpHeader `tfschema:"header"` InitialDelay int64 `tfschema:"initial_delay"` Interval int64 `tfschema:"interval_seconds"` Timeout int64 `tfschema:"timeout"` FailureThreshold int64 `tfschema:"failure_count_threshold"` SuccessThreshold int64 `tfschema:"success_count_threshold"` }
type ContainerAppStartupProbe ¶
type ContainerAppStartupProbe struct { Transport string `tfschema:"transport"` Host string `tfschema:"host"` Port int64 `tfschema:"port"` Path string `tfschema:"path"` Headers []HttpHeader `tfschema:"header"` InitialDelay int64 `tfschema:"initial_delay"` Interval int64 `tfschema:"interval_seconds"` Timeout int64 `tfschema:"timeout"` FailureThreshold int64 `tfschema:"failure_count_threshold"` TerminationGracePeriod int64 `tfschema:"termination_grace_period_seconds,removedInNextMajorVersion"` }
type ContainerEnvVar ¶
type ContainerTemplate ¶
type ContainerTemplate struct { Containers []Container `tfschema:"container"` InitContainers []BaseContainer `tfschema:"init_container"` Suffix string `tfschema:"revision_suffix"` MinReplicas int64 `tfschema:"min_replicas"` MaxReplicas int64 `tfschema:"max_replicas"` AzureQueueScaleRules []AzureQueueScaleRule `tfschema:"azure_queue_scale_rule"` CustomScaleRules []CustomScaleRule `tfschema:"custom_scale_rule"` HTTPScaleRules []HTTPScaleRule `tfschema:"http_scale_rule"` TCPScaleRules []TCPScaleRule `tfschema:"tcp_scale_rule"` Volumes []ContainerVolume `tfschema:"volume"` TerminationGracePeriod int64 `tfschema:"termination_grace_period_seconds"` }
func FlattenContainerAppTemplate ¶
func FlattenContainerAppTemplate(input *containerapps.Template) []ContainerTemplate
type ContainerVolume ¶
type ContainerVolumeMount ¶
type CustomDomain ¶
type CustomScaleRule ¶
type CustomScaleRule struct { Name string `tfschema:"name"` Metadata map[string]string `tfschema:"metadata"` CustomRuleType string `tfschema:"custom_rule_type"` Authentications []ScaleRuleAuthentication `tfschema:"authentication"` }
type Dapr ¶
type Dapr struct { AppId string `tfschema:"app_id"` AppPort int64 `tfschema:"app_port"` AppProtocol string `tfschema:"app_protocol"` }
func FlattenContainerAppDapr ¶
func FlattenContainerAppDapr(input *containerapps.Dapr) []Dapr
type DaprMetadata ¶
type DaprSecret ¶
func FlattenContainerAppDaprSecrets ¶
func FlattenContainerAppDaprSecrets(input *daprcomponents.DaprSecretsCollection) []DaprSecret
type EventTriggerConfiguration ¶
type EventTriggerConfiguration struct { Parallelism int64 `tfschema:"parallelism"` ReplicaCompletionCount int64 `tfschema:"replica_completion_count"` Scale []ScaleModel `tfschema:"scale"` }
func FlattenContainerAppJobConfigurationEventTriggerConfig ¶
func FlattenContainerAppJobConfigurationEventTriggerConfig(input *jobs.JobConfigurationEventTriggerConfig) []EventTriggerConfiguration
type HTTPScaleRule ¶
type HTTPScaleRule struct { Name string `tfschema:"name"` ConcurrentRequests string `tfschema:"concurrent_requests"` Authentications []ScaleRuleAuthentication `tfschema:"authentication"` }
type HttpHeader ¶
type Ingress ¶
type Ingress struct { AllowInsecure bool `tfschema:"allow_insecure_connections"` CustomDomains []CustomDomain `tfschema:"custom_domain"` IsExternal bool `tfschema:"external_enabled"` FQDN string `tfschema:"fqdn"` TargetPort int64 `tfschema:"target_port"` ExposedPort int64 `tfschema:"exposed_port"` TrafficWeights []TrafficWeight `tfschema:"traffic_weight"` Transport string `tfschema:"transport"` IpSecurityRestrictions []IpSecurityRestriction `tfschema:"ip_security_restriction"` ClientCertificateMode string `tfschema:"client_certificate_mode"` }
func FlattenContainerAppIngress ¶
func FlattenContainerAppIngress(input *containerapps.Ingress, appName string) []Ingress
type IpSecurityRestriction ¶
type JobTemplateModel ¶
type JobTemplateModel struct { Containers []Container `tfschema:"container"` InitContainers []BaseContainer `tfschema:"init_container"` Volumes []ContainerVolume `tfschema:"volume"` }
func FlattenContainerAppJobTemplate ¶
func FlattenContainerAppJobTemplate(input *jobs.JobTemplate) []JobTemplateModel
type ManualTriggerConfiguration ¶
type ManualTriggerConfiguration struct { Parallelism int64 `tfschema:"parallelism"` ReplicaCompletionCount int64 `tfschema:"replica_completion_count"` }
func FlattenContainerAppJobConfigurationManualTriggerConfig ¶
func FlattenContainerAppJobConfigurationManualTriggerConfig(input *jobs.JobConfigurationManualTriggerConfig) []ManualTriggerConfiguration
type Registry ¶
type Registry struct { PasswordSecretRef string `tfschema:"password_secret_name"` Server string `tfschema:"server"` UserName string `tfschema:"username"` Identity string `tfschema:"identity"` }
func FlattenContainerAppJobRegistries ¶
func FlattenContainerAppJobRegistries(input *[]jobs.RegistryCredentials) []Registry
func FlattenContainerAppRegistries ¶
func FlattenContainerAppRegistries(input *[]containerapps.RegistryCredentials) []Registry
type ScaleModel ¶
type ScaleRule ¶
type ScaleRule struct { Auth []ScaleRuleAuth `tfschema:"authentication"` Metadata map[string]interface{} `tfschema:"metadata"` Name string `tfschema:"name"` Type string `tfschema:"custom_rule_type"` }
type ScaleRuleAuth ¶
type ScaleRuleAuthentication ¶
type ScheduleTriggerConfiguration ¶
type ScheduleTriggerConfiguration struct { CronExpression string `tfschema:"cron_expression"` Parallelism int64 `tfschema:"parallelism"` ReplicaCompletionCount int64 `tfschema:"replica_completion_count"` }
func FlattenContainerAppJobConfigurationScheduleTriggerConfig ¶
func FlattenContainerAppJobConfigurationScheduleTriggerConfig(input *jobs.JobConfigurationScheduleTriggerConfig) []ScheduleTriggerConfiguration
type Secret ¶
type Secret struct { Identity string `tfschema:"identity"` KeyVaultSecretId string `tfschema:"key_vault_secret_id"` Name string `tfschema:"name"` Value string `tfschema:"value"` }
func FlattenContainerAppJobSecrets ¶
func FlattenContainerAppJobSecrets(input *jobs.JobSecretsCollection) []Secret
func FlattenContainerAppSecrets ¶
func FlattenContainerAppSecrets(input *containerapps.SecretsCollection) []Secret
type TCPScaleRule ¶
type TCPScaleRule struct { Name string `tfschema:"name"` ConcurrentRequests string `tfschema:"concurrent_requests"` Authentications []ScaleRuleAuthentication `tfschema:"authentication"` }
type TrafficWeight ¶
type WorkloadProfileModel ¶
type WorkloadProfileModel struct { MaximumCount int64 `tfschema:"maximum_count"` MinimumCount int64 `tfschema:"minimum_count"` Name string `tfschema:"name"` WorkloadProfileType string `tfschema:"workload_profile_type"` }
func FlattenWorkloadProfiles ¶
func FlattenWorkloadProfiles(input *[]managedenvironments.WorkloadProfile, consumptionDefined bool) []WorkloadProfileModel
type WorkloadProfileSku ¶
type WorkloadProfileSku string
const ( WorkloadProfileSkuConsumption WorkloadProfileSku = "Consumption" WorkloadProfileSkuD4 WorkloadProfileSku = "D4" WorkloadProfileSkuD8 WorkloadProfileSku = "D8" WorkloadProfileSkuD16 WorkloadProfileSku = "D16" WorkloadProfileSkuD32 WorkloadProfileSku = "D32" WorkloadProfileSkuE4 WorkloadProfileSku = "E4" WorkloadProfileSkuE8 WorkloadProfileSku = "E8" WorkloadProfileSkuE16 WorkloadProfileSku = "E16" WorkloadProfileSkuE32 WorkloadProfileSku = "E32" )
NOTE: the Workload Profile SKUs aren't defined in the Swagger definition so we define them here
Click to show internal directories.
Click to hide internal directories.