Documentation ¶
Index ¶
- func PossibleValuesForArchitecture() []string
- func PossibleValuesForOS() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForRunStatus() []string
- func PossibleValuesForRunType() []string
- func PossibleValuesForVariant() []string
- func ValidateRegistryID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRunID(input interface{}, key string) (warnings []string, errors []error)
- type AgentProperties
- type Architecture
- type CancelOperationResponse
- type GetLogSasUrlOperationResponse
- type GetOperationResponse
- type ImageDescriptor
- type ImageUpdateTrigger
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type OS
- type PlatformProperties
- type ProvisioningState
- type RegistryId
- type Run
- type RunGetLogResult
- type RunId
- type RunOperationPredicate
- type RunProperties
- func (o *RunProperties) GetCreateTimeAsTime() (*time.Time, error)
- func (o *RunProperties) GetFinishTimeAsTime() (*time.Time, error)
- func (o *RunProperties) GetLastUpdatedTimeAsTime() (*time.Time, error)
- func (o *RunProperties) GetStartTimeAsTime() (*time.Time, error)
- func (o *RunProperties) SetCreateTimeAsTime(input time.Time)
- func (o *RunProperties) SetFinishTimeAsTime(input time.Time)
- func (o *RunProperties) SetLastUpdatedTimeAsTime(input time.Time)
- func (o *RunProperties) SetStartTimeAsTime(input time.Time)
- type RunStatus
- type RunType
- type RunUpdateParameters
- type RunsClient
- func (c RunsClient) Cancel(ctx context.Context, id RunId) (result CancelOperationResponse, err error)
- func (c RunsClient) CancelThenPoll(ctx context.Context, id RunId) error
- func (c RunsClient) Get(ctx context.Context, id RunId) (result GetOperationResponse, err error)
- func (c RunsClient) GetLogSasUrl(ctx context.Context, id RunId) (result GetLogSasUrlOperationResponse, err error)
- func (c RunsClient) List(ctx context.Context, id RegistryId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c RunsClient) ListComplete(ctx context.Context, id RegistryId, options ListOperationOptions) (ListCompleteResult, error)
- func (c RunsClient) ListCompleteMatchingPredicate(ctx context.Context, id RegistryId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c RunsClient) Update(ctx context.Context, id RunId, input RunUpdateParameters) (result UpdateOperationResponse, err error)
- func (c RunsClient) UpdateThenPoll(ctx context.Context, id RunId, input RunUpdateParameters) error
- type SourceTriggerDescriptor
- type TimerTriggerDescriptor
- type UpdateOperationResponse
- type Variant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForArchitecture ¶
func PossibleValuesForArchitecture() []string
func PossibleValuesForOS ¶
func PossibleValuesForOS() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForRunStatus ¶
func PossibleValuesForRunStatus() []string
func PossibleValuesForRunType ¶
func PossibleValuesForRunType() []string
func PossibleValuesForVariant ¶
func PossibleValuesForVariant() []string
func ValidateRegistryID ¶
ValidateRegistryID checks that 'input' can be parsed as a Registry ID
func ValidateRunID ¶
ValidateRunID checks that 'input' can be parsed as a Run ID
Types ¶
type AgentProperties ¶
type AgentProperties struct {
Cpu *int64 `json:"cpu,omitempty"`
}
type Architecture ¶
type Architecture string
const ( ArchitectureAmdSixFour Architecture = "amd64" ArchitectureArm Architecture = "arm" ArchitectureArmSixFour Architecture = "arm64" ArchitectureThreeEightSix Architecture = "386" ArchitectureXEightSix Architecture = "x86" )
func (*Architecture) UnmarshalJSON ¶
func (s *Architecture) UnmarshalJSON(bytes []byte) error
type CancelOperationResponse ¶
type GetLogSasUrlOperationResponse ¶
type GetLogSasUrlOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RunGetLogResult }
type GetOperationResponse ¶
type ImageDescriptor ¶
type ImageUpdateTrigger ¶
type ImageUpdateTrigger struct { Id *string `json:"id,omitempty"` Images *[]ImageDescriptor `json:"images,omitempty"` Timestamp *string `json:"timestamp,omitempty"` }
func (*ImageUpdateTrigger) GetTimestampAsTime ¶
func (o *ImageUpdateTrigger) GetTimestampAsTime() (*time.Time, error)
func (*ImageUpdateTrigger) SetTimestampAsTime ¶
func (o *ImageUpdateTrigger) SetTimestampAsTime(input time.Time)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Run
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type PlatformProperties ¶
type PlatformProperties struct { Architecture *Architecture `json:"architecture,omitempty"` Os OS `json:"os"` Variant *Variant `json:"variant,omitempty"` }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type RegistryId ¶
RegistryId is a struct representing the Resource ID for a Registry
func NewRegistryID ¶
func NewRegistryID(subscriptionId string, resourceGroupName string, registryName string) RegistryId
NewRegistryID returns a new RegistryId struct
func ParseRegistryID ¶
func ParseRegistryID(input string) (*RegistryId, error)
ParseRegistryID parses 'input' into a RegistryId
func ParseRegistryIDInsensitively ¶
func ParseRegistryIDInsensitively(input string) (*RegistryId, error)
ParseRegistryIDInsensitively parses 'input' case-insensitively into a RegistryId note: this method should only be used for API response data and not user input
func (RegistryId) Segments ¶
func (id RegistryId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Registry ID
func (RegistryId) String ¶
func (id RegistryId) String() string
String returns a human-readable description of this Registry ID
type Run ¶
type Run struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RunProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type RunGetLogResult ¶
type RunId ¶
type RunId struct { SubscriptionId string ResourceGroupName string RegistryName string RunId string }
RunId is a struct representing the Resource ID for a Run
func NewRunID ¶
func NewRunID(subscriptionId string, resourceGroupName string, registryName string, runId string) RunId
NewRunID returns a new RunId struct
func ParseRunID ¶
ParseRunID parses 'input' into a RunId
func ParseRunIDInsensitively ¶
ParseRunIDInsensitively parses 'input' case-insensitively into a RunId note: this method should only be used for API response data and not user input
func (RunId) Segments ¶
func (id RunId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Run ID
type RunOperationPredicate ¶
func (RunOperationPredicate) Matches ¶
func (p RunOperationPredicate) Matches(input Run) bool
type RunProperties ¶
type RunProperties struct { AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"` AgentPoolName *string `json:"agentPoolName,omitempty"` CreateTime *string `json:"createTime,omitempty"` CustomRegistries *[]string `json:"customRegistries,omitempty"` FinishTime *string `json:"finishTime,omitempty"` ImageUpdateTrigger *ImageUpdateTrigger `json:"imageUpdateTrigger,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` LogArtifact *ImageDescriptor `json:"logArtifact,omitempty"` OutputImages *[]ImageDescriptor `json:"outputImages,omitempty"` Platform *PlatformProperties `json:"platform,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` RunErrorMessage *string `json:"runErrorMessage,omitempty"` RunId *string `json:"runId,omitempty"` RunType *RunType `json:"runType,omitempty"` SourceRegistryAuth *string `json:"sourceRegistryAuth,omitempty"` SourceTrigger *SourceTriggerDescriptor `json:"sourceTrigger,omitempty"` StartTime *string `json:"startTime,omitempty"` Status *RunStatus `json:"status,omitempty"` Task *string `json:"task,omitempty"` TimerTrigger *TimerTriggerDescriptor `json:"timerTrigger,omitempty"` UpdateTriggerToken *string `json:"updateTriggerToken,omitempty"` }
func (*RunProperties) GetCreateTimeAsTime ¶
func (o *RunProperties) GetCreateTimeAsTime() (*time.Time, error)
func (*RunProperties) GetFinishTimeAsTime ¶
func (o *RunProperties) GetFinishTimeAsTime() (*time.Time, error)
func (*RunProperties) GetLastUpdatedTimeAsTime ¶
func (o *RunProperties) GetLastUpdatedTimeAsTime() (*time.Time, error)
func (*RunProperties) GetStartTimeAsTime ¶
func (o *RunProperties) GetStartTimeAsTime() (*time.Time, error)
func (*RunProperties) SetCreateTimeAsTime ¶
func (o *RunProperties) SetCreateTimeAsTime(input time.Time)
func (*RunProperties) SetFinishTimeAsTime ¶
func (o *RunProperties) SetFinishTimeAsTime(input time.Time)
func (*RunProperties) SetLastUpdatedTimeAsTime ¶
func (o *RunProperties) SetLastUpdatedTimeAsTime(input time.Time)
func (*RunProperties) SetStartTimeAsTime ¶
func (o *RunProperties) SetStartTimeAsTime(input time.Time)
type RunStatus ¶
type RunStatus string
const ( RunStatusCanceled RunStatus = "Canceled" RunStatusError RunStatus = "Error" RunStatusFailed RunStatus = "Failed" RunStatusQueued RunStatus = "Queued" RunStatusRunning RunStatus = "Running" RunStatusStarted RunStatus = "Started" RunStatusSucceeded RunStatus = "Succeeded" RunStatusTimeout RunStatus = "Timeout" )
func (*RunStatus) UnmarshalJSON ¶
type RunUpdateParameters ¶
type RunUpdateParameters struct {
IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"`
}
type RunsClient ¶
type RunsClient struct {
Client *resourcemanager.Client
}
func NewRunsClientWithBaseURI ¶
func NewRunsClientWithBaseURI(api environments.Api) (*RunsClient, error)
func (RunsClient) Cancel ¶
func (c RunsClient) Cancel(ctx context.Context, id RunId) (result CancelOperationResponse, err error)
Cancel ...
func (RunsClient) CancelThenPoll ¶
func (c RunsClient) CancelThenPoll(ctx context.Context, id RunId) error
CancelThenPoll performs Cancel then polls until it's completed
func (RunsClient) Get ¶
func (c RunsClient) Get(ctx context.Context, id RunId) (result GetOperationResponse, err error)
Get ...
func (RunsClient) GetLogSasUrl ¶
func (c RunsClient) GetLogSasUrl(ctx context.Context, id RunId) (result GetLogSasUrlOperationResponse, err error)
GetLogSasUrl ...
func (RunsClient) List ¶
func (c RunsClient) List(ctx context.Context, id RegistryId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (RunsClient) ListComplete ¶
func (c RunsClient) ListComplete(ctx context.Context, id RegistryId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (RunsClient) ListCompleteMatchingPredicate ¶
func (c RunsClient) ListCompleteMatchingPredicate(ctx context.Context, id RegistryId, options ListOperationOptions, predicate RunOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (RunsClient) Update ¶
func (c RunsClient) Update(ctx context.Context, id RunId, input RunUpdateParameters) (result UpdateOperationResponse, err error)
Update ...
func (RunsClient) UpdateThenPoll ¶
func (c RunsClient) UpdateThenPoll(ctx context.Context, id RunId, input RunUpdateParameters) error
UpdateThenPoll performs Update then polls until it's completed
type SourceTriggerDescriptor ¶
type SourceTriggerDescriptor struct { BranchName *string `json:"branchName,omitempty"` CommitId *string `json:"commitId,omitempty"` EventType *string `json:"eventType,omitempty"` Id *string `json:"id,omitempty"` ProviderType *string `json:"providerType,omitempty"` PullRequestId *string `json:"pullRequestId,omitempty"` RepositoryUrl *string `json:"repositoryUrl,omitempty"` }
type TimerTriggerDescriptor ¶
type UpdateOperationResponse ¶
Source Files ¶
- client.go
- constants.go
- id_registry.go
- id_run.go
- method_cancel.go
- method_get.go
- method_getlogsasurl.go
- method_list.go
- method_update.go
- model_agentproperties.go
- model_imagedescriptor.go
- model_imageupdatetrigger.go
- model_platformproperties.go
- model_run.go
- model_rungetlogresult.go
- model_runproperties.go
- model_runupdateparameters.go
- model_sourcetriggerdescriptor.go
- model_timertriggerdescriptor.go
- predicates.go
- version.go