...

Package containerregistry

import "github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2019-05-01/containerregistry"
Overview
Index
Subdirectories

Overview ▾

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package containerregistry implements the Azure ARM Containerregistry service API version .

Index ▾

Constants
func UserAgent() string
func Version() string
type Action
    func PossibleActionValues() []Action
type Actor
type AgentProperties
type Architecture
    func PossibleArchitectureValues() []Architecture
type Argument
type AuthInfo
type AuthInfoUpdateParameters
type BaseClient
    func New(subscriptionID string) BaseClient
    func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
type BaseImageDependency
type BaseImageDependencyType
    func PossibleBaseImageDependencyTypeValues() []BaseImageDependencyType
type BaseImageTrigger
type BaseImageTriggerType
    func PossibleBaseImageTriggerTypeValues() []BaseImageTriggerType
type BaseImageTriggerUpdateParameters
type BasicRunRequest
type BasicTaskStepProperties
type BasicTaskStepUpdateParameters
type CallbackConfig
    func (cc CallbackConfig) MarshalJSON() ([]byte, error)
type Credentials
    func (c Credentials) MarshalJSON() ([]byte, error)
type CustomRegistryCredentials
type DefaultAction
    func PossibleDefaultActionValues() []DefaultAction
type DockerBuildRequest
    func (dbr DockerBuildRequest) AsBasicRunRequest() (BasicRunRequest, bool)
    func (dbr DockerBuildRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)
    func (dbr DockerBuildRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)
    func (dbr DockerBuildRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)
    func (dbr DockerBuildRequest) AsRunRequest() (*RunRequest, bool)
    func (dbr DockerBuildRequest) AsTaskRunRequest() (*TaskRunRequest, bool)
    func (dbr DockerBuildRequest) MarshalJSON() ([]byte, error)
type DockerBuildStep
    func (dbs DockerBuildStep) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)
    func (dbs DockerBuildStep) AsDockerBuildStep() (*DockerBuildStep, bool)
    func (dbs DockerBuildStep) AsEncodedTaskStep() (*EncodedTaskStep, bool)
    func (dbs DockerBuildStep) AsFileTaskStep() (*FileTaskStep, bool)
    func (dbs DockerBuildStep) AsTaskStepProperties() (*TaskStepProperties, bool)
    func (dbs DockerBuildStep) MarshalJSON() ([]byte, error)
type DockerBuildStepUpdateParameters
    func (dbsup DockerBuildStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)
    func (dbsup DockerBuildStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)
    func (dbsup DockerBuildStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)
    func (dbsup DockerBuildStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)
    func (dbsup DockerBuildStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)
    func (dbsup DockerBuildStepUpdateParameters) MarshalJSON() ([]byte, error)
type EncodedTaskRunRequest
    func (etrr EncodedTaskRunRequest) AsBasicRunRequest() (BasicRunRequest, bool)
    func (etrr EncodedTaskRunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)
    func (etrr EncodedTaskRunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)
    func (etrr EncodedTaskRunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)
    func (etrr EncodedTaskRunRequest) AsRunRequest() (*RunRequest, bool)
    func (etrr EncodedTaskRunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)
    func (etrr EncodedTaskRunRequest) MarshalJSON() ([]byte, error)
type EncodedTaskStep
    func (ets EncodedTaskStep) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)
    func (ets EncodedTaskStep) AsDockerBuildStep() (*DockerBuildStep, bool)
    func (ets EncodedTaskStep) AsEncodedTaskStep() (*EncodedTaskStep, bool)
    func (ets EncodedTaskStep) AsFileTaskStep() (*FileTaskStep, bool)
    func (ets EncodedTaskStep) AsTaskStepProperties() (*TaskStepProperties, bool)
    func (ets EncodedTaskStep) MarshalJSON() ([]byte, error)
type EncodedTaskStepUpdateParameters
    func (etsup EncodedTaskStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)
    func (etsup EncodedTaskStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)
    func (etsup EncodedTaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)
    func (etsup EncodedTaskStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)
    func (etsup EncodedTaskStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)
    func (etsup EncodedTaskStepUpdateParameters) MarshalJSON() ([]byte, error)
type Event
type EventContent
type EventInfo
type EventListResult
    func (elr EventListResult) IsEmpty() bool
type EventListResultIterator
    func NewEventListResultIterator(page EventListResultPage) EventListResultIterator
    func (iter *EventListResultIterator) Next() error
    func (iter *EventListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter EventListResultIterator) NotDone() bool
    func (iter EventListResultIterator) Response() EventListResult
    func (iter EventListResultIterator) Value() Event
type EventListResultPage
    func NewEventListResultPage(cur EventListResult, getNextPage func(context.Context, EventListResult) (EventListResult, error)) EventListResultPage
    func (page *EventListResultPage) Next() error
    func (page *EventListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page EventListResultPage) NotDone() bool
    func (page EventListResultPage) Response() EventListResult
    func (page EventListResultPage) Values() []Event
type EventRequestMessage
    func (erm EventRequestMessage) MarshalJSON() ([]byte, error)
type EventResponseMessage
    func (erm EventResponseMessage) MarshalJSON() ([]byte, error)
type FileTaskRunRequest
    func (ftrr FileTaskRunRequest) AsBasicRunRequest() (BasicRunRequest, bool)
    func (ftrr FileTaskRunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)
    func (ftrr FileTaskRunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)
    func (ftrr FileTaskRunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)
    func (ftrr FileTaskRunRequest) AsRunRequest() (*RunRequest, bool)
    func (ftrr FileTaskRunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)
    func (ftrr FileTaskRunRequest) MarshalJSON() ([]byte, error)
type FileTaskStep
    func (fts FileTaskStep) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)
    func (fts FileTaskStep) AsDockerBuildStep() (*DockerBuildStep, bool)
    func (fts FileTaskStep) AsEncodedTaskStep() (*EncodedTaskStep, bool)
    func (fts FileTaskStep) AsFileTaskStep() (*FileTaskStep, bool)
    func (fts FileTaskStep) AsTaskStepProperties() (*TaskStepProperties, bool)
    func (fts FileTaskStep) MarshalJSON() ([]byte, error)
type FileTaskStepUpdateParameters
    func (ftsup FileTaskStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)
    func (ftsup FileTaskStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)
    func (ftsup FileTaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)
    func (ftsup FileTaskStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)
    func (ftsup FileTaskStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)
    func (ftsup FileTaskStepUpdateParameters) MarshalJSON() ([]byte, error)
type IPRule
type IdentityProperties
    func (IP IdentityProperties) MarshalJSON() ([]byte, error)
type ImageDescriptor
type ImageUpdateTrigger
type ImportImageParameters
type ImportMode
    func PossibleImportModeValues() []ImportMode
type ImportSource
type ImportSourceCredentials
type NetworkRuleSet
type OS
    func PossibleOSValues() []OS
type OperationDefinition
    func (od OperationDefinition) MarshalJSON() ([]byte, error)
    func (od *OperationDefinition) UnmarshalJSON(body []byte) error
type OperationDisplayDefinition
type OperationListResult
    func (olr OperationListResult) IsEmpty() bool
type OperationListResultIterator
    func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
    func (iter *OperationListResultIterator) Next() error
    func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter OperationListResultIterator) NotDone() bool
    func (iter OperationListResultIterator) Response() OperationListResult
    func (iter OperationListResultIterator) Value() OperationDefinition
type OperationListResultPage
    func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
    func (page *OperationListResultPage) Next() error
    func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page OperationListResultPage) NotDone() bool
    func (page OperationListResultPage) Response() OperationListResult
    func (page OperationListResultPage) Values() []OperationDefinition
type OperationMetricSpecificationDefinition
type OperationPropertiesDefinition
type OperationServiceSpecificationDefinition
type OperationsClient
    func NewOperationsClient(subscriptionID string) OperationsClient
    func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
    func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
    func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
    func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
    func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
    func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
type PasswordName
    func PossiblePasswordNameValues() []PasswordName
type PlatformProperties
type PlatformUpdateParameters
type Policies
type PolicyStatus
    func PossiblePolicyStatusValues() []PolicyStatus
type ProvisioningState
    func PossibleProvisioningStateValues() []ProvisioningState
type ProxyResource
    func (pr ProxyResource) MarshalJSON() ([]byte, error)
type QuarantinePolicy
type RegenerateCredentialParameters
type RegistriesClient
    func NewRegistriesClient(subscriptionID string) RegistriesClient
    func NewRegistriesClientWithBaseURI(baseURI string, subscriptionID string) RegistriesClient
    func (client RegistriesClient) CheckNameAvailability(ctx context.Context, registryNameCheckRequest RegistryNameCheckRequest) (result RegistryNameStatus, err error)
    func (client RegistriesClient) CheckNameAvailabilityPreparer(ctx context.Context, registryNameCheckRequest RegistryNameCheckRequest) (*http.Request, error)
    func (client RegistriesClient) CheckNameAvailabilityResponder(resp *http.Response) (result RegistryNameStatus, err error)
    func (client RegistriesClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)
    func (client RegistriesClient) Create(ctx context.Context, resourceGroupName string, registryName string, registry Registry) (result RegistriesCreateFuture, err error)
    func (client RegistriesClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, registry Registry) (*http.Request, error)
    func (client RegistriesClient) CreateResponder(resp *http.Response) (result Registry, err error)
    func (client RegistriesClient) CreateSender(req *http.Request) (future RegistriesCreateFuture, err error)
    func (client RegistriesClient) Delete(ctx context.Context, resourceGroupName string, registryName string) (result RegistriesDeleteFuture, err error)
    func (client RegistriesClient) DeletePreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)
    func (client RegistriesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client RegistriesClient) DeleteSender(req *http.Request) (future RegistriesDeleteFuture, err error)
    func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string, registryName string) (result Registry, err error)
    func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, resourceGroupName string, registryName string) (result SourceUploadDefinition, err error)
    func (client RegistriesClient) GetBuildSourceUploadURLPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)
    func (client RegistriesClient) GetBuildSourceUploadURLResponder(resp *http.Response) (result SourceUploadDefinition, err error)
    func (client RegistriesClient) GetBuildSourceUploadURLSender(req *http.Request) (*http.Response, error)
    func (client RegistriesClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)
    func (client RegistriesClient) GetResponder(resp *http.Response) (result Registry, err error)
    func (client RegistriesClient) GetSender(req *http.Request) (*http.Response, error)
    func (client RegistriesClient) ImportImage(ctx context.Context, resourceGroupName string, registryName string, parameters ImportImageParameters) (result RegistriesImportImageFuture, err error)
    func (client RegistriesClient) ImportImagePreparer(ctx context.Context, resourceGroupName string, registryName string, parameters ImportImageParameters) (*http.Request, error)
    func (client RegistriesClient) ImportImageResponder(resp *http.Response) (result autorest.Response, err error)
    func (client RegistriesClient) ImportImageSender(req *http.Request) (future RegistriesImportImageFuture, err error)
    func (client RegistriesClient) List(ctx context.Context) (result RegistryListResultPage, err error)
    func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result RegistryListResultPage, err error)
    func (client RegistriesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result RegistryListResultIterator, err error)
    func (client RegistriesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
    func (client RegistriesClient) ListByResourceGroupResponder(resp *http.Response) (result RegistryListResult, err error)
    func (client RegistriesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
    func (client RegistriesClient) ListComplete(ctx context.Context) (result RegistryListResultIterator, err error)
    func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGroupName string, registryName string) (result RegistryListCredentialsResult, err error)
    func (client RegistriesClient) ListCredentialsPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)
    func (client RegistriesClient) ListCredentialsResponder(resp *http.Response) (result RegistryListCredentialsResult, err error)
    func (client RegistriesClient) ListCredentialsSender(req *http.Request) (*http.Response, error)
    func (client RegistriesClient) ListPreparer(ctx context.Context) (*http.Request, error)
    func (client RegistriesClient) ListResponder(resp *http.Response) (result RegistryListResult, err error)
    func (client RegistriesClient) ListSender(req *http.Request) (*http.Response, error)
    func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName string, registryName string) (result RegistryUsageListResult, err error)
    func (client RegistriesClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)
    func (client RegistriesClient) ListUsagesResponder(resp *http.Response) (result RegistryUsageListResult, err error)
    func (client RegistriesClient) ListUsagesSender(req *http.Request) (*http.Response, error)
    func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourceGroupName string, registryName string, regenerateCredentialParameters RegenerateCredentialParameters) (result RegistryListCredentialsResult, err error)
    func (client RegistriesClient) RegenerateCredentialPreparer(ctx context.Context, resourceGroupName string, registryName string, regenerateCredentialParameters RegenerateCredentialParameters) (*http.Request, error)
    func (client RegistriesClient) RegenerateCredentialResponder(resp *http.Response) (result RegistryListCredentialsResult, err error)
    func (client RegistriesClient) RegenerateCredentialSender(req *http.Request) (*http.Response, error)
    func (client RegistriesClient) ScheduleRun(ctx context.Context, resourceGroupName string, registryName string, runRequest BasicRunRequest) (result RegistriesScheduleRunFuture, err error)
    func (client RegistriesClient) ScheduleRunPreparer(ctx context.Context, resourceGroupName string, registryName string, runRequest BasicRunRequest) (*http.Request, error)
    func (client RegistriesClient) ScheduleRunResponder(resp *http.Response) (result Run, err error)
    func (client RegistriesClient) ScheduleRunSender(req *http.Request) (future RegistriesScheduleRunFuture, err error)
    func (client RegistriesClient) Update(ctx context.Context, resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters) (result RegistriesUpdateFuture, err error)
    func (client RegistriesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters) (*http.Request, error)
    func (client RegistriesClient) UpdateResponder(resp *http.Response) (result Registry, err error)
    func (client RegistriesClient) UpdateSender(req *http.Request) (future RegistriesUpdateFuture, err error)
type RegistriesCreateFuture
    func (future *RegistriesCreateFuture) UnmarshalJSON(body []byte) error
type RegistriesDeleteFuture
    func (future *RegistriesDeleteFuture) UnmarshalJSON(body []byte) error
type RegistriesImportImageFuture
    func (future *RegistriesImportImageFuture) UnmarshalJSON(body []byte) error
type RegistriesScheduleRunFuture
    func (future *RegistriesScheduleRunFuture) UnmarshalJSON(body []byte) error
type RegistriesUpdateFuture
    func (future *RegistriesUpdateFuture) UnmarshalJSON(body []byte) error
type Registry
    func (r Registry) MarshalJSON() ([]byte, error)
    func (r *Registry) UnmarshalJSON(body []byte) error
type RegistryListCredentialsResult
type RegistryListResult
    func (rlr RegistryListResult) IsEmpty() bool
type RegistryListResultIterator
    func NewRegistryListResultIterator(page RegistryListResultPage) RegistryListResultIterator
    func (iter *RegistryListResultIterator) Next() error
    func (iter *RegistryListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter RegistryListResultIterator) NotDone() bool
    func (iter RegistryListResultIterator) Response() RegistryListResult
    func (iter RegistryListResultIterator) Value() Registry
type RegistryListResultPage
    func NewRegistryListResultPage(cur RegistryListResult, getNextPage func(context.Context, RegistryListResult) (RegistryListResult, error)) RegistryListResultPage
    func (page *RegistryListResultPage) Next() error
    func (page *RegistryListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page RegistryListResultPage) NotDone() bool
    func (page RegistryListResultPage) Response() RegistryListResult
    func (page RegistryListResultPage) Values() []Registry
type RegistryNameCheckRequest
type RegistryNameStatus
type RegistryPassword
type RegistryProperties
    func (rp RegistryProperties) MarshalJSON() ([]byte, error)
type RegistryPropertiesUpdateParameters
type RegistryUpdateParameters
    func (rup RegistryUpdateParameters) MarshalJSON() ([]byte, error)
    func (rup *RegistryUpdateParameters) UnmarshalJSON(body []byte) error
type RegistryUsage
type RegistryUsageListResult
type RegistryUsageUnit
    func PossibleRegistryUsageUnitValues() []RegistryUsageUnit
type Replication
    func (r Replication) MarshalJSON() ([]byte, error)
    func (r *Replication) UnmarshalJSON(body []byte) error
type ReplicationListResult
    func (rlr ReplicationListResult) IsEmpty() bool
type ReplicationListResultIterator
    func NewReplicationListResultIterator(page ReplicationListResultPage) ReplicationListResultIterator
    func (iter *ReplicationListResultIterator) Next() error
    func (iter *ReplicationListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter ReplicationListResultIterator) NotDone() bool
    func (iter ReplicationListResultIterator) Response() ReplicationListResult
    func (iter ReplicationListResultIterator) Value() Replication
type ReplicationListResultPage
    func NewReplicationListResultPage(cur ReplicationListResult, getNextPage func(context.Context, ReplicationListResult) (ReplicationListResult, error)) ReplicationListResultPage
    func (page *ReplicationListResultPage) Next() error
    func (page *ReplicationListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page ReplicationListResultPage) NotDone() bool
    func (page ReplicationListResultPage) Response() ReplicationListResult
    func (page ReplicationListResultPage) Values() []Replication
type ReplicationProperties
    func (rp ReplicationProperties) MarshalJSON() ([]byte, error)
type ReplicationUpdateParameters
    func (rup ReplicationUpdateParameters) MarshalJSON() ([]byte, error)
type ReplicationsClient
    func NewReplicationsClient(subscriptionID string) ReplicationsClient
    func NewReplicationsClientWithBaseURI(baseURI string, subscriptionID string) ReplicationsClient
    func (client ReplicationsClient) Create(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replication Replication) (result ReplicationsCreateFuture, err error)
    func (client ReplicationsClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replication Replication) (*http.Request, error)
    func (client ReplicationsClient) CreateResponder(resp *http.Response) (result Replication, err error)
    func (client ReplicationsClient) CreateSender(req *http.Request) (future ReplicationsCreateFuture, err error)
    func (client ReplicationsClient) Delete(ctx context.Context, resourceGroupName string, registryName string, replicationName string) (result ReplicationsDeleteFuture, err error)
    func (client ReplicationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, registryName string, replicationName string) (*http.Request, error)
    func (client ReplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client ReplicationsClient) DeleteSender(req *http.Request) (future ReplicationsDeleteFuture, err error)
    func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName string, registryName string, replicationName string) (result Replication, err error)
    func (client ReplicationsClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, replicationName string) (*http.Request, error)
    func (client ReplicationsClient) GetResponder(resp *http.Response) (result Replication, err error)
    func (client ReplicationsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client ReplicationsClient) List(ctx context.Context, resourceGroupName string, registryName string) (result ReplicationListResultPage, err error)
    func (client ReplicationsClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string) (result ReplicationListResultIterator, err error)
    func (client ReplicationsClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)
    func (client ReplicationsClient) ListResponder(resp *http.Response) (result ReplicationListResult, err error)
    func (client ReplicationsClient) ListSender(req *http.Request) (*http.Response, error)
    func (client ReplicationsClient) Update(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters) (result ReplicationsUpdateFuture, err error)
    func (client ReplicationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters) (*http.Request, error)
    func (client ReplicationsClient) UpdateResponder(resp *http.Response) (result Replication, err error)
    func (client ReplicationsClient) UpdateSender(req *http.Request) (future ReplicationsUpdateFuture, err error)
type ReplicationsCreateFuture
    func (future *ReplicationsCreateFuture) UnmarshalJSON(body []byte) error
type ReplicationsDeleteFuture
    func (future *ReplicationsDeleteFuture) UnmarshalJSON(body []byte) error
type ReplicationsUpdateFuture
    func (future *ReplicationsUpdateFuture) UnmarshalJSON(body []byte) error
type Request
type Resource
    func (r Resource) MarshalJSON() ([]byte, error)
type ResourceIdentityType
    func PossibleResourceIdentityTypeValues() []ResourceIdentityType
type RetentionPolicy
    func (rp RetentionPolicy) MarshalJSON() ([]byte, error)
type Run
    func (r Run) MarshalJSON() ([]byte, error)
    func (r *Run) UnmarshalJSON(body []byte) error
type RunFilter
type RunGetLogResult
type RunListResult
    func (rlr RunListResult) IsEmpty() bool
type RunListResultIterator
    func NewRunListResultIterator(page RunListResultPage) RunListResultIterator
    func (iter *RunListResultIterator) Next() error
    func (iter *RunListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter RunListResultIterator) NotDone() bool
    func (iter RunListResultIterator) Response() RunListResult
    func (iter RunListResultIterator) Value() Run
type RunListResultPage
    func NewRunListResultPage(cur RunListResult, getNextPage func(context.Context, RunListResult) (RunListResult, error)) RunListResultPage
    func (page *RunListResultPage) Next() error
    func (page *RunListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page RunListResultPage) NotDone() bool
    func (page RunListResultPage) Response() RunListResult
    func (page RunListResultPage) Values() []Run
type RunProperties
    func (rp RunProperties) MarshalJSON() ([]byte, error)
