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)
- type AgentProperties
- type Architecture
- type Argument
- type Credentials
- type CustomRegistryCredentials
- type DockerBuildRequest
- type EncodedTaskRunRequest
- type FileTaskRunRequest
- type GetBuildSourceUploadUrlOperationResponse
- type ImageDescriptor
- type ImageUpdateTrigger
- type OS
- type OverrideTaskStepProperties
- type PlatformProperties
- type ProvisioningState
- type RegistriesClient
- func (c RegistriesClient) GetBuildSourceUploadUrl(ctx context.Context, id RegistryId) (result GetBuildSourceUploadUrlOperationResponse, err error)
- func (c RegistriesClient) ScheduleRun(ctx context.Context, id RegistryId, input RunRequest) (result ScheduleRunOperationResponse, err error)
- func (c RegistriesClient) ScheduleRunThenPoll(ctx context.Context, id RegistryId, input RunRequest) error
- 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 ScheduleRunOperationResponse
- type SecretObject
- type SecretObjectType
- type SetValue
- type SourceRegistryCredentials
- type SourceRegistryLoginMode
- type SourceTriggerDescriptor
- type SourceUploadDefinition
- type TaskRunRequest
- type TimerTriggerDescriptor
- 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
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 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 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 GetBuildSourceUploadUrlOperationResponse ¶
type GetBuildSourceUploadUrlOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SourceUploadDefinition }
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 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 RegistriesClient ¶
type RegistriesClient struct {
Client *resourcemanager.Client
}
func NewRegistriesClientWithBaseURI ¶
func NewRegistriesClientWithBaseURI(api environments.Api) (*RegistriesClient, error)
func (RegistriesClient) GetBuildSourceUploadUrl ¶
func (c RegistriesClient) GetBuildSourceUploadUrl(ctx context.Context, id RegistryId) (result GetBuildSourceUploadUrlOperationResponse, err error)
GetBuildSourceUploadUrl ...
func (RegistriesClient) ScheduleRun ¶
func (c RegistriesClient) ScheduleRun(ctx context.Context, id RegistryId, input RunRequest) (result ScheduleRunOperationResponse, err error)
ScheduleRun ...
func (RegistriesClient) ScheduleRunThenPoll ¶
func (c RegistriesClient) ScheduleRunThenPoll(ctx context.Context, id RegistryId, input RunRequest) error
ScheduleRunThenPoll performs ScheduleRun then polls until it's completed
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 SourceUploadDefinition ¶
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 TimerTriggerDescriptor ¶
Source Files ¶
- client.go
- constants.go
- id_registry.go
- method_getbuildsourceuploadurl.go
- method_schedulerun.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_sourceuploaddefinition.go
- model_taskrunrequest.go
- model_timertriggerdescriptor.go
- version.go