Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForWebhookAction() []string
- func PossibleValuesForWebhookStatus() []string
- func ValidateRegistryID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWebHookID(input interface{}, key string) (warnings []string, errors []error)
- type Actor
- type CallbackConfig
- type CreateOperationResponse
- type DeleteOperationResponse
- type Event
- type EventContent
- type EventInfo
- type EventOperationPredicate
- type EventRequestMessage
- type EventResponseMessage
- type GetCallbackConfigOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListEventsCompleteResult
- type ListEventsOperationResponse
- type ListOperationResponse
- type PingOperationResponse
- type ProvisioningState
- type RegistryId
- type Request
- type Source
- type Target
- type UpdateOperationResponse
- type WebHookId
- type WebHooksClient
- func (c WebHooksClient) Create(ctx context.Context, id WebHookId, input WebhookCreateParameters) (result CreateOperationResponse, err error)
- func (c WebHooksClient) CreateThenPoll(ctx context.Context, id WebHookId, input WebhookCreateParameters) error
- func (c WebHooksClient) Delete(ctx context.Context, id WebHookId) (result DeleteOperationResponse, err error)
- func (c WebHooksClient) DeleteThenPoll(ctx context.Context, id WebHookId) error
- func (c WebHooksClient) Get(ctx context.Context, id WebHookId) (result GetOperationResponse, err error)
- func (c WebHooksClient) GetCallbackConfig(ctx context.Context, id WebHookId) (result GetCallbackConfigOperationResponse, err error)
- func (c WebHooksClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error)
- func (c WebHooksClient) ListComplete(ctx context.Context, id RegistryId) (ListCompleteResult, error)
- func (c WebHooksClient) ListCompleteMatchingPredicate(ctx context.Context, id RegistryId, predicate WebhookOperationPredicate) (result ListCompleteResult, err error)
- func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result ListEventsOperationResponse, err error)
- func (c WebHooksClient) ListEventsComplete(ctx context.Context, id WebHookId) (ListEventsCompleteResult, error)
- func (c WebHooksClient) ListEventsCompleteMatchingPredicate(ctx context.Context, id WebHookId, predicate EventOperationPredicate) (result ListEventsCompleteResult, err error)
- func (c WebHooksClient) Ping(ctx context.Context, id WebHookId) (result PingOperationResponse, err error)
- func (c WebHooksClient) Update(ctx context.Context, id WebHookId, input WebhookUpdateParameters) (result UpdateOperationResponse, err error)
- func (c WebHooksClient) UpdateThenPoll(ctx context.Context, id WebHookId, input WebhookUpdateParameters) error
- type Webhook
- type WebhookAction
- type WebhookCreateParameters
- type WebhookOperationPredicate
- type WebhookProperties
- type WebhookPropertiesCreateParameters
- type WebhookPropertiesUpdateParameters
- type WebhookStatus
- type WebhookUpdateParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForWebhookAction ¶
func PossibleValuesForWebhookAction() []string
func PossibleValuesForWebhookStatus ¶
func PossibleValuesForWebhookStatus() []string
func ValidateRegistryID ¶
ValidateRegistryID checks that 'input' can be parsed as a Registry ID
func ValidateWebHookID ¶
ValidateWebHookID checks that 'input' can be parsed as a Web Hook ID
Types ¶
type CallbackConfig ¶
type CreateOperationResponse ¶
type DeleteOperationResponse ¶
type Event ¶
type Event struct { EventRequestMessage *EventRequestMessage `json:"eventRequestMessage,omitempty"` EventResponseMessage *EventResponseMessage `json:"eventResponseMessage,omitempty"` Id *string `json:"id,omitempty"` }
type EventContent ¶
type EventContent struct { Action *string `json:"action,omitempty"` Actor *Actor `json:"actor,omitempty"` Id *string `json:"id,omitempty"` Request *Request `json:"request,omitempty"` Source *Source `json:"source,omitempty"` Target *Target `json:"target,omitempty"` Timestamp *string `json:"timestamp,omitempty"` }
func (*EventContent) GetTimestampAsTime ¶
func (o *EventContent) GetTimestampAsTime() (*time.Time, error)
func (*EventContent) SetTimestampAsTime ¶
func (o *EventContent) SetTimestampAsTime(input time.Time)
type EventOperationPredicate ¶
type EventOperationPredicate struct {
Id *string
}
func (EventOperationPredicate) Matches ¶
func (p EventOperationPredicate) Matches(input Event) bool
type EventRequestMessage ¶
type EventResponseMessage ¶
type GetCallbackConfigOperationResponse ¶
type GetCallbackConfigOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CallbackConfig }
type GetOperationResponse ¶
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Webhook
}
type ListEventsCompleteResult ¶
type ListEventsCompleteResult struct {
Items []Event
}
type ListOperationResponse ¶
type PingOperationResponse ¶
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type RegistryId ¶
RegistryId is a struct representing the Resource ID for a Registry
func NewRegistryID ¶
func NewRegistryID(subscriptionId string, resourceGroupName string, registryName string) RegistryId
NewRegistryID returns a new RegistryId struct
func ParseRegistryID ¶
func ParseRegistryID(input string) (*RegistryId, error)
ParseRegistryID parses 'input' into a RegistryId
func ParseRegistryIDInsensitively ¶
func ParseRegistryIDInsensitively(input string) (*RegistryId, error)
ParseRegistryIDInsensitively parses 'input' case-insensitively into a RegistryId note: this method should only be used for API response data and not user input
func (RegistryId) Segments ¶
func (id RegistryId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Registry ID
func (RegistryId) String ¶
func (id RegistryId) String() string
String returns a human-readable description of this Registry ID
type Target ¶
type Target struct { Digest *string `json:"digest,omitempty"` Length *int64 `json:"length,omitempty"` MediaType *string `json:"mediaType,omitempty"` Name *string `json:"name,omitempty"` Repository *string `json:"repository,omitempty"` Size *int64 `json:"size,omitempty"` Tag *string `json:"tag,omitempty"` Url *string `json:"url,omitempty"` Version *string `json:"version,omitempty"` }
type UpdateOperationResponse ¶
type WebHookId ¶
type WebHookId struct { SubscriptionId string ResourceGroupName string RegistryName string WebHookName string }
WebHookId is a struct representing the Resource ID for a Web Hook
func NewWebHookID ¶
func NewWebHookID(subscriptionId string, resourceGroupName string, registryName string, webHookName string) WebHookId
NewWebHookID returns a new WebHookId struct
func ParseWebHookID ¶
ParseWebHookID parses 'input' into a WebHookId
func ParseWebHookIDInsensitively ¶
ParseWebHookIDInsensitively parses 'input' case-insensitively into a WebHookId note: this method should only be used for API response data and not user input
func (WebHookId) Segments ¶
func (id WebHookId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Web Hook ID
type WebHooksClient ¶
type WebHooksClient struct {
Client *resourcemanager.Client
}
func NewWebHooksClientWithBaseURI ¶
func NewWebHooksClientWithBaseURI(api environments.Api) (*WebHooksClient, error)
func (WebHooksClient) Create ¶
func (c WebHooksClient) Create(ctx context.Context, id WebHookId, input WebhookCreateParameters) (result CreateOperationResponse, err error)
Create ...
func (WebHooksClient) CreateThenPoll ¶
func (c WebHooksClient) CreateThenPoll(ctx context.Context, id WebHookId, input WebhookCreateParameters) error
CreateThenPoll performs Create then polls until it's completed
func (WebHooksClient) Delete ¶
func (c WebHooksClient) Delete(ctx context.Context, id WebHookId) (result DeleteOperationResponse, err error)
Delete ...
func (WebHooksClient) DeleteThenPoll ¶
func (c WebHooksClient) DeleteThenPoll(ctx context.Context, id WebHookId) error
DeleteThenPoll performs Delete then polls until it's completed
func (WebHooksClient) Get ¶
func (c WebHooksClient) Get(ctx context.Context, id WebHookId) (result GetOperationResponse, err error)
Get ...
func (WebHooksClient) GetCallbackConfig ¶
func (c WebHooksClient) GetCallbackConfig(ctx context.Context, id WebHookId) (result GetCallbackConfigOperationResponse, err error)
GetCallbackConfig ...
func (WebHooksClient) List ¶
func (c WebHooksClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error)
List ...
func (WebHooksClient) ListComplete ¶
func (c WebHooksClient) ListComplete(ctx context.Context, id RegistryId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (WebHooksClient) ListCompleteMatchingPredicate ¶
func (c WebHooksClient) ListCompleteMatchingPredicate(ctx context.Context, id RegistryId, predicate WebhookOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (WebHooksClient) ListEvents ¶
func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result ListEventsOperationResponse, err error)
ListEvents ...
func (WebHooksClient) ListEventsComplete ¶
func (c WebHooksClient) ListEventsComplete(ctx context.Context, id WebHookId) (ListEventsCompleteResult, error)
ListEventsComplete retrieves all the results into a single object
func (WebHooksClient) ListEventsCompleteMatchingPredicate ¶
func (c WebHooksClient) ListEventsCompleteMatchingPredicate(ctx context.Context, id WebHookId, predicate EventOperationPredicate) (result ListEventsCompleteResult, err error)
ListEventsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (WebHooksClient) Ping ¶
func (c WebHooksClient) Ping(ctx context.Context, id WebHookId) (result PingOperationResponse, err error)
Ping ...
func (WebHooksClient) Update ¶
func (c WebHooksClient) Update(ctx context.Context, id WebHookId, input WebhookUpdateParameters) (result UpdateOperationResponse, err error)
Update ...
func (WebHooksClient) UpdateThenPoll ¶
func (c WebHooksClient) UpdateThenPoll(ctx context.Context, id WebHookId, input WebhookUpdateParameters) error
UpdateThenPoll performs Update then polls until it's completed
type Webhook ¶
type Webhook struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *WebhookProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type WebhookAction ¶
type WebhookAction string
const ( WebhookActionChartDelete WebhookAction = "chart_delete" WebhookActionChartPush WebhookAction = "chart_push" WebhookActionDelete WebhookAction = "delete" WebhookActionPush WebhookAction = "push" WebhookActionQuarantine WebhookAction = "quarantine" )
func (*WebhookAction) UnmarshalJSON ¶
func (s *WebhookAction) UnmarshalJSON(bytes []byte) error
type WebhookCreateParameters ¶
type WebhookCreateParameters struct { Location string `json:"location"` Properties *WebhookPropertiesCreateParameters `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type WebhookOperationPredicate ¶
func (WebhookOperationPredicate) Matches ¶
func (p WebhookOperationPredicate) Matches(input Webhook) bool
type WebhookProperties ¶
type WebhookProperties struct { Actions []WebhookAction `json:"actions"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Scope *string `json:"scope,omitempty"` Status *WebhookStatus `json:"status,omitempty"` }
type WebhookPropertiesCreateParameters ¶
type WebhookPropertiesCreateParameters struct { Actions []WebhookAction `json:"actions"` CustomHeaders *map[string]string `json:"customHeaders,omitempty"` Scope *string `json:"scope,omitempty"` ServiceUri string `json:"serviceUri"` Status *WebhookStatus `json:"status,omitempty"` }
type WebhookPropertiesUpdateParameters ¶
type WebhookPropertiesUpdateParameters struct { Actions *[]WebhookAction `json:"actions,omitempty"` CustomHeaders *map[string]string `json:"customHeaders,omitempty"` Scope *string `json:"scope,omitempty"` ServiceUri *string `json:"serviceUri,omitempty"` Status *WebhookStatus `json:"status,omitempty"` }
type WebhookStatus ¶
type WebhookStatus string
const ( WebhookStatusDisabled WebhookStatus = "disabled" WebhookStatusEnabled WebhookStatus = "enabled" )
func (*WebhookStatus) UnmarshalJSON ¶
func (s *WebhookStatus) UnmarshalJSON(bytes []byte) error
type WebhookUpdateParameters ¶
type WebhookUpdateParameters struct { Properties *WebhookPropertiesUpdateParameters `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_registry.go
- id_webhook.go
- method_create.go
- method_delete.go
- method_get.go
- method_getcallbackconfig.go
- method_list.go
- method_listevents.go
- method_ping.go
- method_update.go
- model_actor.go
- model_callbackconfig.go
- model_event.go
- model_eventcontent.go
- model_eventinfo.go
- model_eventrequestmessage.go
- model_eventresponsemessage.go
- model_request.go
- model_source.go
- model_target.go
- model_webhook.go
- model_webhookcreateparameters.go
- model_webhookproperties.go
- model_webhookpropertiescreateparameters.go
- model_webhookpropertiesupdateparameters.go
- model_webhookupdateparameters.go
- predicates.go
- version.go