type RunRequest
    func (rr RunRequest) AsBasicRunRequest() (BasicRunRequest, bool)
    func (rr RunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)
    func (rr RunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)
    func (rr RunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)
    func (rr RunRequest) AsRunRequest() (*RunRequest, bool)
    func (rr RunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)
    func (rr RunRequest) MarshalJSON() ([]byte, error)
type RunStatus
    func PossibleRunStatusValues() []RunStatus
type RunType
    func PossibleRunTypeValues() []RunType
type RunUpdateParameters
type RunsCancelFuture
    func (future *RunsCancelFuture) UnmarshalJSON(body []byte) error
type RunsClient
    func NewRunsClient(subscriptionID string) RunsClient
    func NewRunsClientWithBaseURI(baseURI string, subscriptionID string) RunsClient
    func (client RunsClient) Cancel(ctx context.Context, resourceGroupName string, registryName string, runID string) (result RunsCancelFuture, err error)
    func (client RunsClient) CancelPreparer(ctx context.Context, resourceGroupName string, registryName string, runID string) (*http.Request, error)
    func (client RunsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)
    func (client RunsClient) CancelSender(req *http.Request) (future RunsCancelFuture, err error)
    func (client RunsClient) Get(ctx context.Context, resourceGroupName string, registryName string, runID string) (result Run, err error)
    func (client RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName string, registryName string, runID string) (result RunGetLogResult, err error)
    func (client RunsClient) GetLogSasURLPreparer(ctx context.Context, resourceGroupName string, registryName string, runID string) (*http.Request, error)
    func (client RunsClient) GetLogSasURLResponder(resp *http.Response) (result RunGetLogResult, err error)
    func (client RunsClient) GetLogSasURLSender(req *http.Request) (*http.Response, error)
    func (client RunsClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, runID string) (*http.Request, error)
    func (client RunsClient) GetResponder(resp *http.Response) (result Run, err error)
    func (client RunsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client RunsClient) List(ctx context.Context, resourceGroupName string, registryName string, filter string, top *int32) (result RunListResultPage, err error)
    func (client RunsClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string, filter string, top *int32) (result RunListResultIterator, err error)
    func (client RunsClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string, filter string, top *int32) (*http.Request, error)
    func (client RunsClient) ListResponder(resp *http.Response) (result RunListResult, err error)
    func (client RunsClient) ListSender(req *http.Request) (*http.Response, error)
    func (client RunsClient) Update(ctx context.Context, resourceGroupName string, registryName string, runID string, runUpdateParameters RunUpdateParameters) (result RunsUpdateFuture, err error)
    func (client RunsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, runID string, runUpdateParameters RunUpdateParameters) (*http.Request, error)
    func (client RunsClient) UpdateResponder(resp *http.Response) (result Run, err error)
    func (client RunsClient) UpdateSender(req *http.Request) (future RunsUpdateFuture, err error)
type RunsUpdateFuture
    func (future *RunsUpdateFuture) UnmarshalJSON(body []byte) error
type SecretObject
type SecretObjectType
    func PossibleSecretObjectTypeValues() []SecretObjectType
type SetValue
type Sku
    func (s Sku) MarshalJSON() ([]byte, error)
type SkuName
    func PossibleSkuNameValues() []SkuName
type SkuTier
    func PossibleSkuTierValues() []SkuTier
type Source
type SourceControlType
    func PossibleSourceControlTypeValues() []SourceControlType
type SourceProperties
type SourceRegistryCredentials
type SourceRegistryLoginMode
    func PossibleSourceRegistryLoginModeValues() []SourceRegistryLoginMode
type SourceTrigger
type SourceTriggerDescriptor
type SourceTriggerEvent
    func PossibleSourceTriggerEventValues() []SourceTriggerEvent
type SourceTriggerUpdateParameters
type SourceUpdateParameters
type SourceUploadDefinition
type Status
    func (s Status) MarshalJSON() ([]byte, error)
type StorageAccountProperties
type Target
type Task
    func (t Task) MarshalJSON() ([]byte, error)
    func (t *Task) UnmarshalJSON(body []byte) error
type TaskListResult
    func (tlr TaskListResult) IsEmpty() bool
type TaskListResultIterator
    func NewTaskListResultIterator(page TaskListResultPage) TaskListResultIterator
    func (iter *TaskListResultIterator) Next() error
    func (iter *TaskListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter TaskListResultIterator) NotDone() bool
    func (iter TaskListResultIterator) Response() TaskListResult
    func (iter TaskListResultIterator) Value() Task
type TaskListResultPage
    func NewTaskListResultPage(cur TaskListResult, getNextPage func(context.Context, TaskListResult) (TaskListResult, error)) TaskListResultPage
    func (page *TaskListResultPage) Next() error
    func (page *TaskListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page TaskListResultPage) NotDone() bool
    func (page TaskListResultPage) Response() TaskListResult
    func (page TaskListResultPage) Values() []Task
type TaskProperties
    func (tp TaskProperties) MarshalJSON() ([]byte, error)
    func (tp *TaskProperties) UnmarshalJSON(body []byte) error
type TaskPropertiesUpdateParameters
    func (tpup *TaskPropertiesUpdateParameters) UnmarshalJSON(body []byte) error
type TaskRunRequest
    func (trr TaskRunRequest) AsBasicRunRequest() (BasicRunRequest, bool)
    func (trr TaskRunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)
    func (trr TaskRunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)
    func (trr TaskRunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)
    func (trr TaskRunRequest) AsRunRequest() (*RunRequest, bool)
    func (trr TaskRunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)
    func (trr TaskRunRequest) MarshalJSON() ([]byte, error)
type TaskStatus
    func PossibleTaskStatusValues() []TaskStatus
type TaskStepProperties
    func (tsp TaskStepProperties) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)
    func (tsp TaskStepProperties) AsDockerBuildStep() (*DockerBuildStep, bool)
    func (tsp TaskStepProperties) AsEncodedTaskStep() (*EncodedTaskStep, bool)
    func (tsp TaskStepProperties) AsFileTaskStep() (*FileTaskStep, bool)
    func (tsp TaskStepProperties) AsTaskStepProperties() (*TaskStepProperties, bool)
    func (tsp TaskStepProperties) MarshalJSON() ([]byte, error)
type TaskStepUpdateParameters
    func (tsup TaskStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)
    func (tsup TaskStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)
    func (tsup TaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)
    func (tsup TaskStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)
    func (tsup TaskStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)
    func (tsup TaskStepUpdateParameters) MarshalJSON() ([]byte, error)
type TaskUpdateParameters
    func (tup TaskUpdateParameters) MarshalJSON() ([]byte, error)
    func (tup *TaskUpdateParameters) UnmarshalJSON(body []byte) error
type TasksClient
    func NewTasksClient(subscriptionID string) TasksClient
    func NewTasksClientWithBaseURI(baseURI string, subscriptionID string) TasksClient
    func (client TasksClient) Create(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskCreateParameters Task) (result TasksCreateFuture, err error)
    func (client TasksClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskCreateParameters Task) (*http.Request, error)
    func (client TasksClient) CreateResponder(resp *http.Response) (result Task, err error)
    func (client TasksClient) CreateSender(req *http.Request) (future TasksCreateFuture, err error)
    func (client TasksClient) Delete(ctx context.Context, resourceGroupName string, registryName string, taskName string) (result TasksDeleteFuture, err error)
    func (client TasksClient) DeletePreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string) (*http.Request, error)
    func (client TasksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client TasksClient) DeleteSender(req *http.Request) (future TasksDeleteFuture, err error)
    func (client TasksClient) Get(ctx context.Context, resourceGroupName string, registryName string, taskName string) (result Task, err error)
    func (client TasksClient) GetDetails(ctx context.Context, resourceGroupName string, registryName string, taskName string) (result Task, err error)
    func (client TasksClient) GetDetailsPreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string) (*http.Request, error)
    func (client TasksClient) GetDetailsResponder(resp *http.Response) (result Task, err error)
    func (client TasksClient) GetDetailsSender(req *http.Request) (*http.Response, error)
    func (client TasksClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string) (*http.Request, error)
    func (client TasksClient) GetResponder(resp *http.Response) (result Task, err error)
    func (client TasksClient) GetSender(req *http.Request) (*http.Response, error)
    func (client TasksClient) List(ctx context.Context, resourceGroupName string, registryName string) (result TaskListResultPage, err error)
    func (client TasksClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string) (result TaskListResultIterator, err error)
    func (client TasksClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)
    func (client TasksClient) ListResponder(resp *http.Response) (result TaskListResult, err error)
    func (client TasksClient) ListSender(req *http.Request) (*http.Response, error)
    func (client TasksClient) Update(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskUpdateParameters TaskUpdateParameters) (result TasksUpdateFuture, err error)
    func (client TasksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskUpdateParameters TaskUpdateParameters) (*http.Request, error)
    func (client TasksClient) UpdateResponder(resp *http.Response) (result Task, err error)
    func (client TasksClient) UpdateSender(req *http.Request) (future TasksUpdateFuture, err error)
type TasksCreateFuture
    func (future *TasksCreateFuture) UnmarshalJSON(body []byte) error
type TasksDeleteFuture
    func (future *TasksDeleteFuture) UnmarshalJSON(body []byte) error
type TasksUpdateFuture
    func (future *TasksUpdateFuture) UnmarshalJSON(body []byte) error
type TimerTrigger
type TimerTriggerDescriptor
type TimerTriggerUpdateParameters
type TokenType
    func PossibleTokenTypeValues() []TokenType
type TriggerProperties
type TriggerStatus
    func PossibleTriggerStatusValues() []TriggerStatus
type TriggerUpdateParameters
type TrustPolicy
type TrustPolicyType
    func PossibleTrustPolicyTypeValues() []TrustPolicyType
type Type
    func PossibleTypeValues() []Type
type TypeBasicTaskStepProperties
    func PossibleTypeBasicTaskStepPropertiesValues() []TypeBasicTaskStepProperties
type TypeBasicTaskStepUpdateParameters
    func PossibleTypeBasicTaskStepUpdateParametersValues() []TypeBasicTaskStepUpdateParameters
type UserIdentityProperties
type Variant
    func PossibleVariantValues() []Variant
type VirtualNetworkRule
type Webhook
    func (w Webhook) MarshalJSON() ([]byte, error)
    func (w *Webhook) UnmarshalJSON(body []byte) error
type WebhookAction
    func PossibleWebhookActionValues() []WebhookAction
type WebhookCreateParameters
    func (wcp WebhookCreateParameters) MarshalJSON() ([]byte, error)
    func (wcp *WebhookCreateParameters) UnmarshalJSON(body []byte) error
type WebhookListResult
    func (wlr WebhookListResult) IsEmpty() bool
type WebhookListResultIterator
    func NewWebhookListResultIterator(page WebhookListResultPage) WebhookListResultIterator
    func (iter *WebhookListResultIterator) Next() error
    func (iter *WebhookListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter WebhookListResultIterator) NotDone() bool
    func (iter WebhookListResultIterator) Response() WebhookListResult
    func (iter WebhookListResultIterator) Value() Webhook
type WebhookListResultPage
    func NewWebhookListResultPage(cur WebhookListResult, getNextPage func(context.Context, WebhookListResult) (WebhookListResult, error)) WebhookListResultPage
    func (page *WebhookListResultPage) Next() error
    func (page *WebhookListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page WebhookListResultPage) NotDone() bool
    func (page WebhookListResultPage) Response() WebhookListResult
    func (page WebhookListResultPage) Values() []Webhook
type WebhookProperties
    func (wp WebhookProperties) MarshalJSON() ([]byte, error)
type WebhookPropertiesCreateParameters
    func (wpcp WebhookPropertiesCreateParameters) MarshalJSON() ([]byte, error)
type WebhookPropertiesUpdateParameters
    func (wpup WebhookPropertiesUpdateParameters) MarshalJSON() ([]byte, error)
type WebhookStatus
    func PossibleWebhookStatusValues() []WebhookStatus
type WebhookUpdateParameters
    func (wup WebhookUpdateParameters) MarshalJSON() ([]byte, error)
    func (wup *WebhookUpdateParameters) UnmarshalJSON(body []byte) error
type WebhooksClient
    func NewWebhooksClient(subscriptionID string) WebhooksClient
    func NewWebhooksClientWithBaseURI(baseURI string, subscriptionID string) WebhooksClient
    func (client WebhooksClient) Create(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters) (result WebhooksCreateFuture, err error)
    func (client WebhooksClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters) (*http.Request, error)
    func (client WebhooksClient) CreateResponder(resp *http.Response) (result Webhook, err error)
    func (client WebhooksClient) CreateSender(req *http.Request) (future WebhooksCreateFuture, err error)
    func (client WebhooksClient) Delete(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result WebhooksDeleteFuture, err error)
    func (client WebhooksClient) DeletePreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)
    func (client WebhooksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client WebhooksClient) DeleteSender(req *http.Request) (future WebhooksDeleteFuture, err error)
    func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result Webhook, err error)
    func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result CallbackConfig, err error)
    func (client WebhooksClient) GetCallbackConfigPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)
    func (client WebhooksClient) GetCallbackConfigResponder(resp *http.Response) (result CallbackConfig, err error)
    func (client WebhooksClient) GetCallbackConfigSender(req *http.Request) (*http.Response, error)
    func (client WebhooksClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)
    func (client WebhooksClient) GetResponder(resp *http.Response) (result Webhook, err error)
    func (client WebhooksClient) GetSender(req *http.Request) (*http.Response, error)
    func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, registryName string) (result WebhookListResultPage, err error)
    func (client WebhooksClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string) (result WebhookListResultIterator, err error)
    func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result EventListResultPage, err error)
    func (client WebhooksClient) ListEventsComplete(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result EventListResultIterator, err error)
    func (client WebhooksClient) ListEventsPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)
    func (client WebhooksClient) ListEventsResponder(resp *http.Response) (result EventListResult, err error)
    func (client WebhooksClient) ListEventsSender(req *http.Request) (*http.Response, error)
    func (client WebhooksClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)
    func (client WebhooksClient) ListResponder(resp *http.Response) (result WebhookListResult, err error)
    func (client WebhooksClient) ListSender(req *http.Request) (*http.Response, error)
    func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result EventInfo, err error)
    func (client WebhooksClient) PingPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)
    func (client WebhooksClient) PingResponder(resp *http.Response) (result EventInfo, err error)
    func (client WebhooksClient) PingSender(req *http.Request) (*http.Response, error)
    func (client WebhooksClient) Update(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters) (result WebhooksUpdateFuture, err error)
    func (client WebhooksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters) (*http.Request, error)
    func (client WebhooksClient) UpdateResponder(resp *http.Response) (result Webhook, err error)
    func (client WebhooksClient) UpdateSender(req *http.Request) (future WebhooksUpdateFuture, err error)
type WebhooksCreateFuture
    func (future *WebhooksCreateFuture) UnmarshalJSON(body []byte) error
type WebhooksDeleteFuture
    func (future *WebhooksDeleteFuture) UnmarshalJSON(body []byte) error
type WebhooksUpdateFuture
    func (future *WebhooksUpdateFuture) UnmarshalJSON(body []byte) error

Package files

client.go enums.go models.go operations.go registries.go replications.go runs.go tasks.go version.go webhooks.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Containerregistry
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type Action

Action enumerates the values for action.

type Action string
const (
    // Allow ...
    Allow Action = "Allow"
)

func PossibleActionValues

func PossibleActionValues() []Action

PossibleActionValues returns an array of possible values for the Action const type.

type Actor

Actor the agent that initiated the event. For most situations, this could be from the authorization context of the request.

type Actor struct {
    // Name - The subject or username associated with the request context that generated the event.
    Name *string `json:"name,omitempty"`
}

type AgentProperties

AgentProperties the properties that determine the run agent configuration.

type AgentProperties struct {
    // CPU - The CPU configuration in terms of number of cores required for the run.
    CPU *int32 `json:"cpu,omitempty"`
}

type Architecture

Architecture enumerates the values for architecture.

type Architecture string
const (
    // Amd64 ...
    Amd64 Architecture = "amd64"
    // Arm ...
    Arm Architecture = "arm"
    // X86 ...
    X86 Architecture = "x86"
)

func PossibleArchitectureValues

func PossibleArchitectureValues() []Architecture

PossibleArchitectureValues returns an array of possible values for the Architecture const type.

type Argument

Argument the properties of a run argument.

type Argument struct {
    // Name - The name of the argument.
    Name *string `json:"name,omitempty"`
    // Value - The value of the argument.
    Value *string `json:"value,omitempty"`
    // IsSecret - Flag to indicate whether the argument represents a secret and want to be removed from build logs.
    IsSecret *bool `json:"isSecret,omitempty"`
}

type AuthInfo

AuthInfo the authorization properties for accessing the source code repository.

type AuthInfo struct {
    // TokenType - The type of Auth token. Possible values include: 'PAT', 'OAuth'
    TokenType TokenType `json:"tokenType,omitempty"`
    // Token - The access token used to access the source control provider.
    Token *string `json:"token,omitempty"`
    // RefreshToken - The refresh token used to refresh the access token.
    RefreshToken *string `json:"refreshToken,omitempty"`
    // Scope - The scope of the access token.
    Scope *string `json:"scope,omitempty"`
    // ExpiresIn - Time in seconds that the token remains valid
    ExpiresIn *int32 `json:"expiresIn,omitempty"`
}

type AuthInfoUpdateParameters

AuthInfoUpdateParameters the authorization properties for accessing the source code repository.

type AuthInfoUpdateParameters struct {
    // TokenType - The type of Auth token. Possible values include: 'PAT', 'OAuth'
    TokenType TokenType `json:"tokenType,omitempty"`
    // Token - The access token used to access the source control provider.
    Token *string `json:"token,omitempty"`
    // RefreshToken - The refresh token used to refresh the access token.
    RefreshToken *string `json:"refreshToken,omitempty"`
    // Scope - The scope of the access token.
    Scope *string `json:"scope,omitempty"`
    // ExpiresIn - Time in seconds that the token remains valid
    ExpiresIn *int32 `json:"expiresIn,omitempty"`
}

type BaseClient

BaseClient is the base client for Containerregistry.

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type BaseImageDependency

BaseImageDependency properties that describe a base image dependency.

type BaseImageDependency struct {
    // Type - The type of the base image dependency. Possible values include: 'BuildTime', 'RunTime'
    Type BaseImageDependencyType `json:"type,omitempty"`
    // Registry - The registry login server.
    Registry *string `json:"registry,omitempty"`
    // Repository - The repository name.
    Repository *string `json:"repository,omitempty"`
    // Tag - The tag name.
    Tag *string `json:"tag,omitempty"`
    // Digest - The sha256-based digest of the image manifest.
    Digest *string `json:"digest,omitempty"`
}

type BaseImageDependencyType

BaseImageDependencyType enumerates the values for base image dependency type.

type BaseImageDependencyType string
const (
    // BuildTime ...
    BuildTime BaseImageDependencyType = "BuildTime"
    // RunTime ...
    RunTime BaseImageDependencyType = "RunTime"
)

func PossibleBaseImageDependencyTypeValues

func PossibleBaseImageDependencyTypeValues() []BaseImageDependencyType

PossibleBaseImageDependencyTypeValues returns an array of possible values for the BaseImageDependencyType const type.

type BaseImageTrigger

BaseImageTrigger the trigger based on base image dependency.

type BaseImageTrigger struct {
    // BaseImageTriggerType - The type of the auto trigger for base image dependency updates. Possible values include: 'All', 'Runtime'
    BaseImageTriggerType BaseImageTriggerType `json:"baseImageTriggerType,omitempty"`
    // Status - The current status of trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled'
    Status TriggerStatus `json:"status,omitempty"`
    // Name - The name of the trigger.
    Name *string `json:"name,omitempty"`
}

type BaseImageTriggerType

BaseImageTriggerType enumerates the values for base image trigger type.

type BaseImageTriggerType string
const (
    // All ...
    All BaseImageTriggerType = "All"
    // Runtime ...
    Runtime BaseImageTriggerType = "Runtime"
)

func PossibleBaseImageTriggerTypeValues

func PossibleBaseImageTriggerTypeValues() []BaseImageTriggerType

PossibleBaseImageTriggerTypeValues returns an array of possible values for the BaseImageTriggerType const type.

type BaseImageTriggerUpdateParameters

BaseImageTriggerUpdateParameters the properties for updating base image dependency trigger.

type BaseImageTriggerUpdateParameters struct {
    // BaseImageTriggerType - The type of the auto trigger for base image dependency updates. Possible values include: 'All', 'Runtime'
    BaseImageTriggerType BaseImageTriggerType `json:"baseImageTriggerType,omitempty"`
    // Status - The current status of trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled'
    Status TriggerStatus `json:"status,omitempty"`
    // Name - The name of the trigger.
    Name *string `json:"name,omitempty"`
}

type BasicRunRequest

BasicRunRequest the request parameters for scheduling a run.

type BasicRunRequest interface {
    AsDockerBuildRequest() (*DockerBuildRequest, bool)
    AsFileTaskRunRequest() (*FileTaskRunRequest, bool)
    AsTaskRunRequest() (*TaskRunRequest, bool)
    AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)
    AsRunRequest() (*RunRequest, bool)
}

