Documentation ¶
Index ¶
- func PossibleValuesForRevisionHealthState() []string
- func PossibleValuesForRevisionProvisioningState() []string
- func PossibleValuesForRevisionRunningState() []string
- func PossibleValuesForScheme() []string
- func PossibleValuesForStorageType() []string
- func PossibleValuesForType() []string
- func ValidateContainerAppID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRevisionID(input interface{}, key string) (warnings []string, errors []error)
- type ActivateRevisionOperationResponse
- type BaseContainer
- type Container
- type ContainerAppId
- type ContainerAppProbe
- type ContainerAppProbeHTTPGet
- type ContainerAppProbeHTTPGetHTTPHeadersInlined
- type ContainerAppProbeTcpSocket
- type ContainerAppsRevisionsClient
- func (c ContainerAppsRevisionsClient) ActivateRevision(ctx context.Context, id RevisionId) (result ActivateRevisionOperationResponse, err error)
- func (c ContainerAppsRevisionsClient) DeactivateRevision(ctx context.Context, id RevisionId) (result DeactivateRevisionOperationResponse, err error)
- func (c ContainerAppsRevisionsClient) GetRevision(ctx context.Context, id RevisionId) (result GetRevisionOperationResponse, err error)
- func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id ContainerAppId, options ListRevisionsOperationOptions) (result ListRevisionsOperationResponse, err error)
- func (c ContainerAppsRevisionsClient) ListRevisionsComplete(ctx context.Context, id ContainerAppId, options ListRevisionsOperationOptions) (ListRevisionsCompleteResult, error)
- func (c ContainerAppsRevisionsClient) ListRevisionsCompleteMatchingPredicate(ctx context.Context, id ContainerAppId, options ListRevisionsOperationOptions, ...) (result ListRevisionsCompleteResult, err error)
- func (c ContainerAppsRevisionsClient) RestartRevision(ctx context.Context, id RevisionId) (result RestartRevisionOperationResponse, err error)
- type ContainerResources
- type CustomScaleRule
- type DeactivateRevisionOperationResponse
- type EnvironmentVar
- type GetRevisionOperationResponse
- type HTTPScaleRule
- type ListRevisionsCompleteResult
- type ListRevisionsCustomPager
- type ListRevisionsOperationOptions
- type ListRevisionsOperationResponse
- type QueueScaleRule
- type RestartRevisionOperationResponse
- type Revision
- type RevisionHealthState
- type RevisionId
- type RevisionOperationPredicate
- type RevisionProperties
- type RevisionProvisioningState
- type RevisionRunningState
- type Scale
- type ScaleRule
- type ScaleRuleAuth
- type Scheme
- type SecretVolumeItem
- type ServiceBind
- type StorageType
- type TcpScaleRule
- type Template
- type Type
- type Volume
- type VolumeMount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForRevisionHealthState ¶
func PossibleValuesForRevisionHealthState() []string
func PossibleValuesForRevisionProvisioningState ¶
func PossibleValuesForRevisionProvisioningState() []string
func PossibleValuesForRevisionRunningState ¶
func PossibleValuesForRevisionRunningState() []string
func PossibleValuesForScheme ¶
func PossibleValuesForScheme() []string
func PossibleValuesForStorageType ¶
func PossibleValuesForStorageType() []string
func PossibleValuesForType ¶
func PossibleValuesForType() []string
func ValidateContainerAppID ¶
ValidateContainerAppID checks that 'input' can be parsed as a Container App ID
func ValidateRevisionID ¶
ValidateRevisionID checks that 'input' can be parsed as a Revision ID
Types ¶
type BaseContainer ¶
type BaseContainer struct { Args *[]string `json:"args,omitempty"` Command *[]string `json:"command,omitempty"` Env *[]EnvironmentVar `json:"env,omitempty"` Image *string `json:"image,omitempty"` Name *string `json:"name,omitempty"` Resources *ContainerResources `json:"resources,omitempty"` VolumeMounts *[]VolumeMount `json:"volumeMounts,omitempty"` }
type Container ¶
type Container struct { Args *[]string `json:"args,omitempty"` Command *[]string `json:"command,omitempty"` Env *[]EnvironmentVar `json:"env,omitempty"` Image *string `json:"image,omitempty"` Name *string `json:"name,omitempty"` Probes *[]ContainerAppProbe `json:"probes,omitempty"` Resources *ContainerResources `json:"resources,omitempty"` VolumeMounts *[]VolumeMount `json:"volumeMounts,omitempty"` }
type ContainerAppId ¶
type ContainerAppId struct { SubscriptionId string ResourceGroupName string ContainerAppName string }
ContainerAppId is a struct representing the Resource ID for a Container App
func NewContainerAppID ¶
func NewContainerAppID(subscriptionId string, resourceGroupName string, containerAppName string) ContainerAppId
NewContainerAppID returns a new ContainerAppId struct
func ParseContainerAppID ¶
func ParseContainerAppID(input string) (*ContainerAppId, error)
ParseContainerAppID parses 'input' into a ContainerAppId
func ParseContainerAppIDInsensitively ¶
func ParseContainerAppIDInsensitively(input string) (*ContainerAppId, error)
ParseContainerAppIDInsensitively parses 'input' case-insensitively into a ContainerAppId note: this method should only be used for API response data and not user input
func (*ContainerAppId) FromParseResult ¶
func (id *ContainerAppId) FromParseResult(input resourceids.ParseResult) error
func (ContainerAppId) ID ¶
func (id ContainerAppId) ID() string
ID returns the formatted Container App ID
func (ContainerAppId) Segments ¶
func (id ContainerAppId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Container App ID
func (ContainerAppId) String ¶
func (id ContainerAppId) String() string
String returns a human-readable description of this Container App ID
type ContainerAppProbe ¶
type ContainerAppProbe struct { FailureThreshold *int64 `json:"failureThreshold,omitempty"` HTTPGet *ContainerAppProbeHTTPGet `json:"httpGet,omitempty"` InitialDelaySeconds *int64 `json:"initialDelaySeconds,omitempty"` PeriodSeconds *int64 `json:"periodSeconds,omitempty"` SuccessThreshold *int64 `json:"successThreshold,omitempty"` TcpSocket *ContainerAppProbeTcpSocket `json:"tcpSocket,omitempty"` TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"` Type *Type `json:"type,omitempty"` }
type ContainerAppProbeHTTPGet ¶
type ContainerAppProbeHTTPGet struct { HTTPHeaders *[]ContainerAppProbeHTTPGetHTTPHeadersInlined `json:"httpHeaders,omitempty"` Host *string `json:"host,omitempty"` Path *string `json:"path,omitempty"` Port int64 `json:"port"` Scheme *Scheme `json:"scheme,omitempty"` }
type ContainerAppsRevisionsClient ¶
type ContainerAppsRevisionsClient struct {
Client *resourcemanager.Client
}
func NewContainerAppsRevisionsClientWithBaseURI ¶
func NewContainerAppsRevisionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ContainerAppsRevisionsClient, error)
func (ContainerAppsRevisionsClient) ActivateRevision ¶
func (c ContainerAppsRevisionsClient) ActivateRevision(ctx context.Context, id RevisionId) (result ActivateRevisionOperationResponse, err error)
ActivateRevision ...
func (ContainerAppsRevisionsClient) DeactivateRevision ¶
func (c ContainerAppsRevisionsClient) DeactivateRevision(ctx context.Context, id RevisionId) (result DeactivateRevisionOperationResponse, err error)
DeactivateRevision ...
func (ContainerAppsRevisionsClient) GetRevision ¶
func (c ContainerAppsRevisionsClient) GetRevision(ctx context.Context, id RevisionId) (result GetRevisionOperationResponse, err error)
GetRevision ...
func (ContainerAppsRevisionsClient) ListRevisions ¶
func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id ContainerAppId, options ListRevisionsOperationOptions) (result ListRevisionsOperationResponse, err error)
ListRevisions ...
func (ContainerAppsRevisionsClient) ListRevisionsComplete ¶
func (c ContainerAppsRevisionsClient) ListRevisionsComplete(ctx context.Context, id ContainerAppId, options ListRevisionsOperationOptions) (ListRevisionsCompleteResult, error)
ListRevisionsComplete retrieves all the results into a single object
func (ContainerAppsRevisionsClient) ListRevisionsCompleteMatchingPredicate ¶
func (c ContainerAppsRevisionsClient) ListRevisionsCompleteMatchingPredicate(ctx context.Context, id ContainerAppId, options ListRevisionsOperationOptions, predicate RevisionOperationPredicate) (result ListRevisionsCompleteResult, err error)
ListRevisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ContainerAppsRevisionsClient) RestartRevision ¶
func (c ContainerAppsRevisionsClient) RestartRevision(ctx context.Context, id RevisionId) (result RestartRevisionOperationResponse, err error)
RestartRevision ...
type ContainerResources ¶
type CustomScaleRule ¶
type CustomScaleRule struct { Auth *[]ScaleRuleAuth `json:"auth,omitempty"` Metadata *map[string]string `json:"metadata,omitempty"` Type *string `json:"type,omitempty"` }
type EnvironmentVar ¶
type HTTPScaleRule ¶
type HTTPScaleRule struct { Auth *[]ScaleRuleAuth `json:"auth,omitempty"` Metadata *map[string]string `json:"metadata,omitempty"` }
type ListRevisionsCustomPager ¶ added in v0.20240628.1153531
func (*ListRevisionsCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListRevisionsCustomPager) NextPageLink() *odata.Link
type ListRevisionsOperationOptions ¶
type ListRevisionsOperationOptions struct {
Filter *string
}
func DefaultListRevisionsOperationOptions ¶
func DefaultListRevisionsOperationOptions() ListRevisionsOperationOptions
func (ListRevisionsOperationOptions) ToHeaders ¶
func (o ListRevisionsOperationOptions) ToHeaders() *client.Headers
func (ListRevisionsOperationOptions) ToOData ¶
func (o ListRevisionsOperationOptions) ToOData() *odata.Query
func (ListRevisionsOperationOptions) ToQuery ¶
func (o ListRevisionsOperationOptions) ToQuery() *client.QueryParams
type QueueScaleRule ¶
type QueueScaleRule struct { Auth *[]ScaleRuleAuth `json:"auth,omitempty"` QueueLength *int64 `json:"queueLength,omitempty"` QueueName *string `json:"queueName,omitempty"` }
type Revision ¶
type Revision struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RevisionProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type RevisionHealthState ¶
type RevisionHealthState string
const ( RevisionHealthStateHealthy RevisionHealthState = "Healthy" RevisionHealthStateNone RevisionHealthState = "None" RevisionHealthStateUnhealthy RevisionHealthState = "Unhealthy" )
func (*RevisionHealthState) UnmarshalJSON ¶
func (s *RevisionHealthState) UnmarshalJSON(bytes []byte) error
type RevisionId ¶
type RevisionId struct { SubscriptionId string ResourceGroupName string ContainerAppName string RevisionName string }
RevisionId is a struct representing the Resource ID for a Revision
func NewRevisionID ¶
func NewRevisionID(subscriptionId string, resourceGroupName string, containerAppName string, revisionName string) RevisionId
NewRevisionID returns a new RevisionId struct
func ParseRevisionID ¶
func ParseRevisionID(input string) (*RevisionId, error)
ParseRevisionID parses 'input' into a RevisionId
func ParseRevisionIDInsensitively ¶
func ParseRevisionIDInsensitively(input string) (*RevisionId, error)
ParseRevisionIDInsensitively parses 'input' case-insensitively into a RevisionId note: this method should only be used for API response data and not user input
func (*RevisionId) FromParseResult ¶
func (id *RevisionId) FromParseResult(input resourceids.ParseResult) error
func (RevisionId) Segments ¶
func (id RevisionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Revision ID
func (RevisionId) String ¶
func (id RevisionId) String() string
String returns a human-readable description of this Revision ID
type RevisionOperationPredicate ¶
func (RevisionOperationPredicate) Matches ¶
func (p RevisionOperationPredicate) Matches(input Revision) bool
type RevisionProperties ¶
type RevisionProperties struct { Active *bool `json:"active,omitempty"` CreatedTime *string `json:"createdTime,omitempty"` Fqdn *string `json:"fqdn,omitempty"` HealthState *RevisionHealthState `json:"healthState,omitempty"` LastActiveTime *string `json:"lastActiveTime,omitempty"` ProvisioningError *string `json:"provisioningError,omitempty"` ProvisioningState *RevisionProvisioningState `json:"provisioningState,omitempty"` Replicas *int64 `json:"replicas,omitempty"` RunningState *RevisionRunningState `json:"runningState,omitempty"` Template *Template `json:"template,omitempty"` TrafficWeight *int64 `json:"trafficWeight,omitempty"` }
func (*RevisionProperties) GetCreatedTimeAsTime ¶
func (o *RevisionProperties) GetCreatedTimeAsTime() (*time.Time, error)
func (*RevisionProperties) GetLastActiveTimeAsTime ¶
func (o *RevisionProperties) GetLastActiveTimeAsTime() (*time.Time, error)
func (*RevisionProperties) SetCreatedTimeAsTime ¶
func (o *RevisionProperties) SetCreatedTimeAsTime(input time.Time)
func (*RevisionProperties) SetLastActiveTimeAsTime ¶
func (o *RevisionProperties) SetLastActiveTimeAsTime(input time.Time)
type RevisionProvisioningState ¶
type RevisionProvisioningState string
const ( RevisionProvisioningStateDeprovisioned RevisionProvisioningState = "Deprovisioned" RevisionProvisioningStateDeprovisioning RevisionProvisioningState = "Deprovisioning" RevisionProvisioningStateFailed RevisionProvisioningState = "Failed" RevisionProvisioningStateProvisioned RevisionProvisioningState = "Provisioned" RevisionProvisioningStateProvisioning RevisionProvisioningState = "Provisioning" )
func (*RevisionProvisioningState) UnmarshalJSON ¶
func (s *RevisionProvisioningState) UnmarshalJSON(bytes []byte) error
type RevisionRunningState ¶
type RevisionRunningState string
const ( RevisionRunningStateDegraded RevisionRunningState = "Degraded" RevisionRunningStateFailed RevisionRunningState = "Failed" RevisionRunningStateProcessing RevisionRunningState = "Processing" RevisionRunningStateRunning RevisionRunningState = "Running" RevisionRunningStateStopped RevisionRunningState = "Stopped" RevisionRunningStateUnknown RevisionRunningState = "Unknown" )
func (*RevisionRunningState) UnmarshalJSON ¶
func (s *RevisionRunningState) UnmarshalJSON(bytes []byte) error
type ScaleRule ¶
type ScaleRule struct { AzureQueue *QueueScaleRule `json:"azureQueue,omitempty"` Custom *CustomScaleRule `json:"custom,omitempty"` HTTP *HTTPScaleRule `json:"http,omitempty"` Name *string `json:"name,omitempty"` Tcp *TcpScaleRule `json:"tcp,omitempty"` }
type ScaleRuleAuth ¶
type SecretVolumeItem ¶
type ServiceBind ¶
type StorageType ¶
type StorageType string
const ( StorageTypeAzureFile StorageType = "AzureFile" StorageTypeEmptyDir StorageType = "EmptyDir" StorageTypeSecret StorageType = "Secret" )
func (*StorageType) UnmarshalJSON ¶
func (s *StorageType) UnmarshalJSON(bytes []byte) error
type TcpScaleRule ¶
type TcpScaleRule struct { Auth *[]ScaleRuleAuth `json:"auth,omitempty"` Metadata *map[string]string `json:"metadata,omitempty"` }
type Template ¶
type Template struct { Containers *[]Container `json:"containers,omitempty"` InitContainers *[]BaseContainer `json:"initContainers,omitempty"` RevisionSuffix *string `json:"revisionSuffix,omitempty"` Scale *Scale `json:"scale,omitempty"` ServiceBinds *[]ServiceBind `json:"serviceBinds,omitempty"` TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` Volumes *[]Volume `json:"volumes,omitempty"` }
type Volume ¶
type Volume struct { MountOptions *string `json:"mountOptions,omitempty"` Name *string `json:"name,omitempty"` Secrets *[]SecretVolumeItem `json:"secrets,omitempty"` StorageName *string `json:"storageName,omitempty"` StorageType *StorageType `json:"storageType,omitempty"` }
type VolumeMount ¶
Source Files ¶
- client.go
- constants.go
- id_containerapp.go
- id_revision.go
- method_activaterevision.go
- method_deactivaterevision.go
- method_getrevision.go
- method_listrevisions.go
- method_restartrevision.go
- model_basecontainer.go
- model_container.go
- model_containerappprobe.go
- model_containerappprobehttpget.go
- model_containerappprobehttpgethttpheadersinlined.go
- model_containerappprobetcpsocket.go
- model_containerresources.go
- model_customscalerule.go
- model_environmentvar.go
- model_httpscalerule.go
- model_queuescalerule.go
- model_revision.go
- model_revisionproperties.go
- model_scale.go
- model_scalerule.go
- model_scaleruleauth.go
- model_secretvolumeitem.go
- model_servicebind.go
- model_tcpscalerule.go
- model_template.go
- model_volume.go
- model_volumemount.go
- predicates.go
- version.go