Documentation ¶
Index ¶
- type AzureFileVolume
- type CachedImages
- type CachedImagesListResult
- type Capabilities
- type CapabilitiesCapabilities
- type CapabilitiesListResult
- type CloudError
- type CloudErrorBody
- type Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties
- type Container
- type ContainerAttachResponse
- type ContainerExec
- type ContainerExecRequest
- type ContainerExecRequestTerminalSize
- type ContainerExecResponse
- type ContainerGroup
- type ContainerGroupDiagnostics
- type ContainerGroupIPAddressType
- type ContainerGroupIdentity
- type ContainerGroupListResult
- type ContainerGroupNetworkProtocol
- type ContainerGroupProperties
- type ContainerGroupPropertiesInstanceView
- type ContainerGroupRestartPolicy
- type ContainerGroupSKU
- type ContainerGroupSubnetID
- type ContainerGroupsBeginCreateOrUpdateOptions
- type ContainerGroupsBeginDeleteOptions
- type ContainerGroupsBeginRestartOptions
- type ContainerGroupsBeginStartOptions
- type ContainerGroupsClient
- func (client *ContainerGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsCreateOrUpdatePollerResponse, error)
- func (client *ContainerGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsDeletePollerResponse, error)
- func (client *ContainerGroupsClient) BeginRestart(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsRestartPollerResponse, error)
- func (client *ContainerGroupsClient) BeginStart(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsStartPollerResponse, error)
- func (client *ContainerGroupsClient) Get(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsGetResponse, error)
- func (client *ContainerGroupsClient) GetOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse, error)
- func (client *ContainerGroupsClient) List(options *ContainerGroupsListOptions) *ContainerGroupsListPager
- func (client *ContainerGroupsClient) ListByResourceGroup(resourceGroupName string, options *ContainerGroupsListByResourceGroupOptions) *ContainerGroupsListByResourceGroupPager
- func (client *ContainerGroupsClient) Stop(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsStopResponse, error)
- func (client *ContainerGroupsClient) Update(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainerGroupsUpdateResponse, error)
- type ContainerGroupsCreateOrUpdatePoller
- func (p *ContainerGroupsCreateOrUpdatePoller) Done() bool
- func (p *ContainerGroupsCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ContainerGroupsCreateOrUpdateResponse, error)
- func (p *ContainerGroupsCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ContainerGroupsCreateOrUpdatePoller) ResumeToken() (string, error)
- type ContainerGroupsCreateOrUpdatePollerResponse
- type ContainerGroupsCreateOrUpdateResponse
- type ContainerGroupsCreateOrUpdateResult
- type ContainerGroupsDeletePoller
- func (p *ContainerGroupsDeletePoller) Done() bool
- func (p *ContainerGroupsDeletePoller) FinalResponse(ctx context.Context) (ContainerGroupsDeleteResponse, error)
- func (p *ContainerGroupsDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ContainerGroupsDeletePoller) ResumeToken() (string, error)
- type ContainerGroupsDeletePollerResponse
- type ContainerGroupsDeleteResponse
- type ContainerGroupsDeleteResult
- type ContainerGroupsGetOptions
- type ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptions
- type ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse
- type ContainerGroupsGetOutboundNetworkDependenciesEndpointsResult
- type ContainerGroupsGetResponse
- type ContainerGroupsGetResult
- type ContainerGroupsListByResourceGroupOptions
- type ContainerGroupsListByResourceGroupPager
- type ContainerGroupsListByResourceGroupResponse
- type ContainerGroupsListByResourceGroupResult
- type ContainerGroupsListOptions
- type ContainerGroupsListPager
- type ContainerGroupsListResponse
- type ContainerGroupsListResult
- type ContainerGroupsRestartPoller
- func (p *ContainerGroupsRestartPoller) Done() bool
- func (p *ContainerGroupsRestartPoller) FinalResponse(ctx context.Context) (ContainerGroupsRestartResponse, error)
- func (p *ContainerGroupsRestartPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ContainerGroupsRestartPoller) ResumeToken() (string, error)
- type ContainerGroupsRestartPollerResponse
- type ContainerGroupsRestartResponse
- type ContainerGroupsStartPoller
- func (p *ContainerGroupsStartPoller) Done() bool
- func (p *ContainerGroupsStartPoller) FinalResponse(ctx context.Context) (ContainerGroupsStartResponse, error)
- func (p *ContainerGroupsStartPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ContainerGroupsStartPoller) ResumeToken() (string, error)
- type ContainerGroupsStartPollerResponse
- type ContainerGroupsStartResponse
- type ContainerGroupsStopOptions
- type ContainerGroupsStopResponse
- type ContainerGroupsUpdateOptions
- type ContainerGroupsUpdateResponse
- type ContainerGroupsUpdateResult
- type ContainerHTTPGet
- type ContainerInstanceOperationsOrigin
- type ContainerNetworkProtocol
- type ContainerPort
- type ContainerProbe
- type ContainerProperties
- type ContainerPropertiesInstanceView
- type ContainerState
- type ContainersAttachOptions
- type ContainersAttachResponse
- type ContainersAttachResult
- type ContainersClient
- func (client *ContainersClient) Attach(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainersAttachResponse, error)
- func (client *ContainersClient) ExecuteCommand(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainersExecuteCommandResponse, error)
- func (client *ContainersClient) ListLogs(ctx context.Context, resourceGroupName string, containerGroupName string, ...) (ContainersListLogsResponse, error)
- type ContainersExecuteCommandOptions
- type ContainersExecuteCommandResponse
- type ContainersExecuteCommandResult
- type ContainersListLogsOptions
- type ContainersListLogsResponse
- type ContainersListLogsResult
- type DNSConfiguration
- type EncryptionProperties
- type EnvironmentVariable
- type Event
- type GitRepoVolume
- type GpuResource
- type GpuSKU
- type HTTPHeader
- type IPAddress
- type ImageRegistryCredential
- type InitContainerDefinition
- type InitContainerPropertiesDefinition
- type InitContainerPropertiesDefinitionInstanceView
- type LocationClient
- func (client *LocationClient) ListCachedImages(location string, options *LocationListCachedImagesOptions) *LocationListCachedImagesPager
- func (client *LocationClient) ListCapabilities(location string, options *LocationListCapabilitiesOptions) *LocationListCapabilitiesPager
- func (client *LocationClient) ListUsage(ctx context.Context, location string, options *LocationListUsageOptions) (LocationListUsageResponse, error)
- type LocationListCachedImagesOptions
- type LocationListCachedImagesPager
- type LocationListCachedImagesResponse
- type LocationListCachedImagesResult
- type LocationListCapabilitiesOptions
- type LocationListCapabilitiesPager
- type LocationListCapabilitiesResponse
- type LocationListCapabilitiesResult
- type LocationListUsageOptions
- type LocationListUsageResponse
- type LocationListUsageResult
- type LogAnalytics
- type LogAnalyticsLogType
- type Logs
- type OperatingSystemTypes
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsListOptions
- type OperationsListPager
- type OperationsListResponse
- type OperationsListResult
- type Port
- type Resource
- type ResourceIdentityType
- type ResourceLimits
- type ResourceRequests
- type ResourceRequirements
- type Scheme
- type Usage
- type UsageListResult
- type UsageName
- type Volume
- type VolumeMount
Examples ¶
- ContainerGroupsClient.BeginCreateOrUpdate
- ContainerGroupsClient.BeginDelete
- ContainerGroupsClient.BeginRestart
- ContainerGroupsClient.BeginStart
- ContainerGroupsClient.Get
- ContainerGroupsClient.List
- ContainerGroupsClient.ListByResourceGroup
- ContainerGroupsClient.Stop
- ContainerGroupsClient.Update
- ContainersClient.Attach
- ContainersClient.ExecuteCommand
- ContainersClient.ListLogs
- LocationClient.ListCachedImages
- LocationClient.ListCapabilities
- LocationClient.ListUsage
- OperationsClient.List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureFileVolume ¶
type AzureFileVolume struct { string `json:"shareName,omitempty"` // REQUIRED; The name of the storage account that contains the Azure File share. StorageAccountName *string `json:"storageAccountName,omitempty"` // The flag indicating whether the Azure File shared mounted as a volume is read-only. ReadOnly *bool `json:"readOnly,omitempty"` // The storage account access key used to access the Azure File share. StorageAccountKey *string `json:"storageAccountKey,omitempty"` }ShareName *
AzureFileVolume - The properties of the Azure File volume. Azure File shares are mounted as volumes.
type CachedImages ¶
type CachedImages struct { // REQUIRED; The cached image name. Image *string `json:"image,omitempty"` // REQUIRED; The OS type of the cached image. OSType *string `json:"osType,omitempty"` }
CachedImages - The cached image and OS type.
type CachedImagesListResult ¶
type CachedImagesListResult struct { // The URI to fetch the next page of cached images. NextLink *string `json:"nextLink,omitempty"` // The list of cached images. Value []*CachedImages `json:"value,omitempty"` }
CachedImagesListResult - The response containing cached images.
func (CachedImagesListResult) MarshalJSON ¶
func (c CachedImagesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CachedImagesListResult.
type Capabilities ¶
type Capabilities struct { // READ-ONLY; The supported capabilities. Capabilities *CapabilitiesCapabilities `json:"capabilities,omitempty" azure:"ro"` // READ-ONLY; The GPU sku that this capability describes. Gpu *string `json:"gpu,omitempty" azure:"ro"` // READ-ONLY; The ip address type that this capability describes. IPAddressType *string `json:"ipAddressType,omitempty" azure:"ro"` // READ-ONLY; The resource location. Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; The OS type that this capability describes. OSType *string `json:"osType,omitempty" azure:"ro"` // READ-ONLY; The resource type that this capability describes. ResourceType *string `json:"resourceType,omitempty" azure:"ro"` }
Capabilities - The regional capabilities.
type CapabilitiesCapabilities ¶
type CapabilitiesCapabilities struct { // READ-ONLY; The maximum allowed CPU request in cores. MaxCPU *float32 `json:"maxCpu,omitempty" azure:"ro"` // READ-ONLY; The maximum allowed GPU count. MaxGpuCount *float32 `json:"maxGpuCount,omitempty" azure:"ro"` // READ-ONLY; The maximum allowed memory request in GB. MaxMemoryInGB *float32 `json:"maxMemoryInGB,omitempty" azure:"ro"` }
CapabilitiesCapabilities - The supported capabilities.
type CapabilitiesListResult ¶
type CapabilitiesListResult struct { // The URI to fetch the next page of capabilities. NextLink *string `json:"nextLink,omitempty"` // The list of capabilities. Value []*Capabilities `json:"value,omitempty"` }
CapabilitiesListResult - The response containing list of capabilities.
func (CapabilitiesListResult) MarshalJSON ¶
func (c CapabilitiesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapabilitiesListResult.
type CloudError ¶
type CloudError struct { // An error response from the Container Instance service. InnerError *CloudErrorBody `json:"error,omitempty"` // contains filtered or unexported fields }
CloudError - An error response from the Container Instance service. Implements the error and azcore.HTTPResponse interfaces.
func (CloudError) Error ¶
func (e CloudError) Error() string
Error implements the error interface for type CloudError. The contents of the error text are not contractual and subject to change.
type CloudErrorBody ¶
type CloudErrorBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // A list of additional details about the error. Details []*CloudErrorBody `json:"details,omitempty"` // A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` // The target of the particular error. For example, the name of the property in error. Target *string `json:"target,omitempty"` }
CloudErrorBody - An error response from the Container Instance service.
func (CloudErrorBody) MarshalJSON ¶
func (c CloudErrorBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CloudErrorBody.
type Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties ¶
type Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties struct { // READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty" azure:"ro"` // READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` }
type Container ¶
type Container struct { // REQUIRED; The user-provided name of the container instance. Name *string `json:"name,omitempty"` // REQUIRED; The properties of the container instance. Properties *ContainerProperties `json:"properties,omitempty"` }
Container - A container instance.
type ContainerAttachResponse ¶
type ContainerAttachResponse struct { // The password to the output stream from the attach. Send as an Authorization header value when connecting to the websocketUri. Password *string `json:"password,omitempty"` // The uri for the output stream from the attach. WebSocketURI *string `json:"webSocketUri,omitempty"` }
ContainerAttachResponse - The information for the output stream from container attach.
type ContainerExec ¶
type ContainerExec struct { // The commands to execute within the container. Command []*string `json:"command,omitempty"` }
ContainerExec - The container execution command, for liveness or readiness probe
func (ContainerExec) MarshalJSON ¶
func (c ContainerExec) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerExec.
type ContainerExecRequest ¶
type ContainerExecRequest struct { // The command to be executed. Command *string `json:"command,omitempty"` // The size of the terminal. TerminalSize *ContainerExecRequestTerminalSize `json:"terminalSize,omitempty"` }
ContainerExecRequest - The container exec request.
type ContainerExecRequestTerminalSize ¶
type ContainerExecRequestTerminalSize struct { // The column size of the terminal Cols *int32 `json:"cols,omitempty"` // The row size of the terminal Rows *int32 `json:"rows,omitempty"` }
ContainerExecRequestTerminalSize - The size of the terminal.
type ContainerExecResponse ¶
type ContainerExecResponse struct { // The password to start the exec command. Password *string `json:"password,omitempty"` // The uri for the exec websocket. WebSocketURI *string `json:"webSocketUri,omitempty"` }
ContainerExecResponse - The information for the container exec command.
type ContainerGroup ¶
type ContainerGroup struct { Resource // REQUIRED; The container group properties Properties *ContainerGroupProperties `json:"properties,omitempty"` // The identity of the container group, if configured. Identity *ContainerGroupIdentity `json:"identity,omitempty"` }
ContainerGroup - A container group.
func (ContainerGroup) MarshalJSON ¶
func (c ContainerGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroup.
type ContainerGroupDiagnostics ¶
type ContainerGroupDiagnostics struct { // Container group log analytics information. LogAnalytics *LogAnalytics `json:"logAnalytics,omitempty"` }
ContainerGroupDiagnostics - Container group diagnostic information.
type ContainerGroupIPAddressType ¶
type ContainerGroupIPAddressType string
ContainerGroupIPAddressType - Specifies if the IP is exposed to the public internet or private VNET.
const ( ContainerGroupIPAddressTypePrivate ContainerGroupIPAddressType = "Private" ContainerGroupIPAddressTypePublic ContainerGroupIPAddressType = "Public" )
func PossibleContainerGroupIPAddressTypeValues ¶
func PossibleContainerGroupIPAddressTypeValues() []ContainerGroupIPAddressType
PossibleContainerGroupIPAddressTypeValues returns the possible values for the ContainerGroupIPAddressType const type.
func (ContainerGroupIPAddressType) ToPtr ¶
func (c ContainerGroupIPAddressType) ToPtr() *ContainerGroupIPAddressType
ToPtr returns a *ContainerGroupIPAddressType pointing to the current value.
type ContainerGroupIdentity ¶
type ContainerGroupIdentity struct { // The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of // user assigned identities. The type 'None' will // remove any identities from the container group. Type *ResourceIdentityType `json:"type,omitempty"` // The list of user identities associated with the container group. The user identity dictionary key references will be ARM resource ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. UserAssignedIdentities map[string]*Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties `json:"userAssignedIdentities,omitempty"` // READ-ONLY; The principal id of the container group identity. This property will only be provided for a system assigned identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant id associated with the container group. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
ContainerGroupIdentity - Identity for the container group.
func (ContainerGroupIdentity) MarshalJSON ¶
func (c ContainerGroupIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupIdentity.
type ContainerGroupListResult ¶
type ContainerGroupListResult struct { // The URI to fetch the next page of container groups. NextLink *string `json:"nextLink,omitempty"` // The list of container groups. Value []*ContainerGroup `json:"value,omitempty"` }
ContainerGroupListResult - The container group list response that contains the container group properties.
func (ContainerGroupListResult) MarshalJSON ¶
func (c ContainerGroupListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupListResult.
type ContainerGroupNetworkProtocol ¶
type ContainerGroupNetworkProtocol string
ContainerGroupNetworkProtocol - The protocol associated with the port.
const ( ContainerGroupNetworkProtocolTCP ContainerGroupNetworkProtocol = "TCP" ContainerGroupNetworkProtocolUDP ContainerGroupNetworkProtocol = "UDP" )
func PossibleContainerGroupNetworkProtocolValues ¶
func PossibleContainerGroupNetworkProtocolValues() []ContainerGroupNetworkProtocol
PossibleContainerGroupNetworkProtocolValues returns the possible values for the ContainerGroupNetworkProtocol const type.
func (ContainerGroupNetworkProtocol) ToPtr ¶
func (c ContainerGroupNetworkProtocol) ToPtr() *ContainerGroupNetworkProtocol
ToPtr returns a *ContainerGroupNetworkProtocol pointing to the current value.
type ContainerGroupProperties ¶
type ContainerGroupProperties struct { // REQUIRED; The containers within the container group. Containers []*Container `json:"containers,omitempty"` // REQUIRED; The operating system type required by the containers in the container group. OSType *OperatingSystemTypes `json:"osType,omitempty"` // The DNS config information for a container group. DNSConfig *DNSConfiguration `json:"dnsConfig,omitempty"` // The diagnostic information for a container group. Diagnostics *ContainerGroupDiagnostics `json:"diagnostics,omitempty"` // The encryption properties for a container group. EncryptionProperties *EncryptionProperties `json:"encryptionProperties,omitempty"` // The IP address type of the container group. IPAddress *IPAddress `json:"ipAddress,omitempty"` // The image registry credentials by which the container group is created from. ImageRegistryCredentials []*ImageRegistryCredential `json:"imageRegistryCredentials,omitempty"` // The init containers for a container group. InitContainers []*InitContainerDefinition `json:"initContainers,omitempty"` // Restart policy for all containers within the container group. // * Always Always restart // * OnFailure Restart on failure // * Never Never restart RestartPolicy *ContainerGroupRestartPolicy `json:"restartPolicy,omitempty"` // The SKU for a container group. SKU *ContainerGroupSKU `json:"sku,omitempty"` // The subnet resource IDs for a container group. SubnetIDs []*ContainerGroupSubnetID `json:"subnetIds,omitempty"` // The list of volumes that can be mounted by containers in this container group. Volumes []*Volume `json:"volumes,omitempty"` // READ-ONLY; The instance view of the container group. Only valid in response. InstanceView *ContainerGroupPropertiesInstanceView `json:"instanceView,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the container group. This only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
ContainerGroupProperties - The container group properties
func (ContainerGroupProperties) MarshalJSON ¶
func (c ContainerGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupProperties.
type ContainerGroupPropertiesInstanceView ¶
type ContainerGroupPropertiesInstanceView struct { // READ-ONLY; The events of this container group. Events []*Event `json:"events,omitempty" azure:"ro"` // READ-ONLY; The state of the container group. Only valid in response. State *string `json:"state,omitempty" azure:"ro"` }
ContainerGroupPropertiesInstanceView - The instance view of the container group. Only valid in response.
func (ContainerGroupPropertiesInstanceView) MarshalJSON ¶
func (c ContainerGroupPropertiesInstanceView) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerGroupPropertiesInstanceView.
type ContainerGroupRestartPolicy ¶
type ContainerGroupRestartPolicy string
ContainerGroupRestartPolicy - Restart policy for all containers within the container group. * Always Always restart * OnFailure Restart on failure * Never Never restart
const ( ContainerGroupRestartPolicyAlways ContainerGroupRestartPolicy = "Always" ContainerGroupRestartPolicyNever ContainerGroupRestartPolicy = "Never" ContainerGroupRestartPolicyOnFailure ContainerGroupRestartPolicy = "OnFailure" )
func PossibleContainerGroupRestartPolicyValues ¶
func PossibleContainerGroupRestartPolicyValues() []ContainerGroupRestartPolicy
PossibleContainerGroupRestartPolicyValues returns the possible values for the ContainerGroupRestartPolicy const type.
func (ContainerGroupRestartPolicy) ToPtr ¶
func (c ContainerGroupRestartPolicy) ToPtr() *ContainerGroupRestartPolicy
ToPtr returns a *ContainerGroupRestartPolicy pointing to the current value.
type ContainerGroupSKU ¶
type ContainerGroupSKU string
ContainerGroupSKU - The container group SKU.
const ( ContainerGroupSKUDedicated ContainerGroupSKU = "Dedicated" ContainerGroupSKUStandard ContainerGroupSKU = "Standard" )
func PossibleContainerGroupSKUValues ¶
func PossibleContainerGroupSKUValues() []ContainerGroupSKU
PossibleContainerGroupSKUValues returns the possible values for the ContainerGroupSKU const type.
func (ContainerGroupSKU) ToPtr ¶
func (c ContainerGroupSKU) ToPtr() *ContainerGroupSKU
ToPtr returns a *ContainerGroupSKU pointing to the current value.
type ContainerGroupSubnetID ¶
type ContainerGroupSubnetID struct { // REQUIRED; Resource ID of virtual network and subnet. ID *string `json:"id,omitempty"` // Friendly name for the subnet. Name *string `json:"name,omitempty"` }
ContainerGroupSubnetID - Container group subnet information.
type ContainerGroupsBeginCreateOrUpdateOptions ¶
type ContainerGroupsBeginCreateOrUpdateOptions struct { }
ContainerGroupsBeginCreateOrUpdateOptions contains the optional parameters for the ContainerGroups.BeginCreateOrUpdate method.
type ContainerGroupsBeginDeleteOptions ¶
type ContainerGroupsBeginDeleteOptions struct { }
ContainerGroupsBeginDeleteOptions contains the optional parameters for the ContainerGroups.BeginDelete method.
type ContainerGroupsBeginRestartOptions ¶
type ContainerGroupsBeginRestartOptions struct { }
ContainerGroupsBeginRestartOptions contains the optional parameters for the ContainerGroups.BeginRestart method.
type ContainerGroupsBeginStartOptions ¶
type ContainerGroupsBeginStartOptions struct { }
ContainerGroupsBeginStartOptions contains the optional parameters for the ContainerGroups.BeginStart method.
type ContainerGroupsClient ¶
type ContainerGroupsClient struct {
// contains filtered or unexported fields
}
ContainerGroupsClient contains the methods for the ContainerGroups group. Don't use this type directly, use NewContainerGroupsClient() instead.
func NewContainerGroupsClient ¶
func NewContainerGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ContainerGroupsClient
NewContainerGroupsClient creates a new instance of ContainerGroupsClient with the specified values.
func (*ContainerGroupsClient) BeginCreateOrUpdate ¶
func (client *ContainerGroupsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, containerGroupName string, containerGroup ContainerGroup, options *ContainerGroupsBeginCreateOrUpdateOptions) (ContainerGroupsCreateOrUpdatePollerResponse, error)
BeginCreateOrUpdate - Create or update container groups with specified configurations. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerGroupsCreateOrUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainerGroupsClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<container-group-name>", armcontainerinstance.ContainerGroup{ Resource: armcontainerinstance.Resource{ Location: to.StringPtr("<location>"), }, Identity: &armcontainerinstance.ContainerGroupIdentity{ Type: armcontainerinstance.ResourceIdentityTypeSystemAssignedUserAssigned.ToPtr(), UserAssignedIdentities: map[string]*armcontainerinstance.Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {}, }, }, Properties: &armcontainerinstance.ContainerGroupProperties{ Containers: []*armcontainerinstance.Container{ { Name: to.StringPtr("<name>"), Properties: &armcontainerinstance.ContainerProperties{ Command: []*string{}, EnvironmentVariables: []*armcontainerinstance.EnvironmentVariable{}, Image: to.StringPtr("<image>"), Ports: []*armcontainerinstance.ContainerPort{ { Port: to.Int32Ptr(80), }}, Resources: &armcontainerinstance.ResourceRequirements{ Requests: &armcontainerinstance.ResourceRequests{ CPU: to.Float64Ptr(1), Gpu: &armcontainerinstance.GpuResource{ Count: to.Int32Ptr(1), SKU: armcontainerinstance.GpuSKUK80.ToPtr(), }, MemoryInGB: to.Float64Ptr(1.5), }, }, VolumeMounts: []*armcontainerinstance.VolumeMount{ { Name: to.StringPtr("<name>"), MountPath: to.StringPtr("<mount-path>"), ReadOnly: to.BoolPtr(false), }, { Name: to.StringPtr("<name>"), MountPath: to.StringPtr("<mount-path>"), ReadOnly: to.BoolPtr(false), }, { Name: to.StringPtr("<name>"), MountPath: to.StringPtr("<mount-path>"), ReadOnly: to.BoolPtr(true), }}, }, }}, Diagnostics: &armcontainerinstance.ContainerGroupDiagnostics{ LogAnalytics: &armcontainerinstance.LogAnalytics{ LogType: armcontainerinstance.LogAnalyticsLogTypeContainerInsights.ToPtr(), Metadata: map[string]*string{ "test-key": to.StringPtr("test-metadata-value"), }, WorkspaceID: to.StringPtr("<workspace-id>"), WorkspaceKey: to.StringPtr("<workspace-key>"), WorkspaceResourceID: to.StringPtr("<workspace-resource-id>"), }, }, DNSConfig: &armcontainerinstance.DNSConfiguration{ NameServers: []*string{ to.StringPtr("1.1.1.1")}, Options: to.StringPtr("<options>"), SearchDomains: to.StringPtr("<search-domains>"), }, ImageRegistryCredentials: []*armcontainerinstance.ImageRegistryCredential{}, IPAddress: &armcontainerinstance.IPAddress{ Type: armcontainerinstance.ContainerGroupIPAddressTypePublic.ToPtr(), DNSNameLabel: to.StringPtr("<dnsname-label>"), Ports: []*armcontainerinstance.Port{ { Port: to.Int32Ptr(80), Protocol: armcontainerinstance.ContainerGroupNetworkProtocolTCP.ToPtr(), }}, }, OSType: armcontainerinstance.OperatingSystemTypesLinux.ToPtr(), SubnetIDs: []*armcontainerinstance.ContainerGroupSubnetID{ { ID: to.StringPtr("<id>"), }}, Volumes: []*armcontainerinstance.Volume{ { Name: to.StringPtr("<name>"), AzureFile: &armcontainerinstance.AzureFileVolume{ ShareName: to.StringPtr("<share-name>"), StorageAccountKey: to.StringPtr("<storage-account-key>"), StorageAccountName: to.StringPtr("<storage-account-name>"), }, }, { Name: to.StringPtr("<name>"), EmptyDir: map[string]interface{}{}, }, { Name: to.StringPtr("<name>"), Secret: map[string]*string{ "secretKey1": to.StringPtr("SecretValue1InBase64"), "secretKey2": to.StringPtr("SecretValue2InBase64"), }, }}, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("ContainerGroup.ID: %s\n", *res.ID) }
Output:
func (*ContainerGroupsClient) BeginDelete ¶
func (client *ContainerGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsBeginDeleteOptions) (ContainerGroupsDeletePollerResponse, error)
BeginDelete - Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerGroupsDelete.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainerGroupsClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<container-group-name>", nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("ContainerGroup.ID: %s\n", *res.ID) }
Output:
func (*ContainerGroupsClient) BeginRestart ¶
func (client *ContainerGroupsClient) BeginRestart(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsBeginRestartOptions) (ContainerGroupsRestartPollerResponse, error)
BeginRestart - Restarts all containers in a container group in place. If container image has updates, new image will be downloaded. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerGroupsRestart.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainerGroupsClient("<subscription-id>", cred, nil) poller, err := client.BeginRestart(ctx, "<resource-group-name>", "<container-group-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*ContainerGroupsClient) BeginStart ¶
func (client *ContainerGroupsClient) BeginStart(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsBeginStartOptions) (ContainerGroupsStartPollerResponse, error)
BeginStart - Starts all containers in a container group. Compute resources will be allocated and billing will start. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerGroupsStart.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainerGroupsClient("<subscription-id>", cred, nil) poller, err := client.BeginStart(ctx, "<resource-group-name>", "<container-group-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*ContainerGroupsClient) Get ¶
func (client *ContainerGroupsClient) Get(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsGetOptions) (ContainerGroupsGetResponse, error)
Get - Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerGroupsGet_Failed.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainerGroupsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<resource-group-name>", "<container-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("ContainerGroup.ID: %s\n", *res.ID) }
Output:
func (*ContainerGroupsClient) GetOutboundNetworkDependenciesEndpoints ¶
func (client *ContainerGroupsClient) GetOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptions) (ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse, error)
GetOutboundNetworkDependenciesEndpoints - Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list. If the operation fails it returns the *CloudError error type.
func (*ContainerGroupsClient) List ¶
func (client *ContainerGroupsClient) List(options *ContainerGroupsListOptions) *ContainerGroupsListPager
List - Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerGroupsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainerGroupsClient("<subscription-id>", cred, nil) pager := client.List(nil) for pager.NextPage(ctx) { if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range pager.PageResponse().Value { log.Printf("ContainerGroup.ID: %s\n", *v.ID) } } }
Output:
func (*ContainerGroupsClient) ListByResourceGroup ¶
func (client *ContainerGroupsClient) ListByResourceGroup(resourceGroupName string, options *ContainerGroupsListByResourceGroupOptions) *ContainerGroupsListByResourceGroupPager
ListByResourceGroup - Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerGroupsListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainerGroupsClient("<subscription-id>", cred, nil) pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.NextPage(ctx) { if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range pager.PageResponse().Value { log.Printf("ContainerGroup.ID: %s\n", *v.ID) } } }
Output:
func (*ContainerGroupsClient) Stop ¶
func (client *ContainerGroupsClient) Stop(ctx context.Context, resourceGroupName string, containerGroupName string, options *ContainerGroupsStopOptions) (ContainerGroupsStopResponse, error)
Stop - Stops all containers in a container group. Compute resources will be deallocated and billing will stop. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerGroupsStop.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainerGroupsClient("<subscription-id>", cred, nil) _, err = client.Stop(ctx, "<resource-group-name>", "<container-group-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*ContainerGroupsClient) Update ¶
func (client *ContainerGroupsClient) Update(ctx context.Context, resourceGroupName string, containerGroupName string, resource Resource, options *ContainerGroupsUpdateOptions) (ContainerGroupsUpdateResponse, error)
Update - Updates container group tags with specified values. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerGroupsUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainerGroupsClient("<subscription-id>", cred, nil) res, err := client.Update(ctx, "<resource-group-name>", "<container-group-name>", armcontainerinstance.Resource{}, nil) if err != nil { log.Fatal(err) } log.Printf("ContainerGroup.ID: %s\n", *res.ID) }
Output:
type ContainerGroupsCreateOrUpdatePoller ¶
type ContainerGroupsCreateOrUpdatePoller struct {
// contains filtered or unexported fields
}
ContainerGroupsCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state.
func (*ContainerGroupsCreateOrUpdatePoller) Done ¶
func (p *ContainerGroupsCreateOrUpdatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ContainerGroupsCreateOrUpdatePoller) FinalResponse ¶
func (p *ContainerGroupsCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ContainerGroupsCreateOrUpdateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ContainerGroupsCreateOrUpdateResponse will be returned.
func (*ContainerGroupsCreateOrUpdatePoller) Poll ¶
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ContainerGroupsCreateOrUpdatePoller) ResumeToken ¶
func (p *ContainerGroupsCreateOrUpdatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ContainerGroupsCreateOrUpdatePollerResponse ¶
type ContainerGroupsCreateOrUpdatePollerResponse struct { // Poller contains an initialized poller. Poller *ContainerGroupsCreateOrUpdatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsCreateOrUpdatePollerResponse contains the response from method ContainerGroups.CreateOrUpdate.
func (ContainerGroupsCreateOrUpdatePollerResponse) PollUntilDone ¶
func (l ContainerGroupsCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ContainerGroupsCreateOrUpdateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ContainerGroupsCreateOrUpdatePollerResponse) Resume ¶
func (l *ContainerGroupsCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ContainerGroupsClient, token string) error
Resume rehydrates a ContainerGroupsCreateOrUpdatePollerResponse from the provided client and resume token.
type ContainerGroupsCreateOrUpdateResponse ¶
type ContainerGroupsCreateOrUpdateResponse struct { ContainerGroupsCreateOrUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsCreateOrUpdateResponse contains the response from method ContainerGroups.CreateOrUpdate.
type ContainerGroupsCreateOrUpdateResult ¶
type ContainerGroupsCreateOrUpdateResult struct {
ContainerGroup
}
ContainerGroupsCreateOrUpdateResult contains the result from method ContainerGroups.CreateOrUpdate.
type ContainerGroupsDeletePoller ¶
type ContainerGroupsDeletePoller struct {
// contains filtered or unexported fields
}
ContainerGroupsDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*ContainerGroupsDeletePoller) Done ¶
func (p *ContainerGroupsDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ContainerGroupsDeletePoller) FinalResponse ¶
func (p *ContainerGroupsDeletePoller) FinalResponse(ctx context.Context) (ContainerGroupsDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ContainerGroupsDeleteResponse will be returned.
func (*ContainerGroupsDeletePoller) Poll ¶
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ContainerGroupsDeletePoller) ResumeToken ¶
func (p *ContainerGroupsDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ContainerGroupsDeletePollerResponse ¶
type ContainerGroupsDeletePollerResponse struct { // Poller contains an initialized poller. Poller *ContainerGroupsDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsDeletePollerResponse contains the response from method ContainerGroups.Delete.
func (ContainerGroupsDeletePollerResponse) PollUntilDone ¶
func (l ContainerGroupsDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ContainerGroupsDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ContainerGroupsDeletePollerResponse) Resume ¶
func (l *ContainerGroupsDeletePollerResponse) Resume(ctx context.Context, client *ContainerGroupsClient, token string) error
Resume rehydrates a ContainerGroupsDeletePollerResponse from the provided client and resume token.
type ContainerGroupsDeleteResponse ¶
type ContainerGroupsDeleteResponse struct { ContainerGroupsDeleteResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsDeleteResponse contains the response from method ContainerGroups.Delete.
type ContainerGroupsDeleteResult ¶
type ContainerGroupsDeleteResult struct {
ContainerGroup
}
ContainerGroupsDeleteResult contains the result from method ContainerGroups.Delete.
type ContainerGroupsGetOptions ¶
type ContainerGroupsGetOptions struct { }
ContainerGroupsGetOptions contains the optional parameters for the ContainerGroups.Get method.
type ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptions ¶
type ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptions struct { }
ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the ContainerGroups.GetOutboundNetworkDependenciesEndpoints method.
type ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse ¶
type ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse struct { ContainerGroupsGetOutboundNetworkDependenciesEndpointsResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse contains the response from method ContainerGroups.GetOutboundNetworkDependenciesEndpoints.
type ContainerGroupsGetOutboundNetworkDependenciesEndpointsResult ¶
type ContainerGroupsGetOutboundNetworkDependenciesEndpointsResult struct { // Response for network dependencies, always empty list. StringArray []*string }
ContainerGroupsGetOutboundNetworkDependenciesEndpointsResult contains the result from method ContainerGroups.GetOutboundNetworkDependenciesEndpoints.
type ContainerGroupsGetResponse ¶
type ContainerGroupsGetResponse struct { ContainerGroupsGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsGetResponse contains the response from method ContainerGroups.Get.
type ContainerGroupsGetResult ¶
type ContainerGroupsGetResult struct {
ContainerGroup
}
ContainerGroupsGetResult contains the result from method ContainerGroups.Get.
type ContainerGroupsListByResourceGroupOptions ¶
type ContainerGroupsListByResourceGroupOptions struct { }
ContainerGroupsListByResourceGroupOptions contains the optional parameters for the ContainerGroups.ListByResourceGroup method.
type ContainerGroupsListByResourceGroupPager ¶
type ContainerGroupsListByResourceGroupPager struct {
// contains filtered or unexported fields
}
ContainerGroupsListByResourceGroupPager provides operations for iterating over paged responses.
func (*ContainerGroupsListByResourceGroupPager) Err ¶
func (p *ContainerGroupsListByResourceGroupPager) Err() error
Err returns the last error encountered while paging.
func (*ContainerGroupsListByResourceGroupPager) NextPage ¶
func (p *ContainerGroupsListByResourceGroupPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ContainerGroupsListByResourceGroupPager) PageResponse ¶
func (p *ContainerGroupsListByResourceGroupPager) PageResponse() ContainerGroupsListByResourceGroupResponse
PageResponse returns the current ContainerGroupsListByResourceGroupResponse page.
type ContainerGroupsListByResourceGroupResponse ¶
type ContainerGroupsListByResourceGroupResponse struct { ContainerGroupsListByResourceGroupResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsListByResourceGroupResponse contains the response from method ContainerGroups.ListByResourceGroup.
type ContainerGroupsListByResourceGroupResult ¶
type ContainerGroupsListByResourceGroupResult struct {
ContainerGroupListResult
}
ContainerGroupsListByResourceGroupResult contains the result from method ContainerGroups.ListByResourceGroup.
type ContainerGroupsListOptions ¶
type ContainerGroupsListOptions struct { }
ContainerGroupsListOptions contains the optional parameters for the ContainerGroups.List method.
type ContainerGroupsListPager ¶
type ContainerGroupsListPager struct {
// contains filtered or unexported fields
}
ContainerGroupsListPager provides operations for iterating over paged responses.
func (*ContainerGroupsListPager) Err ¶
func (p *ContainerGroupsListPager) Err() error
Err returns the last error encountered while paging.
func (*ContainerGroupsListPager) NextPage ¶
func (p *ContainerGroupsListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ContainerGroupsListPager) PageResponse ¶
func (p *ContainerGroupsListPager) PageResponse() ContainerGroupsListResponse
PageResponse returns the current ContainerGroupsListResponse page.
type ContainerGroupsListResponse ¶
type ContainerGroupsListResponse struct { ContainerGroupsListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsListResponse contains the response from method ContainerGroups.List.
type ContainerGroupsListResult ¶
type ContainerGroupsListResult struct {
ContainerGroupListResult
}
ContainerGroupsListResult contains the result from method ContainerGroups.List.
type ContainerGroupsRestartPoller ¶
type ContainerGroupsRestartPoller struct {
// contains filtered or unexported fields
}
ContainerGroupsRestartPoller provides polling facilities until the operation reaches a terminal state.
func (*ContainerGroupsRestartPoller) Done ¶
func (p *ContainerGroupsRestartPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ContainerGroupsRestartPoller) FinalResponse ¶
func (p *ContainerGroupsRestartPoller) FinalResponse(ctx context.Context) (ContainerGroupsRestartResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ContainerGroupsRestartResponse will be returned.
func (*ContainerGroupsRestartPoller) Poll ¶
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ContainerGroupsRestartPoller) ResumeToken ¶
func (p *ContainerGroupsRestartPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ContainerGroupsRestartPollerResponse ¶
type ContainerGroupsRestartPollerResponse struct { // Poller contains an initialized poller. Poller *ContainerGroupsRestartPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsRestartPollerResponse contains the response from method ContainerGroups.Restart.
func (ContainerGroupsRestartPollerResponse) PollUntilDone ¶
func (l ContainerGroupsRestartPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ContainerGroupsRestartResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ContainerGroupsRestartPollerResponse) Resume ¶
func (l *ContainerGroupsRestartPollerResponse) Resume(ctx context.Context, client *ContainerGroupsClient, token string) error
Resume rehydrates a ContainerGroupsRestartPollerResponse from the provided client and resume token.
type ContainerGroupsRestartResponse ¶
type ContainerGroupsRestartResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsRestartResponse contains the response from method ContainerGroups.Restart.
type ContainerGroupsStartPoller ¶
type ContainerGroupsStartPoller struct {
// contains filtered or unexported fields
}
ContainerGroupsStartPoller provides polling facilities until the operation reaches a terminal state.
func (*ContainerGroupsStartPoller) Done ¶
func (p *ContainerGroupsStartPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ContainerGroupsStartPoller) FinalResponse ¶
func (p *ContainerGroupsStartPoller) FinalResponse(ctx context.Context) (ContainerGroupsStartResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ContainerGroupsStartResponse will be returned.
func (*ContainerGroupsStartPoller) Poll ¶
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ContainerGroupsStartPoller) ResumeToken ¶
func (p *ContainerGroupsStartPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ContainerGroupsStartPollerResponse ¶
type ContainerGroupsStartPollerResponse struct { // Poller contains an initialized poller. Poller *ContainerGroupsStartPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsStartPollerResponse contains the response from method ContainerGroups.Start.
func (ContainerGroupsStartPollerResponse) PollUntilDone ¶
func (l ContainerGroupsStartPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ContainerGroupsStartResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ContainerGroupsStartPollerResponse) Resume ¶
func (l *ContainerGroupsStartPollerResponse) Resume(ctx context.Context, client *ContainerGroupsClient, token string) error
Resume rehydrates a ContainerGroupsStartPollerResponse from the provided client and resume token.
type ContainerGroupsStartResponse ¶
type ContainerGroupsStartResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsStartResponse contains the response from method ContainerGroups.Start.
type ContainerGroupsStopOptions ¶
type ContainerGroupsStopOptions struct { }
ContainerGroupsStopOptions contains the optional parameters for the ContainerGroups.Stop method.
type ContainerGroupsStopResponse ¶
type ContainerGroupsStopResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsStopResponse contains the response from method ContainerGroups.Stop.
type ContainerGroupsUpdateOptions ¶
type ContainerGroupsUpdateOptions struct { }
ContainerGroupsUpdateOptions contains the optional parameters for the ContainerGroups.Update method.
type ContainerGroupsUpdateResponse ¶
type ContainerGroupsUpdateResponse struct { ContainerGroupsUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainerGroupsUpdateResponse contains the response from method ContainerGroups.Update.
type ContainerGroupsUpdateResult ¶
type ContainerGroupsUpdateResult struct {
ContainerGroup
}
ContainerGroupsUpdateResult contains the result from method ContainerGroups.Update.
type ContainerHTTPGet ¶
type ContainerHTTPGet struct { // REQUIRED; The port number to probe. Port *int32 `json:"port,omitempty"` // The HTTP headers. HTTPHeaders []*HTTPHeader `json:"httpHeaders,omitempty"` // The path to probe. Path *string `json:"path,omitempty"` // The scheme. Scheme *Scheme `json:"scheme,omitempty"` }
ContainerHTTPGet - The container Http Get settings, for liveness or readiness probe
func (ContainerHTTPGet) MarshalJSON ¶
func (c ContainerHTTPGet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerHTTPGet.
type ContainerInstanceOperationsOrigin ¶
type ContainerInstanceOperationsOrigin string
ContainerInstanceOperationsOrigin - The intended executor of the operation.
const ( ContainerInstanceOperationsOriginSystem ContainerInstanceOperationsOrigin = "System" ContainerInstanceOperationsOriginUser ContainerInstanceOperationsOrigin = "User" )
func PossibleContainerInstanceOperationsOriginValues ¶
func PossibleContainerInstanceOperationsOriginValues() []ContainerInstanceOperationsOrigin
PossibleContainerInstanceOperationsOriginValues returns the possible values for the ContainerInstanceOperationsOrigin const type.
func (ContainerInstanceOperationsOrigin) ToPtr ¶
func (c ContainerInstanceOperationsOrigin) ToPtr() *ContainerInstanceOperationsOrigin
ToPtr returns a *ContainerInstanceOperationsOrigin pointing to the current value.
type ContainerNetworkProtocol ¶
type ContainerNetworkProtocol string
ContainerNetworkProtocol - The protocol associated with the port.
const ( ContainerNetworkProtocolTCP ContainerNetworkProtocol = "TCP" ContainerNetworkProtocolUDP ContainerNetworkProtocol = "UDP" )
func PossibleContainerNetworkProtocolValues ¶
func PossibleContainerNetworkProtocolValues() []ContainerNetworkProtocol
PossibleContainerNetworkProtocolValues returns the possible values for the ContainerNetworkProtocol const type.
func (ContainerNetworkProtocol) ToPtr ¶
func (c ContainerNetworkProtocol) ToPtr() *ContainerNetworkProtocol
ToPtr returns a *ContainerNetworkProtocol pointing to the current value.
type ContainerPort ¶
type ContainerPort struct { // REQUIRED; The port number exposed within the container group. Port *int32 `json:"port,omitempty"` // The protocol associated with the port. Protocol *ContainerNetworkProtocol `json:"protocol,omitempty"` }
ContainerPort - The port exposed on the container instance.
type ContainerProbe ¶
type ContainerProbe struct { // The execution command to probe Exec *ContainerExec `json:"exec,omitempty"` // The failure threshold. FailureThreshold *int32 `json:"failureThreshold,omitempty"` // The Http Get settings to probe HTTPGet *ContainerHTTPGet `json:"httpGet,omitempty"` // The initial delay seconds. InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"` // The period seconds. PeriodSeconds *int32 `json:"periodSeconds,omitempty"` // The success threshold. SuccessThreshold *int32 `json:"successThreshold,omitempty"` // The timeout seconds. TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` }
ContainerProbe - The container probe, for liveness or readiness
type ContainerProperties ¶
type ContainerProperties struct { // REQUIRED; The name of the image used to create the container instance. Image *string `json:"image,omitempty"` // REQUIRED; The resource requirements of the container instance. Resources *ResourceRequirements `json:"resources,omitempty"` // The commands to execute within the container instance in exec form. Command []*string `json:"command,omitempty"` // The environment variables to set in the container instance. EnvironmentVariables []*EnvironmentVariable `json:"environmentVariables,omitempty"` // The liveness probe. LivenessProbe *ContainerProbe `json:"livenessProbe,omitempty"` // The exposed ports on the container instance. Ports []*ContainerPort `json:"ports,omitempty"` // The readiness probe. ReadinessProbe *ContainerProbe `json:"readinessProbe,omitempty"` // The volume mounts available to the container instance. VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"` // READ-ONLY; The instance view of the container instance. Only valid in response. InstanceView *ContainerPropertiesInstanceView `json:"instanceView,omitempty" azure:"ro"` }
ContainerProperties - The container instance properties.
func (ContainerProperties) MarshalJSON ¶
func (c ContainerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerProperties.
type ContainerPropertiesInstanceView ¶
type ContainerPropertiesInstanceView struct { // READ-ONLY; Current container instance state. CurrentState *ContainerState `json:"currentState,omitempty" azure:"ro"` // READ-ONLY; The events of the container instance. Events []*Event `json:"events,omitempty" azure:"ro"` // READ-ONLY; Previous container instance state. PreviousState *ContainerState `json:"previousState,omitempty" azure:"ro"` // READ-ONLY; The number of times that the container instance has been restarted. RestartCount *int32 `json:"restartCount,omitempty" azure:"ro"` }
ContainerPropertiesInstanceView - The instance view of the container instance. Only valid in response.
func (ContainerPropertiesInstanceView) MarshalJSON ¶
func (c ContainerPropertiesInstanceView) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerPropertiesInstanceView.
type ContainerState ¶
type ContainerState struct { // READ-ONLY; The human-readable status of the container instance state. DetailStatus *string `json:"detailStatus,omitempty" azure:"ro"` // READ-ONLY; The container instance exit codes correspond to those from the docker run command. ExitCode *int32 `json:"exitCode,omitempty" azure:"ro"` // READ-ONLY; The date-time when the container instance state finished. FinishTime *time.Time `json:"finishTime,omitempty" azure:"ro"` // READ-ONLY; The date-time when the container instance state started. StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` // READ-ONLY; The state of the container instance. State *string `json:"state,omitempty" azure:"ro"` }
ContainerState - The container instance state.
func (ContainerState) MarshalJSON ¶
func (c ContainerState) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerState.
func (*ContainerState) UnmarshalJSON ¶
func (c *ContainerState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerState.
type ContainersAttachOptions ¶
type ContainersAttachOptions struct { }
ContainersAttachOptions contains the optional parameters for the Containers.Attach method.
type ContainersAttachResponse ¶
type ContainersAttachResponse struct { ContainersAttachResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainersAttachResponse contains the response from method Containers.Attach.
type ContainersAttachResult ¶
type ContainersAttachResult struct {
ContainerAttachResponse
}
ContainersAttachResult contains the result from method Containers.Attach.
type ContainersClient ¶
type ContainersClient struct {
// contains filtered or unexported fields
}
ContainersClient contains the methods for the Containers group. Don't use this type directly, use NewContainersClient() instead.
func NewContainersClient ¶
func NewContainersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ContainersClient
NewContainersClient creates a new instance of ContainersClient with the specified values.
func (*ContainersClient) Attach ¶
func (client *ContainersClient) Attach(ctx context.Context, resourceGroupName string, containerGroupName string, containerName string, options *ContainersAttachOptions) (ContainersAttachResponse, error)
Attach - Attach to the output stream of a specific container instance in a specified resource group and container group. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerAttach.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainersClient("<subscription-id>", cred, nil) _, err = client.Attach(ctx, "<resource-group-name>", "<container-group-name>", "<container-name>", nil) if err != nil { log.Fatal(err) } }
Output:
func (*ContainersClient) ExecuteCommand ¶
func (client *ContainersClient) ExecuteCommand(ctx context.Context, resourceGroupName string, containerGroupName string, containerName string, containerExecRequest ContainerExecRequest, options *ContainersExecuteCommandOptions) (ContainersExecuteCommandResponse, error)
ExecuteCommand - Executes a command for a specific container instance in a specified resource group and container group. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerExec.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainersClient("<subscription-id>", cred, nil) _, err = client.ExecuteCommand(ctx, "<resource-group-name>", "<container-group-name>", "<container-name>", armcontainerinstance.ContainerExecRequest{ Command: to.StringPtr("<command>"), TerminalSize: &armcontainerinstance.ContainerExecRequestTerminalSize{ Cols: to.Int32Ptr(12), Rows: to.Int32Ptr(12), }, }, nil) if err != nil { log.Fatal(err) } }
Output:
func (*ContainersClient) ListLogs ¶
func (client *ContainersClient) ListLogs(ctx context.Context, resourceGroupName string, containerGroupName string, containerName string, options *ContainersListLogsOptions) (ContainersListLogsResponse, error)
ListLogs - Get the logs for a specified container instance in a specified resource group and container group. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerListLogs.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewContainersClient("<subscription-id>", cred, nil) _, err = client.ListLogs(ctx, "<resource-group-name>", "<container-group-name>", "<container-name>", &armcontainerinstance.ContainersListLogsOptions{Tail: to.Int32Ptr(10), Timestamps: nil, }) if err != nil { log.Fatal(err) } }
Output:
type ContainersExecuteCommandOptions ¶
type ContainersExecuteCommandOptions struct { }
ContainersExecuteCommandOptions contains the optional parameters for the Containers.ExecuteCommand method.
type ContainersExecuteCommandResponse ¶
type ContainersExecuteCommandResponse struct { ContainersExecuteCommandResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainersExecuteCommandResponse contains the response from method Containers.ExecuteCommand.
type ContainersExecuteCommandResult ¶
type ContainersExecuteCommandResult struct {
ContainerExecResponse
}
ContainersExecuteCommandResult contains the result from method Containers.ExecuteCommand.
type ContainersListLogsOptions ¶
type ContainersListLogsOptions struct { // The number of lines to show from the tail of the container instance log. If not provided, all available logs are shown up to 4mb. Tail *int32 // If true, adds a timestamp at the beginning of every line of log output. If not provided, defaults to false. Timestamps *bool }
ContainersListLogsOptions contains the optional parameters for the Containers.ListLogs method.
type ContainersListLogsResponse ¶
type ContainersListLogsResponse struct { ContainersListLogsResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ContainersListLogsResponse contains the response from method Containers.ListLogs.
type ContainersListLogsResult ¶
type ContainersListLogsResult struct {
Logs
}
ContainersListLogsResult contains the result from method Containers.ListLogs.
type DNSConfiguration ¶
type DNSConfiguration struct { // REQUIRED; The DNS servers for the container group. NameServers []*string `json:"nameServers,omitempty"` // The DNS options for the container group. Options *string `json:"options,omitempty"` // The DNS search domains for hostname lookup in the container group. SearchDomains *string `json:"searchDomains,omitempty"` }
DNSConfiguration - DNS configuration for the container group.
func (DNSConfiguration) MarshalJSON ¶
func (d DNSConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DNSConfiguration.
type EncryptionProperties ¶
type EncryptionProperties struct { // REQUIRED; The encryption key name. KeyName *string `json:"keyName,omitempty"` // REQUIRED; The encryption key version. KeyVersion *string `json:"keyVersion,omitempty"` // REQUIRED; The keyvault base url. VaultBaseURL *string `json:"vaultBaseUrl,omitempty"` }
EncryptionProperties - The container group encryption properties.
type EnvironmentVariable ¶
type EnvironmentVariable struct { // REQUIRED; The name of the environment variable. Name *string `json:"name,omitempty"` // The value of the secure environment variable. SecureValue *string `json:"secureValue,omitempty"` // The value of the environment variable. Value *string `json:"value,omitempty"` }
EnvironmentVariable - The environment variable to set within the container instance.
type Event ¶
type Event struct { // READ-ONLY; The count of the event. Count *int32 `json:"count,omitempty" azure:"ro"` // READ-ONLY; The date-time of the earliest logged event. FirstTimestamp *time.Time `json:"firstTimestamp,omitempty" azure:"ro"` // READ-ONLY; The date-time of the latest logged event. LastTimestamp *time.Time `json:"lastTimestamp,omitempty" azure:"ro"` // READ-ONLY; The event message. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The event name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The event type. Type *string `json:"type,omitempty" azure:"ro"` }
Event - A container group or container instance event.
func (Event) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Event.
func (*Event) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Event.
type GitRepoVolume ¶
type GitRepoVolume struct { // REQUIRED; Repository URL Repository *string `json:"repository,omitempty"` // Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, // the volume will contain the git repository in // the subdirectory with the given name. Directory *string `json:"directory,omitempty"` // Commit hash for the specified revision. Revision *string `json:"revision,omitempty"` }
GitRepoVolume - Represents a volume that is populated with the contents of a git repository
type GpuResource ¶
type GpuResource struct { // REQUIRED; The count of the GPU resource. Count *int32 `json:"count,omitempty"` // REQUIRED; The SKU of the GPU resource. SKU *GpuSKU `json:"sku,omitempty"` }
GpuResource - The GPU resource.
type GpuSKU ¶
type GpuSKU string
GpuSKU - The SKU of the GPU resource.
func PossibleGpuSKUValues ¶
func PossibleGpuSKUValues() []GpuSKU
PossibleGpuSKUValues returns the possible values for the GpuSKU const type.
type HTTPHeader ¶
type HTTPHeader struct { // The header name. Name *string `json:"name,omitempty"` // The header value. Value *string `json:"value,omitempty"` }
HTTPHeader - The HTTP header.
type IPAddress ¶
type IPAddress struct { // REQUIRED; The list of ports exposed on the container group. Ports []*Port `json:"ports,omitempty"` // REQUIRED; Specifies if the IP is exposed to the public internet or private VNET. Type *ContainerGroupIPAddressType `json:"type,omitempty"` // The Dns name label for the IP. DNSNameLabel *string `json:"dnsNameLabel,omitempty"` // The IP exposed to the public internet. IP *string `json:"ip,omitempty"` // READ-ONLY; The FQDN for the IP. Fqdn *string `json:"fqdn,omitempty" azure:"ro"` }
IPAddress - IP address for the container group.
func (IPAddress) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type IPAddress.
type ImageRegistryCredential ¶
type ImageRegistryCredential struct { // REQUIRED; The Docker image registry server without a protocol such as "http" and "https". Server *string `json:"server,omitempty"` // REQUIRED; The username for the private registry. Username *string `json:"username,omitempty"` // The identity for the private registry. Identity *string `json:"identity,omitempty"` // The identity URL for the private registry. IdentityURL *string `json:"identityUrl,omitempty"` // The password for the private registry. Password *string `json:"password,omitempty"` }
ImageRegistryCredential - Image registry credential.
type InitContainerDefinition ¶
type InitContainerDefinition struct { // REQUIRED; The name for the init container. Name *string `json:"name,omitempty"` // REQUIRED; The properties for the init container. Properties *InitContainerPropertiesDefinition `json:"properties,omitempty"` }
InitContainerDefinition - The init container definition.
type InitContainerPropertiesDefinition ¶
type InitContainerPropertiesDefinition struct { // The command to execute within the init container in exec form. Command []*string `json:"command,omitempty"` // The environment variables to set in the init container. EnvironmentVariables []*EnvironmentVariable `json:"environmentVariables,omitempty"` // The image of the init container. Image *string `json:"image,omitempty"` // The volume mounts available to the init container. VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"` // READ-ONLY; The instance view of the init container. Only valid in response. InstanceView *InitContainerPropertiesDefinitionInstanceView `json:"instanceView,omitempty" azure:"ro"` }
InitContainerPropertiesDefinition - The init container definition properties.
func (InitContainerPropertiesDefinition) MarshalJSON ¶
func (i InitContainerPropertiesDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InitContainerPropertiesDefinition.
type InitContainerPropertiesDefinitionInstanceView ¶
type InitContainerPropertiesDefinitionInstanceView struct { // READ-ONLY; The current state of the init container. CurrentState *ContainerState `json:"currentState,omitempty" azure:"ro"` // READ-ONLY; The events of the init container. Events []*Event `json:"events,omitempty" azure:"ro"` // READ-ONLY; The previous state of the init container. PreviousState *ContainerState `json:"previousState,omitempty" azure:"ro"` // READ-ONLY; The number of times that the init container has been restarted. RestartCount *int32 `json:"restartCount,omitempty" azure:"ro"` }
InitContainerPropertiesDefinitionInstanceView - The instance view of the init container. Only valid in response.
func (InitContainerPropertiesDefinitionInstanceView) MarshalJSON ¶
func (i InitContainerPropertiesDefinitionInstanceView) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InitContainerPropertiesDefinitionInstanceView.
type LocationClient ¶
type LocationClient struct {
// contains filtered or unexported fields
}
LocationClient contains the methods for the Location group. Don't use this type directly, use NewLocationClient() instead.
func NewLocationClient ¶
func NewLocationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *LocationClient
NewLocationClient creates a new instance of LocationClient with the specified values.
func (*LocationClient) ListCachedImages ¶
func (client *LocationClient) ListCachedImages(location string, options *LocationListCachedImagesOptions) *LocationListCachedImagesPager
ListCachedImages - Get the list of cached images on specific OS type for a subscription in a region. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/CachedImagesList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewLocationClient("<subscription-id>", cred, nil) pager := client.ListCachedImages("<location>", nil) for pager.NextPage(ctx) { if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } } }
Output:
func (*LocationClient) ListCapabilities ¶
func (client *LocationClient) ListCapabilities(location string, options *LocationListCapabilitiesOptions) *LocationListCapabilitiesPager
ListCapabilities - Get the list of CPU/memory/GPU capabilities of a region. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/CapabilitiesList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewLocationClient("<subscription-id>", cred, nil) pager := client.ListCapabilities("<location>", nil) for pager.NextPage(ctx) { if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } } }
Output:
func (*LocationClient) ListUsage ¶
func (client *LocationClient) ListUsage(ctx context.Context, location string, options *LocationListUsageOptions) (LocationListUsageResponse, error)
ListUsage - Get the usage for a subscription If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/ContainerGroupUsage.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewLocationClient("<subscription-id>", cred, nil) _, err = client.ListUsage(ctx, "<location>", nil) if err != nil { log.Fatal(err) } }
Output:
type LocationListCachedImagesOptions ¶
type LocationListCachedImagesOptions struct { }
LocationListCachedImagesOptions contains the optional parameters for the Location.ListCachedImages method.
type LocationListCachedImagesPager ¶
type LocationListCachedImagesPager struct {
// contains filtered or unexported fields
}
LocationListCachedImagesPager provides operations for iterating over paged responses.
func (*LocationListCachedImagesPager) Err ¶
func (p *LocationListCachedImagesPager) Err() error
Err returns the last error encountered while paging.
func (*LocationListCachedImagesPager) NextPage ¶
func (p *LocationListCachedImagesPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*LocationListCachedImagesPager) PageResponse ¶
func (p *LocationListCachedImagesPager) PageResponse() LocationListCachedImagesResponse
PageResponse returns the current LocationListCachedImagesResponse page.
type LocationListCachedImagesResponse ¶
type LocationListCachedImagesResponse struct { LocationListCachedImagesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
LocationListCachedImagesResponse contains the response from method Location.ListCachedImages.
type LocationListCachedImagesResult ¶
type LocationListCachedImagesResult struct {
CachedImagesListResult
}
LocationListCachedImagesResult contains the result from method Location.ListCachedImages.
type LocationListCapabilitiesOptions ¶
type LocationListCapabilitiesOptions struct { }
LocationListCapabilitiesOptions contains the optional parameters for the Location.ListCapabilities method.
type LocationListCapabilitiesPager ¶
type LocationListCapabilitiesPager struct {
// contains filtered or unexported fields
}
LocationListCapabilitiesPager provides operations for iterating over paged responses.
func (*LocationListCapabilitiesPager) Err ¶
func (p *LocationListCapabilitiesPager) Err() error
Err returns the last error encountered while paging.
func (*LocationListCapabilitiesPager) NextPage ¶
func (p *LocationListCapabilitiesPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*LocationListCapabilitiesPager) PageResponse ¶
func (p *LocationListCapabilitiesPager) PageResponse() LocationListCapabilitiesResponse
PageResponse returns the current LocationListCapabilitiesResponse page.
type LocationListCapabilitiesResponse ¶
type LocationListCapabilitiesResponse struct { LocationListCapabilitiesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
LocationListCapabilitiesResponse contains the response from method Location.ListCapabilities.
type LocationListCapabilitiesResult ¶
type LocationListCapabilitiesResult struct {
CapabilitiesListResult
}
LocationListCapabilitiesResult contains the result from method Location.ListCapabilities.
type LocationListUsageOptions ¶
type LocationListUsageOptions struct { }
LocationListUsageOptions contains the optional parameters for the Location.ListUsage method.
type LocationListUsageResponse ¶
type LocationListUsageResponse struct { LocationListUsageResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
LocationListUsageResponse contains the response from method Location.ListUsage.
type LocationListUsageResult ¶
type LocationListUsageResult struct {
UsageListResult
}
LocationListUsageResult contains the result from method Location.ListUsage.
type LogAnalytics ¶
type LogAnalytics struct { // REQUIRED; The workspace id for log analytics WorkspaceID *string `json:"workspaceId,omitempty"` // REQUIRED; The workspace key for log analytics WorkspaceKey *string `json:"workspaceKey,omitempty"` // The log type to be used. LogType *LogAnalyticsLogType `json:"logType,omitempty"` // Metadata for log analytics. Metadata map[string]*string `json:"metadata,omitempty"` // The workspace resource id for log analytics WorkspaceResourceID *string `json:"workspaceResourceId,omitempty"` }
LogAnalytics - Container group log analytics information.
func (LogAnalytics) MarshalJSON ¶
func (l LogAnalytics) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LogAnalytics.
type LogAnalyticsLogType ¶
type LogAnalyticsLogType string
LogAnalyticsLogType - The log type to be used.
const ( LogAnalyticsLogTypeContainerInsights LogAnalyticsLogType = "ContainerInsights" LogAnalyticsLogTypeContainerInstanceLogs LogAnalyticsLogType = "ContainerInstanceLogs" )
func PossibleLogAnalyticsLogTypeValues ¶
func PossibleLogAnalyticsLogTypeValues() []LogAnalyticsLogType
PossibleLogAnalyticsLogTypeValues returns the possible values for the LogAnalyticsLogType const type.
func (LogAnalyticsLogType) ToPtr ¶
func (c LogAnalyticsLogType) ToPtr() *LogAnalyticsLogType
ToPtr returns a *LogAnalyticsLogType pointing to the current value.
type Logs ¶
type Logs struct { // The content of the log. Content *string `json:"content,omitempty"` }
Logs - The logs.
type OperatingSystemTypes ¶
type OperatingSystemTypes string
OperatingSystemTypes - The operating system type required by the containers in the container group.
const ( OperatingSystemTypesLinux OperatingSystemTypes = "Linux" OperatingSystemTypesWindows OperatingSystemTypes = "Windows" )
func PossibleOperatingSystemTypesValues ¶
func PossibleOperatingSystemTypesValues() []OperatingSystemTypes
PossibleOperatingSystemTypesValues returns the possible values for the OperatingSystemTypes const type.
func (OperatingSystemTypes) ToPtr ¶
func (c OperatingSystemTypes) ToPtr() *OperatingSystemTypes
ToPtr returns a *OperatingSystemTypes pointing to the current value.
type Operation ¶
type Operation struct { // REQUIRED; The display information of the operation. Display *OperationDisplay `json:"display,omitempty"` // REQUIRED; The name of the operation. Name *string `json:"name,omitempty"` // The intended executor of the operation. Origin *ContainerInstanceOperationsOrigin `json:"origin,omitempty"` // The additional properties. Properties map[string]interface{} `json:"properties,omitempty"` }
Operation - An operation for Azure Container Instance service.
type OperationDisplay ¶
type OperationDisplay struct { // The description of the operation. Description *string `json:"description,omitempty"` // The friendly name of the operation. Operation *string `json:"operation,omitempty"` // The name of the provider of the operation. Provider *string `json:"provider,omitempty"` // The name of the resource type of the operation. Resource *string `json:"resource,omitempty"` }
OperationDisplay - The display information of the operation.
type OperationListResult ¶
type OperationListResult struct { // The URI to fetch the next page of operations. NextLink *string `json:"nextLink,omitempty"` // The list of operations. Value []*Operation `json:"value,omitempty"` }
OperationListResult - The operation list response that contains all operations for Azure Container Instance service.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient
NewOperationsClient creates a new instance of OperationsClient with the specified values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(options *OperationsListOptions) *OperationsListPager
List - List the operations for Azure Container Instance service. If the operation fails it returns the *CloudError error type.
Example ¶
x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2021-09-01/examples/OperationsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armcontainerinstance.NewOperationsClient(cred, nil) pager := client.List(nil) for pager.NextPage(ctx) { if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } } }
Output:
type OperationsListOptions ¶
type OperationsListOptions struct { }
OperationsListOptions contains the optional parameters for the Operations.List method.
type OperationsListPager ¶
type OperationsListPager struct {
// contains filtered or unexported fields
}
OperationsListPager provides operations for iterating over paged responses.
func (*OperationsListPager) Err ¶
func (p *OperationsListPager) Err() error
Err returns the last error encountered while paging.
func (*OperationsListPager) NextPage ¶
func (p *OperationsListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*OperationsListPager) PageResponse ¶
func (p *OperationsListPager) PageResponse() OperationsListResponse
PageResponse returns the current OperationsListResponse page.
type OperationsListResponse ¶
type OperationsListResponse struct { OperationsListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
OperationsListResponse contains the response from method Operations.List.
type OperationsListResult ¶
type OperationsListResult struct {
OperationListResult
}
OperationsListResult contains the result from method Operations.List.
type Port ¶
type Port struct { // REQUIRED; The port number. Port *int32 `json:"port,omitempty"` // The protocol associated with the port. Protocol *ContainerGroupNetworkProtocol `json:"protocol,omitempty"` }
Port - The port exposed on the container group.
type Resource ¶
type Resource struct { // The resource location. Location *string `json:"location,omitempty"` // The resource tags. Tags map[string]*string `json:"tags,omitempty"` // The zones for the container group. Zones []*string `json:"zones,omitempty"` // READ-ONLY; The resource id. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
Resource - The Resource model definition.
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
type ResourceIdentityType ¶
type ResourceIdentityType string
ResourceIdentityType - The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the container group.
const ( ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned" ResourceIdentityTypeNone ResourceIdentityType = "None" )
func PossibleResourceIdentityTypeValues ¶
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
func (ResourceIdentityType) ToPtr ¶
func (c ResourceIdentityType) ToPtr() *ResourceIdentityType
ToPtr returns a *ResourceIdentityType pointing to the current value.
type ResourceLimits ¶
type ResourceLimits struct { // The CPU limit of this container instance. CPU *float64 `json:"cpu,omitempty"` // The GPU limit of this container instance. Gpu *GpuResource `json:"gpu,omitempty"` // The memory limit in GB of this container instance. MemoryInGB *float64 `json:"memoryInGB,omitempty"` }
ResourceLimits - The resource limits.
type ResourceRequests ¶
type ResourceRequests struct { // REQUIRED; The CPU request of this container instance. CPU *float64 `json:"cpu,omitempty"` // REQUIRED; The memory request in GB of this container instance. MemoryInGB *float64 `json:"memoryInGB,omitempty"` // The GPU request of this container instance. Gpu *GpuResource `json:"gpu,omitempty"` }
ResourceRequests - The resource requests.
type ResourceRequirements ¶
type ResourceRequirements struct { // REQUIRED; The resource requests of this container instance. Requests *ResourceRequests `json:"requests,omitempty"` // The resource limits of this container instance. Limits *ResourceLimits `json:"limits,omitempty"` }
ResourceRequirements - The resource requirements.
type Scheme ¶
type Scheme string
Scheme - The scheme.
func PossibleSchemeValues ¶
func PossibleSchemeValues() []Scheme
PossibleSchemeValues returns the possible values for the Scheme const type.
type Usage ¶
type Usage struct { // READ-ONLY; The current usage of the resource CurrentValue *int32 `json:"currentValue,omitempty" azure:"ro"` // READ-ONLY; The maximum permitted usage of the resource. Limit *int32 `json:"limit,omitempty" azure:"ro"` // READ-ONLY; The name object of the resource Name *UsageName `json:"name,omitempty" azure:"ro"` // READ-ONLY; Unit of the usage result Unit *string `json:"unit,omitempty" azure:"ro"` }
Usage - A single usage result
type UsageListResult ¶
type UsageListResult struct { // READ-ONLY; The usage data. Value []*Usage `json:"value,omitempty" azure:"ro"` }
UsageListResult - The response containing the usage data
func (UsageListResult) MarshalJSON ¶
func (u UsageListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UsageListResult.
type UsageName ¶
type UsageName struct { // READ-ONLY; The localized name of the resource LocalizedValue *string `json:"localizedValue,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Value *string `json:"value,omitempty" azure:"ro"` }
UsageName - The name object of the resource
type Volume ¶
type Volume struct { // REQUIRED; The name of the volume. Name *string `json:"name,omitempty"` // The Azure File volume. AzureFile *AzureFileVolume `json:"azureFile,omitempty"` // The empty directory volume. EmptyDir map[string]interface{} `json:"emptyDir,omitempty"` // The git repo volume. GitRepo *GitRepoVolume `json:"gitRepo,omitempty"` // The secret volume. Secret map[string]*string `json:"secret,omitempty"` }
Volume - The properties of the volume.
func (Volume) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Volume.
type VolumeMount ¶
type VolumeMount struct { // REQUIRED; The path within the container where the volume should be mounted. Must not contain colon (:). MountPath *string `json:"mountPath,omitempty"` // REQUIRED; The name of the volume mount. Name *string `json:"name,omitempty"` // The flag indicating whether the volume mount is read-only. ReadOnly *bool `json:"readOnly,omitempty"` }
VolumeMount - The properties of the volume mount.
Source Files ¶
- build.go
- zz_generated_constants.go
- zz_generated_containergroups_client.go
- zz_generated_containers_client.go
- zz_generated_location_client.go
- zz_generated_models.go
- zz_generated_operations_client.go
- zz_generated_pagers.go
- zz_generated_pollers.go
- zz_generated_response_types.go
- zz_generated_time_rfc3339.go