type BasicTaskStepProperties

BasicTaskStepProperties base properties for any task step.

type BasicTaskStepProperties interface {
    AsDockerBuildStep() (*DockerBuildStep, bool)
    AsFileTaskStep() (*FileTaskStep, bool)
    AsEncodedTaskStep() (*EncodedTaskStep, bool)
    AsTaskStepProperties() (*TaskStepProperties, bool)
}

type BasicTaskStepUpdateParameters

BasicTaskStepUpdateParameters base properties for updating any task step.

type BasicTaskStepUpdateParameters interface {
    AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)
    AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)
    AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)
    AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)
}

type CallbackConfig

CallbackConfig the configuration of service URI and custom headers for the webhook.

type CallbackConfig struct {
    autorest.Response `json:"-"`
    // ServiceURI - The service URI for the webhook to post notifications.
    ServiceURI *string `json:"serviceUri,omitempty"`
    // CustomHeaders - Custom headers that will be added to the webhook notifications.
    CustomHeaders map[string]*string `json:"customHeaders"`
}

func (CallbackConfig) MarshalJSON

func (cc CallbackConfig) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CallbackConfig.

type Credentials

Credentials the parameters that describes a set of credentials that will be used when a run is invoked.

type Credentials struct {
    // SourceRegistry - Describes the credential parameters for accessing the source registry.
    SourceRegistry *SourceRegistryCredentials `json:"sourceRegistry,omitempty"`
    // CustomRegistries - Describes the credential parameters for accessing other custom registries. The key
    // for the dictionary item will be the registry login server (myregistry.azurecr.io) and
    // the value of the item will be the registry credentials for accessing the registry.
    CustomRegistries map[string]*CustomRegistryCredentials `json:"customRegistries"`
}

func (Credentials) MarshalJSON

func (c Credentials) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Credentials.

type CustomRegistryCredentials

CustomRegistryCredentials describes the credentials that will be used to access a custom registry during a run.

type CustomRegistryCredentials struct {
    // UserName - The username for logging into the custom registry.
    UserName *SecretObject `json:"userName,omitempty"`
    // Password - The password for logging into the custom registry. The password is a secret
    // object that allows multiple ways of providing the value for it.
    Password *SecretObject `json:"password,omitempty"`
    // Identity - Indicates the managed identity assigned to the custom credential. If a user-assigned identity
    // this value is the Client ID. If a system-assigned identity, the value will be `system`. In
    // the case of a system-assigned identity, the Client ID will be determined by the runner. This
    // identity may be used to authenticate to key vault to retrieve credentials or it may be the only
    // source of authentication used for accessing the registry.
    Identity *string `json:"identity,omitempty"`
}

type DefaultAction

DefaultAction enumerates the values for default action.

type DefaultAction string
const (
    // DefaultActionAllow ...
    DefaultActionAllow DefaultAction = "Allow"
    // DefaultActionDeny ...
    DefaultActionDeny DefaultAction = "Deny"
)

func PossibleDefaultActionValues

func PossibleDefaultActionValues() []DefaultAction

PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type.

type DockerBuildRequest

DockerBuildRequest the parameters for a docker quick build.

type DockerBuildRequest struct {
    // ImageNames - The fully qualified image names including the repository and tag.
    ImageNames *[]string `json:"imageNames,omitempty"`
    // IsPushEnabled - The value of this property indicates whether the image built should be pushed to the registry or not.
    IsPushEnabled *bool `json:"isPushEnabled,omitempty"`
    // NoCache - The value of this property indicates whether the image cache is enabled or not.
    NoCache *bool `json:"noCache,omitempty"`
    // DockerFilePath - The Docker file path relative to the source location.
    DockerFilePath *string `json:"dockerFilePath,omitempty"`
    // Target - The name of the target build stage for the docker build.
    Target *string `json:"target,omitempty"`
    // Arguments - The collection of override arguments to be used when executing the run.
    Arguments *[]Argument `json:"arguments,omitempty"`
    // Timeout - Run timeout in seconds.
    Timeout *int32 `json:"timeout,omitempty"`
    // Platform - The platform properties against which the run has to happen.
    Platform *PlatformProperties `json:"platform,omitempty"`
    // AgentConfiguration - The machine configuration of the run agent.
    AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
    // SourceLocation - The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
    // If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
    SourceLocation *string `json:"sourceLocation,omitempty"`
    // Credentials - The properties that describes a set of credentials that will be used when this run is invoked.
    Credentials *Credentials `json:"credentials,omitempty"`
    // IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not.
    IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
    // Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest'
    Type Type `json:"type,omitempty"`
}

func (DockerBuildRequest) AsBasicRunRequest

func (dbr DockerBuildRequest) AsBasicRunRequest() (BasicRunRequest, bool)

AsBasicRunRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) AsDockerBuildRequest

func (dbr DockerBuildRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)

AsDockerBuildRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) AsEncodedTaskRunRequest

func (dbr DockerBuildRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)

AsEncodedTaskRunRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) AsFileTaskRunRequest

func (dbr DockerBuildRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)

AsFileTaskRunRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) AsRunRequest

func (dbr DockerBuildRequest) AsRunRequest() (*RunRequest, bool)

AsRunRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) AsTaskRunRequest

func (dbr DockerBuildRequest) AsTaskRunRequest() (*TaskRunRequest, bool)

AsTaskRunRequest is the BasicRunRequest implementation for DockerBuildRequest.

func (DockerBuildRequest) MarshalJSON

func (dbr DockerBuildRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DockerBuildRequest.

type DockerBuildStep

DockerBuildStep the Docker build step.

type DockerBuildStep struct {
    // ImageNames - The fully qualified image names including the repository and tag.
    ImageNames *[]string `json:"imageNames,omitempty"`
    // IsPushEnabled - The value of this property indicates whether the image built should be pushed to the registry or not.
    IsPushEnabled *bool `json:"isPushEnabled,omitempty"`
    // NoCache - The value of this property indicates whether the image cache is enabled or not.
    NoCache *bool `json:"noCache,omitempty"`
    // DockerFilePath - The Docker file path relative to the source context.
    DockerFilePath *string `json:"dockerFilePath,omitempty"`
    // Target - The name of the target build stage for the docker build.
    Target *string `json:"target,omitempty"`
    // Arguments - The collection of override arguments to be used when executing this build step.
    Arguments *[]Argument `json:"arguments,omitempty"`
    // BaseImageDependencies - READ-ONLY; List of base image dependencies for a step.
    BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"`
    // ContextPath - The URL(absolute or relative) of the source context for the task step.
    ContextPath *string `json:"contextPath,omitempty"`
    // ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
    ContextAccessToken *string `json:"contextAccessToken,omitempty"`
    // Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask'
    Type TypeBasicTaskStepProperties `json:"type,omitempty"`
}

func (DockerBuildStep) AsBasicTaskStepProperties

func (dbs DockerBuildStep) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)

AsBasicTaskStepProperties is the BasicTaskStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsDockerBuildStep

func (dbs DockerBuildStep) AsDockerBuildStep() (*DockerBuildStep, bool)

AsDockerBuildStep is the BasicTaskStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsEncodedTaskStep

func (dbs DockerBuildStep) AsEncodedTaskStep() (*EncodedTaskStep, bool)

AsEncodedTaskStep is the BasicTaskStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsFileTaskStep

func (dbs DockerBuildStep) AsFileTaskStep() (*FileTaskStep, bool)

AsFileTaskStep is the BasicTaskStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) AsTaskStepProperties

func (dbs DockerBuildStep) AsTaskStepProperties() (*TaskStepProperties, bool)

AsTaskStepProperties is the BasicTaskStepProperties implementation for DockerBuildStep.

func (DockerBuildStep) MarshalJSON

func (dbs DockerBuildStep) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DockerBuildStep.

type DockerBuildStepUpdateParameters

DockerBuildStepUpdateParameters the properties for updating a docker build step.

type DockerBuildStepUpdateParameters struct {
    // ImageNames - The fully qualified image names including the repository and tag.
    ImageNames *[]string `json:"imageNames,omitempty"`
    // IsPushEnabled - The value of this property indicates whether the image built should be pushed to the registry or not.
    IsPushEnabled *bool `json:"isPushEnabled,omitempty"`
    // NoCache - The value of this property indicates whether the image cache is enabled or not.
    NoCache *bool `json:"noCache,omitempty"`
    // DockerFilePath - The Docker file path relative to the source context.
    DockerFilePath *string `json:"dockerFilePath,omitempty"`
    // Arguments - The collection of override arguments to be used when executing this build step.
    Arguments *[]Argument `json:"arguments,omitempty"`
    // Target - The name of the target build stage for the docker build.
    Target *string `json:"target,omitempty"`
    // ContextPath - The URL(absolute or relative) of the source context for the task step.
    ContextPath *string `json:"contextPath,omitempty"`
    // ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
    ContextAccessToken *string `json:"contextAccessToken,omitempty"`
    // Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask'
    Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"`
}

func (DockerBuildStepUpdateParameters) AsBasicTaskStepUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)

AsBasicTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsDockerBuildStepUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)

AsDockerBuildStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsEncodedTaskStepUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)

AsEncodedTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsFileTaskStepUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)

AsFileTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) AsTaskStepUpdateParameters

func (dbsup DockerBuildStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)

AsTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for DockerBuildStepUpdateParameters.

func (DockerBuildStepUpdateParameters) MarshalJSON

func (dbsup DockerBuildStepUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DockerBuildStepUpdateParameters.

type EncodedTaskRunRequest

EncodedTaskRunRequest the parameters for a quick task run request.

type EncodedTaskRunRequest struct {
    // EncodedTaskContent - Base64 encoded value of the template/definition file content.
    EncodedTaskContent *string `json:"encodedTaskContent,omitempty"`
    // EncodedValuesContent - Base64 encoded value of the parameters/values file content.
    EncodedValuesContent *string `json:"encodedValuesContent,omitempty"`
    // Values - The collection of overridable values that can be passed when running a task.
    Values *[]SetValue `json:"values,omitempty"`
    // Timeout - Run timeout in seconds.
    Timeout *int32 `json:"timeout,omitempty"`
    // Platform - The platform properties against which the run has to happen.
    Platform *PlatformProperties `json:"platform,omitempty"`
    // AgentConfiguration - The machine configuration of the run agent.
    AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
    // SourceLocation - The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
    // If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
    SourceLocation *string `json:"sourceLocation,omitempty"`
    // Credentials - The properties that describes a set of credentials that will be used when this run is invoked.
    Credentials *Credentials `json:"credentials,omitempty"`
    // IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not.
    IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
    // Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest'
    Type Type `json:"type,omitempty"`
}

func (EncodedTaskRunRequest) AsBasicRunRequest

func (etrr EncodedTaskRunRequest) AsBasicRunRequest() (BasicRunRequest, bool)

AsBasicRunRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) AsDockerBuildRequest

func (etrr EncodedTaskRunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)

AsDockerBuildRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) AsEncodedTaskRunRequest

func (etrr EncodedTaskRunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)

AsEncodedTaskRunRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) AsFileTaskRunRequest

func (etrr EncodedTaskRunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)

AsFileTaskRunRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) AsRunRequest

func (etrr EncodedTaskRunRequest) AsRunRequest() (*RunRequest, bool)

AsRunRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) AsTaskRunRequest

func (etrr EncodedTaskRunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)

AsTaskRunRequest is the BasicRunRequest implementation for EncodedTaskRunRequest.

func (EncodedTaskRunRequest) MarshalJSON

func (etrr EncodedTaskRunRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EncodedTaskRunRequest.

type EncodedTaskStep

EncodedTaskStep the properties of a encoded task step.

type EncodedTaskStep struct {
    // EncodedTaskContent - Base64 encoded value of the template/definition file content.
    EncodedTaskContent *string `json:"encodedTaskContent,omitempty"`
    // EncodedValuesContent - Base64 encoded value of the parameters/values file content.
    EncodedValuesContent *string `json:"encodedValuesContent,omitempty"`
    // Values - The collection of overridable values that can be passed when running a task.
    Values *[]SetValue `json:"values,omitempty"`
    // BaseImageDependencies - READ-ONLY; List of base image dependencies for a step.
    BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"`
    // ContextPath - The URL(absolute or relative) of the source context for the task step.
    ContextPath *string `json:"contextPath,omitempty"`
    // ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
    ContextAccessToken *string `json:"contextAccessToken,omitempty"`
    // Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask'
    Type TypeBasicTaskStepProperties `json:"type,omitempty"`
}

func (EncodedTaskStep) AsBasicTaskStepProperties

func (ets EncodedTaskStep) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)

AsBasicTaskStepProperties is the BasicTaskStepProperties implementation for EncodedTaskStep.

func (EncodedTaskStep) AsDockerBuildStep

func (ets EncodedTaskStep) AsDockerBuildStep() (*DockerBuildStep, bool)

AsDockerBuildStep is the BasicTaskStepProperties implementation for EncodedTaskStep.

func (EncodedTaskStep) AsEncodedTaskStep

func (ets EncodedTaskStep) AsEncodedTaskStep() (*EncodedTaskStep, bool)

AsEncodedTaskStep is the BasicTaskStepProperties implementation for EncodedTaskStep.

func (EncodedTaskStep) AsFileTaskStep

func (ets EncodedTaskStep) AsFileTaskStep() (*FileTaskStep, bool)

AsFileTaskStep is the BasicTaskStepProperties implementation for EncodedTaskStep.

func (EncodedTaskStep) AsTaskStepProperties

func (ets EncodedTaskStep) AsTaskStepProperties() (*TaskStepProperties, bool)

AsTaskStepProperties is the BasicTaskStepProperties implementation for EncodedTaskStep.

func (EncodedTaskStep) MarshalJSON

func (ets EncodedTaskStep) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EncodedTaskStep.

type EncodedTaskStepUpdateParameters

EncodedTaskStepUpdateParameters the properties for updating encoded task step.

type EncodedTaskStepUpdateParameters struct {
    // EncodedTaskContent - Base64 encoded value of the template/definition file content.
    EncodedTaskContent *string `json:"encodedTaskContent,omitempty"`
    // EncodedValuesContent - Base64 encoded value of the parameters/values file content.
    EncodedValuesContent *string `json:"encodedValuesContent,omitempty"`
    // Values - The collection of overridable values that can be passed when running a task.
    Values *[]SetValue `json:"values,omitempty"`
    // ContextPath - The URL(absolute or relative) of the source context for the task step.
    ContextPath *string `json:"contextPath,omitempty"`
    // ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
    ContextAccessToken *string `json:"contextAccessToken,omitempty"`
    // Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask'
    Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"`
}

func (EncodedTaskStepUpdateParameters) AsBasicTaskStepUpdateParameters

func (etsup EncodedTaskStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)

AsBasicTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for EncodedTaskStepUpdateParameters.

func (EncodedTaskStepUpdateParameters) AsDockerBuildStepUpdateParameters

func (etsup EncodedTaskStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)

AsDockerBuildStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for EncodedTaskStepUpdateParameters.

