Documentation ¶
Index ¶
- type Action
- type Actor
- type CallbackConfig
- type ClientFactory
- type DefaultAction
- type Event
- type EventContent
- type EventInfo
- type EventListResult
- type EventRequestMessage
- type EventResponseMessage
- type IPRule
- type ImportImageParameters
- type ImportMode
- type ImportSource
- type ImportSourceCredentials
- type NetworkRuleSet
- type OperationDefinition
- type OperationDisplayDefinition
- type OperationListResult
- type OperationMetricSpecificationDefinition
- type OperationPropertiesDefinition
- type OperationServiceSpecificationDefinition
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type PasswordName
- type Policies
- type PolicyStatus
- type ProvisioningState
- type QuarantinePolicy
- type RegenerateCredentialParameters
- type RegistriesClient
- func (client *RegistriesClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, ...) (*runtime.Poller[RegistriesClientCreateResponse], error)
- func (client *RegistriesClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, ...) (*runtime.Poller[RegistriesClientDeleteResponse], error)
- func (client *RegistriesClient) BeginImportImage(ctx context.Context, resourceGroupName string, registryName string, ...) (*runtime.Poller[RegistriesClientImportImageResponse], error)
- func (client *RegistriesClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, ...) (*runtime.Poller[RegistriesClientUpdateResponse], error)
- func (client *RegistriesClient) CheckNameAvailability(ctx context.Context, registryNameCheckRequest RegistryNameCheckRequest, ...) (RegistriesClientCheckNameAvailabilityResponse, error)
- func (client *RegistriesClient) Get(ctx context.Context, resourceGroupName string, registryName string, ...) (RegistriesClientGetResponse, error)
- func (client *RegistriesClient) ListCredentials(ctx context.Context, resourceGroupName string, registryName string, ...) (RegistriesClientListCredentialsResponse, error)
- func (client *RegistriesClient) ListUsages(ctx context.Context, resourceGroupName string, registryName string, ...) (RegistriesClientListUsagesResponse, error)
- func (client *RegistriesClient) NewListByResourceGroupPager(resourceGroupName string, options *RegistriesClientListByResourceGroupOptions) *runtime.Pager[RegistriesClientListByResourceGroupResponse]
- func (client *RegistriesClient) NewListPager(options *RegistriesClientListOptions) *runtime.Pager[RegistriesClientListResponse]
- func (client *RegistriesClient) RegenerateCredential(ctx context.Context, resourceGroupName string, registryName string, ...) (RegistriesClientRegenerateCredentialResponse, error)
- type RegistriesClientBeginCreateOptions
- type RegistriesClientBeginDeleteOptions
- type RegistriesClientBeginImportImageOptions
- type RegistriesClientBeginUpdateOptions
- type RegistriesClientCheckNameAvailabilityOptions
- type RegistriesClientCheckNameAvailabilityResponse
- type RegistriesClientCreateResponse
- type RegistriesClientDeleteResponse
- type RegistriesClientGetOptions
- type RegistriesClientGetResponse
- type RegistriesClientImportImageResponse
- type RegistriesClientListByResourceGroupOptions
- type RegistriesClientListByResourceGroupResponse
- type RegistriesClientListCredentialsOptions
- type RegistriesClientListCredentialsResponse
- type RegistriesClientListOptions
- type RegistriesClientListResponse
- type RegistriesClientListUsagesOptions
- type RegistriesClientListUsagesResponse
- type RegistriesClientRegenerateCredentialOptions
- type RegistriesClientRegenerateCredentialResponse
- type RegistriesClientUpdateResponse
- type Registry
- type RegistryListCredentialsResult
- type RegistryListResult
- type RegistryNameCheckRequest
- type RegistryNameStatus
- type RegistryPassword
- type RegistryProperties
- type RegistryPropertiesUpdateParameters
- type RegistryUpdateParameters
- type RegistryUsage
- type RegistryUsageListResult
- type RegistryUsageUnit
- type Replication
- type ReplicationListResult
- type ReplicationProperties
- type ReplicationUpdateParameters
- type ReplicationsClient
- func (client *ReplicationsClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, ...) (*runtime.Poller[ReplicationsClientCreateResponse], error)
- func (client *ReplicationsClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, ...) (*runtime.Poller[ReplicationsClientDeleteResponse], error)
- func (client *ReplicationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, ...) (*runtime.Poller[ReplicationsClientUpdateResponse], error)
- func (client *ReplicationsClient) Get(ctx context.Context, resourceGroupName string, registryName string, ...) (ReplicationsClientGetResponse, error)
- func (client *ReplicationsClient) NewListPager(resourceGroupName string, registryName string, ...) *runtime.Pager[ReplicationsClientListResponse]
- type ReplicationsClientBeginCreateOptions
- type ReplicationsClientBeginDeleteOptions
- type ReplicationsClientBeginUpdateOptions
- type ReplicationsClientCreateResponse
- type ReplicationsClientDeleteResponse
- type ReplicationsClientGetOptions
- type ReplicationsClientGetResponse
- type ReplicationsClientListOptions
- type ReplicationsClientListResponse
- type ReplicationsClientUpdateResponse
- type Request
- type Resource
- type RetentionPolicy
- type SKU
- type SKUName
- type SKUTier
- type Source
- type Status
- type StorageAccountProperties
- type Target
- type TrustPolicy
- type TrustPolicyType
- type VirtualNetworkRule
- type Webhook
- type WebhookAction
- type WebhookCreateParameters
- type WebhookListResult
- type WebhookProperties
- type WebhookPropertiesCreateParameters
- type WebhookPropertiesUpdateParameters
- type WebhookStatus
- type WebhookUpdateParameters
- type WebhooksClient
- func (client *WebhooksClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, ...) (*runtime.Poller[WebhooksClientCreateResponse], error)
- func (client *WebhooksClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, ...) (*runtime.Poller[WebhooksClientDeleteResponse], error)
- func (client *WebhooksClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, ...) (*runtime.Poller[WebhooksClientUpdateResponse], error)
- func (client *WebhooksClient) Get(ctx context.Context, resourceGroupName string, registryName string, ...) (WebhooksClientGetResponse, error)
- func (client *WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGroupName string, registryName string, ...) (WebhooksClientGetCallbackConfigResponse, error)
- func (client *WebhooksClient) NewListEventsPager(resourceGroupName string, registryName string, webhookName string, ...) *runtime.Pager[WebhooksClientListEventsResponse]
- func (client *WebhooksClient) NewListPager(resourceGroupName string, registryName string, ...) *runtime.Pager[WebhooksClientListResponse]
- func (client *WebhooksClient) Ping(ctx context.Context, resourceGroupName string, registryName string, ...) (WebhooksClientPingResponse, error)
- type WebhooksClientBeginCreateOptions
- type WebhooksClientBeginDeleteOptions
- type WebhooksClientBeginUpdateOptions
- type WebhooksClientCreateResponse
- type WebhooksClientDeleteResponse
- type WebhooksClientGetCallbackConfigOptions
- type WebhooksClientGetCallbackConfigResponse
- type WebhooksClientGetOptions
- type WebhooksClientGetResponse
- type WebhooksClientListEventsOptions
- type WebhooksClientListEventsResponse
- type WebhooksClientListOptions
- type WebhooksClientListResponse
- type WebhooksClientPingOptions
- type WebhooksClientPingResponse
- type WebhooksClientUpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action string
Action - The action of virtual network rule.
const (
ActionAllow Action = "Allow"
)
func PossibleActionValues ¶
func PossibleActionValues() []Action
PossibleActionValues returns the possible values for the Action const type.
type Actor ¶
type Actor struct { // The subject or username associated with the request context that generated the event. Name *string `json:"name,omitempty"` }
Actor - The agent that initiated the event. For most situations, this could be from the authorization context of the request.
func (Actor) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Actor.
func (*Actor) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Actor.
type CallbackConfig ¶
type CallbackConfig struct { // REQUIRED; The service URI for the webhook to post notifications. ServiceURI *string `json:"serviceUri,omitempty"` // Custom headers that will be added to the webhook notifications. CustomHeaders map[string]*string `json:"customHeaders,omitempty"` }
CallbackConfig - The configuration of service URI and custom headers for the webhook.
func (CallbackConfig) MarshalJSON ¶
func (c CallbackConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CallbackConfig.
func (*CallbackConfig) UnmarshalJSON ¶
func (c *CallbackConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CallbackConfig.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The Microsoft Azure subscription ID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
func (*ClientFactory) NewRegistriesClient ¶
func (c *ClientFactory) NewRegistriesClient() *RegistriesClient
func (*ClientFactory) NewReplicationsClient ¶
func (c *ClientFactory) NewReplicationsClient() *ReplicationsClient
func (*ClientFactory) NewWebhooksClient ¶
func (c *ClientFactory) NewWebhooksClient() *WebhooksClient
type DefaultAction ¶
type DefaultAction string
DefaultAction - The default action of allow or deny when no other rules match.
const ( DefaultActionAllow DefaultAction = "Allow" DefaultActionDeny DefaultAction = "Deny" )
func PossibleDefaultActionValues ¶
func PossibleDefaultActionValues() []DefaultAction
PossibleDefaultActionValues returns the possible values for the DefaultAction const type.
type Event ¶
type Event struct { // The event request message sent to the service URI. EventRequestMessage *EventRequestMessage `json:"eventRequestMessage,omitempty"` // The event response message received from the service URI. EventResponseMessage *EventResponseMessage `json:"eventResponseMessage,omitempty"` // The event ID. ID *string `json:"id,omitempty"` }
Event - The event for a webhook.
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 EventContent ¶
type EventContent struct { // The action that encompasses the provided event. Action *string `json:"action,omitempty"` // The agent that initiated the event. For most situations, this could be from the authorization context of the request. Actor *Actor `json:"actor,omitempty"` // The event ID. ID *string `json:"id,omitempty"` // The request that generated the event. Request *Request `json:"request,omitempty"` // The registry node that generated the event. Put differently, while the actor initiates the event, the source generates // it. Source *Source `json:"source,omitempty"` // The target of the event. Target *Target `json:"target,omitempty"` // The time at which the event occurred. Timestamp *time.Time `json:"timestamp,omitempty"` }
EventContent - The content of the event request message.
func (EventContent) MarshalJSON ¶
func (e EventContent) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventContent.
func (*EventContent) UnmarshalJSON ¶
func (e *EventContent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventContent.
type EventInfo ¶
type EventInfo struct { // The event ID. ID *string `json:"id,omitempty"` }
EventInfo - The basic information of an event.
func (EventInfo) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type EventInfo.
func (*EventInfo) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type EventInfo.
type EventListResult ¶
type EventListResult struct { // The URI that can be used to request the next list of events. NextLink *string `json:"nextLink,omitempty"` // The list of events. Since this list may be incomplete, the nextLink field should be used to request the next list of events. Value []*Event `json:"value,omitempty"` }
EventListResult - The result of a request to list events for a webhook.
func (EventListResult) MarshalJSON ¶
func (e EventListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventListResult.
func (*EventListResult) UnmarshalJSON ¶
func (e *EventListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventListResult.
type EventRequestMessage ¶
type EventRequestMessage struct { // The content of the event request message. Content *EventContent `json:"content,omitempty"` // The headers of the event request message. Headers map[string]*string `json:"headers,omitempty"` // The HTTP method used to send the event request message. Method *string `json:"method,omitempty"` // The URI used to send the event request message. RequestURI *string `json:"requestUri,omitempty"` // The HTTP message version. Version *string `json:"version,omitempty"` }
EventRequestMessage - The event request message sent to the service URI.
func (EventRequestMessage) MarshalJSON ¶
func (e EventRequestMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventRequestMessage.
func (*EventRequestMessage) UnmarshalJSON ¶
func (e *EventRequestMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventRequestMessage.
type EventResponseMessage ¶
type EventResponseMessage struct { // The content of the event response message. Content *string `json:"content,omitempty"` // The headers of the event response message. Headers map[string]*string `json:"headers,omitempty"` // The reason phrase of the event response message. ReasonPhrase *string `json:"reasonPhrase,omitempty"` // The status code of the event response message. StatusCode *string `json:"statusCode,omitempty"` // The HTTP message version. Version *string `json:"version,omitempty"` }
EventResponseMessage - The event response message received from the service URI.
func (EventResponseMessage) MarshalJSON ¶
func (e EventResponseMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventResponseMessage.
func (*EventResponseMessage) UnmarshalJSON ¶
func (e *EventResponseMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventResponseMessage.
type IPRule ¶
type IPRule struct { // REQUIRED; Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. IPAddressOrRange *string `json:"value,omitempty"` // The action of IP ACL rule. Action *Action `json:"action,omitempty"` }
IPRule - IP rule with specific IP or IP range in CIDR format.
func (IPRule) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type IPRule.
func (*IPRule) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type IPRule.
type ImportImageParameters ¶
type ImportImageParameters struct { // REQUIRED; The source of the image. Source *ImportSource `json:"source,omitempty"` // When Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation // before any copying begins. Mode *ImportMode `json:"mode,omitempty"` // List of strings of the form repo[:tag]. When tag is omitted the source will be used (or 'latest' if source tag is also // omitted). TargetTags []*string `json:"targetTags,omitempty"` // List of strings of repository names to do a manifest only copy. No tag will be created. UntaggedTargetRepositories []*string `json:"untaggedTargetRepositories,omitempty"` }
func (ImportImageParameters) MarshalJSON ¶
func (i ImportImageParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImportImageParameters.
func (*ImportImageParameters) UnmarshalJSON ¶
func (i *ImportImageParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImportImageParameters.
type ImportMode ¶
type ImportMode string
ImportMode - When Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation before any copying begins.
const ( ImportModeForce ImportMode = "Force" ImportModeNoForce ImportMode = "NoForce" )
func PossibleImportModeValues ¶
func PossibleImportModeValues() []ImportMode
PossibleImportModeValues returns the possible values for the ImportMode const type.
type ImportSource ¶
type ImportSource struct { // REQUIRED; Repository name of the source image. Specify an image by repository ('hello-world'). This will use the 'latest' // tag. Specify an image by tag ('hello-world:latest'). Specify an image by sha256-based // manifest digest ('hello-world@sha256:abc123'). SourceImage *string `json:"sourceImage,omitempty"` // Credentials used when importing from a registry uri. Credentials *ImportSourceCredentials `json:"credentials,omitempty"` // The address of the source registry (e.g. 'mcr.microsoft.com'). RegistryURI *string `json:"registryUri,omitempty"` // The resource identifier of the source Azure Container Registry. ResourceID *string `json:"resourceId,omitempty"` }
func (ImportSource) MarshalJSON ¶
func (i ImportSource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImportSource.
func (*ImportSource) UnmarshalJSON ¶
func (i *ImportSource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImportSource.
type ImportSourceCredentials ¶
type ImportSourceCredentials struct { // REQUIRED; The password used to authenticate with the source registry. Password *string `json:"password,omitempty"` // The username to authenticate with the source registry. Username *string `json:"username,omitempty"` }
func (ImportSourceCredentials) MarshalJSON ¶
func (i ImportSourceCredentials) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImportSourceCredentials.
func (*ImportSourceCredentials) UnmarshalJSON ¶
func (i *ImportSourceCredentials) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImportSourceCredentials.
type NetworkRuleSet ¶
type NetworkRuleSet struct { // REQUIRED; The default action of allow or deny when no other rules match. DefaultAction *DefaultAction `json:"defaultAction,omitempty"` // The IP ACL rules. IPRules []*IPRule `json:"ipRules,omitempty"` // The virtual network rules. VirtualNetworkRules []*VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` }
NetworkRuleSet - The network rule set for a container registry.
func (NetworkRuleSet) MarshalJSON ¶
func (n NetworkRuleSet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkRuleSet.
func (*NetworkRuleSet) UnmarshalJSON ¶
func (n *NetworkRuleSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkRuleSet.
type OperationDefinition ¶
type OperationDefinition struct { // The display information for the container registry operation. Display *OperationDisplayDefinition `json:"display,omitempty"` // Operation name: {provider}/{resource}/{operation}. Name *string `json:"name,omitempty"` // The origin information of the container registry operation. Origin *string `json:"origin,omitempty"` // The properties information for the container registry operation. Properties *OperationPropertiesDefinition `json:"properties,omitempty"` }
OperationDefinition - The definition of a container registry operation.
func (OperationDefinition) MarshalJSON ¶
func (o OperationDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDefinition.
func (*OperationDefinition) UnmarshalJSON ¶
func (o *OperationDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDefinition.
type OperationDisplayDefinition ¶
type OperationDisplayDefinition struct { // The description for the operation. Description *string `json:"description,omitempty"` // The operation that users can perform. Operation *string `json:"operation,omitempty"` // The resource provider name: Microsoft.ContainerRegistry. Provider *string `json:"provider,omitempty"` // The resource on which the operation is performed. Resource *string `json:"resource,omitempty"` }
OperationDisplayDefinition - The display information for a container registry operation.
func (OperationDisplayDefinition) MarshalJSON ¶
func (o OperationDisplayDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplayDefinition.
func (*OperationDisplayDefinition) UnmarshalJSON ¶
func (o *OperationDisplayDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplayDefinition.
type OperationListResult ¶
type OperationListResult struct { // The URI that can be used to request the next list of container registry operations. NextLink *string `json:"nextLink,omitempty"` // The list of container registry operations. Since this list may be incomplete, the nextLink field should be used to request // the next list of operations. Value []*OperationDefinition `json:"value,omitempty"` }
OperationListResult - The result of a request to list container registry operations.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationMetricSpecificationDefinition ¶
type OperationMetricSpecificationDefinition struct { // Metric aggregation type. AggregationType *string `json:"aggregationType,omitempty"` // Metric description. DisplayDescription *string `json:"displayDescription,omitempty"` // Metric display name. DisplayName *string `json:"displayName,omitempty"` // Internal metric name. InternalMetricName *string `json:"internalMetricName,omitempty"` // Metric name. Name *string `json:"name,omitempty"` // Metric unit. Unit *string `json:"unit,omitempty"` }
OperationMetricSpecificationDefinition - The definition of Azure Monitoring metric.
func (OperationMetricSpecificationDefinition) MarshalJSON ¶
func (o OperationMetricSpecificationDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationMetricSpecificationDefinition.
func (*OperationMetricSpecificationDefinition) UnmarshalJSON ¶
func (o *OperationMetricSpecificationDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetricSpecificationDefinition.
type OperationPropertiesDefinition ¶
type OperationPropertiesDefinition struct { // The definition of Azure Monitoring service. ServiceSpecification *OperationServiceSpecificationDefinition `json:"serviceSpecification,omitempty"` }
OperationPropertiesDefinition - The definition of Azure Monitoring properties.
func (OperationPropertiesDefinition) MarshalJSON ¶
func (o OperationPropertiesDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationPropertiesDefinition.
func (*OperationPropertiesDefinition) UnmarshalJSON ¶
func (o *OperationPropertiesDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationPropertiesDefinition.
type OperationServiceSpecificationDefinition ¶
type OperationServiceSpecificationDefinition struct { // A list of Azure Monitoring metrics definition. MetricSpecifications []*OperationMetricSpecificationDefinition `json:"metricSpecifications,omitempty"` }
OperationServiceSpecificationDefinition - The definition of Azure Monitoring list.
func (OperationServiceSpecificationDefinition) MarshalJSON ¶
func (o OperationServiceSpecificationDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationServiceSpecificationDefinition.
func (*OperationServiceSpecificationDefinition) UnmarshalJSON ¶
func (o *OperationServiceSpecificationDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationServiceSpecificationDefinition.
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, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available Azure Container Registry REST API operations.
Generated from API version 2019-05-01
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type PasswordName ¶
type PasswordName string
PasswordName - The password name.
const ( PasswordNamePassword PasswordName = "password" PasswordNamePassword2 PasswordName = "password2" )
func PossiblePasswordNameValues ¶
func PossiblePasswordNameValues() []PasswordName
PossiblePasswordNameValues returns the possible values for the PasswordName const type.
type Policies ¶
type Policies struct { // The quarantine policy for a container registry. QuarantinePolicy *QuarantinePolicy `json:"quarantinePolicy,omitempty"` // The retention policy for a container registry. RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` // The content trust policy for a container registry. TrustPolicy *TrustPolicy `json:"trustPolicy,omitempty"` }
Policies - The policies for a container registry.
func (Policies) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Policies.
func (*Policies) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Policies.
type PolicyStatus ¶
type PolicyStatus string
PolicyStatus - The value that indicates whether the policy is enabled or not.
const ( PolicyStatusDisabled PolicyStatus = "disabled" PolicyStatusEnabled PolicyStatus = "enabled" )
func PossiblePolicyStatusValues ¶
func PossiblePolicyStatusValues() []PolicyStatus
PossiblePolicyStatusValues returns the possible values for the PolicyStatus const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - The provisioning state of the container registry at the time the operation was called.
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type QuarantinePolicy ¶
type QuarantinePolicy struct { // The value that indicates whether the policy is enabled or not. Status *PolicyStatus `json:"status,omitempty"` }
QuarantinePolicy - The quarantine policy for a container registry.
func (QuarantinePolicy) MarshalJSON ¶
func (q QuarantinePolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QuarantinePolicy.
func (*QuarantinePolicy) UnmarshalJSON ¶
func (q *QuarantinePolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type QuarantinePolicy.
type RegenerateCredentialParameters ¶
type RegenerateCredentialParameters struct { // REQUIRED; Specifies name of the password which should be regenerated -- password or password2. Name *PasswordName `json:"name,omitempty"` }
RegenerateCredentialParameters - The parameters used to regenerate the login credential.
func (RegenerateCredentialParameters) MarshalJSON ¶
func (r RegenerateCredentialParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegenerateCredentialParameters.
func (*RegenerateCredentialParameters) UnmarshalJSON ¶
func (r *RegenerateCredentialParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegenerateCredentialParameters.
type RegistriesClient ¶
type RegistriesClient struct {
// contains filtered or unexported fields
}
RegistriesClient contains the methods for the Registries group. Don't use this type directly, use NewRegistriesClient() instead.
func NewRegistriesClient ¶
func NewRegistriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RegistriesClient, error)
NewRegistriesClient creates a new instance of RegistriesClient with the specified values.
- subscriptionID - The Microsoft Azure subscription ID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*RegistriesClient) BeginCreate ¶
func (client *RegistriesClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, registry Registry, options *RegistriesClientBeginCreateOptions) (*runtime.Poller[RegistriesClientCreateResponse], error)
BeginCreate - Creates a container registry with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- registry - The parameters for creating a container registry.
- options - RegistriesClientBeginCreateOptions contains the optional parameters for the RegistriesClient.BeginCreate method.
func (*RegistriesClient) BeginDelete ¶
func (client *RegistriesClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientBeginDeleteOptions) (*runtime.Poller[RegistriesClientDeleteResponse], error)
BeginDelete - Deletes a container registry. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- options - RegistriesClientBeginDeleteOptions contains the optional parameters for the RegistriesClient.BeginDelete method.
func (*RegistriesClient) BeginImportImage ¶
func (client *RegistriesClient) BeginImportImage(ctx context.Context, resourceGroupName string, registryName string, parameters ImportImageParameters, options *RegistriesClientBeginImportImageOptions) (*runtime.Poller[RegistriesClientImportImageResponse], error)
BeginImportImage - Copies an image to this container registry from the specified container registry. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- parameters - The parameters specifying the image to copy and the source container registry.
- options - RegistriesClientBeginImportImageOptions contains the optional parameters for the RegistriesClient.BeginImportImage method.
func (*RegistriesClient) BeginUpdate ¶
func (client *RegistriesClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters, options *RegistriesClientBeginUpdateOptions) (*runtime.Poller[RegistriesClientUpdateResponse], error)
BeginUpdate - Updates a container registry with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- registryUpdateParameters - The parameters for updating a container registry.
- options - RegistriesClientBeginUpdateOptions contains the optional parameters for the RegistriesClient.BeginUpdate method.
func (*RegistriesClient) CheckNameAvailability ¶
func (client *RegistriesClient) CheckNameAvailability(ctx context.Context, registryNameCheckRequest RegistryNameCheckRequest, options *RegistriesClientCheckNameAvailabilityOptions) (RegistriesClientCheckNameAvailabilityResponse, error)
CheckNameAvailability - Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- registryNameCheckRequest - The object containing information for the availability request.
- options - RegistriesClientCheckNameAvailabilityOptions contains the optional parameters for the RegistriesClient.CheckNameAvailability method.
func (*RegistriesClient) Get ¶
func (client *RegistriesClient) Get(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientGetOptions) (RegistriesClientGetResponse, error)
Get - Gets the properties of the specified container registry. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- options - RegistriesClientGetOptions contains the optional parameters for the RegistriesClient.Get method.
func (*RegistriesClient) ListCredentials ¶
func (client *RegistriesClient) ListCredentials(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientListCredentialsOptions) (RegistriesClientListCredentialsResponse, error)
ListCredentials - Lists the login credentials for the specified container registry. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- options - RegistriesClientListCredentialsOptions contains the optional parameters for the RegistriesClient.ListCredentials method.
func (*RegistriesClient) ListUsages ¶
func (client *RegistriesClient) ListUsages(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientListUsagesOptions) (RegistriesClientListUsagesResponse, error)
ListUsages - Gets the quota usages for the specified container registry. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- options - RegistriesClientListUsagesOptions contains the optional parameters for the RegistriesClient.ListUsages method.
func (*RegistriesClient) NewListByResourceGroupPager ¶
func (client *RegistriesClient) NewListByResourceGroupPager(resourceGroupName string, options *RegistriesClientListByResourceGroupOptions) *runtime.Pager[RegistriesClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all the container registries under the specified resource group.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- options - RegistriesClientListByResourceGroupOptions contains the optional parameters for the RegistriesClient.NewListByResourceGroupPager method.
func (*RegistriesClient) NewListPager ¶
func (client *RegistriesClient) NewListPager(options *RegistriesClientListOptions) *runtime.Pager[RegistriesClientListResponse]
NewListPager - Lists all the container registries under the specified subscription.
Generated from API version 2019-05-01
- options - RegistriesClientListOptions contains the optional parameters for the RegistriesClient.NewListPager method.
func (*RegistriesClient) RegenerateCredential ¶
func (client *RegistriesClient) RegenerateCredential(ctx context.Context, resourceGroupName string, registryName string, regenerateCredentialParameters RegenerateCredentialParameters, options *RegistriesClientRegenerateCredentialOptions) (RegistriesClientRegenerateCredentialResponse, error)
RegenerateCredential - Regenerates one of the login credentials for the specified container registry. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- regenerateCredentialParameters - Specifies name of the password which should be regenerated -- password or password2.
- options - RegistriesClientRegenerateCredentialOptions contains the optional parameters for the RegistriesClient.RegenerateCredential method.
type RegistriesClientBeginCreateOptions ¶
type RegistriesClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RegistriesClientBeginCreateOptions contains the optional parameters for the RegistriesClient.BeginCreate method.
type RegistriesClientBeginDeleteOptions ¶
type RegistriesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RegistriesClientBeginDeleteOptions contains the optional parameters for the RegistriesClient.BeginDelete method.
type RegistriesClientBeginImportImageOptions ¶
type RegistriesClientBeginImportImageOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RegistriesClientBeginImportImageOptions contains the optional parameters for the RegistriesClient.BeginImportImage method.
type RegistriesClientBeginUpdateOptions ¶
type RegistriesClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
RegistriesClientBeginUpdateOptions contains the optional parameters for the RegistriesClient.BeginUpdate method.
type RegistriesClientCheckNameAvailabilityOptions ¶
type RegistriesClientCheckNameAvailabilityOptions struct { }
RegistriesClientCheckNameAvailabilityOptions contains the optional parameters for the RegistriesClient.CheckNameAvailability method.
type RegistriesClientCheckNameAvailabilityResponse ¶
type RegistriesClientCheckNameAvailabilityResponse struct {
RegistryNameStatus
}
RegistriesClientCheckNameAvailabilityResponse contains the response from method RegistriesClient.CheckNameAvailability.
type RegistriesClientCreateResponse ¶
type RegistriesClientCreateResponse struct {
Registry
}
RegistriesClientCreateResponse contains the response from method RegistriesClient.BeginCreate.
type RegistriesClientDeleteResponse ¶
type RegistriesClientDeleteResponse struct { }
RegistriesClientDeleteResponse contains the response from method RegistriesClient.BeginDelete.
type RegistriesClientGetOptions ¶
type RegistriesClientGetOptions struct { }
RegistriesClientGetOptions contains the optional parameters for the RegistriesClient.Get method.
type RegistriesClientGetResponse ¶
type RegistriesClientGetResponse struct {
Registry
}
RegistriesClientGetResponse contains the response from method RegistriesClient.Get.
type RegistriesClientImportImageResponse ¶
type RegistriesClientImportImageResponse struct { }
RegistriesClientImportImageResponse contains the response from method RegistriesClient.BeginImportImage.
type RegistriesClientListByResourceGroupOptions ¶
type RegistriesClientListByResourceGroupOptions struct { }
RegistriesClientListByResourceGroupOptions contains the optional parameters for the RegistriesClient.NewListByResourceGroupPager method.
type RegistriesClientListByResourceGroupResponse ¶
type RegistriesClientListByResourceGroupResponse struct {
RegistryListResult
}
RegistriesClientListByResourceGroupResponse contains the response from method RegistriesClient.NewListByResourceGroupPager.
type RegistriesClientListCredentialsOptions ¶
type RegistriesClientListCredentialsOptions struct { }
RegistriesClientListCredentialsOptions contains the optional parameters for the RegistriesClient.ListCredentials method.
type RegistriesClientListCredentialsResponse ¶
type RegistriesClientListCredentialsResponse struct {
RegistryListCredentialsResult
}
RegistriesClientListCredentialsResponse contains the response from method RegistriesClient.ListCredentials.
type RegistriesClientListOptions ¶
type RegistriesClientListOptions struct { }
RegistriesClientListOptions contains the optional parameters for the RegistriesClient.NewListPager method.
type RegistriesClientListResponse ¶
type RegistriesClientListResponse struct {
RegistryListResult
}
RegistriesClientListResponse contains the response from method RegistriesClient.NewListPager.
type RegistriesClientListUsagesOptions ¶
type RegistriesClientListUsagesOptions struct { }
RegistriesClientListUsagesOptions contains the optional parameters for the RegistriesClient.ListUsages method.
type RegistriesClientListUsagesResponse ¶
type RegistriesClientListUsagesResponse struct {
RegistryUsageListResult
}
RegistriesClientListUsagesResponse contains the response from method RegistriesClient.ListUsages.
type RegistriesClientRegenerateCredentialOptions ¶
type RegistriesClientRegenerateCredentialOptions struct { }
RegistriesClientRegenerateCredentialOptions contains the optional parameters for the RegistriesClient.RegenerateCredential method.
type RegistriesClientRegenerateCredentialResponse ¶
type RegistriesClientRegenerateCredentialResponse struct {
RegistryListCredentialsResult
}
RegistriesClientRegenerateCredentialResponse contains the response from method RegistriesClient.RegenerateCredential.
type RegistriesClientUpdateResponse ¶
type RegistriesClientUpdateResponse struct {
Registry
}
RegistriesClientUpdateResponse contains the response from method RegistriesClient.BeginUpdate.
type Registry ¶
type Registry struct { // REQUIRED; The location of the resource. This cannot be changed after the resource is created. Location *string `json:"location,omitempty"` // REQUIRED; The SKU of the container registry. SKU *SKU `json:"sku,omitempty"` // The properties of the container registry. Properties *RegistryProperties `json:"properties,omitempty"` // The tags of the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; The resource ID. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
Registry - An object that represents a container registry.
func (Registry) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Registry.
func (*Registry) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Registry.
type RegistryListCredentialsResult ¶
type RegistryListCredentialsResult struct { // The list of passwords for a container registry. Passwords []*RegistryPassword `json:"passwords,omitempty"` // The username for a container registry. Username *string `json:"username,omitempty"` }
RegistryListCredentialsResult - The response from the ListCredentials operation.
func (RegistryListCredentialsResult) MarshalJSON ¶
func (r RegistryListCredentialsResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegistryListCredentialsResult.
func (*RegistryListCredentialsResult) UnmarshalJSON ¶
func (r *RegistryListCredentialsResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegistryListCredentialsResult.
type RegistryListResult ¶
type RegistryListResult struct { // The URI that can be used to request the next list of container registries. NextLink *string `json:"nextLink,omitempty"` // The list of container registries. Since this list may be incomplete, the nextLink field should be used to request the next // list of container registries. Value []*Registry `json:"value,omitempty"` }
RegistryListResult - The result of a request to list container registries.
func (RegistryListResult) MarshalJSON ¶
func (r RegistryListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegistryListResult.
func (*RegistryListResult) UnmarshalJSON ¶
func (r *RegistryListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegistryListResult.
type RegistryNameCheckRequest ¶
type RegistryNameCheckRequest struct { // REQUIRED; The name of the container registry. Name *string `json:"name,omitempty"` // CONSTANT; The resource type of the container registry. This field must be set to 'Microsoft.ContainerRegistry/registries'. // Field has constant value "Microsoft.ContainerRegistry/registries", any specified value is ignored. Type *string `json:"type,omitempty"` }
RegistryNameCheckRequest - A request to check whether a container registry name is available.
func (RegistryNameCheckRequest) MarshalJSON ¶
func (r RegistryNameCheckRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegistryNameCheckRequest.
func (*RegistryNameCheckRequest) UnmarshalJSON ¶
func (r *RegistryNameCheckRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegistryNameCheckRequest.
type RegistryNameStatus ¶
type RegistryNameStatus struct { // If any, the error message that provides more detail for the reason that the name is not available. Message *string `json:"message,omitempty"` // The value that indicates whether the name is available. NameAvailable *bool `json:"nameAvailable,omitempty"` // If any, the reason that the name is not available. Reason *string `json:"reason,omitempty"` }
RegistryNameStatus - The result of a request to check the availability of a container registry name.
func (RegistryNameStatus) MarshalJSON ¶
func (r RegistryNameStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegistryNameStatus.
func (*RegistryNameStatus) UnmarshalJSON ¶
func (r *RegistryNameStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegistryNameStatus.
type RegistryPassword ¶
type RegistryPassword struct { // The password name. Name *PasswordName `json:"name,omitempty"` // The password value. Value *string `json:"value,omitempty"` }
RegistryPassword - The login password for the container registry.
func (RegistryPassword) MarshalJSON ¶
func (r RegistryPassword) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegistryPassword.
func (*RegistryPassword) UnmarshalJSON ¶
func (r *RegistryPassword) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegistryPassword.
type RegistryProperties ¶
type RegistryProperties struct { // The value that indicates whether the admin user is enabled. AdminUserEnabled *bool `json:"adminUserEnabled,omitempty"` // The network rule set for a container registry. NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"` // The policies for a container registry. Policies *Policies `json:"policies,omitempty"` // The properties of the storage account for the container registry. Only applicable to Classic SKU. StorageAccount *StorageAccountProperties `json:"storageAccount,omitempty"` // READ-ONLY; The creation date of the container registry in ISO8601 format. CreationDate *time.Time `json:"creationDate,omitempty" azure:"ro"` // READ-ONLY; The URL that can be used to log into the container registry. LoginServer *string `json:"loginServer,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the container registry at the time the operation was called. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The status of the container registry at the time the operation was called. Status *Status `json:"status,omitempty" azure:"ro"` }
RegistryProperties - The properties of a container registry.
func (RegistryProperties) MarshalJSON ¶
func (r RegistryProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegistryProperties.
func (*RegistryProperties) UnmarshalJSON ¶
func (r *RegistryProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegistryProperties.
type RegistryPropertiesUpdateParameters ¶
type RegistryPropertiesUpdateParameters struct { // The value that indicates whether the admin user is enabled. AdminUserEnabled *bool `json:"adminUserEnabled,omitempty"` // The network rule set for a container registry. NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"` // The policies for a container registry. Policies *Policies `json:"policies,omitempty"` }
RegistryPropertiesUpdateParameters - The parameters for updating the properties of a container registry.
func (RegistryPropertiesUpdateParameters) MarshalJSON ¶
func (r RegistryPropertiesUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegistryPropertiesUpdateParameters.
func (*RegistryPropertiesUpdateParameters) UnmarshalJSON ¶
func (r *RegistryPropertiesUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegistryPropertiesUpdateParameters.
type RegistryUpdateParameters ¶
type RegistryUpdateParameters struct { // The properties that the container registry will be updated with. Properties *RegistryPropertiesUpdateParameters `json:"properties,omitempty"` // The SKU of the container registry. SKU *SKU `json:"sku,omitempty"` // The tags for the container registry. Tags map[string]*string `json:"tags,omitempty"` }
RegistryUpdateParameters - The parameters for updating a container registry.
func (RegistryUpdateParameters) MarshalJSON ¶
func (r RegistryUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegistryUpdateParameters.
func (*RegistryUpdateParameters) UnmarshalJSON ¶
func (r *RegistryUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegistryUpdateParameters.
type RegistryUsage ¶
type RegistryUsage struct { // The current value of the usage. CurrentValue *int64 `json:"currentValue,omitempty"` // The limit of the usage. Limit *int64 `json:"limit,omitempty"` // The name of the usage. Name *string `json:"name,omitempty"` // The unit of measurement. Unit *RegistryUsageUnit `json:"unit,omitempty"` }
RegistryUsage - The quota usage for a container registry.
func (RegistryUsage) MarshalJSON ¶
func (r RegistryUsage) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegistryUsage.
func (*RegistryUsage) UnmarshalJSON ¶
func (r *RegistryUsage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegistryUsage.
type RegistryUsageListResult ¶
type RegistryUsageListResult struct { // The list of container registry quota usages. Value []*RegistryUsage `json:"value,omitempty"` }
RegistryUsageListResult - The result of a request to get container registry quota usages.
func (RegistryUsageListResult) MarshalJSON ¶
func (r RegistryUsageListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegistryUsageListResult.
func (*RegistryUsageListResult) UnmarshalJSON ¶
func (r *RegistryUsageListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegistryUsageListResult.
type RegistryUsageUnit ¶
type RegistryUsageUnit string
RegistryUsageUnit - The unit of measurement.
const ( RegistryUsageUnitBytes RegistryUsageUnit = "Bytes" RegistryUsageUnitCount RegistryUsageUnit = "Count" )
func PossibleRegistryUsageUnitValues ¶
func PossibleRegistryUsageUnitValues() []RegistryUsageUnit
PossibleRegistryUsageUnitValues returns the possible values for the RegistryUsageUnit const type.
type Replication ¶
type Replication struct { // REQUIRED; The location of the resource. This cannot be changed after the resource is created. Location *string `json:"location,omitempty"` // The properties of the replication. Properties *ReplicationProperties `json:"properties,omitempty"` // The tags of the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; The resource ID. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
Replication - An object that represents a replication for a container registry.
func (Replication) MarshalJSON ¶
func (r Replication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Replication.
func (*Replication) UnmarshalJSON ¶
func (r *Replication) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Replication.
type ReplicationListResult ¶
type ReplicationListResult struct { // The URI that can be used to request the next list of replications. NextLink *string `json:"nextLink,omitempty"` // The list of replications. Since this list may be incomplete, the nextLink field should be used to request the next list // of replications. Value []*Replication `json:"value,omitempty"` }
ReplicationListResult - The result of a request to list replications for a container registry.
func (ReplicationListResult) MarshalJSON ¶
func (r ReplicationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicationListResult.
func (*ReplicationListResult) UnmarshalJSON ¶
func (r *ReplicationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationListResult.
type ReplicationProperties ¶
type ReplicationProperties struct { // READ-ONLY; The provisioning state of the replication at the time the operation was called. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The status of the replication at the time the operation was called. Status *Status `json:"status,omitempty" azure:"ro"` }
ReplicationProperties - The properties of a replication.
func (ReplicationProperties) MarshalJSON ¶
func (r ReplicationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicationProperties.
func (*ReplicationProperties) UnmarshalJSON ¶
func (r *ReplicationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProperties.
type ReplicationUpdateParameters ¶
type ReplicationUpdateParameters struct { // The tags for the replication. Tags map[string]*string `json:"tags,omitempty"` }
ReplicationUpdateParameters - The parameters for updating a replication.
func (ReplicationUpdateParameters) MarshalJSON ¶
func (r ReplicationUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicationUpdateParameters.
func (*ReplicationUpdateParameters) UnmarshalJSON ¶
func (r *ReplicationUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationUpdateParameters.
type ReplicationsClient ¶
type ReplicationsClient struct {
// contains filtered or unexported fields
}
ReplicationsClient contains the methods for the Replications group. Don't use this type directly, use NewReplicationsClient() instead.
func NewReplicationsClient ¶
func NewReplicationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationsClient, error)
NewReplicationsClient creates a new instance of ReplicationsClient with the specified values.
- subscriptionID - The Microsoft Azure subscription ID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ReplicationsClient) BeginCreate ¶
func (client *ReplicationsClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replication Replication, options *ReplicationsClientBeginCreateOptions) (*runtime.Poller[ReplicationsClientCreateResponse], error)
BeginCreate - Creates a replication for a container registry with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- replicationName - The name of the replication.
- replication - The parameters for creating a replication.
- options - ReplicationsClientBeginCreateOptions contains the optional parameters for the ReplicationsClient.BeginCreate method.
func (*ReplicationsClient) BeginDelete ¶
func (client *ReplicationsClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, replicationName string, options *ReplicationsClientBeginDeleteOptions) (*runtime.Poller[ReplicationsClientDeleteResponse], error)
BeginDelete - Deletes a replication from a container registry. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- replicationName - The name of the replication.
- options - ReplicationsClientBeginDeleteOptions contains the optional parameters for the ReplicationsClient.BeginDelete method.
func (*ReplicationsClient) BeginUpdate ¶
func (client *ReplicationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters, options *ReplicationsClientBeginUpdateOptions) (*runtime.Poller[ReplicationsClientUpdateResponse], error)
BeginUpdate - Updates a replication for a container registry with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- replicationName - The name of the replication.
- replicationUpdateParameters - The parameters for updating a replication.
- options - ReplicationsClientBeginUpdateOptions contains the optional parameters for the ReplicationsClient.BeginUpdate method.
func (*ReplicationsClient) Get ¶
func (client *ReplicationsClient) Get(ctx context.Context, resourceGroupName string, registryName string, replicationName string, options *ReplicationsClientGetOptions) (ReplicationsClientGetResponse, error)
Get - Gets the properties of the specified replication. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- replicationName - The name of the replication.
- options - ReplicationsClientGetOptions contains the optional parameters for the ReplicationsClient.Get method.
func (*ReplicationsClient) NewListPager ¶
func (client *ReplicationsClient) NewListPager(resourceGroupName string, registryName string, options *ReplicationsClientListOptions) *runtime.Pager[ReplicationsClientListResponse]
NewListPager - Lists all the replications for the specified container registry.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- options - ReplicationsClientListOptions contains the optional parameters for the ReplicationsClient.NewListPager method.
type ReplicationsClientBeginCreateOptions ¶
type ReplicationsClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ReplicationsClientBeginCreateOptions contains the optional parameters for the ReplicationsClient.BeginCreate method.
type ReplicationsClientBeginDeleteOptions ¶
type ReplicationsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ReplicationsClientBeginDeleteOptions contains the optional parameters for the ReplicationsClient.BeginDelete method.
type ReplicationsClientBeginUpdateOptions ¶
type ReplicationsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ReplicationsClientBeginUpdateOptions contains the optional parameters for the ReplicationsClient.BeginUpdate method.
type ReplicationsClientCreateResponse ¶
type ReplicationsClientCreateResponse struct {
Replication
}
ReplicationsClientCreateResponse contains the response from method ReplicationsClient.BeginCreate.
type ReplicationsClientDeleteResponse ¶
type ReplicationsClientDeleteResponse struct { }
ReplicationsClientDeleteResponse contains the response from method ReplicationsClient.BeginDelete.
type ReplicationsClientGetOptions ¶
type ReplicationsClientGetOptions struct { }
ReplicationsClientGetOptions contains the optional parameters for the ReplicationsClient.Get method.
type ReplicationsClientGetResponse ¶
type ReplicationsClientGetResponse struct {
Replication
}
ReplicationsClientGetResponse contains the response from method ReplicationsClient.Get.
type ReplicationsClientListOptions ¶
type ReplicationsClientListOptions struct { }
ReplicationsClientListOptions contains the optional parameters for the ReplicationsClient.NewListPager method.
type ReplicationsClientListResponse ¶
type ReplicationsClientListResponse struct {
ReplicationListResult
}
ReplicationsClientListResponse contains the response from method ReplicationsClient.NewListPager.
type ReplicationsClientUpdateResponse ¶
type ReplicationsClientUpdateResponse struct {
Replication
}
ReplicationsClientUpdateResponse contains the response from method ReplicationsClient.BeginUpdate.
type Request ¶
type Request struct { // The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the // standard http request. Addr *string `json:"addr,omitempty"` // The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests. Host *string `json:"host,omitempty"` // The ID of the request that initiated the event. ID *string `json:"id,omitempty"` // The request method that generated the event. Method *string `json:"method,omitempty"` // The user agent header of the request. Useragent *string `json:"useragent,omitempty"` }
Request - The request that generated the event.
func (Request) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Request.
func (*Request) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Request.
type Resource ¶
type Resource struct { // REQUIRED; The location of the resource. This cannot be changed after the resource is created. Location *string `json:"location,omitempty"` // The tags of the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; The resource ID. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
Resource - An Azure resource.
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
type RetentionPolicy ¶
type RetentionPolicy struct { // The number of days to retain an untagged manifest after which it gets purged. Days *int32 `json:"days,omitempty"` // The value that indicates whether the policy is enabled or not. Status *PolicyStatus `json:"status,omitempty"` // READ-ONLY; The timestamp when the policy was last updated. LastUpdatedTime *time.Time `json:"lastUpdatedTime,omitempty" azure:"ro"` }
RetentionPolicy - The retention policy for a container registry.
func (RetentionPolicy) MarshalJSON ¶
func (r RetentionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RetentionPolicy.
func (*RetentionPolicy) UnmarshalJSON ¶
func (r *RetentionPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RetentionPolicy.
type SKU ¶
type SKU struct { // REQUIRED; The SKU name of the container registry. Required for registry creation. Name *SKUName `json:"name,omitempty"` // READ-ONLY; The SKU tier based on the SKU name. Tier *SKUTier `json:"tier,omitempty" azure:"ro"` }
SKU - The SKU of a container registry.
func (SKU) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type SKU.
func (*SKU) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type SKU.
type SKUName ¶
type SKUName string
SKUName - The SKU name of the container registry. Required for registry creation.
func PossibleSKUNameValues ¶
func PossibleSKUNameValues() []SKUName
PossibleSKUNameValues returns the possible values for the SKUName const type.
type SKUTier ¶
type SKUTier string
SKUTier - The SKU tier based on the SKU name.
func PossibleSKUTierValues ¶
func PossibleSKUTierValues() []SKUTier
PossibleSKUTierValues returns the possible values for the SKUTier const type.
type Source ¶
type Source struct { // The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() // along with the running port. Addr *string `json:"addr,omitempty"` // The running instance of an application. Changes after each restart. InstanceID *string `json:"instanceID,omitempty"` }
Source - The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
func (Source) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Source.
func (*Source) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Source.
type Status ¶
type Status struct { // READ-ONLY; The short label for the status. DisplayStatus *string `json:"displayStatus,omitempty" azure:"ro"` // READ-ONLY; The detailed message for the status, including alerts and error messages. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The timestamp when the status was changed to the current value. Timestamp *time.Time `json:"timestamp,omitempty" azure:"ro"` }
Status - The status of an Azure resource at the time the operation was called.
func (Status) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Status.
func (*Status) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Status.
type StorageAccountProperties ¶
type StorageAccountProperties struct { // REQUIRED; The resource ID of the storage account. ID *string `json:"id,omitempty"` }
StorageAccountProperties - The properties of a storage account for a container registry. Only applicable to Classic SKU.
func (StorageAccountProperties) MarshalJSON ¶
func (s StorageAccountProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccountProperties.
func (*StorageAccountProperties) UnmarshalJSON ¶
func (s *StorageAccountProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccountProperties.
type Target ¶
type Target struct { // The digest of the content, as defined by the Registry V2 HTTP API Specification. Digest *string `json:"digest,omitempty"` // The number of bytes of the content. Same as Size field. Length *int64 `json:"length,omitempty"` // The MIME type of the referenced object. MediaType *string `json:"mediaType,omitempty"` // The name of the artifact. Name *string `json:"name,omitempty"` // The repository name. Repository *string `json:"repository,omitempty"` // The number of bytes of the content. Same as Length field. Size *int64 `json:"size,omitempty"` // The tag name. Tag *string `json:"tag,omitempty"` // The direct URL to the content. URL *string `json:"url,omitempty"` // The version of the artifact. Version *string `json:"version,omitempty"` }
Target - The target of the event.
func (Target) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Target.
func (*Target) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Target.
type TrustPolicy ¶
type TrustPolicy struct { // The value that indicates whether the policy is enabled or not. Status *PolicyStatus `json:"status,omitempty"` // The type of trust policy. Type *TrustPolicyType `json:"type,omitempty"` }
TrustPolicy - The content trust policy for a container registry.
func (TrustPolicy) MarshalJSON ¶
func (t TrustPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrustPolicy.
func (*TrustPolicy) UnmarshalJSON ¶
func (t *TrustPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrustPolicy.
type TrustPolicyType ¶
type TrustPolicyType string
TrustPolicyType - The type of trust policy.
const (
TrustPolicyTypeNotary TrustPolicyType = "Notary"
)
func PossibleTrustPolicyTypeValues ¶
func PossibleTrustPolicyTypeValues() []TrustPolicyType
PossibleTrustPolicyTypeValues returns the possible values for the TrustPolicyType const type.
type VirtualNetworkRule ¶
type VirtualNetworkRule struct { // REQUIRED; Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. VirtualNetworkResourceID *string `json:"id,omitempty"` // The action of virtual network rule. Action *Action `json:"action,omitempty"` }
VirtualNetworkRule - Virtual network rule.
func (VirtualNetworkRule) MarshalJSON ¶
func (v VirtualNetworkRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkRule.
func (*VirtualNetworkRule) UnmarshalJSON ¶
func (v *VirtualNetworkRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkRule.
type Webhook ¶
type Webhook struct { // REQUIRED; The location of the resource. This cannot be changed after the resource is created. Location *string `json:"location,omitempty"` // The properties of the webhook. Properties *WebhookProperties `json:"properties,omitempty"` // The tags of the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; The resource ID. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
Webhook - An object that represents a webhook for a container registry.
func (Webhook) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Webhook.
func (*Webhook) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Webhook.
type WebhookAction ¶
type WebhookAction string
const ( WebhookActionChartDelete WebhookAction = "chart_delete" WebhookActionChartPush WebhookAction = "chart_push" WebhookActionDelete WebhookAction = "delete" WebhookActionPush WebhookAction = "push" WebhookActionQuarantine WebhookAction = "quarantine" )
func PossibleWebhookActionValues ¶
func PossibleWebhookActionValues() []WebhookAction
PossibleWebhookActionValues returns the possible values for the WebhookAction const type.
type WebhookCreateParameters ¶
type WebhookCreateParameters struct { // REQUIRED; The location of the webhook. This cannot be changed after the resource is created. Location *string `json:"location,omitempty"` // The properties that the webhook will be created with. Properties *WebhookPropertiesCreateParameters `json:"properties,omitempty"` // The tags for the webhook. Tags map[string]*string `json:"tags,omitempty"` }
WebhookCreateParameters - The parameters for creating a webhook.
func (WebhookCreateParameters) MarshalJSON ¶
func (w WebhookCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebhookCreateParameters.
func (*WebhookCreateParameters) UnmarshalJSON ¶
func (w *WebhookCreateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebhookCreateParameters.
type WebhookListResult ¶
type WebhookListResult struct { // The URI that can be used to request the next list of webhooks. NextLink *string `json:"nextLink,omitempty"` // The list of webhooks. Since this list may be incomplete, the nextLink field should be used to request the next list of // webhooks. Value []*Webhook `json:"value,omitempty"` }
WebhookListResult - The result of a request to list webhooks for a container registry.
func (WebhookListResult) MarshalJSON ¶
func (w WebhookListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebhookListResult.
func (*WebhookListResult) UnmarshalJSON ¶
func (w *WebhookListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebhookListResult.
type WebhookProperties ¶
type WebhookProperties struct { // REQUIRED; The list of actions that trigger the webhook to post notifications. Actions []*WebhookAction `json:"actions,omitempty"` // The scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository // 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to // 'foo:latest'. Empty means all events. Scope *string `json:"scope,omitempty"` // The status of the webhook at the time the operation was called. Status *WebhookStatus `json:"status,omitempty"` // READ-ONLY; The provisioning state of the webhook at the time the operation was called. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
WebhookProperties - The properties of a webhook.
func (WebhookProperties) MarshalJSON ¶
func (w WebhookProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebhookProperties.
func (*WebhookProperties) UnmarshalJSON ¶
func (w *WebhookProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebhookProperties.
type WebhookPropertiesCreateParameters ¶
type WebhookPropertiesCreateParameters struct { // REQUIRED; The list of actions that trigger the webhook to post notifications. Actions []*WebhookAction `json:"actions,omitempty"` // REQUIRED; The service URI for the webhook to post notifications. ServiceURI *string `json:"serviceUri,omitempty"` // Custom headers that will be added to the webhook notifications. CustomHeaders map[string]*string `json:"customHeaders,omitempty"` // The scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository // 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to // 'foo:latest'. Empty means all events. Scope *string `json:"scope,omitempty"` // The status of the webhook at the time the operation was called. Status *WebhookStatus `json:"status,omitempty"` }
WebhookPropertiesCreateParameters - The parameters for creating the properties of a webhook.
func (WebhookPropertiesCreateParameters) MarshalJSON ¶
func (w WebhookPropertiesCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebhookPropertiesCreateParameters.
func (*WebhookPropertiesCreateParameters) UnmarshalJSON ¶
func (w *WebhookPropertiesCreateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebhookPropertiesCreateParameters.
type WebhookPropertiesUpdateParameters ¶
type WebhookPropertiesUpdateParameters struct { // The list of actions that trigger the webhook to post notifications. Actions []*WebhookAction `json:"actions,omitempty"` // Custom headers that will be added to the webhook notifications. CustomHeaders map[string]*string `json:"customHeaders,omitempty"` // The scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository // 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to // 'foo:latest'. Empty means all events. Scope *string `json:"scope,omitempty"` // The service URI for the webhook to post notifications. ServiceURI *string `json:"serviceUri,omitempty"` // The status of the webhook at the time the operation was called. Status *WebhookStatus `json:"status,omitempty"` }
WebhookPropertiesUpdateParameters - The parameters for updating the properties of a webhook.
func (WebhookPropertiesUpdateParameters) MarshalJSON ¶
func (w WebhookPropertiesUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebhookPropertiesUpdateParameters.
func (*WebhookPropertiesUpdateParameters) UnmarshalJSON ¶
func (w *WebhookPropertiesUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebhookPropertiesUpdateParameters.
type WebhookStatus ¶
type WebhookStatus string
WebhookStatus - The status of the webhook at the time the operation was called.
const ( WebhookStatusDisabled WebhookStatus = "disabled" WebhookStatusEnabled WebhookStatus = "enabled" )
func PossibleWebhookStatusValues ¶
func PossibleWebhookStatusValues() []WebhookStatus
PossibleWebhookStatusValues returns the possible values for the WebhookStatus const type.
type WebhookUpdateParameters ¶
type WebhookUpdateParameters struct { // The properties that the webhook will be updated with. Properties *WebhookPropertiesUpdateParameters `json:"properties,omitempty"` // The tags for the webhook. Tags map[string]*string `json:"tags,omitempty"` }
WebhookUpdateParameters - The parameters for updating a webhook.
func (WebhookUpdateParameters) MarshalJSON ¶
func (w WebhookUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WebhookUpdateParameters.
func (*WebhookUpdateParameters) UnmarshalJSON ¶
func (w *WebhookUpdateParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WebhookUpdateParameters.
type WebhooksClient ¶
type WebhooksClient struct {
// contains filtered or unexported fields
}
WebhooksClient contains the methods for the Webhooks group. Don't use this type directly, use NewWebhooksClient() instead.
func NewWebhooksClient ¶
func NewWebhooksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WebhooksClient, error)
NewWebhooksClient creates a new instance of WebhooksClient with the specified values.
- subscriptionID - The Microsoft Azure subscription ID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*WebhooksClient) BeginCreate ¶
func (client *WebhooksClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters, options *WebhooksClientBeginCreateOptions) (*runtime.Poller[WebhooksClientCreateResponse], error)
BeginCreate - Creates a webhook for a container registry with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- webhookName - The name of the webhook.
- webhookCreateParameters - The parameters for creating a webhook.
- options - WebhooksClientBeginCreateOptions contains the optional parameters for the WebhooksClient.BeginCreate method.
func (*WebhooksClient) BeginDelete ¶
func (client *WebhooksClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientBeginDeleteOptions) (*runtime.Poller[WebhooksClientDeleteResponse], error)
BeginDelete - Deletes a webhook from a container registry. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- webhookName - The name of the webhook.
- options - WebhooksClientBeginDeleteOptions contains the optional parameters for the WebhooksClient.BeginDelete method.
func (*WebhooksClient) BeginUpdate ¶
func (client *WebhooksClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters, options *WebhooksClientBeginUpdateOptions) (*runtime.Poller[WebhooksClientUpdateResponse], error)
BeginUpdate - Updates a webhook with the specified parameters. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- webhookName - The name of the webhook.
- webhookUpdateParameters - The parameters for updating a webhook.
- options - WebhooksClientBeginUpdateOptions contains the optional parameters for the WebhooksClient.BeginUpdate method.
func (*WebhooksClient) Get ¶
func (client *WebhooksClient) Get(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientGetOptions) (WebhooksClientGetResponse, error)
Get - Gets the properties of the specified webhook. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- webhookName - The name of the webhook.
- options - WebhooksClientGetOptions contains the optional parameters for the WebhooksClient.Get method.
func (*WebhooksClient) GetCallbackConfig ¶
func (client *WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientGetCallbackConfigOptions) (WebhooksClientGetCallbackConfigResponse, error)
GetCallbackConfig - Gets the configuration of service URI and custom headers for the webhook. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- webhookName - The name of the webhook.
- options - WebhooksClientGetCallbackConfigOptions contains the optional parameters for the WebhooksClient.GetCallbackConfig method.
func (*WebhooksClient) NewListEventsPager ¶
func (client *WebhooksClient) NewListEventsPager(resourceGroupName string, registryName string, webhookName string, options *WebhooksClientListEventsOptions) *runtime.Pager[WebhooksClientListEventsResponse]
NewListEventsPager - Lists recent events for the specified webhook.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- webhookName - The name of the webhook.
- options - WebhooksClientListEventsOptions contains the optional parameters for the WebhooksClient.NewListEventsPager method.
func (*WebhooksClient) NewListPager ¶
func (client *WebhooksClient) NewListPager(resourceGroupName string, registryName string, options *WebhooksClientListOptions) *runtime.Pager[WebhooksClientListResponse]
NewListPager - Lists all the webhooks for the specified container registry.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- options - WebhooksClientListOptions contains the optional parameters for the WebhooksClient.NewListPager method.
func (*WebhooksClient) Ping ¶
func (client *WebhooksClient) Ping(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientPingOptions) (WebhooksClientPingResponse, error)
Ping - Triggers a ping event to be sent to the webhook. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-05-01
- resourceGroupName - The name of the resource group to which the container registry belongs.
- registryName - The name of the container registry.
- webhookName - The name of the webhook.
- options - WebhooksClientPingOptions contains the optional parameters for the WebhooksClient.Ping method.
type WebhooksClientBeginCreateOptions ¶
type WebhooksClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WebhooksClientBeginCreateOptions contains the optional parameters for the WebhooksClient.BeginCreate method.
type WebhooksClientBeginDeleteOptions ¶
type WebhooksClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WebhooksClientBeginDeleteOptions contains the optional parameters for the WebhooksClient.BeginDelete method.
type WebhooksClientBeginUpdateOptions ¶
type WebhooksClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
WebhooksClientBeginUpdateOptions contains the optional parameters for the WebhooksClient.BeginUpdate method.
type WebhooksClientCreateResponse ¶
type WebhooksClientCreateResponse struct {
Webhook
}
WebhooksClientCreateResponse contains the response from method WebhooksClient.BeginCreate.
type WebhooksClientDeleteResponse ¶
type WebhooksClientDeleteResponse struct { }
WebhooksClientDeleteResponse contains the response from method WebhooksClient.BeginDelete.
type WebhooksClientGetCallbackConfigOptions ¶
type WebhooksClientGetCallbackConfigOptions struct { }
WebhooksClientGetCallbackConfigOptions contains the optional parameters for the WebhooksClient.GetCallbackConfig method.
type WebhooksClientGetCallbackConfigResponse ¶
type WebhooksClientGetCallbackConfigResponse struct {
CallbackConfig
}
WebhooksClientGetCallbackConfigResponse contains the response from method WebhooksClient.GetCallbackConfig.
type WebhooksClientGetOptions ¶
type WebhooksClientGetOptions struct { }
WebhooksClientGetOptions contains the optional parameters for the WebhooksClient.Get method.
type WebhooksClientGetResponse ¶
type WebhooksClientGetResponse struct {
Webhook
}
WebhooksClientGetResponse contains the response from method WebhooksClient.Get.
type WebhooksClientListEventsOptions ¶
type WebhooksClientListEventsOptions struct { }
WebhooksClientListEventsOptions contains the optional parameters for the WebhooksClient.NewListEventsPager method.
type WebhooksClientListEventsResponse ¶
type WebhooksClientListEventsResponse struct {
EventListResult
}
WebhooksClientListEventsResponse contains the response from method WebhooksClient.NewListEventsPager.
type WebhooksClientListOptions ¶
type WebhooksClientListOptions struct { }
WebhooksClientListOptions contains the optional parameters for the WebhooksClient.NewListPager method.
type WebhooksClientListResponse ¶
type WebhooksClientListResponse struct {
WebhookListResult
}
WebhooksClientListResponse contains the response from method WebhooksClient.NewListPager.
type WebhooksClientPingOptions ¶
type WebhooksClientPingOptions struct { }
WebhooksClientPingOptions contains the optional parameters for the WebhooksClient.Ping method.
type WebhooksClientPingResponse ¶
type WebhooksClientPingResponse struct {
EventInfo
}
WebhooksClientPingResponse contains the response from method WebhooksClient.Ping.
type WebhooksClientUpdateResponse ¶
type WebhooksClientUpdateResponse struct {
Webhook
}
WebhooksClientUpdateResponse contains the response from method WebhooksClient.BeginUpdate.