Documentation ¶
Index ¶
- func PossibleValuesForArchitecture() []string
- func PossibleValuesForOS() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForRunStatus() []string
- func PossibleValuesForRunType() []string
- func PossibleValuesForSecretObjectType() []string
- func PossibleValuesForSourceRegistryLoginMode() []string
- func PossibleValuesForVariant() []string
- func ValidateRegistryID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateTaskRunID(input interface{}, key string) (warnings []string, errors []error)
- type AgentProperties
- type Architecture
- type Argument
- type CreateOperationResponse
- type Credentials
- type CustomRegistryCredentials
- type DeleteOperationResponse
- type DockerBuildRequest
- type EncodedTaskRunRequest
- type FileTaskRunRequest
- type GetDetailsOperationResponse
- type GetOperationResponse
- type ImageDescriptor
- type ImageUpdateTrigger
- type ListCompleteResult
- type ListOperationResponse
- type OS
- type OverrideTaskStepProperties
- type PlatformProperties
- type ProvisioningState
- type RegistryId
- type Run
- 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 RunRequest
- type RunStatus
- type RunType
- type SecretObject
- type SecretObjectType
- type SetValue
- type SourceRegistryCredentials
- type SourceRegistryLoginMode
- type SourceTriggerDescriptor
- type TaskRun
- type TaskRunId
- type TaskRunOperationPredicate
- type TaskRunProperties
- type TaskRunPropertiesUpdateParameters
- type TaskRunRequest
- type TaskRunUpdateParameters
- type TaskRunsClient
- func (c TaskRunsClient) Create(ctx context.Context, id TaskRunId, input TaskRun) (result CreateOperationResponse, err error)
- func (c TaskRunsClient) CreateThenPoll(ctx context.Context, id TaskRunId, input TaskRun) error
- func (c TaskRunsClient) Delete(ctx context.Context, id TaskRunId) (result DeleteOperationResponse, err error)
- func (c TaskRunsClient) DeleteThenPoll(ctx context.Context, id TaskRunId) error
- func (c TaskRunsClient) Get(ctx context.Context, id TaskRunId) (result GetOperationResponse, err error)
- func (c TaskRunsClient) GetDetails(ctx context.Context, id TaskRunId) (result GetDetailsOperationResponse, err error)
- func (c TaskRunsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error)
- func (c TaskRunsClient) ListComplete(ctx context.Context, id RegistryId) (ListCompleteResult, error)
- func (c TaskRunsClient) ListCompleteMatchingPredicate(ctx context.Context, id RegistryId, predicate TaskRunOperationPredicate) (result ListCompleteResult, err error)
- func (c TaskRunsClient) Update(ctx context.Context, id TaskRunId, input TaskRunUpdateParameters) (result UpdateOperationResponse, err error)
- func (c TaskRunsClient) UpdateThenPoll(ctx context.Context, id TaskRunId, input TaskRunUpdateParameters) error
- 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 PossibleValuesForSecretObjectType ¶
func PossibleValuesForSecretObjectType() []string
func PossibleValuesForSourceRegistryLoginMode ¶
func PossibleValuesForSourceRegistryLoginMode() []string
func PossibleValuesForVariant ¶
func PossibleValuesForVariant() []string
func ValidateRegistryID ¶
ValidateRegistryID checks that 'input' can be parsed as a Registry ID
func ValidateTaskRunID ¶
ValidateTaskRunID checks that 'input' can be parsed as a Task 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 ¶ added in v0.20230406.1124617
func (s *Architecture) UnmarshalJSON(bytes []byte) error
type CreateOperationResponse ¶
type Credentials ¶
type Credentials struct { CustomRegistries *map[string]CustomRegistryCredentials `json:"customRegistries,omitempty"` SourceRegistry *SourceRegistryCredentials `json:"sourceRegistry,omitempty"` }
type CustomRegistryCredentials ¶
type CustomRegistryCredentials struct { Identity *string `json:"identity,omitempty"` Password *SecretObject `json:"password,omitempty"` UserName *SecretObject `json:"userName,omitempty"` }
type DeleteOperationResponse ¶
type DockerBuildRequest ¶
type DockerBuildRequest struct { AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"` Arguments *[]Argument `json:"arguments,omitempty"` Credentials *Credentials `json:"credentials,omitempty"` DockerFilePath string `json:"dockerFilePath"` ImageNames *[]string `json:"imageNames,omitempty"` IsPushEnabled *bool `json:"isPushEnabled,omitempty"` NoCache *bool `json:"noCache,omitempty"` Platform PlatformProperties `json:"platform"` SourceLocation *string `json:"sourceLocation,omitempty"` Target *string `json:"target,omitempty"` Timeout *int64 `json:"timeout,omitempty"` // Fields inherited from RunRequest AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` }
func (DockerBuildRequest) MarshalJSON ¶
func (s DockerBuildRequest) MarshalJSON() ([]byte, error)
type EncodedTaskRunRequest ¶
type EncodedTaskRunRequest struct { AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"` Credentials *Credentials `json:"credentials,omitempty"` EncodedTaskContent string `json:"encodedTaskContent"` EncodedValuesContent *string `json:"encodedValuesContent,omitempty"` Platform PlatformProperties `json:"platform"` SourceLocation *string `json:"sourceLocation,omitempty"` Timeout *int64 `json:"timeout,omitempty"` Values *[]SetValue `json:"values,omitempty"` // Fields inherited from RunRequest AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` }
func (EncodedTaskRunRequest) MarshalJSON ¶
func (s EncodedTaskRunRequest) MarshalJSON() ([]byte, error)
type FileTaskRunRequest ¶
type FileTaskRunRequest struct { AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"` Credentials *Credentials `json:"credentials,omitempty"` Platform PlatformProperties `json:"platform"` SourceLocation *string `json:"sourceLocation,omitempty"` TaskFilePath string `json:"taskFilePath"` Timeout *int64 `json:"timeout,omitempty"` Values *[]SetValue `json:"values,omitempty"` ValuesFilePath *string `json:"valuesFilePath,omitempty"` // Fields inherited from RunRequest AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` }
func (FileTaskRunRequest) MarshalJSON ¶
func (s FileTaskRunRequest) MarshalJSON() ([]byte, error)
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 []TaskRun
}
type ListOperationResponse ¶
type OverrideTaskStepProperties ¶
type OverrideTaskStepProperties struct { Arguments *[]Argument `json:"arguments,omitempty"` ContextPath *string `json:"contextPath,omitempty"` File *string `json:"file,omitempty"` Target *string `json:"target,omitempty"` UpdateTriggerToken *string `json:"updateTriggerToken,omitempty"` Values *[]SetValue `json:"values,omitempty"` }
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 ¶ added in v0.20230406.1124617
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 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 RunRequest ¶
type RunRequest interface { }
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 ¶ added in v0.20230406.1124617
type SecretObject ¶
type SecretObject struct { Type *SecretObjectType `json:"type,omitempty"` Value *string `json:"value,omitempty"` }
type SecretObjectType ¶
type SecretObjectType string
const ( SecretObjectTypeOpaque SecretObjectType = "Opaque" SecretObjectTypeVaultsecret SecretObjectType = "Vaultsecret" )
func (*SecretObjectType) UnmarshalJSON ¶ added in v0.20230406.1124617
func (s *SecretObjectType) UnmarshalJSON(bytes []byte) error
type SourceRegistryCredentials ¶
type SourceRegistryCredentials struct {
LoginMode *SourceRegistryLoginMode `json:"loginMode,omitempty"`
}
type SourceRegistryLoginMode ¶
type SourceRegistryLoginMode string
const ( SourceRegistryLoginModeDefault SourceRegistryLoginMode = "Default" SourceRegistryLoginModeNone SourceRegistryLoginMode = "None" )
func (*SourceRegistryLoginMode) UnmarshalJSON ¶ added in v0.20230406.1124617
func (s *SourceRegistryLoginMode) UnmarshalJSON(bytes []byte) error
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 TaskRun ¶
type TaskRun struct { Id *string `json:"id,omitempty"` Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *TaskRunProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type TaskRunId ¶
type TaskRunId struct { SubscriptionId string ResourceGroupName string RegistryName string TaskRunName string }
TaskRunId is a struct representing the Resource ID for a Task Run
func NewTaskRunID ¶
func NewTaskRunID(subscriptionId string, resourceGroupName string, registryName string, taskRunName string) TaskRunId
NewTaskRunID returns a new TaskRunId struct
func ParseTaskRunID ¶
ParseTaskRunID parses 'input' into a TaskRunId
func ParseTaskRunIDInsensitively ¶
ParseTaskRunIDInsensitively parses 'input' case-insensitively into a TaskRunId note: this method should only be used for API response data and not user input
func (TaskRunId) Segments ¶
func (id TaskRunId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Task Run ID
type TaskRunOperationPredicate ¶
func (TaskRunOperationPredicate) Matches ¶
func (p TaskRunOperationPredicate) Matches(input TaskRun) bool
type TaskRunProperties ¶
type TaskRunProperties struct { ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` RunRequest RunRequest `json:"runRequest"` RunResult *Run `json:"runResult,omitempty"` }
func (*TaskRunProperties) UnmarshalJSON ¶
func (s *TaskRunProperties) UnmarshalJSON(bytes []byte) error
type TaskRunPropertiesUpdateParameters ¶
type TaskRunPropertiesUpdateParameters struct { ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` RunRequest RunRequest `json:"runRequest"` }
func (*TaskRunPropertiesUpdateParameters) UnmarshalJSON ¶
func (s *TaskRunPropertiesUpdateParameters) UnmarshalJSON(bytes []byte) error
type TaskRunRequest ¶
type TaskRunRequest struct { OverrideTaskStepProperties *OverrideTaskStepProperties `json:"overrideTaskStepProperties,omitempty"` TaskId string `json:"taskId"` // Fields inherited from RunRequest AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` }
func (TaskRunRequest) MarshalJSON ¶
func (s TaskRunRequest) MarshalJSON() ([]byte, error)
type TaskRunUpdateParameters ¶
type TaskRunUpdateParameters struct { Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` Location *string `json:"location,omitempty"` Properties *TaskRunPropertiesUpdateParameters `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type TaskRunsClient ¶
type TaskRunsClient struct {
Client *resourcemanager.Client
}
func NewTaskRunsClientWithBaseURI ¶
func NewTaskRunsClientWithBaseURI(api environments.Api) (*TaskRunsClient, error)
func (TaskRunsClient) Create ¶
func (c TaskRunsClient) Create(ctx context.Context, id TaskRunId, input TaskRun) (result CreateOperationResponse, err error)
Create ...
func (TaskRunsClient) CreateThenPoll ¶
CreateThenPoll performs Create then polls until it's completed
func (TaskRunsClient) Delete ¶
func (c TaskRunsClient) Delete(ctx context.Context, id TaskRunId) (result DeleteOperationResponse, err error)
Delete ...
func (TaskRunsClient) DeleteThenPoll ¶
func (c TaskRunsClient) DeleteThenPoll(ctx context.Context, id TaskRunId) error
DeleteThenPoll performs Delete then polls until it's completed
func (TaskRunsClient) Get ¶
func (c TaskRunsClient) Get(ctx context.Context, id TaskRunId) (result GetOperationResponse, err error)
Get ...
func (TaskRunsClient) GetDetails ¶
func (c TaskRunsClient) GetDetails(ctx context.Context, id TaskRunId) (result GetDetailsOperationResponse, err error)
GetDetails ...
func (TaskRunsClient) List ¶
func (c TaskRunsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error)
List ...
func (TaskRunsClient) ListComplete ¶
func (c TaskRunsClient) ListComplete(ctx context.Context, id RegistryId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (TaskRunsClient) ListCompleteMatchingPredicate ¶
func (c TaskRunsClient) ListCompleteMatchingPredicate(ctx context.Context, id RegistryId, predicate TaskRunOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (TaskRunsClient) Update ¶
func (c TaskRunsClient) Update(ctx context.Context, id TaskRunId, input TaskRunUpdateParameters) (result UpdateOperationResponse, err error)
Update ...
func (TaskRunsClient) UpdateThenPoll ¶
func (c TaskRunsClient) UpdateThenPoll(ctx context.Context, id TaskRunId, input TaskRunUpdateParameters) error
UpdateThenPoll performs Update then polls until it's completed
type TimerTriggerDescriptor ¶
type UpdateOperationResponse ¶
Source Files ¶
- client.go
- constants.go
- id_registry.go
- id_taskrun.go
- method_create.go
- method_delete.go
- method_get.go
- method_getdetails.go
- method_list.go
- method_update.go
- model_agentproperties.go
- model_argument.go
- model_credentials.go
- model_customregistrycredentials.go
- model_dockerbuildrequest.go
- model_encodedtaskrunrequest.go
- model_filetaskrunrequest.go
- model_imagedescriptor.go
- model_imageupdatetrigger.go
- model_overridetaskstepproperties.go
- model_platformproperties.go
- model_run.go
- model_runproperties.go
- model_runrequest.go
- model_secretobject.go
- model_setvalue.go
- model_sourceregistrycredentials.go
- model_sourcetriggerdescriptor.go
- model_taskrun.go
- model_taskrunproperties.go
- model_taskrunpropertiesupdateparameters.go
- model_taskrunrequest.go
- model_taskrunupdateparameters.go
- model_timertriggerdescriptor.go
- predicates.go
- version.go