func (EncodedTaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters

func (etsup EncodedTaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)

AsEncodedTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for EncodedTaskStepUpdateParameters.

func (EncodedTaskStepUpdateParameters) AsFileTaskStepUpdateParameters

func (etsup EncodedTaskStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)

AsFileTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for EncodedTaskStepUpdateParameters.

func (EncodedTaskStepUpdateParameters) AsTaskStepUpdateParameters

func (etsup EncodedTaskStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)

AsTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for EncodedTaskStepUpdateParameters.

func (EncodedTaskStepUpdateParameters) MarshalJSON

func (etsup EncodedTaskStepUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EncodedTaskStepUpdateParameters.

type Event

Event the event for a webhook.

type Event struct {
    // EventRequestMessage - The event request message sent to the service URI.
    EventRequestMessage *EventRequestMessage `json:"eventRequestMessage,omitempty"`
    // EventResponseMessage - The event response message received from the service URI.
    EventResponseMessage *EventResponseMessage `json:"eventResponseMessage,omitempty"`
    // ID - The event ID.
    ID *string `json:"id,omitempty"`
}

type EventContent

EventContent the content of the event request message.

type EventContent struct {
    // ID - The event ID.
    ID *string `json:"id,omitempty"`
    // Timestamp - The time at which the event occurred.
    Timestamp *date.Time `json:"timestamp,omitempty"`
    // Action - The action that encompasses the provided event.
    Action *string `json:"action,omitempty"`
    // Target - The target of the event.
    Target *Target `json:"target,omitempty"`
    // Request - The request that generated the event.
    Request *Request `json:"request,omitempty"`
    // Actor - The agent that initiated the event. For most situations, this could be from the authorization context of the request.
    Actor *Actor `json:"actor,omitempty"`
    // Source - The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
    Source *Source `json:"source,omitempty"`
}

type EventInfo

EventInfo the basic information of an event.

type EventInfo struct {
    autorest.Response `json:"-"`
    // ID - The event ID.
    ID *string `json:"id,omitempty"`
}

type EventListResult

EventListResult the result of a request to list events for a webhook.

type EventListResult struct {
    autorest.Response `json:"-"`
    // Value - 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"`
    // NextLink - The URI that can be used to request the next list of events.
    NextLink *string `json:"nextLink,omitempty"`
}

func (EventListResult) IsEmpty

func (elr EventListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type EventListResultIterator

EventListResultIterator provides access to a complete listing of Event values.

type EventListResultIterator struct {
    // contains filtered or unexported fields
}

func NewEventListResultIterator

func NewEventListResultIterator(page EventListResultPage) EventListResultIterator

Creates a new instance of the EventListResultIterator type.

func (*EventListResultIterator) Next

func (iter *EventListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*EventListResultIterator) NextWithContext

func (iter *EventListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (EventListResultIterator) NotDone

func (iter EventListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (EventListResultIterator) Response

func (iter EventListResultIterator) Response() EventListResult

Response returns the raw server response from the last page request.

func (EventListResultIterator) Value

func (iter EventListResultIterator) Value() Event

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type EventListResultPage

EventListResultPage contains a page of Event values.

type EventListResultPage struct {
    // contains filtered or unexported fields
}

func NewEventListResultPage

func NewEventListResultPage(cur EventListResult, getNextPage func(context.Context, EventListResult) (EventListResult, error)) EventListResultPage

Creates a new instance of the EventListResultPage type.

func (*EventListResultPage) Next

func (page *EventListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*EventListResultPage) NextWithContext

func (page *EventListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (EventListResultPage) NotDone

func (page EventListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (EventListResultPage) Response

func (page EventListResultPage) Response() EventListResult

Response returns the raw server response from the last page request.

func (EventListResultPage) Values

func (page EventListResultPage) Values() []Event

Values returns the slice of values for the current page or nil if there are no values.

type EventRequestMessage

EventRequestMessage the event request message sent to the service URI.

type EventRequestMessage struct {
    // Content - The content of the event request message.
    Content *EventContent `json:"content,omitempty"`
    // Headers - The headers of the event request message.
    Headers map[string]*string `json:"headers"`
    // Method - The HTTP method used to send the event request message.
    Method *string `json:"method,omitempty"`
    // RequestURI - The URI used to send the event request message.
    RequestURI *string `json:"requestUri,omitempty"`
    // Version - The HTTP message version.
    Version *string `json:"version,omitempty"`
}

func (EventRequestMessage) MarshalJSON

func (erm EventRequestMessage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventRequestMessage.

type EventResponseMessage

EventResponseMessage the event response message received from the service URI.

type EventResponseMessage struct {
    // Content - The content of the event response message.
    Content *string `json:"content,omitempty"`
    // Headers - The headers of the event response message.
    Headers map[string]*string `json:"headers"`
    // ReasonPhrase - The reason phrase of the event response message.
    ReasonPhrase *string `json:"reasonPhrase,omitempty"`
    // StatusCode - The status code of the event response message.
    StatusCode *string `json:"statusCode,omitempty"`
    // Version - The HTTP message version.
    Version *string `json:"version,omitempty"`
}

func (EventResponseMessage) MarshalJSON

func (erm EventResponseMessage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventResponseMessage.

type FileTaskRunRequest

FileTaskRunRequest the request parameters for a scheduling run against a task file.

type FileTaskRunRequest struct {
    // TaskFilePath - The template/definition file path relative to the source.
    TaskFilePath *string `json:"taskFilePath,omitempty"`
    // ValuesFilePath - The values/parameters file path relative to the source.
    ValuesFilePath *string `json:"valuesFilePath,omitempty"`
    // Values - The collection of overridable values that can be passed when running a task.
    Values *[]SetValue `json:"values,omitempty"`
    // Timeout - Run timeout in seconds.
    Timeout *int32 `json:"timeout,omitempty"`
    // Platform - The platform properties against which the run has to happen.
    Platform *PlatformProperties `json:"platform,omitempty"`
    // AgentConfiguration - The machine configuration of the run agent.
    AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
    // SourceLocation - The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
    // If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
    SourceLocation *string `json:"sourceLocation,omitempty"`
    // Credentials - The properties that describes a set of credentials that will be used when this run is invoked.
    Credentials *Credentials `json:"credentials,omitempty"`
    // IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not.
    IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
    // Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest'
    Type Type `json:"type,omitempty"`
}

func (FileTaskRunRequest) AsBasicRunRequest

func (ftrr FileTaskRunRequest) AsBasicRunRequest() (BasicRunRequest, bool)

AsBasicRunRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) AsDockerBuildRequest

func (ftrr FileTaskRunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)

AsDockerBuildRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) AsEncodedTaskRunRequest

func (ftrr FileTaskRunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)

AsEncodedTaskRunRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) AsFileTaskRunRequest

func (ftrr FileTaskRunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)

AsFileTaskRunRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) AsRunRequest

func (ftrr FileTaskRunRequest) AsRunRequest() (*RunRequest, bool)

AsRunRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) AsTaskRunRequest

func (ftrr FileTaskRunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)

AsTaskRunRequest is the BasicRunRequest implementation for FileTaskRunRequest.

func (FileTaskRunRequest) MarshalJSON

func (ftrr FileTaskRunRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FileTaskRunRequest.

type FileTaskStep

FileTaskStep the properties of a task step.

type FileTaskStep struct {
    // TaskFilePath - The task template/definition file path relative to the source context.
    TaskFilePath *string `json:"taskFilePath,omitempty"`
    // ValuesFilePath - The task values/parameters file path relative to the source context.
    ValuesFilePath *string `json:"valuesFilePath,omitempty"`
    // Values - The collection of overridable values that can be passed when running a task.
    Values *[]SetValue `json:"values,omitempty"`
    // BaseImageDependencies - READ-ONLY; List of base image dependencies for a step.
    BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"`
    // ContextPath - The URL(absolute or relative) of the source context for the task step.
    ContextPath *string `json:"contextPath,omitempty"`
    // ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
    ContextAccessToken *string `json:"contextAccessToken,omitempty"`
    // Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask'
    Type TypeBasicTaskStepProperties `json:"type,omitempty"`
}

func (FileTaskStep) AsBasicTaskStepProperties

func (fts FileTaskStep) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)

AsBasicTaskStepProperties is the BasicTaskStepProperties implementation for FileTaskStep.

func (FileTaskStep) AsDockerBuildStep

func (fts FileTaskStep) AsDockerBuildStep() (*DockerBuildStep, bool)

AsDockerBuildStep is the BasicTaskStepProperties implementation for FileTaskStep.

func (FileTaskStep) AsEncodedTaskStep

func (fts FileTaskStep) AsEncodedTaskStep() (*EncodedTaskStep, bool)

AsEncodedTaskStep is the BasicTaskStepProperties implementation for FileTaskStep.

func (FileTaskStep) AsFileTaskStep

func (fts FileTaskStep) AsFileTaskStep() (*FileTaskStep, bool)

AsFileTaskStep is the BasicTaskStepProperties implementation for FileTaskStep.

func (FileTaskStep) AsTaskStepProperties

func (fts FileTaskStep) AsTaskStepProperties() (*TaskStepProperties, bool)

AsTaskStepProperties is the BasicTaskStepProperties implementation for FileTaskStep.

func (FileTaskStep) MarshalJSON

func (fts FileTaskStep) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FileTaskStep.

type FileTaskStepUpdateParameters

FileTaskStepUpdateParameters the properties of updating a task step.

type FileTaskStepUpdateParameters struct {
    // TaskFilePath - The task template/definition file path relative to the source context.
    TaskFilePath *string `json:"taskFilePath,omitempty"`
    // ValuesFilePath - The values/parameters file path relative to the source context.
    ValuesFilePath *string `json:"valuesFilePath,omitempty"`
    // Values - The collection of overridable values that can be passed when running a task.
    Values *[]SetValue `json:"values,omitempty"`
    // ContextPath - The URL(absolute or relative) of the source context for the task step.
    ContextPath *string `json:"contextPath,omitempty"`
    // ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
    ContextAccessToken *string `json:"contextAccessToken,omitempty"`
    // Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask'
    Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"`
}

func (FileTaskStepUpdateParameters) AsBasicTaskStepUpdateParameters

func (ftsup FileTaskStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)

AsBasicTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for FileTaskStepUpdateParameters.

func (FileTaskStepUpdateParameters) AsDockerBuildStepUpdateParameters

func (ftsup FileTaskStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)

AsDockerBuildStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for FileTaskStepUpdateParameters.

func (FileTaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters

func (ftsup FileTaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)

AsEncodedTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for FileTaskStepUpdateParameters.

func (FileTaskStepUpdateParameters) AsFileTaskStepUpdateParameters

func (ftsup FileTaskStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)

AsFileTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for FileTaskStepUpdateParameters.

func (FileTaskStepUpdateParameters) AsTaskStepUpdateParameters

func (ftsup FileTaskStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)

AsTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for FileTaskStepUpdateParameters.

func (FileTaskStepUpdateParameters) MarshalJSON

func (ftsup FileTaskStepUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FileTaskStepUpdateParameters.

type IPRule

IPRule IP rule with specific IP or IP range in CIDR format.

type IPRule struct {
    // Action - The action of IP ACL rule. Possible values include: 'Allow'
    Action Action `json:"action,omitempty"`
    // IPAddressOrRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    IPAddressOrRange *string `json:"value,omitempty"`
}

type IdentityProperties

IdentityProperties managed identity for the resource.

type IdentityProperties struct {
    // PrincipalID - The principal ID of resource identity.
    PrincipalID *string `json:"principalId,omitempty"`
    // TenantID - The tenant ID of resource.
    TenantID *string `json:"tenantId,omitempty"`
    // Type - The identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssignedUserAssigned', 'None'
    Type ResourceIdentityType `json:"type,omitempty"`
    // UserAssignedIdentities - The list of user identities associated with the resource. The user identity
    // dictionary key references will be ARM resource ids in the form:
    // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/
    //     providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    UserAssignedIdentities map[string]*UserIdentityProperties `json:"userAssignedIdentities"`
}

func (IdentityProperties) MarshalJSON

func (IP IdentityProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IdentityProperties.

type ImageDescriptor

ImageDescriptor properties for a registry image.

type ImageDescriptor struct {
    // Registry - The registry login server.
    Registry *string `json:"registry,omitempty"`
    // Repository - The repository name.
    Repository *string `json:"repository,omitempty"`
    // Tag - The tag name.
    Tag *string `json:"tag,omitempty"`
    // Digest - The sha256-based digest of the image manifest.
    Digest *string `json:"digest,omitempty"`
}

type ImageUpdateTrigger

ImageUpdateTrigger the image update trigger that caused a build.

type ImageUpdateTrigger struct {
    // ID - The unique ID of the trigger.
    ID *string `json:"id,omitempty"`
    // Timestamp - The timestamp when the image update happened.
    Timestamp *date.Time `json:"timestamp,omitempty"`
    // Images - The list of image updates that caused the build.
    Images *[]ImageDescriptor `json:"images,omitempty"`
}

type ImportImageParameters

ImportImageParameters ...

type ImportImageParameters struct {
    // Source - The source of the image.
    Source *ImportSource `json:"source,omitempty"`
    // TargetTags - 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"`
    // UntaggedTargetRepositories - List of strings of repository names to do a manifest only copy. No tag will be created.
    UntaggedTargetRepositories *[]string `json:"untaggedTargetRepositories,omitempty"`
    // Mode - When Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation before any copying begins. Possible values include: 'NoForce', 'Force'
    Mode ImportMode `json:"mode,omitempty"`
}

type ImportMode

ImportMode enumerates the values for import mode.

type ImportMode string
const (
    // Force ...
    Force ImportMode = "Force"
    // NoForce ...
    NoForce ImportMode = "NoForce"
)

func PossibleImportModeValues

func PossibleImportModeValues() []ImportMode

PossibleImportModeValues returns an array of possible values for the ImportMode const type.

type ImportSource

ImportSource ...

type ImportSource struct {
    // ResourceID - The resource identifier of the source Azure Container Registry.
    ResourceID *string `json:"resourceId,omitempty"`
    // RegistryURI - The address of the source registry (e.g. 'mcr.microsoft.com').
    RegistryURI *string `json:"registryUri,omitempty"`
    // Credentials - Credentials used when importing from a registry uri.
    Credentials *ImportSourceCredentials `json:"credentials,omitempty"`
    // SourceImage - 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"`
}

type ImportSourceCredentials

ImportSourceCredentials ...

type ImportSourceCredentials struct {
    // Username - The username to authenticate with the source registry.
    Username *string `json:"username,omitempty"`
    // Password - The password used to authenticate with the source registry.
    Password *string `json:"password,omitempty"`
}

type NetworkRuleSet

NetworkRuleSet the network rule set for a container registry.

type NetworkRuleSet struct {
    // DefaultAction - The default action of allow or deny when no other rules match. Possible values include: 'DefaultActionAllow', 'DefaultActionDeny'
    DefaultAction DefaultAction `json:"defaultAction,omitempty"`
    // VirtualNetworkRules - The virtual network rules.
    VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"`
    // IPRules - The IP ACL rules.
    IPRules *[]IPRule `json:"ipRules,omitempty"`
}

type OS

OS enumerates the values for os.

type OS string
const (
    // Linux ...
    Linux OS = "Linux"
    // Windows ...
    Windows OS = "Windows"
)

func PossibleOSValues

func PossibleOSValues() []OS

PossibleOSValues returns an array of possible values for the OS const type.

type OperationDefinition

OperationDefinition the definition of a container registry operation.

type OperationDefinition struct {
    // Origin - The origin information of the container registry operation.
    Origin *string `json:"origin,omitempty"`
    // Name - Operation name: {provider}/{resource}/{operation}.
    Name *string `json:"name,omitempty"`
    // Display - The display information for the container registry operation.
    Display *OperationDisplayDefinition `json:"display,omitempty"`
    // OperationPropertiesDefinition - The properties information for the container registry operation.
    *OperationPropertiesDefinition `json:"properties,omitempty"`
}

func (OperationDefinition) MarshalJSON

func (od OperationDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationDefinition.

func (*OperationDefinition) UnmarshalJSON

func (od *OperationDefinition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for OperationDefinition struct.

type OperationDisplayDefinition

OperationDisplayDefinition the display information for a container registry operation.

type OperationDisplayDefinition struct {
    // Provider - The resource provider name: Microsoft.ContainerRegistry.
    Provider *string `json:"provider,omitempty"`
    // Resource - The resource on which the operation is performed.
    Resource *string `json:"resource,omitempty"`
    // Operation - The operation that users can perform.
    Operation *string `json:"operation,omitempty"`
    // Description - The description for the operation.
    Description *string `json:"description,omitempty"`
}

type OperationListResult

OperationListResult the result of a request to list container registry operations.

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - 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"`
    // NextLink - The URI that can be used to request the next list of container registry operations.
    NextLink *string `json:"nextLink,omitempty"`
}

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

OperationListResultIterator provides access to a complete listing of OperationDefinition values.

type OperationListResultIterator struct {
    // contains filtered or unexported fields
}

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

func (iter OperationListResultIterator) Response() OperationListResult

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

func (iter OperationListResultIterator) Value() OperationDefinition

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

OperationListResultPage contains a page of OperationDefinition values.

type OperationListResultPage struct {
    // contains filtered or unexported fields
}

func NewOperationListResultPage

func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

func (page OperationListResultPage) Response() OperationListResult

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []OperationDefinition

Values returns the slice of values for the current page or nil if there are no values.

type OperationMetricSpecificationDefinition

OperationMetricSpecificationDefinition the definition of Azure Monitoring metric.

type OperationMetricSpecificationDefinition struct {
    // Name - Metric name.
    Name *string `json:"name,omitempty"`
    // DisplayName - Metric display name.
    DisplayName *string `json:"displayName,omitempty"`
    // DisplayDescription - Metric description.
    DisplayDescription *string `json:"displayDescription,omitempty"`
    // Unit - Metric unit.
    Unit *string `json:"unit,omitempty"`
    // AggregationType - Metric aggregation type.
    AggregationType *string `json:"aggregationType,omitempty"`
    // InternalMetricName - Internal metric name.
    InternalMetricName *string `json:"internalMetricName,omitempty"`
}

type OperationPropertiesDefinition

OperationPropertiesDefinition the definition of Azure Monitoring properties.

type OperationPropertiesDefinition struct {
    // ServiceSpecification - The definition of Azure Monitoring service.
    ServiceSpecification *OperationServiceSpecificationDefinition `json:"serviceSpecification,omitempty"`
}

type OperationServiceSpecificationDefinition

OperationServiceSpecificationDefinition the definition of Azure Monitoring list.

type OperationServiceSpecificationDefinition struct {
    // MetricSpecifications - A list of Azure Monitoring metrics definition.
    MetricSpecifications *[]OperationMetricSpecificationDefinition `json:"metricSpecifications,omitempty"`
}

type OperationsClient

OperationsClient is the client for the Operations methods of the Containerregistry service.

type OperationsClient struct {
    BaseClient
}

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available Azure Container Registry REST API operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PasswordName

PasswordName enumerates the values for password name.

type PasswordName string
const (
    // Password ...
    Password PasswordName = "password"
    // Password2 ...
    Password2 PasswordName = "password2"
)

func PossiblePasswordNameValues

func PossiblePasswordNameValues() []PasswordName

PossiblePasswordNameValues returns an array of possible values for the PasswordName const type.

type PlatformProperties

PlatformProperties the platform properties against which the run has to happen.

type PlatformProperties struct {
    // Os - The operating system type required for the run. Possible values include: 'Windows', 'Linux'
    Os OS `json:"os,omitempty"`
    // Architecture - The OS architecture. Possible values include: 'Amd64', 'X86', 'Arm'
    Architecture Architecture `json:"architecture,omitempty"`
    // Variant - Variant of the CPU. Possible values include: 'V6', 'V7', 'V8'
    Variant Variant `json:"variant,omitempty"`
}

type PlatformUpdateParameters

PlatformUpdateParameters the properties for updating the platform configuration.

type PlatformUpdateParameters struct {
    // Os - The operating system type required for the run. Possible values include: 'Windows', 'Linux'
    Os OS `json:"os,omitempty"`
    // Architecture - The OS architecture. Possible values include: 'Amd64', 'X86', 'Arm'
    Architecture Architecture `json:"architecture,omitempty"`
    // Variant - Variant of the CPU. Possible values include: 'V6', 'V7', 'V8'
    Variant Variant `json:"variant,omitempty"`
}

type Policies

Policies the policies for a container registry.

type Policies struct {
    // QuarantinePolicy - The quarantine policy for a container registry.
    QuarantinePolicy *QuarantinePolicy `json:"quarantinePolicy,omitempty"`
    // TrustPolicy - The content trust policy for a container registry.
    TrustPolicy *TrustPolicy `json:"trustPolicy,omitempty"`
    // RetentionPolicy - The retention policy for a container registry.
    RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`
}

type PolicyStatus

PolicyStatus enumerates the values for policy status.

type PolicyStatus string
const (
    // Disabled ...
    Disabled PolicyStatus = "disabled"
    // Enabled ...
    Enabled PolicyStatus = "enabled"
)

func PossiblePolicyStatusValues

func PossiblePolicyStatusValues() []PolicyStatus

PossiblePolicyStatusValues returns an array of possible values for the PolicyStatus const type.

type ProvisioningState

ProvisioningState enumerates the values for provisioning state.

type ProvisioningState string
const (
    // Canceled ...
    Canceled ProvisioningState = "Canceled"
    // Creating ...
    Creating ProvisioningState = "Creating"
    // Deleting ...
    Deleting ProvisioningState = "Deleting"
    // Failed ...
    Failed ProvisioningState = "Failed"
    // Succeeded ...
    Succeeded ProvisioningState = "Succeeded"
    // Updating ...
    Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ProxyResource

ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags.

type ProxyResource struct {
    // ID - READ-ONLY; The resource ID.
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    Type *string `json:"type,omitempty"`
}

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type QuarantinePolicy

QuarantinePolicy the quarantine policy for a container registry.

type QuarantinePolicy struct {
    // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'Enabled', 'Disabled'
    Status PolicyStatus `json:"status,omitempty"`
}

type RegenerateCredentialParameters

RegenerateCredentialParameters the parameters used to regenerate the login credential.

type RegenerateCredentialParameters struct {
    // Name - Specifies name of the password which should be regenerated -- password or password2. Possible values include: 'Password', 'Password2'
    Name PasswordName `json:"name,omitempty"`
}

type RegistriesClient

RegistriesClient is the client for the Registries methods of the Containerregistry service.

type RegistriesClient struct {
    BaseClient
}

func NewRegistriesClient

func NewRegistriesClient(subscriptionID string) RegistriesClient

NewRegistriesClient creates an instance of the RegistriesClient client.

func NewRegistriesClientWithBaseURI

func NewRegistriesClientWithBaseURI(baseURI string, subscriptionID string) RegistriesClient

NewRegistriesClientWithBaseURI creates an instance of the RegistriesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RegistriesClient) CheckNameAvailability

func (client RegistriesClient) CheckNameAvailability(ctx context.Context, registryNameCheckRequest RegistryNameCheckRequest) (result RegistryNameStatus, err 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. Parameters: registryNameCheckRequest - the object containing information for the availability request.

func (RegistriesClient) CheckNameAvailabilityPreparer

func (client RegistriesClient) CheckNameAvailabilityPreparer(ctx context.Context, registryNameCheckRequest RegistryNameCheckRequest) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (RegistriesClient) CheckNameAvailabilityResponder

func (client RegistriesClient) CheckNameAvailabilityResponder(resp *http.Response) (result RegistryNameStatus, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (RegistriesClient) CheckNameAvailabilitySender

func (client RegistriesClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) Create

func (client RegistriesClient) Create(ctx context.Context, resourceGroupName string, registryName string, registry Registry) (result RegistriesCreateFuture, err error)

Create creates a container registry with the specified parameters. Parameters: 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.

func (RegistriesClient) CreatePreparer

func (client RegistriesClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, registry Registry) (*http.Request, error)

CreatePreparer prepares the Create request.

func (RegistriesClient) CreateResponder

func (client RegistriesClient) CreateResponder(resp *http.Response) (result Registry, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (RegistriesClient) CreateSender

func (client RegistriesClient) CreateSender(req *http.Request) (future RegistriesCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) Delete

func (client RegistriesClient) Delete(ctx context.Context, resourceGroupName string, registryName string) (result RegistriesDeleteFuture, err error)

Delete deletes a container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) DeletePreparer

func (client RegistriesClient) DeletePreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (RegistriesClient) DeleteResponder

func (client RegistriesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (RegistriesClient) DeleteSender

func (client RegistriesClient) DeleteSender(req *http.Request) (future RegistriesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) Get

func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string, registryName string) (result Registry, err error)

Get gets the properties of the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) GetBuildSourceUploadURL

func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, resourceGroupName string, registryName string) (result SourceUploadDefinition, err error)

GetBuildSourceUploadURL get the upload location for the user to be able to upload the source. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) GetBuildSourceUploadURLPreparer

func (client RegistriesClient) GetBuildSourceUploadURLPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)

GetBuildSourceUploadURLPreparer prepares the GetBuildSourceUploadURL request.

func (RegistriesClient) GetBuildSourceUploadURLResponder

func (client RegistriesClient) GetBuildSourceUploadURLResponder(resp *http.Response) (result SourceUploadDefinition, err error)

GetBuildSourceUploadURLResponder handles the response to the GetBuildSourceUploadURL request. The method always closes the http.Response Body.

func (RegistriesClient) GetBuildSourceUploadURLSender

func (client RegistriesClient) GetBuildSourceUploadURLSender(req *http.Request) (*http.Response, error)

GetBuildSourceUploadURLSender sends the GetBuildSourceUploadURL request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) GetPreparer

func (client RegistriesClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RegistriesClient) GetResponder

func (client RegistriesClient) GetResponder(resp *http.Response) (result Registry, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RegistriesClient) GetSender

func (client RegistriesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) ImportImage

func (client RegistriesClient) ImportImage(ctx context.Context, resourceGroupName string, registryName string, parameters ImportImageParameters) (result RegistriesImportImageFuture, err error)

ImportImage copies an image to this container registry from the specified container registry. Parameters: 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.

func (RegistriesClient) ImportImagePreparer

func (client RegistriesClient) ImportImagePreparer(ctx context.Context, resourceGroupName string, registryName string, parameters ImportImageParameters) (*http.Request, error)

ImportImagePreparer prepares the ImportImage request.

func (RegistriesClient) ImportImageResponder

func (client RegistriesClient) ImportImageResponder(resp *http.Response) (result autorest.Response, err error)

ImportImageResponder handles the response to the ImportImage request. The method always closes the http.Response Body.

func (RegistriesClient) ImportImageSender

func (client RegistriesClient) ImportImageSender(req *http.Request) (future RegistriesImportImageFuture, err error)

ImportImageSender sends the ImportImage request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) List

func (client RegistriesClient) List(ctx context.Context) (result RegistryListResultPage, err error)

List lists all the container registries under the specified subscription.

func (RegistriesClient) ListByResourceGroup

func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result RegistryListResultPage, err error)

ListByResourceGroup lists all the container registries under the specified resource group. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs.

func (RegistriesClient) ListByResourceGroupComplete

func (client RegistriesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result RegistryListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (RegistriesClient) ListByResourceGroupPreparer

func (client RegistriesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (RegistriesClient) ListByResourceGroupResponder

func (client RegistriesClient) ListByResourceGroupResponder(resp *http.Response) (result RegistryListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (RegistriesClient) ListByResourceGroupSender

func (client RegistriesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) ListComplete

func (client RegistriesClient) ListComplete(ctx context.Context) (result RegistryListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (RegistriesClient) ListCredentials

func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGroupName string, registryName string) (result RegistryListCredentialsResult, err error)

ListCredentials lists the login credentials for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) ListCredentialsPreparer

func (client RegistriesClient) ListCredentialsPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)

ListCredentialsPreparer prepares the ListCredentials request.

func (RegistriesClient) ListCredentialsResponder

func (client RegistriesClient) ListCredentialsResponder(resp *http.Response) (result RegistryListCredentialsResult, err error)

ListCredentialsResponder handles the response to the ListCredentials request. The method always closes the http.Response Body.

func (RegistriesClient) ListCredentialsSender

func (client RegistriesClient) ListCredentialsSender(req *http.Request) (*http.Response, error)

ListCredentialsSender sends the ListCredentials request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) ListPreparer

func (client RegistriesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (RegistriesClient) ListResponder

func (client RegistriesClient) ListResponder(resp *http.Response) (result RegistryListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (RegistriesClient) ListSender

func (client RegistriesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) ListUsages

func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName string, registryName string) (result RegistryUsageListResult, err error)

ListUsages gets the quota usages for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (RegistriesClient) ListUsagesPreparer

func (client RegistriesClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)

ListUsagesPreparer prepares the ListUsages request.

func (RegistriesClient) ListUsagesResponder

func (client RegistriesClient) ListUsagesResponder(resp *http.Response) (result RegistryUsageListResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (RegistriesClient) ListUsagesSender

func (client RegistriesClient) ListUsagesSender(req *http.Request) (*http.Response, error)

ListUsagesSender sends the ListUsages request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) RegenerateCredential

func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourceGroupName string, registryName string, regenerateCredentialParameters RegenerateCredentialParameters) (result RegistryListCredentialsResult, err error)

RegenerateCredential regenerates one of the login credentials for the specified container registry. Parameters: 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.

func (RegistriesClient) RegenerateCredentialPreparer

func (client RegistriesClient) RegenerateCredentialPreparer(ctx context.Context, resourceGroupName string, registryName string, regenerateCredentialParameters RegenerateCredentialParameters) (*http.Request, error)

RegenerateCredentialPreparer prepares the RegenerateCredential request.

func (RegistriesClient) RegenerateCredentialResponder

func (client RegistriesClient) RegenerateCredentialResponder(resp *http.Response) (result RegistryListCredentialsResult, err error)

RegenerateCredentialResponder handles the response to the RegenerateCredential request. The method always closes the http.Response Body.

func (RegistriesClient) RegenerateCredentialSender

func (client RegistriesClient) RegenerateCredentialSender(req *http.Request) (*http.Response, error)

RegenerateCredentialSender sends the RegenerateCredential request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) ScheduleRun

func (client RegistriesClient) ScheduleRun(ctx context.Context, resourceGroupName string, registryName string, runRequest BasicRunRequest) (result RegistriesScheduleRunFuture, err error)

ScheduleRun schedules a new run based on the request parameters and add it to the run queue. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. runRequest - the parameters of a run that needs to scheduled.

func (RegistriesClient) ScheduleRunPreparer

func (client RegistriesClient) ScheduleRunPreparer(ctx context.Context, resourceGroupName string, registryName string, runRequest BasicRunRequest) (*http.Request, error)

ScheduleRunPreparer prepares the ScheduleRun request.

func (RegistriesClient) ScheduleRunResponder

func (client RegistriesClient) ScheduleRunResponder(resp *http.Response) (result Run, err error)

ScheduleRunResponder handles the response to the ScheduleRun request. The method always closes the http.Response Body.

func (RegistriesClient) ScheduleRunSender

func (client RegistriesClient) ScheduleRunSender(req *http.Request) (future RegistriesScheduleRunFuture, err error)

ScheduleRunSender sends the ScheduleRun request. The method will close the http.Response Body if it receives an error.

func (RegistriesClient) Update

func (client RegistriesClient) Update(ctx context.Context, resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters) (result RegistriesUpdateFuture, err error)

Update updates a container registry with the specified parameters. Parameters: 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.

func (RegistriesClient) UpdatePreparer

func (client RegistriesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (RegistriesClient) UpdateResponder

func (client RegistriesClient) UpdateResponder(resp *http.Response) (result Registry, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (RegistriesClient) UpdateSender

func (client RegistriesClient) UpdateSender(req *http.Request) (future RegistriesUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type RegistriesCreateFuture

RegistriesCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type RegistriesCreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegistriesClient) (Registry, error)
}

func (*RegistriesCreateFuture) UnmarshalJSON

func (future *RegistriesCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistriesDeleteFuture

RegistriesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type RegistriesDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegistriesClient) (autorest.Response, error)
}

func (*RegistriesDeleteFuture) UnmarshalJSON

func (future *RegistriesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistriesImportImageFuture

RegistriesImportImageFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type RegistriesImportImageFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegistriesClient) (autorest.Response, error)
}

func (*RegistriesImportImageFuture) UnmarshalJSON

func (future *RegistriesImportImageFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistriesScheduleRunFuture

RegistriesScheduleRunFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type RegistriesScheduleRunFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegistriesClient) (Run, error)
}

func (*RegistriesScheduleRunFuture) UnmarshalJSON

func (future *RegistriesScheduleRunFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegistriesUpdateFuture

RegistriesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type RegistriesUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegistriesClient) (Registry, error)
}

func (*RegistriesUpdateFuture) UnmarshalJSON

func (future *RegistriesUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Registry

Registry an object that represents a container registry.

type Registry struct {
    autorest.Response `json:"-"`
    // Sku - The SKU of the container registry.
    Sku *Sku `json:"sku,omitempty"`
    // RegistryProperties - The properties of the container registry.
    *RegistryProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The resource ID.
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    Type *string `json:"type,omitempty"`
    // Location - The location of the resource. This cannot be changed after the resource is created.
    Location *string `json:"location,omitempty"`
    // Tags - The tags of the resource.
    Tags map[string]*string `json:"tags"`
}

func (Registry) MarshalJSON

func (r Registry) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Registry.

func (*Registry) UnmarshalJSON

func (r *Registry) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Registry struct.

type RegistryListCredentialsResult

RegistryListCredentialsResult the response from the ListCredentials operation.

type RegistryListCredentialsResult struct {
    autorest.Response `json:"-"`
    // Username - The username for a container registry.
    Username *string `json:"username,omitempty"`
    // Passwords - The list of passwords for a container registry.
    Passwords *[]RegistryPassword `json:"passwords,omitempty"`
}

type RegistryListResult

RegistryListResult the result of a request to list container registries.

type RegistryListResult struct {
    autorest.Response `json:"-"`
    // Value - 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"`
    // NextLink - The URI that can be used to request the next list of container registries.
    NextLink *string `json:"nextLink,omitempty"`
}

func (RegistryListResult) IsEmpty

func (rlr RegistryListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RegistryListResultIterator

RegistryListResultIterator provides access to a complete listing of Registry values.

type RegistryListResultIterator struct {
    // contains filtered or unexported fields
}

func NewRegistryListResultIterator

func NewRegistryListResultIterator(page RegistryListResultPage) RegistryListResultIterator

Creates a new instance of the RegistryListResultIterator type.

func (*RegistryListResultIterator) Next

func (iter *RegistryListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RegistryListResultIterator) NextWithContext

func (iter *RegistryListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (RegistryListResultIterator) NotDone

func (iter RegistryListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (RegistryListResultIterator) Response

func (iter RegistryListResultIterator) Response() RegistryListResult

Response returns the raw server response from the last page request.

func (RegistryListResultIterator) Value

func (iter RegistryListResultIterator) Value() Registry

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type RegistryListResultPage

RegistryListResultPage contains a page of Registry values.

type RegistryListResultPage struct {
    // contains filtered or unexported fields
}

func NewRegistryListResultPage

func NewRegistryListResultPage(cur RegistryListResult, getNextPage func(context.Context, RegistryListResult) (RegistryListResult, error)) RegistryListResultPage

Creates a new instance of the RegistryListResultPage type.

func (*RegistryListResultPage) Next

func (page *RegistryListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RegistryListResultPage) NextWithContext

func (page *RegistryListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (RegistryListResultPage) NotDone

func (page RegistryListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (RegistryListResultPage) Response

func (page RegistryListResultPage) Response() RegistryListResult

Response returns the raw server response from the last page request.

func (RegistryListResultPage) Values

func (page RegistryListResultPage) Values() []Registry

Values returns the slice of values for the current page or nil if there are no values.

type RegistryNameCheckRequest

RegistryNameCheckRequest a request to check whether a container registry name is available.

type RegistryNameCheckRequest struct {
    // Name - The name of the container registry.
    Name *string `json:"name,omitempty"`
    // Type - The resource type of the container registry. This field must be set to 'Microsoft.ContainerRegistry/registries'.
    Type *string `json:"type,omitempty"`
}

type RegistryNameStatus

RegistryNameStatus the result of a request to check the availability of a container registry name.

type RegistryNameStatus struct {
    autorest.Response `json:"-"`
    // NameAvailable - The value that indicates whether the name is available.
    NameAvailable *bool `json:"nameAvailable,omitempty"`
    // Reason - If any, the reason that the name is not available.
    Reason *string `json:"reason,omitempty"`
    // Message - If any, the error message that provides more detail for the reason that the name is not available.
    Message *string `json:"message,omitempty"`
}

type RegistryPassword

RegistryPassword the login password for the container registry.

type RegistryPassword struct {
    // Name - The password name. Possible values include: 'Password', 'Password2'
    Name PasswordName `json:"name,omitempty"`
    // Value - The password value.
    Value *string `json:"value,omitempty"`
}

type RegistryProperties

RegistryProperties the properties of a container registry.

type RegistryProperties struct {
    // LoginServer - READ-ONLY; The URL that can be used to log into the container registry.
    LoginServer *string `json:"loginServer,omitempty"`
    // CreationDate - READ-ONLY; The creation date of the container registry in ISO8601 format.
    CreationDate *date.Time `json:"creationDate,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state of the container registry at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // Status - READ-ONLY; The status of the container registry at the time the operation was called.
    Status *Status `json:"status,omitempty"`
    // AdminUserEnabled - The value that indicates whether the admin user is enabled.
    AdminUserEnabled *bool `json:"adminUserEnabled,omitempty"`
    // StorageAccount - The properties of the storage account for the container registry. Only applicable to Classic SKU.
    StorageAccount *StorageAccountProperties `json:"storageAccount,omitempty"`
    // NetworkRuleSet - The network rule set for a container registry.
    NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"`
    // Policies - The policies for a container registry.
    Policies *Policies `json:"policies,omitempty"`
}

func (RegistryProperties) MarshalJSON

func (rp RegistryProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistryProperties.

type RegistryPropertiesUpdateParameters

RegistryPropertiesUpdateParameters the parameters for updating the properties of a container registry.

type RegistryPropertiesUpdateParameters struct {
    // AdminUserEnabled - The value that indicates whether the admin user is enabled.
    AdminUserEnabled *bool `json:"adminUserEnabled,omitempty"`
    // NetworkRuleSet - The network rule set for a container registry.
    NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"`
    // Policies - The policies for a container registry.
    Policies *Policies `json:"policies,omitempty"`
}

type RegistryUpdateParameters

RegistryUpdateParameters the parameters for updating a container registry.

type RegistryUpdateParameters struct {
    // Tags - The tags for the container registry.
    Tags map[string]*string `json:"tags"`
    // Sku - The SKU of the container registry.
    Sku *Sku `json:"sku,omitempty"`
    // RegistryPropertiesUpdateParameters - The properties that the container registry will be updated with.
    *RegistryPropertiesUpdateParameters `json:"properties,omitempty"`
}

func (RegistryUpdateParameters) MarshalJSON

func (rup RegistryUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegistryUpdateParameters.

func (*RegistryUpdateParameters) UnmarshalJSON

func (rup *RegistryUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RegistryUpdateParameters struct.

type RegistryUsage

RegistryUsage the quota usage for a container registry.

type RegistryUsage struct {
    // Name - The name of the usage.
    Name *string `json:"name,omitempty"`
    // Limit - The limit of the usage.
    Limit *int64 `json:"limit,omitempty"`
    // CurrentValue - The current value of the usage.
    CurrentValue *int64 `json:"currentValue,omitempty"`
    // Unit - The unit of measurement. Possible values include: 'Count', 'Bytes'
    Unit RegistryUsageUnit `json:"unit,omitempty"`
}

type RegistryUsageListResult

RegistryUsageListResult the result of a request to get container registry quota usages.

type RegistryUsageListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of container registry quota usages.
    Value *[]RegistryUsage `json:"value,omitempty"`
}

type RegistryUsageUnit

RegistryUsageUnit enumerates the values for registry usage unit.

type RegistryUsageUnit string
const (
    // Bytes ...
    Bytes RegistryUsageUnit = "Bytes"
    // Count ...
    Count RegistryUsageUnit = "Count"
)

func PossibleRegistryUsageUnitValues

func PossibleRegistryUsageUnitValues() []RegistryUsageUnit

PossibleRegistryUsageUnitValues returns an array of possible values for the RegistryUsageUnit const type.

type Replication

Replication an object that represents a replication for a container registry.

type Replication struct {
    autorest.Response `json:"-"`
    // ReplicationProperties - The properties of the replication.
    *ReplicationProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The resource ID.
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    Type *string `json:"type,omitempty"`
    // Location - The location of the resource. This cannot be changed after the resource is created.
    Location *string `json:"location,omitempty"`
    // Tags - The tags of the resource.
    Tags map[string]*string `json:"tags"`
}

func (Replication) MarshalJSON

func (r Replication) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Replication.

func (*Replication) UnmarshalJSON

func (r *Replication) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Replication struct.

type ReplicationListResult

ReplicationListResult the result of a request to list replications for a container registry.

type ReplicationListResult struct {
    autorest.Response `json:"-"`
    // Value - 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"`
    // NextLink - The URI that can be used to request the next list of replications.
    NextLink *string `json:"nextLink,omitempty"`
}

func (ReplicationListResult) IsEmpty

func (rlr ReplicationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ReplicationListResultIterator

ReplicationListResultIterator provides access to a complete listing of Replication values.

type ReplicationListResultIterator struct {
    // contains filtered or unexported fields
}

func NewReplicationListResultIterator

func NewReplicationListResultIterator(page ReplicationListResultPage) ReplicationListResultIterator

Creates a new instance of the ReplicationListResultIterator type.

func (*ReplicationListResultIterator) Next

func (iter *ReplicationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ReplicationListResultIterator) NextWithContext

func (iter *ReplicationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ReplicationListResultIterator) NotDone

func (iter ReplicationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ReplicationListResultIterator) Response

func (iter ReplicationListResultIterator) Response() ReplicationListResult

Response returns the raw server response from the last page request.

func (ReplicationListResultIterator) Value

func (iter ReplicationListResultIterator) Value() Replication

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ReplicationListResultPage

ReplicationListResultPage contains a page of Replication values.

type ReplicationListResultPage struct {
    // contains filtered or unexported fields
}

func NewReplicationListResultPage

func NewReplicationListResultPage(cur ReplicationListResult, getNextPage func(context.Context, ReplicationListResult) (ReplicationListResult, error)) ReplicationListResultPage

Creates a new instance of the ReplicationListResultPage type.

func (*ReplicationListResultPage) Next

func (page *ReplicationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ReplicationListResultPage) NextWithContext

func (page *ReplicationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ReplicationListResultPage) NotDone

func (page ReplicationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ReplicationListResultPage) Response

func (page ReplicationListResultPage) Response() ReplicationListResult

Response returns the raw server response from the last page request.

func (ReplicationListResultPage) Values

func (page ReplicationListResultPage) Values() []Replication

Values returns the slice of values for the current page or nil if there are no values.

type ReplicationProperties

ReplicationProperties the properties of a replication.

type ReplicationProperties struct {
    // ProvisioningState - READ-ONLY; The provisioning state of the replication at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // Status - READ-ONLY; The status of the replication at the time the operation was called.
    Status *Status `json:"status,omitempty"`
}

func (ReplicationProperties) MarshalJSON

func (rp ReplicationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReplicationProperties.

type ReplicationUpdateParameters

ReplicationUpdateParameters the parameters for updating a replication.

type ReplicationUpdateParameters struct {
    // Tags - The tags for the replication.
    Tags map[string]*string `json:"tags"`
}

func (ReplicationUpdateParameters) MarshalJSON

func (rup ReplicationUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReplicationUpdateParameters.

type ReplicationsClient

ReplicationsClient is the client for the Replications methods of the Containerregistry service.

type ReplicationsClient struct {
    BaseClient
}

func NewReplicationsClient

func NewReplicationsClient(subscriptionID string) ReplicationsClient

NewReplicationsClient creates an instance of the ReplicationsClient client.

func NewReplicationsClientWithBaseURI

func NewReplicationsClientWithBaseURI(baseURI string, subscriptionID string) ReplicationsClient

NewReplicationsClientWithBaseURI creates an instance of the ReplicationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ReplicationsClient) Create

func (client ReplicationsClient) Create(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replication Replication) (result ReplicationsCreateFuture, err error)

Create creates a replication for a container registry with the specified parameters. Parameters: 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.

func (ReplicationsClient) CreatePreparer

func (client ReplicationsClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replication Replication) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ReplicationsClient) CreateResponder

func (client ReplicationsClient) CreateResponder(resp *http.Response) (result Replication, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ReplicationsClient) CreateSender

func (client ReplicationsClient) CreateSender(req *http.Request) (future ReplicationsCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ReplicationsClient) Delete

func (client ReplicationsClient) Delete(ctx context.Context, resourceGroupName string, registryName string, replicationName string) (result ReplicationsDeleteFuture, err error)

Delete deletes a replication from a container registry. Parameters: 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.

func (ReplicationsClient) DeletePreparer

func (client ReplicationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, registryName string, replicationName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ReplicationsClient) DeleteResponder

func (client ReplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ReplicationsClient) DeleteSender

func (client ReplicationsClient) DeleteSender(req *http.Request) (future ReplicationsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ReplicationsClient) Get

func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName string, registryName string, replicationName string) (result Replication, err error)

Get gets the properties of the specified replication. Parameters: 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.

func (ReplicationsClient) GetPreparer

func (client ReplicationsClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, replicationName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ReplicationsClient) GetResponder

func (client ReplicationsClient) GetResponder(resp *http.Response) (result Replication, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ReplicationsClient) GetSender

func (client ReplicationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ReplicationsClient) List

func (client ReplicationsClient) List(ctx context.Context, resourceGroupName string, registryName string) (result ReplicationListResultPage, err error)

List lists all the replications for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (ReplicationsClient) ListComplete

func (client ReplicationsClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string) (result ReplicationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ReplicationsClient) ListPreparer

func (client ReplicationsClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ReplicationsClient) ListResponder

func (client ReplicationsClient) ListResponder(resp *http.Response) (result ReplicationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ReplicationsClient) ListSender

func (client ReplicationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ReplicationsClient) Update

func (client ReplicationsClient) Update(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters) (result ReplicationsUpdateFuture, err error)

Update updates a replication for a container registry with the specified parameters. Parameters: 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.

func (ReplicationsClient) UpdatePreparer

func (client ReplicationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ReplicationsClient) UpdateResponder

func (client ReplicationsClient) UpdateResponder(resp *http.Response) (result Replication, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ReplicationsClient) UpdateSender

func (client ReplicationsClient) UpdateSender(req *http.Request) (future ReplicationsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ReplicationsCreateFuture

ReplicationsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ReplicationsCreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ReplicationsClient) (Replication, error)
}

func (*ReplicationsCreateFuture) UnmarshalJSON

func (future *ReplicationsCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ReplicationsDeleteFuture

ReplicationsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ReplicationsDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ReplicationsClient) (autorest.Response, error)
}

func (*ReplicationsDeleteFuture) UnmarshalJSON

func (future *ReplicationsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ReplicationsUpdateFuture

ReplicationsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ReplicationsUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ReplicationsClient) (Replication, error)
}

func (*ReplicationsUpdateFuture) UnmarshalJSON

func (future *ReplicationsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Request

Request the request that generated the event.

type Request struct {
    // ID - The ID of the request that initiated the event.
    ID *string `json:"id,omitempty"`
    // Addr - 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"`
    // Host - The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
    Host *string `json:"host,omitempty"`
    // Method - The request method that generated the event.
    Method *string `json:"method,omitempty"`
    // Useragent - The user agent header of the request.
    Useragent *string `json:"useragent,omitempty"`
}

type Resource

Resource an Azure resource.

type Resource struct {
    // ID - READ-ONLY; The resource ID.
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    Type *string `json:"type,omitempty"`
    // Location - The location of the resource. This cannot be changed after the resource is created.
    Location *string `json:"location,omitempty"`
    // Tags - The tags of the resource.
    Tags map[string]*string `json:"tags"`
}

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceIdentityType

ResourceIdentityType enumerates the values for resource identity type.

type ResourceIdentityType string
const (
    // None ...
    None ResourceIdentityType = "None"
    // SystemAssigned ...
    SystemAssigned ResourceIdentityType = "SystemAssigned"
    // SystemAssignedUserAssigned ...
    SystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned"
    // UserAssigned ...
    UserAssigned ResourceIdentityType = "UserAssigned"
)

func PossibleResourceIdentityTypeValues

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.

type RetentionPolicy

RetentionPolicy the retention policy for a container registry.

type RetentionPolicy struct {
    // Days - The number of days to retain an untagged manifest after which it gets purged.
    Days *int32 `json:"days,omitempty"`
    // LastUpdatedTime - READ-ONLY; The timestamp when the policy was last updated.
    LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"`
    // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'Enabled', 'Disabled'
    Status PolicyStatus `json:"status,omitempty"`
}

func (RetentionPolicy) MarshalJSON

func (rp RetentionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RetentionPolicy.

type Run

Run run resource properties

type Run struct {
    autorest.Response `json:"-"`
    // RunProperties - The properties of a run.
    *RunProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The resource ID.
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    Type *string `json:"type,omitempty"`
}

func (Run) MarshalJSON

func (r Run) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Run.

func (*Run) UnmarshalJSON

func (r *Run) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Run struct.

type RunFilter

RunFilter properties that are enabled for Odata querying on runs.

type RunFilter struct {
    // RunID - The unique identifier for the run.
    RunID *string `json:"runId,omitempty"`
    // RunType - The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'
    RunType RunType `json:"runType,omitempty"`
    // Status - The current status of the run. Possible values include: 'RunStatusQueued', 'RunStatusStarted', 'RunStatusRunning', 'RunStatusSucceeded', 'RunStatusFailed', 'RunStatusCanceled', 'RunStatusError', 'RunStatusTimeout'
    Status RunStatus `json:"status,omitempty"`
    // CreateTime - The create time for a run.
    CreateTime *date.Time `json:"createTime,omitempty"`
    // FinishTime - The time the run finished.
    FinishTime *date.Time `json:"finishTime,omitempty"`
    // OutputImageManifests - The list of comma-separated image manifests that were generated from the run. This is applicable if the run is of
    // build type.
    OutputImageManifests *string `json:"outputImageManifests,omitempty"`
    // IsArchiveEnabled - The value that indicates whether archiving is enabled or not.
    IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
    // TaskName - The name of the task that the run corresponds to.
    TaskName *string `json:"taskName,omitempty"`
}

type RunGetLogResult

RunGetLogResult the result of get log link operation.

type RunGetLogResult struct {
    autorest.Response `json:"-"`
    // LogLink - The link to logs for a run on a azure container registry.
    LogLink *string `json:"logLink,omitempty"`
}

type RunListResult

RunListResult collection of runs.

type RunListResult struct {
    autorest.Response `json:"-"`
    // Value - The collection value.
    Value *[]Run `json:"value,omitempty"`
    // NextLink - The URI that can be used to request the next set of paged results.
    NextLink *string `json:"nextLink,omitempty"`
}

func (RunListResult) IsEmpty

func (rlr RunListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RunListResultIterator

RunListResultIterator provides access to a complete listing of Run values.

type RunListResultIterator struct {
    // contains filtered or unexported fields
}

func NewRunListResultIterator

func NewRunListResultIterator(page RunListResultPage) RunListResultIterator

Creates a new instance of the RunListResultIterator type.

func (*RunListResultIterator) Next

func (iter *RunListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RunListResultIterator) NextWithContext

func (iter *RunListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (RunListResultIterator) NotDone

func (iter RunListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (RunListResultIterator) Response

func (iter RunListResultIterator) Response() RunListResult

Response returns the raw server response from the last page request.

func (RunListResultIterator) Value

func (iter RunListResultIterator) Value() Run

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type RunListResultPage

RunListResultPage contains a page of Run values.

type RunListResultPage struct {
    // contains filtered or unexported fields
}

func NewRunListResultPage

func NewRunListResultPage(cur RunListResult, getNextPage func(context.Context, RunListResult) (RunListResult, error)) RunListResultPage

Creates a new instance of the RunListResultPage type.

func (*RunListResultPage) Next

func (page *RunListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RunListResultPage) NextWithContext

func (page *RunListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (RunListResultPage) NotDone

func (page RunListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (RunListResultPage) Response

func (page RunListResultPage) Response() RunListResult

Response returns the raw server response from the last page request.

func (RunListResultPage) Values

func (page RunListResultPage) Values() []Run

Values returns the slice of values for the current page or nil if there are no values.

type RunProperties

RunProperties the properties for a run.

type RunProperties struct {
    // RunID - The unique identifier for the run.
    RunID *string `json:"runId,omitempty"`
    // Status - The current status of the run. Possible values include: 'RunStatusQueued', 'RunStatusStarted', 'RunStatusRunning', 'RunStatusSucceeded', 'RunStatusFailed', 'RunStatusCanceled', 'RunStatusError', 'RunStatusTimeout'
    Status RunStatus `json:"status,omitempty"`
    // LastUpdatedTime - The last updated time for the run.
    LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"`
    // RunType - The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'
    RunType RunType `json:"runType,omitempty"`
    // CreateTime - The time the run was scheduled.
    CreateTime *date.Time `json:"createTime,omitempty"`
    // StartTime - The time the run started.
    StartTime *date.Time `json:"startTime,omitempty"`
    // FinishTime - The time the run finished.
    FinishTime *date.Time `json:"finishTime,omitempty"`
    // OutputImages - The list of all images that were generated from the run. This is applicable if the run generates base image dependencies.
    OutputImages *[]ImageDescriptor `json:"outputImages,omitempty"`
    // Task - The task against which run was scheduled.
    Task *string `json:"task,omitempty"`
    // ImageUpdateTrigger - The image update trigger that caused the run. This is applicable if the task has base image trigger configured.
    ImageUpdateTrigger *ImageUpdateTrigger `json:"imageUpdateTrigger,omitempty"`
    // SourceTrigger - The source trigger that caused the run.
    SourceTrigger *SourceTriggerDescriptor `json:"sourceTrigger,omitempty"`
    // Platform - The platform properties against which the run will happen.
    Platform *PlatformProperties `json:"platform,omitempty"`
    // AgentConfiguration - The machine configuration of the run agent.
    AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
    // SourceRegistryAuth - The scope of the credentials that were used to login to the source registry during this run.
    SourceRegistryAuth *string `json:"sourceRegistryAuth,omitempty"`
    // CustomRegistries - The list of custom registries that were logged in during this run.
    CustomRegistries *[]string `json:"customRegistries,omitempty"`
    // RunErrorMessage - READ-ONLY; The error message received from backend systems after the run is scheduled.
    RunErrorMessage *string `json:"runErrorMessage,omitempty"`
    // ProvisioningState - The provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // IsArchiveEnabled - The value that indicates whether archiving is enabled or not.
    IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
    // TimerTrigger - The timer trigger that caused the run.
    TimerTrigger *TimerTriggerDescriptor `json:"timerTrigger,omitempty"`
}

func (RunProperties) MarshalJSON

func (rp RunProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RunProperties.

type RunRequest

RunRequest the request parameters for scheduling a run.

type RunRequest struct {
    // IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not.
    IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
    // Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest'
    Type Type `json:"type,omitempty"`
}

func (RunRequest) AsBasicRunRequest

func (rr RunRequest) AsBasicRunRequest() (BasicRunRequest, bool)

AsBasicRunRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) AsDockerBuildRequest

func (rr RunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)

AsDockerBuildRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) AsEncodedTaskRunRequest

func (rr RunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)

AsEncodedTaskRunRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) AsFileTaskRunRequest

func (rr RunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)

AsFileTaskRunRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) AsRunRequest

func (rr RunRequest) AsRunRequest() (*RunRequest, bool)

AsRunRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) AsTaskRunRequest

func (rr RunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)

AsTaskRunRequest is the BasicRunRequest implementation for RunRequest.

func (RunRequest) MarshalJSON

func (rr RunRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RunRequest.

type RunStatus

RunStatus enumerates the values for run status.

type RunStatus string
const (
    // RunStatusCanceled ...
    RunStatusCanceled RunStatus = "Canceled"
    // RunStatusError ...
    RunStatusError RunStatus = "Error"
    // RunStatusFailed ...
    RunStatusFailed RunStatus = "Failed"
    // RunStatusQueued ...
    RunStatusQueued RunStatus = "Queued"
    // RunStatusRunning ...
    RunStatusRunning RunStatus = "Running"
    // RunStatusStarted ...
    RunStatusStarted RunStatus = "Started"
    // RunStatusSucceeded ...
    RunStatusSucceeded RunStatus = "Succeeded"
    // RunStatusTimeout ...
    RunStatusTimeout RunStatus = "Timeout"
)

func PossibleRunStatusValues

func PossibleRunStatusValues() []RunStatus

PossibleRunStatusValues returns an array of possible values for the RunStatus const type.

type RunType

RunType enumerates the values for run type.

type RunType string
const (
    // AutoBuild ...
    AutoBuild RunType = "AutoBuild"
    // AutoRun ...
    AutoRun RunType = "AutoRun"
    // QuickBuild ...
    QuickBuild RunType = "QuickBuild"
    // QuickRun ...
    QuickRun RunType = "QuickRun"
)

func PossibleRunTypeValues

func PossibleRunTypeValues() []RunType

PossibleRunTypeValues returns an array of possible values for the RunType const type.

type RunUpdateParameters

RunUpdateParameters the set of run properties that can be updated.

type RunUpdateParameters struct {
    // IsArchiveEnabled - The value that indicates whether archiving is enabled or not.
    IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
}

type RunsCancelFuture

RunsCancelFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type RunsCancelFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RunsClient) (autorest.Response, error)
}

func (*RunsCancelFuture) UnmarshalJSON

func (future *RunsCancelFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RunsClient

RunsClient is the client for the Runs methods of the Containerregistry service.

type RunsClient struct {
    BaseClient
}

func NewRunsClient

func NewRunsClient(subscriptionID string) RunsClient

NewRunsClient creates an instance of the RunsClient client.

func NewRunsClientWithBaseURI

func NewRunsClientWithBaseURI(baseURI string, subscriptionID string) RunsClient

NewRunsClientWithBaseURI creates an instance of the RunsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RunsClient) Cancel

func (client RunsClient) Cancel(ctx context.Context, resourceGroupName string, registryName string, runID string) (result RunsCancelFuture, err error)

Cancel cancel an existing run. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. runID - the run ID.

func (RunsClient) CancelPreparer

func (client RunsClient) CancelPreparer(ctx context.Context, resourceGroupName string, registryName string, runID string) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (RunsClient) CancelResponder

func (client RunsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)

CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.

func (RunsClient) CancelSender

func (client RunsClient) CancelSender(req *http.Request) (future RunsCancelFuture, err error)

CancelSender sends the Cancel request. The method will close the http.Response Body if it receives an error.

func (RunsClient) Get

func (client RunsClient) Get(ctx context.Context, resourceGroupName string, registryName string, runID string) (result Run, err error)

Get gets the detailed information for a given run. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. runID - the run ID.

func (RunsClient) GetLogSasURL

func (client RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName string, registryName string, runID string) (result RunGetLogResult, err error)

GetLogSasURL gets a link to download the run logs. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. runID - the run ID.

func (RunsClient) GetLogSasURLPreparer

func (client RunsClient) GetLogSasURLPreparer(ctx context.Context, resourceGroupName string, registryName string, runID string) (*http.Request, error)

GetLogSasURLPreparer prepares the GetLogSasURL request.

func (RunsClient) GetLogSasURLResponder

func (client RunsClient) GetLogSasURLResponder(resp *http.Response) (result RunGetLogResult, err error)

GetLogSasURLResponder handles the response to the GetLogSasURL request. The method always closes the http.Response Body.

func (RunsClient) GetLogSasURLSender

func (client RunsClient) GetLogSasURLSender(req *http.Request) (*http.Response, error)

GetLogSasURLSender sends the GetLogSasURL request. The method will close the http.Response Body if it receives an error.

func (RunsClient) GetPreparer

func (client RunsClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, runID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RunsClient) GetResponder

func (client RunsClient) GetResponder(resp *http.Response) (result Run, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RunsClient) GetSender

func (client RunsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RunsClient) List

func (client RunsClient) List(ctx context.Context, resourceGroupName string, registryName string, filter string, top *int32) (result RunListResultPage, err error)

List gets all the runs for a registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. filter - the runs filter to apply on the operation. Arithmetic operators are not supported. The allowed string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed. top - $top is supported for get list of runs, which limits the maximum number of runs to return.

func (RunsClient) ListComplete

func (client RunsClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string, filter string, top *int32) (result RunListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (RunsClient) ListPreparer

func (client RunsClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string, filter string, top *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (RunsClient) ListResponder

func (client RunsClient) ListResponder(resp *http.Response) (result RunListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (RunsClient) ListSender

func (client RunsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (RunsClient) Update

func (client RunsClient) Update(ctx context.Context, resourceGroupName string, registryName string, runID string, runUpdateParameters RunUpdateParameters) (result RunsUpdateFuture, err error)

Update patch the run properties. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. runID - the run ID. runUpdateParameters - the run update properties.

func (RunsClient) UpdatePreparer

func (client RunsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, runID string, runUpdateParameters RunUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (RunsClient) UpdateResponder

func (client RunsClient) UpdateResponder(resp *http.Response) (result Run, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (RunsClient) UpdateSender

func (client RunsClient) UpdateSender(req *http.Request) (future RunsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type RunsUpdateFuture

RunsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type RunsUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RunsClient) (Run, error)
}

func (*RunsUpdateFuture) UnmarshalJSON

func (future *RunsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type SecretObject

SecretObject describes the properties of a secret object value.

type SecretObject struct {
    // Value - The value of the secret. The format of this value will be determined
    // based on the type of the secret object. If the type is Opaque, the value will be
    // used as is without any modification.
    Value *string `json:"value,omitempty"`
    // Type - The type of the secret object which determines how the value of the secret object has to be
    // interpreted. Possible values include: 'Opaque', 'Vaultsecret'
    Type SecretObjectType `json:"type,omitempty"`
}

type SecretObjectType

SecretObjectType enumerates the values for secret object type.

type SecretObjectType string
const (
    // Opaque ...
    Opaque SecretObjectType = "Opaque"
    // Vaultsecret ...
    Vaultsecret SecretObjectType = "Vaultsecret"
)

func PossibleSecretObjectTypeValues

func PossibleSecretObjectTypeValues() []SecretObjectType

PossibleSecretObjectTypeValues returns an array of possible values for the SecretObjectType const type.

type SetValue

SetValue the properties of a overridable value that can be passed to a task template.

type SetValue struct {
    // Name - The name of the overridable value.
    Name *string `json:"name,omitempty"`
    // Value - The overridable value.
    Value *string `json:"value,omitempty"`
    // IsSecret - Flag to indicate whether the value represents a secret or not.
    IsSecret *bool `json:"isSecret,omitempty"`
}

type Sku

Sku the SKU of a container registry.

type Sku struct {
    // Name - The SKU name of the container registry. Required for registry creation. Possible values include: 'Classic', 'Basic', 'Standard', 'Premium'
    Name SkuName `json:"name,omitempty"`
    // Tier - READ-ONLY; The SKU tier based on the SKU name. Possible values include: 'SkuTierClassic', 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium'
    Tier SkuTier `json:"tier,omitempty"`
}

func (Sku) MarshalJSON

func (s Sku) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Sku.

type SkuName

SkuName enumerates the values for sku name.

type SkuName string
const (
    // Basic ...
    Basic SkuName = "Basic"
    // Classic ...
    Classic SkuName = "Classic"
    // Premium ...
    Premium SkuName = "Premium"
    // Standard ...
    Standard SkuName = "Standard"
)

func PossibleSkuNameValues

func PossibleSkuNameValues() []SkuName

PossibleSkuNameValues returns an array of possible values for the SkuName const type.

type SkuTier

SkuTier enumerates the values for sku tier.

type SkuTier string
const (
    // SkuTierBasic ...
    SkuTierBasic SkuTier = "Basic"
    // SkuTierClassic ...
    SkuTierClassic SkuTier = "Classic"
    // SkuTierPremium ...
    SkuTierPremium SkuTier = "Premium"
    // SkuTierStandard ...
    SkuTierStandard SkuTier = "Standard"
)

func PossibleSkuTierValues

func PossibleSkuTierValues() []SkuTier

PossibleSkuTierValues returns an array of possible values for the SkuTier const type.

type Source

Source the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.

type Source struct {
    // Addr - 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"`
    // InstanceID - The running instance of an application. Changes after each restart.
    InstanceID *string `json:"instanceID,omitempty"`
}

type SourceControlType

SourceControlType enumerates the values for source control type.

type SourceControlType string
const (
    // Github ...
    Github SourceControlType = "Github"
    // VisualStudioTeamService ...
    VisualStudioTeamService SourceControlType = "VisualStudioTeamService"
)

func PossibleSourceControlTypeValues

func PossibleSourceControlTypeValues() []SourceControlType

PossibleSourceControlTypeValues returns an array of possible values for the SourceControlType const type.

type SourceProperties

SourceProperties the properties of the source code repository.

type SourceProperties struct {
    // SourceControlType - The type of source control service. Possible values include: 'Github', 'VisualStudioTeamService'
    SourceControlType SourceControlType `json:"sourceControlType,omitempty"`
    // RepositoryURL - The full URL to the source code repository
    RepositoryURL *string `json:"repositoryUrl,omitempty"`
    // Branch - The branch name of the source code.
    Branch *string `json:"branch,omitempty"`
    // SourceControlAuthProperties - The authorization properties for accessing the source code repository and to set up
    // webhooks for notifications.
    SourceControlAuthProperties *AuthInfo `json:"sourceControlAuthProperties,omitempty"`
}

type SourceRegistryCredentials

SourceRegistryCredentials describes the credential parameters for accessing the source registry.

type SourceRegistryCredentials struct {
    // LoginMode - The authentication mode which determines the source registry login scope. The credentials for the source registry
    // will be generated using the given scope. These credentials will be used to login to
    // the source registry during the run. Possible values include: 'SourceRegistryLoginModeNone', 'SourceRegistryLoginModeDefault'
    LoginMode SourceRegistryLoginMode `json:"loginMode,omitempty"`
}

type SourceRegistryLoginMode

SourceRegistryLoginMode enumerates the values for source registry login mode.

type SourceRegistryLoginMode string
const (
    // SourceRegistryLoginModeDefault ...
    SourceRegistryLoginModeDefault SourceRegistryLoginMode = "Default"
    // SourceRegistryLoginModeNone ...
    SourceRegistryLoginModeNone SourceRegistryLoginMode = "None"
)

func PossibleSourceRegistryLoginModeValues

func PossibleSourceRegistryLoginModeValues() []SourceRegistryLoginMode

PossibleSourceRegistryLoginModeValues returns an array of possible values for the SourceRegistryLoginMode const type.

type SourceTrigger

SourceTrigger the properties of a source based trigger.

type SourceTrigger struct {
    // SourceRepository - The properties that describes the source(code) for the task.
    SourceRepository *SourceProperties `json:"sourceRepository,omitempty"`
    // SourceTriggerEvents - The source event corresponding to the trigger.
    SourceTriggerEvents *[]SourceTriggerEvent `json:"sourceTriggerEvents,omitempty"`
    // Status - The current status of trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled'
    Status TriggerStatus `json:"status,omitempty"`
    // Name - The name of the trigger.
    Name *string `json:"name,omitempty"`
}

type SourceTriggerDescriptor

SourceTriggerDescriptor the source trigger that caused a run.

type SourceTriggerDescriptor struct {
    // ID - The unique ID of the trigger.
    ID *string `json:"id,omitempty"`
    // EventType - The event type of the trigger.
    EventType *string `json:"eventType,omitempty"`
    // CommitID - The unique ID that identifies a commit.
    CommitID *string `json:"commitId,omitempty"`
    // PullRequestID - The unique ID that identifies pull request.
    PullRequestID *string `json:"pullRequestId,omitempty"`
    // RepositoryURL - The repository URL.
    RepositoryURL *string `json:"repositoryUrl,omitempty"`
    // BranchName - The branch name in the repository.
    BranchName *string `json:"branchName,omitempty"`
    // ProviderType - The source control provider type.
    ProviderType *string `json:"providerType,omitempty"`
}

type SourceTriggerEvent

SourceTriggerEvent enumerates the values for source trigger event.

type SourceTriggerEvent string
const (
    // Commit ...
    Commit SourceTriggerEvent = "commit"
    // Pullrequest ...
    Pullrequest SourceTriggerEvent = "pullrequest"
)

func PossibleSourceTriggerEventValues

func PossibleSourceTriggerEventValues() []SourceTriggerEvent

PossibleSourceTriggerEventValues returns an array of possible values for the SourceTriggerEvent const type.

type SourceTriggerUpdateParameters

SourceTriggerUpdateParameters the properties for updating a source based trigger.

type SourceTriggerUpdateParameters struct {
    // SourceRepository - The properties that describes the source(code) for the task.
    SourceRepository *SourceUpdateParameters `json:"sourceRepository,omitempty"`
    // SourceTriggerEvents - The source event corresponding to the trigger.
    SourceTriggerEvents *[]SourceTriggerEvent `json:"sourceTriggerEvents,omitempty"`
    // Status - The current status of trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled'
    Status TriggerStatus `json:"status,omitempty"`
    // Name - The name of the trigger.
    Name *string `json:"name,omitempty"`
}

type SourceUpdateParameters

SourceUpdateParameters the properties for updating the source code repository.

type SourceUpdateParameters struct {
    // SourceControlType - The type of source control service. Possible values include: 'Github', 'VisualStudioTeamService'
    SourceControlType SourceControlType `json:"sourceControlType,omitempty"`
    // RepositoryURL - The full URL to the source code repository
    RepositoryURL *string `json:"repositoryUrl,omitempty"`
    // Branch - The branch name of the source code.
    Branch *string `json:"branch,omitempty"`
    // SourceControlAuthProperties - The authorization properties for accessing the source code repository and to set up
    // webhooks for notifications.
    SourceControlAuthProperties *AuthInfoUpdateParameters `json:"sourceControlAuthProperties,omitempty"`
}

type SourceUploadDefinition

SourceUploadDefinition the properties of a response to source upload request.

type SourceUploadDefinition struct {
    autorest.Response `json:"-"`
    // UploadURL - The URL where the client can upload the source.
    UploadURL *string `json:"uploadUrl,omitempty"`
    // RelativePath - The relative path to the source. This is used to submit the subsequent queue build request.
    RelativePath *string `json:"relativePath,omitempty"`
}

type Status

Status the status of an Azure resource at the time the operation was called.

type Status struct {
    // DisplayStatus - READ-ONLY; The short label for the status.
    DisplayStatus *string `json:"displayStatus,omitempty"`
    // Message - READ-ONLY; The detailed message for the status, including alerts and error messages.
    Message *string `json:"message,omitempty"`
    // Timestamp - READ-ONLY; The timestamp when the status was changed to the current value.
    Timestamp *date.Time `json:"timestamp,omitempty"`
}

func (Status) MarshalJSON

func (s Status) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Status.

type StorageAccountProperties

StorageAccountProperties the properties of a storage account for a container registry. Only applicable to Classic SKU.

type StorageAccountProperties struct {
    // ID - The resource ID of the storage account.
    ID *string `json:"id,omitempty"`
}

type Target

Target the target of the event.

type Target struct {
    // MediaType - The MIME type of the referenced object.
    MediaType *string `json:"mediaType,omitempty"`
    // Size - The number of bytes of the content. Same as Length field.
    Size *int64 `json:"size,omitempty"`
    // Digest - The digest of the content, as defined by the Registry V2 HTTP API Specification.
    Digest *string `json:"digest,omitempty"`
    // Length - The number of bytes of the content. Same as Size field.
    Length *int64 `json:"length,omitempty"`
    // Repository - The repository name.
    Repository *string `json:"repository,omitempty"`
    // URL - The direct URL to the content.
    URL *string `json:"url,omitempty"`
    // Tag - The tag name.
    Tag *string `json:"tag,omitempty"`
    // Name - The name of the artifact.
    Name *string `json:"name,omitempty"`
    // Version - The version of the artifact.
    Version *string `json:"version,omitempty"`
}

type Task

Task the task that has the ARM resource and task properties. The task will have all information to schedule a run against it.

type Task struct {
    autorest.Response `json:"-"`
    // Identity - Identity for the resource.
    Identity *IdentityProperties `json:"identity,omitempty"`
    // TaskProperties - The properties of a task.
    *TaskProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The resource ID.
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    Type *string `json:"type,omitempty"`
    // Location - The location of the resource. This cannot be changed after the resource is created.
    Location *string `json:"location,omitempty"`
    // Tags - The tags of the resource.
    Tags map[string]*string `json:"tags"`
}

func (Task) MarshalJSON

func (t Task) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Task.

func (*Task) UnmarshalJSON

func (t *Task) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Task struct.

type TaskListResult

TaskListResult the collection of tasks.

type TaskListResult struct {
    autorest.Response `json:"-"`
    // Value - The collection value.
    Value *[]Task `json:"value,omitempty"`
    // NextLink - The URI that can be used to request the next set of paged results.
    NextLink *string `json:"nextLink,omitempty"`
}

func (TaskListResult) IsEmpty

func (tlr TaskListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TaskListResultIterator

TaskListResultIterator provides access to a complete listing of Task values.

type TaskListResultIterator struct {
    // contains filtered or unexported fields
}

func NewTaskListResultIterator

func NewTaskListResultIterator(page TaskListResultPage) TaskListResultIterator

Creates a new instance of the TaskListResultIterator type.

func (*TaskListResultIterator) Next

func (iter *TaskListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*TaskListResultIterator) NextWithContext

func (iter *TaskListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (TaskListResultIterator) NotDone

func (iter TaskListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (TaskListResultIterator) Response

func (iter TaskListResultIterator) Response() TaskListResult

Response returns the raw server response from the last page request.

func (TaskListResultIterator) Value

func (iter TaskListResultIterator) Value() Task

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type TaskListResultPage

TaskListResultPage contains a page of Task values.

type TaskListResultPage struct {
    // contains filtered or unexported fields
}

func NewTaskListResultPage

func NewTaskListResultPage(cur TaskListResult, getNextPage func(context.Context, TaskListResult) (TaskListResult, error)) TaskListResultPage

Creates a new instance of the TaskListResultPage type.

func (*TaskListResultPage) Next

func (page *TaskListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*TaskListResultPage) NextWithContext

func (page *TaskListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (TaskListResultPage) NotDone

func (page TaskListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (TaskListResultPage) Response

func (page TaskListResultPage) Response() TaskListResult

Response returns the raw server response from the last page request.

func (TaskListResultPage) Values

func (page TaskListResultPage) Values() []Task

Values returns the slice of values for the current page or nil if there are no values.

type TaskProperties

TaskProperties the properties of a task.

type TaskProperties struct {
    // ProvisioningState - READ-ONLY; The provisioning state of the task. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // CreationDate - READ-ONLY; The creation date of task.
    CreationDate *date.Time `json:"creationDate,omitempty"`
    // Status - The current status of task. Possible values include: 'TaskStatusDisabled', 'TaskStatusEnabled'
    Status TaskStatus `json:"status,omitempty"`
    // Platform - The platform properties against which the run has to happen.
    Platform *PlatformProperties `json:"platform,omitempty"`
    // AgentConfiguration - The machine configuration of the run agent.
    AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
    // Timeout - Run timeout in seconds.
    Timeout *int32 `json:"timeout,omitempty"`
    // Step - The properties of a task step.
    Step BasicTaskStepProperties `json:"step,omitempty"`
    // Trigger - The properties that describe all triggers for the task.
    Trigger *TriggerProperties `json:"trigger,omitempty"`
    // Credentials - The properties that describes a set of credentials that will be used when this run is invoked.
    Credentials *Credentials `json:"credentials,omitempty"`
}

func (TaskProperties) MarshalJSON

func (tp TaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskProperties.

func (*TaskProperties) UnmarshalJSON

func (tp *TaskProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskProperties struct.

type TaskPropertiesUpdateParameters

TaskPropertiesUpdateParameters the properties for updating a task.

type TaskPropertiesUpdateParameters struct {
    // Status - The current status of task. Possible values include: 'TaskStatusDisabled', 'TaskStatusEnabled'
    Status TaskStatus `json:"status,omitempty"`
    // Platform - The platform properties against which the run has to happen.
    Platform *PlatformUpdateParameters `json:"platform,omitempty"`
    // AgentConfiguration - The machine configuration of the run agent.
    AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"`
    // Timeout - Run timeout in seconds.
    Timeout *int32 `json:"timeout,omitempty"`
    // Step - The properties for updating a task step.
    Step BasicTaskStepUpdateParameters `json:"step,omitempty"`
    // Trigger - The properties for updating trigger properties.
    Trigger *TriggerUpdateParameters `json:"trigger,omitempty"`
    // Credentials - The parameters that describes a set of credentials that will be used when this run is invoked.
    Credentials *Credentials `json:"credentials,omitempty"`
}

func (*TaskPropertiesUpdateParameters) UnmarshalJSON

func (tpup *TaskPropertiesUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskPropertiesUpdateParameters struct.

type TaskRunRequest

TaskRunRequest the parameters for a task run request.

type TaskRunRequest struct {
    // TaskName - The name of task against which run has to be queued.
    TaskName *string `json:"taskName,omitempty"`
    // Values - The collection of overridable values that can be passed when running a task.
    Values *[]SetValue `json:"values,omitempty"`
    // IsArchiveEnabled - The value that indicates whether archiving is enabled for the run or not.
    IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
    // Type - Possible values include: 'TypeRunRequest', 'TypeDockerBuildRequest', 'TypeFileTaskRunRequest', 'TypeTaskRunRequest', 'TypeEncodedTaskRunRequest'
    Type Type `json:"type,omitempty"`
}

func (TaskRunRequest) AsBasicRunRequest

func (trr TaskRunRequest) AsBasicRunRequest() (BasicRunRequest, bool)

AsBasicRunRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) AsDockerBuildRequest

func (trr TaskRunRequest) AsDockerBuildRequest() (*DockerBuildRequest, bool)

AsDockerBuildRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) AsEncodedTaskRunRequest

func (trr TaskRunRequest) AsEncodedTaskRunRequest() (*EncodedTaskRunRequest, bool)

AsEncodedTaskRunRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) AsFileTaskRunRequest

func (trr TaskRunRequest) AsFileTaskRunRequest() (*FileTaskRunRequest, bool)

AsFileTaskRunRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) AsRunRequest

func (trr TaskRunRequest) AsRunRequest() (*RunRequest, bool)

AsRunRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) AsTaskRunRequest

func (trr TaskRunRequest) AsTaskRunRequest() (*TaskRunRequest, bool)

AsTaskRunRequest is the BasicRunRequest implementation for TaskRunRequest.

func (TaskRunRequest) MarshalJSON

func (trr TaskRunRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskRunRequest.

type TaskStatus

TaskStatus enumerates the values for task status.

type TaskStatus string
const (
    // TaskStatusDisabled ...
    TaskStatusDisabled TaskStatus = "Disabled"
    // TaskStatusEnabled ...
    TaskStatusEnabled TaskStatus = "Enabled"
)

func PossibleTaskStatusValues

func PossibleTaskStatusValues() []TaskStatus

PossibleTaskStatusValues returns an array of possible values for the TaskStatus const type.

type TaskStepProperties

TaskStepProperties base properties for any task step.

type TaskStepProperties struct {
    // BaseImageDependencies - READ-ONLY; List of base image dependencies for a step.
    BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"`
    // ContextPath - The URL(absolute or relative) of the source context for the task step.
    ContextPath *string `json:"contextPath,omitempty"`
    // ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
    ContextAccessToken *string `json:"contextAccessToken,omitempty"`
    // Type - Possible values include: 'TypeTaskStepProperties', 'TypeDocker', 'TypeFileTask', 'TypeEncodedTask'
    Type TypeBasicTaskStepProperties `json:"type,omitempty"`
}

func (TaskStepProperties) AsBasicTaskStepProperties

func (tsp TaskStepProperties) AsBasicTaskStepProperties() (BasicTaskStepProperties, bool)

AsBasicTaskStepProperties is the BasicTaskStepProperties implementation for TaskStepProperties.

func (TaskStepProperties) AsDockerBuildStep

func (tsp TaskStepProperties) AsDockerBuildStep() (*DockerBuildStep, bool)

AsDockerBuildStep is the BasicTaskStepProperties implementation for TaskStepProperties.

func (TaskStepProperties) AsEncodedTaskStep

func (tsp TaskStepProperties) AsEncodedTaskStep() (*EncodedTaskStep, bool)

AsEncodedTaskStep is the BasicTaskStepProperties implementation for TaskStepProperties.

func (TaskStepProperties) AsFileTaskStep

func (tsp TaskStepProperties) AsFileTaskStep() (*FileTaskStep, bool)

AsFileTaskStep is the BasicTaskStepProperties implementation for TaskStepProperties.

func (TaskStepProperties) AsTaskStepProperties

func (tsp TaskStepProperties) AsTaskStepProperties() (*TaskStepProperties, bool)

AsTaskStepProperties is the BasicTaskStepProperties implementation for TaskStepProperties.

func (TaskStepProperties) MarshalJSON

func (tsp TaskStepProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskStepProperties.

type TaskStepUpdateParameters

TaskStepUpdateParameters base properties for updating any task step.

type TaskStepUpdateParameters struct {
    // ContextPath - The URL(absolute or relative) of the source context for the task step.
    ContextPath *string `json:"contextPath,omitempty"`
    // ContextAccessToken - The token (git PAT or SAS token of storage account blob) associated with the context for a step.
    ContextAccessToken *string `json:"contextAccessToken,omitempty"`
    // Type - Possible values include: 'TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters', 'TypeBasicTaskStepUpdateParametersTypeDocker', 'TypeBasicTaskStepUpdateParametersTypeFileTask', 'TypeBasicTaskStepUpdateParametersTypeEncodedTask'
    Type TypeBasicTaskStepUpdateParameters `json:"type,omitempty"`
}

func (TaskStepUpdateParameters) AsBasicTaskStepUpdateParameters

func (tsup TaskStepUpdateParameters) AsBasicTaskStepUpdateParameters() (BasicTaskStepUpdateParameters, bool)

AsBasicTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for TaskStepUpdateParameters.

func (TaskStepUpdateParameters) AsDockerBuildStepUpdateParameters

func (tsup TaskStepUpdateParameters) AsDockerBuildStepUpdateParameters() (*DockerBuildStepUpdateParameters, bool)

AsDockerBuildStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for TaskStepUpdateParameters.

func (TaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters

func (tsup TaskStepUpdateParameters) AsEncodedTaskStepUpdateParameters() (*EncodedTaskStepUpdateParameters, bool)

AsEncodedTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for TaskStepUpdateParameters.

func (TaskStepUpdateParameters) AsFileTaskStepUpdateParameters

func (tsup TaskStepUpdateParameters) AsFileTaskStepUpdateParameters() (*FileTaskStepUpdateParameters, bool)

AsFileTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for TaskStepUpdateParameters.

func (TaskStepUpdateParameters) AsTaskStepUpdateParameters

func (tsup TaskStepUpdateParameters) AsTaskStepUpdateParameters() (*TaskStepUpdateParameters, bool)

AsTaskStepUpdateParameters is the BasicTaskStepUpdateParameters implementation for TaskStepUpdateParameters.

func (TaskStepUpdateParameters) MarshalJSON

func (tsup TaskStepUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskStepUpdateParameters.

type TaskUpdateParameters

TaskUpdateParameters the parameters for updating a task.

type TaskUpdateParameters struct {
    // Identity - Identity for the resource.
    Identity *IdentityProperties `json:"identity,omitempty"`
    // TaskPropertiesUpdateParameters - The properties for updating a task.
    *TaskPropertiesUpdateParameters `json:"properties,omitempty"`
    // Tags - The ARM resource tags.
    Tags map[string]*string `json:"tags"`
}

func (TaskUpdateParameters) MarshalJSON

func (tup TaskUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskUpdateParameters.

func (*TaskUpdateParameters) UnmarshalJSON

func (tup *TaskUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskUpdateParameters struct.

type TasksClient

TasksClient is the client for the Tasks methods of the Containerregistry service.

type TasksClient struct {
    BaseClient
}

func NewTasksClient

func NewTasksClient(subscriptionID string) TasksClient

NewTasksClient creates an instance of the TasksClient client.

func NewTasksClientWithBaseURI

func NewTasksClientWithBaseURI(baseURI string, subscriptionID string) TasksClient

NewTasksClientWithBaseURI creates an instance of the TasksClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (TasksClient) Create

func (client TasksClient) Create(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskCreateParameters Task) (result TasksCreateFuture, err error)

Create creates a task for a container registry with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. taskName - the name of the container registry task. taskCreateParameters - the parameters for creating a task.

func (TasksClient) CreatePreparer

func (client TasksClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskCreateParameters Task) (*http.Request, error)

CreatePreparer prepares the Create request.

func (TasksClient) CreateResponder

func (client TasksClient) CreateResponder(resp *http.Response) (result Task, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (TasksClient) CreateSender

func (client TasksClient) CreateSender(req *http.Request) (future TasksCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (TasksClient) Delete

func (client TasksClient) Delete(ctx context.Context, resourceGroupName string, registryName string, taskName string) (result TasksDeleteFuture, err error)

Delete deletes a specified task. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. taskName - the name of the container registry task.

func (TasksClient) DeletePreparer

func (client TasksClient) DeletePreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (TasksClient) DeleteResponder

func (client TasksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (TasksClient) DeleteSender

func (client TasksClient) DeleteSender(req *http.Request) (future TasksDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (TasksClient) Get

func (client TasksClient) Get(ctx context.Context, resourceGroupName string, registryName string, taskName string) (result Task, err error)

Get get the properties of a specified task. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. taskName - the name of the container registry task.

func (TasksClient) GetDetails

func (client TasksClient) GetDetails(ctx context.Context, resourceGroupName string, registryName string, taskName string) (result Task, err error)

GetDetails returns a task with extended information that includes all secrets. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. taskName - the name of the container registry task.

func (TasksClient) GetDetailsPreparer

func (client TasksClient) GetDetailsPreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string) (*http.Request, error)

GetDetailsPreparer prepares the GetDetails request.

func (TasksClient) GetDetailsResponder

func (client TasksClient) GetDetailsResponder(resp *http.Response) (result Task, err error)

GetDetailsResponder handles the response to the GetDetails request. The method always closes the http.Response Body.

func (TasksClient) GetDetailsSender

func (client TasksClient) GetDetailsSender(req *http.Request) (*http.Response, error)

GetDetailsSender sends the GetDetails request. The method will close the http.Response Body if it receives an error.

func (TasksClient) GetPreparer

func (client TasksClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (TasksClient) GetResponder

func (client TasksClient) GetResponder(resp *http.Response) (result Task, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (TasksClient) GetSender

func (client TasksClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (TasksClient) List

func (client TasksClient) List(ctx context.Context, resourceGroupName string, registryName string) (result TaskListResultPage, err error)

List lists all the tasks for a specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (TasksClient) ListComplete

func (client TasksClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string) (result TaskListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (TasksClient) ListPreparer

func (client TasksClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)

ListPreparer prepares the List request.

func (TasksClient) ListResponder

func (client TasksClient) ListResponder(resp *http.Response) (result TaskListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (TasksClient) ListSender

func (client TasksClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (TasksClient) Update

func (client TasksClient) Update(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskUpdateParameters TaskUpdateParameters) (result TasksUpdateFuture, err error)

Update updates a task with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry. taskName - the name of the container registry task. taskUpdateParameters - the parameters for updating a task.

func (TasksClient) UpdatePreparer

func (client TasksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskUpdateParameters TaskUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (TasksClient) UpdateResponder

func (client TasksClient) UpdateResponder(resp *http.Response) (result Task, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (TasksClient) UpdateSender

func (client TasksClient) UpdateSender(req *http.Request) (future TasksUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type TasksCreateFuture

TasksCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type TasksCreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(TasksClient) (Task, error)
}

func (*TasksCreateFuture) UnmarshalJSON

func (future *TasksCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TasksDeleteFuture

TasksDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type TasksDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(TasksClient) (autorest.Response, error)
}

func (*TasksDeleteFuture) UnmarshalJSON

func (future *TasksDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TasksUpdateFuture

TasksUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type TasksUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(TasksClient) (Task, error)
}

func (*TasksUpdateFuture) UnmarshalJSON

func (future *TasksUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TimerTrigger

TimerTrigger the properties of a timer trigger.

type TimerTrigger struct {
    // Schedule - The CRON expression for the task schedule
    Schedule *string `json:"schedule,omitempty"`
    // Status - The current status of trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled'
    Status TriggerStatus `json:"status,omitempty"`
    // Name - The name of the trigger.
    Name *string `json:"name,omitempty"`
}

type TimerTriggerDescriptor

TimerTriggerDescriptor ...

type TimerTriggerDescriptor struct {
    // TimerTriggerName - The timer trigger name that caused the run.
    TimerTriggerName *string `json:"timerTriggerName,omitempty"`
    // ScheduleOccurrence - The occurrence that triggered the run.
    ScheduleOccurrence *string `json:"scheduleOccurrence,omitempty"`
}

type TimerTriggerUpdateParameters

TimerTriggerUpdateParameters the properties for updating a timer trigger.

type TimerTriggerUpdateParameters struct {
    // Schedule - The CRON expression for the task schedule
    Schedule *string `json:"schedule,omitempty"`
    // Status - The current status of trigger. Possible values include: 'TriggerStatusDisabled', 'TriggerStatusEnabled'
    Status TriggerStatus `json:"status,omitempty"`
    // Name - The name of the trigger.
    Name *string `json:"name,omitempty"`
}

type TokenType

TokenType enumerates the values for token type.

type TokenType string
const (
    // OAuth ...
    OAuth TokenType = "OAuth"
    // PAT ...
    PAT TokenType = "PAT"
)

func PossibleTokenTypeValues

func PossibleTokenTypeValues() []TokenType

PossibleTokenTypeValues returns an array of possible values for the TokenType const type.

type TriggerProperties

TriggerProperties the properties of a trigger.

type TriggerProperties struct {
    // TimerTriggers - The collection of timer triggers.
    TimerTriggers *[]TimerTrigger `json:"timerTriggers,omitempty"`
    // SourceTriggers - The collection of triggers based on source code repository.
    SourceTriggers *[]SourceTrigger `json:"sourceTriggers,omitempty"`
    // BaseImageTrigger - The trigger based on base image dependencies.
    BaseImageTrigger *BaseImageTrigger `json:"baseImageTrigger,omitempty"`
}

type TriggerStatus

TriggerStatus enumerates the values for trigger status.

type TriggerStatus string
const (
    // TriggerStatusDisabled ...
    TriggerStatusDisabled TriggerStatus = "Disabled"
    // TriggerStatusEnabled ...
    TriggerStatusEnabled TriggerStatus = "Enabled"
)

func PossibleTriggerStatusValues

func PossibleTriggerStatusValues() []TriggerStatus

PossibleTriggerStatusValues returns an array of possible values for the TriggerStatus const type.

type TriggerUpdateParameters

TriggerUpdateParameters the properties for updating triggers.

type TriggerUpdateParameters struct {
    // TimerTriggers - The collection of timer triggers.
    TimerTriggers *[]TimerTriggerUpdateParameters `json:"timerTriggers,omitempty"`
    // SourceTriggers - The collection of triggers based on source code repository.
    SourceTriggers *[]SourceTriggerUpdateParameters `json:"sourceTriggers,omitempty"`
    // BaseImageTrigger - The trigger based on base image dependencies.
    BaseImageTrigger *BaseImageTriggerUpdateParameters `json:"baseImageTrigger,omitempty"`
}

type TrustPolicy

TrustPolicy the content trust policy for a container registry.

type TrustPolicy struct {
    // Type - The type of trust policy. Possible values include: 'Notary'
    Type TrustPolicyType `json:"type,omitempty"`
    // Status - The value that indicates whether the policy is enabled or not. Possible values include: 'Enabled', 'Disabled'
    Status PolicyStatus `json:"status,omitempty"`
}

type TrustPolicyType

TrustPolicyType enumerates the values for trust policy type.

type TrustPolicyType string
const (
    // Notary ...
    Notary TrustPolicyType = "Notary"
)

func PossibleTrustPolicyTypeValues

func PossibleTrustPolicyTypeValues() []TrustPolicyType

PossibleTrustPolicyTypeValues returns an array of possible values for the TrustPolicyType const type.

type Type

Type enumerates the values for type.

type Type string
const (
    // TypeDockerBuildRequest ...
    TypeDockerBuildRequest Type = "DockerBuildRequest"
    // TypeEncodedTaskRunRequest ...
    TypeEncodedTaskRunRequest Type = "EncodedTaskRunRequest"
    // TypeFileTaskRunRequest ...
    TypeFileTaskRunRequest Type = "FileTaskRunRequest"
    // TypeRunRequest ...
    TypeRunRequest Type = "RunRequest"
    // TypeTaskRunRequest ...
    TypeTaskRunRequest Type = "TaskRunRequest"
)

func PossibleTypeValues

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type TypeBasicTaskStepProperties

TypeBasicTaskStepProperties enumerates the values for type basic task step properties.

type TypeBasicTaskStepProperties string
const (
    // TypeDocker ...
    TypeDocker TypeBasicTaskStepProperties = "Docker"
    // TypeEncodedTask ...
    TypeEncodedTask TypeBasicTaskStepProperties = "EncodedTask"
    // TypeFileTask ...
    TypeFileTask TypeBasicTaskStepProperties = "FileTask"
    // TypeTaskStepProperties ...
    TypeTaskStepProperties TypeBasicTaskStepProperties = "TaskStepProperties"
)

func PossibleTypeBasicTaskStepPropertiesValues

func PossibleTypeBasicTaskStepPropertiesValues() []TypeBasicTaskStepProperties

PossibleTypeBasicTaskStepPropertiesValues returns an array of possible values for the TypeBasicTaskStepProperties const type.

type TypeBasicTaskStepUpdateParameters

TypeBasicTaskStepUpdateParameters enumerates the values for type basic task step update parameters.

type TypeBasicTaskStepUpdateParameters string
const (
    // TypeBasicTaskStepUpdateParametersTypeDocker ...
    TypeBasicTaskStepUpdateParametersTypeDocker TypeBasicTaskStepUpdateParameters = "Docker"
    // TypeBasicTaskStepUpdateParametersTypeEncodedTask ...
    TypeBasicTaskStepUpdateParametersTypeEncodedTask TypeBasicTaskStepUpdateParameters = "EncodedTask"
    // TypeBasicTaskStepUpdateParametersTypeFileTask ...
    TypeBasicTaskStepUpdateParametersTypeFileTask TypeBasicTaskStepUpdateParameters = "FileTask"
    // TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters ...
    TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters TypeBasicTaskStepUpdateParameters = "TaskStepUpdateParameters"
)

func PossibleTypeBasicTaskStepUpdateParametersValues

func PossibleTypeBasicTaskStepUpdateParametersValues() []TypeBasicTaskStepUpdateParameters

PossibleTypeBasicTaskStepUpdateParametersValues returns an array of possible values for the TypeBasicTaskStepUpdateParameters const type.

type UserIdentityProperties

UserIdentityProperties ...

type UserIdentityProperties struct {
    // PrincipalID - The principal id of user assigned identity.
    PrincipalID *string `json:"principalId,omitempty"`
    // ClientID - The client id of user assigned identity.
    ClientID *string `json:"clientId,omitempty"`
}

type Variant

Variant enumerates the values for variant.

type Variant string
const (
    // V6 ...
    V6 Variant = "v6"
    // V7 ...
    V7 Variant = "v7"
    // V8 ...
    V8 Variant = "v8"
)

func PossibleVariantValues

func PossibleVariantValues() []Variant

PossibleVariantValues returns an array of possible values for the Variant const type.

type VirtualNetworkRule

VirtualNetworkRule virtual network rule.

type VirtualNetworkRule struct {
    // Action - The action of virtual network rule. Possible values include: 'Allow'
    Action Action `json:"action,omitempty"`
    // VirtualNetworkResourceID - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    VirtualNetworkResourceID *string `json:"id,omitempty"`
}

type Webhook

Webhook an object that represents a webhook for a container registry.

type Webhook struct {
    autorest.Response `json:"-"`
    // WebhookProperties - The properties of the webhook.
    *WebhookProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; The resource ID.
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    Type *string `json:"type,omitempty"`
    // Location - The location of the resource. This cannot be changed after the resource is created.
    Location *string `json:"location,omitempty"`
    // Tags - The tags of the resource.
    Tags map[string]*string `json:"tags"`
}

func (Webhook) MarshalJSON

func (w Webhook) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Webhook.

func (*Webhook) UnmarshalJSON

func (w *Webhook) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Webhook struct.

type WebhookAction

WebhookAction enumerates the values for webhook action.

type WebhookAction string
const (
    // ChartDelete ...
    ChartDelete WebhookAction = "chart_delete"
    // ChartPush ...
    ChartPush WebhookAction = "chart_push"
    // Delete ...
    Delete WebhookAction = "delete"
    // Push ...
    Push WebhookAction = "push"
    // Quarantine ...
    Quarantine WebhookAction = "quarantine"
)

func PossibleWebhookActionValues

func PossibleWebhookActionValues() []WebhookAction

PossibleWebhookActionValues returns an array of possible values for the WebhookAction const type.

type WebhookCreateParameters

WebhookCreateParameters the parameters for creating a webhook.

type WebhookCreateParameters struct {
    // Tags - The tags for the webhook.
    Tags map[string]*string `json:"tags"`
    // Location - The location of the webhook. This cannot be changed after the resource is created.
    Location *string `json:"location,omitempty"`
    // WebhookPropertiesCreateParameters - The properties that the webhook will be created with.
    *WebhookPropertiesCreateParameters `json:"properties,omitempty"`
}

func (WebhookCreateParameters) MarshalJSON

func (wcp WebhookCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookCreateParameters.

func (*WebhookCreateParameters) UnmarshalJSON

func (wcp *WebhookCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WebhookCreateParameters struct.

type WebhookListResult

WebhookListResult the result of a request to list webhooks for a container registry.

type WebhookListResult struct {
    autorest.Response `json:"-"`
    // Value - 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"`
    // NextLink - The URI that can be used to request the next list of webhooks.
    NextLink *string `json:"nextLink,omitempty"`
}

func (WebhookListResult) IsEmpty

func (wlr WebhookListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type WebhookListResultIterator

WebhookListResultIterator provides access to a complete listing of Webhook values.

type WebhookListResultIterator struct {
    // contains filtered or unexported fields
}

func NewWebhookListResultIterator

func NewWebhookListResultIterator(page WebhookListResultPage) WebhookListResultIterator

Creates a new instance of the WebhookListResultIterator type.

func (*WebhookListResultIterator) Next

func (iter *WebhookListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*WebhookListResultIterator) NextWithContext

func (iter *WebhookListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (WebhookListResultIterator) NotDone

func (iter WebhookListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (WebhookListResultIterator) Response

func (iter WebhookListResultIterator) Response() WebhookListResult

Response returns the raw server response from the last page request.

func (WebhookListResultIterator) Value

func (iter WebhookListResultIterator) Value() Webhook

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type WebhookListResultPage

WebhookListResultPage contains a page of Webhook values.

type WebhookListResultPage struct {
    // contains filtered or unexported fields
}

func NewWebhookListResultPage

func NewWebhookListResultPage(cur WebhookListResult, getNextPage func(context.Context, WebhookListResult) (WebhookListResult, error)) WebhookListResultPage

Creates a new instance of the WebhookListResultPage type.

func (*WebhookListResultPage) Next

func (page *WebhookListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*WebhookListResultPage) NextWithContext

func (page *WebhookListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (WebhookListResultPage) NotDone

func (page WebhookListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (WebhookListResultPage) Response

func (page WebhookListResultPage) Response() WebhookListResult

Response returns the raw server response from the last page request.

func (WebhookListResultPage) Values

func (page WebhookListResultPage) Values() []Webhook

Values returns the slice of values for the current page or nil if there are no values.

type WebhookProperties

WebhookProperties the properties of a webhook.

type WebhookProperties struct {
    // Status - The status of the webhook at the time the operation was called. Possible values include: 'WebhookStatusEnabled', 'WebhookStatusDisabled'
    Status WebhookStatus `json:"status,omitempty"`
    // Scope - 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"`
    // Actions - The list of actions that trigger the webhook to post notifications.
    Actions *[]WebhookAction `json:"actions,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state of the webhook at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

func (WebhookProperties) MarshalJSON

func (wp WebhookProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookProperties.

type WebhookPropertiesCreateParameters

WebhookPropertiesCreateParameters the parameters for creating the properties of a webhook.

type WebhookPropertiesCreateParameters struct {
    // ServiceURI - The service URI for the webhook to post notifications.
    ServiceURI *string `json:"serviceUri,omitempty"`
    // CustomHeaders - Custom headers that will be added to the webhook notifications.
    CustomHeaders map[string]*string `json:"customHeaders"`
    // Status - The status of the webhook at the time the operation was called. Possible values include: 'WebhookStatusEnabled', 'WebhookStatusDisabled'
    Status WebhookStatus `json:"status,omitempty"`
    // Scope - 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"`
    // Actions - The list of actions that trigger the webhook to post notifications.
    Actions *[]WebhookAction `json:"actions,omitempty"`
}

func (WebhookPropertiesCreateParameters) MarshalJSON

func (wpcp WebhookPropertiesCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookPropertiesCreateParameters.

type WebhookPropertiesUpdateParameters

WebhookPropertiesUpdateParameters the parameters for updating the properties of a webhook.

type WebhookPropertiesUpdateParameters struct {
    // ServiceURI - The service URI for the webhook to post notifications.
    ServiceURI *string `json:"serviceUri,omitempty"`
    // CustomHeaders - Custom headers that will be added to the webhook notifications.
    CustomHeaders map[string]*string `json:"customHeaders"`
    // Status - The status of the webhook at the time the operation was called. Possible values include: 'WebhookStatusEnabled', 'WebhookStatusDisabled'
    Status WebhookStatus `json:"status,omitempty"`
    // Scope - 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"`
    // Actions - The list of actions that trigger the webhook to post notifications.
    Actions *[]WebhookAction `json:"actions,omitempty"`
}

func (WebhookPropertiesUpdateParameters) MarshalJSON

func (wpup WebhookPropertiesUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookPropertiesUpdateParameters.

type WebhookStatus

WebhookStatus enumerates the values for webhook status.

type WebhookStatus string
const (
    // WebhookStatusDisabled ...
    WebhookStatusDisabled WebhookStatus = "disabled"
    // WebhookStatusEnabled ...
    WebhookStatusEnabled WebhookStatus = "enabled"
)

func PossibleWebhookStatusValues

func PossibleWebhookStatusValues() []WebhookStatus

PossibleWebhookStatusValues returns an array of possible values for the WebhookStatus const type.

type WebhookUpdateParameters

WebhookUpdateParameters the parameters for updating a webhook.

type WebhookUpdateParameters struct {
    // Tags - The tags for the webhook.
    Tags map[string]*string `json:"tags"`
    // WebhookPropertiesUpdateParameters - The properties that the webhook will be updated with.
    *WebhookPropertiesUpdateParameters `json:"properties,omitempty"`
}

func (WebhookUpdateParameters) MarshalJSON

func (wup WebhookUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookUpdateParameters.

func (*WebhookUpdateParameters) UnmarshalJSON

func (wup *WebhookUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WebhookUpdateParameters struct.

type WebhooksClient

WebhooksClient is the client for the Webhooks methods of the Containerregistry service.

type WebhooksClient struct {
    BaseClient
}

func NewWebhooksClient

func NewWebhooksClient(subscriptionID string) WebhooksClient

NewWebhooksClient creates an instance of the WebhooksClient client.

func NewWebhooksClientWithBaseURI

func NewWebhooksClientWithBaseURI(baseURI string, subscriptionID string) WebhooksClient

NewWebhooksClientWithBaseURI creates an instance of the WebhooksClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (WebhooksClient) Create

func (client WebhooksClient) Create(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters) (result WebhooksCreateFuture, err error)

Create creates a webhook for a container registry with the specified parameters. Parameters: 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.

func (WebhooksClient) CreatePreparer

func (client WebhooksClient) CreatePreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (WebhooksClient) CreateResponder

func (client WebhooksClient) CreateResponder(resp *http.Response) (result Webhook, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (WebhooksClient) CreateSender

func (client WebhooksClient) CreateSender(req *http.Request) (future WebhooksCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (WebhooksClient) Delete

func (client WebhooksClient) Delete(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result WebhooksDeleteFuture, err error)

Delete deletes a webhook from a container registry. Parameters: 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.

func (WebhooksClient) DeletePreparer

func (client WebhooksClient) DeletePreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (WebhooksClient) DeleteResponder

func (client WebhooksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (WebhooksClient) DeleteSender

func (client WebhooksClient) DeleteSender(req *http.Request) (future WebhooksDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (WebhooksClient) Get

func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result Webhook, err error)

Get gets the properties of the specified webhook. Parameters: 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.

func (WebhooksClient) GetCallbackConfig

func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result CallbackConfig, err error)

GetCallbackConfig gets the configuration of service URI and custom headers for the webhook. Parameters: 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.

func (WebhooksClient) GetCallbackConfigPreparer

func (client WebhooksClient) GetCallbackConfigPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)

GetCallbackConfigPreparer prepares the GetCallbackConfig request.

func (WebhooksClient) GetCallbackConfigResponder

func (client WebhooksClient) GetCallbackConfigResponder(resp *http.Response) (result CallbackConfig, err error)

GetCallbackConfigResponder handles the response to the GetCallbackConfig request. The method always closes the http.Response Body.

func (WebhooksClient) GetCallbackConfigSender

func (client WebhooksClient) GetCallbackConfigSender(req *http.Request) (*http.Response, error)

GetCallbackConfigSender sends the GetCallbackConfig request. The method will close the http.Response Body if it receives an error.

func (WebhooksClient) GetPreparer

func (client WebhooksClient) GetPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (WebhooksClient) GetResponder

func (client WebhooksClient) GetResponder(resp *http.Response) (result Webhook, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (WebhooksClient) GetSender

func (client WebhooksClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (WebhooksClient) List

func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, registryName string) (result WebhookListResultPage, err error)

List lists all the webhooks for the specified container registry. Parameters: resourceGroupName - the name of the resource group to which the container registry belongs. registryName - the name of the container registry.

func (WebhooksClient) ListComplete

func (client WebhooksClient) ListComplete(ctx context.Context, resourceGroupName string, registryName string) (result WebhookListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (WebhooksClient) ListEvents

func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result EventListResultPage, err error)

ListEvents lists recent events for the specified webhook. Parameters: 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.

func (WebhooksClient) ListEventsComplete

func (client WebhooksClient) ListEventsComplete(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result EventListResultIterator, err error)

ListEventsComplete enumerates all values, automatically crossing page boundaries as required.

func (WebhooksClient) ListEventsPreparer

func (client WebhooksClient) ListEventsPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)

ListEventsPreparer prepares the ListEvents request.

func (WebhooksClient) ListEventsResponder

func (client WebhooksClient) ListEventsResponder(resp *http.Response) (result EventListResult, err error)

ListEventsResponder handles the response to the ListEvents request. The method always closes the http.Response Body.

func (WebhooksClient) ListEventsSender

func (client WebhooksClient) ListEventsSender(req *http.Request) (*http.Response, error)

ListEventsSender sends the ListEvents request. The method will close the http.Response Body if it receives an error.

func (WebhooksClient) ListPreparer

func (client WebhooksClient) ListPreparer(ctx context.Context, resourceGroupName string, registryName string) (*http.Request, error)

ListPreparer prepares the List request.

func (WebhooksClient) ListResponder

func (client WebhooksClient) ListResponder(resp *http.Response) (result WebhookListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (WebhooksClient) ListSender

func (client WebhooksClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (WebhooksClient) Ping

func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (result EventInfo, err error)

Ping triggers a ping event to be sent to the webhook. Parameters: 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.

func (WebhooksClient) PingPreparer

func (client WebhooksClient) PingPreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string) (*http.Request, error)

PingPreparer prepares the Ping request.

func (WebhooksClient) PingResponder

func (client WebhooksClient) PingResponder(resp *http.Response) (result EventInfo, err error)

PingResponder handles the response to the Ping request. The method always closes the http.Response Body.

func (WebhooksClient) PingSender

func (client WebhooksClient) PingSender(req *http.Request) (*http.Response, error)

PingSender sends the Ping request. The method will close the http.Response Body if it receives an error.

func (WebhooksClient) Update

func (client WebhooksClient) Update(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters) (result WebhooksUpdateFuture, err error)

Update updates a webhook with the specified parameters. Parameters: 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.

func (WebhooksClient) UpdatePreparer

func (client WebhooksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (WebhooksClient) UpdateResponder

func (client WebhooksClient) UpdateResponder(resp *http.Response) (result Webhook, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (WebhooksClient) UpdateSender

func (client WebhooksClient) UpdateSender(req *http.Request) (future WebhooksUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type WebhooksCreateFuture

WebhooksCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type WebhooksCreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(WebhooksClient) (Webhook, error)
}

func (*WebhooksCreateFuture) UnmarshalJSON

func (future *WebhooksCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type WebhooksDeleteFuture

WebhooksDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type WebhooksDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(WebhooksClient) (autorest.Response, error)
}

func (*WebhooksDeleteFuture) UnmarshalJSON

func (future *WebhooksDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type WebhooksUpdateFuture

WebhooksUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type WebhooksUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(WebhooksClient) (Webhook, error)
}

func (*WebhooksUpdateFuture) UnmarshalJSON

func (future *WebhooksUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

Subdirectories

Name Synopsis
..
containerregistryapi Deprecated: Please note, this package has been deprecated.