Documentation ¶
Overview ¶
Package cloudbuilddata provides Cloud Build type definitions for CloudEvent data payloads.
Supported CloudEvent Types ¶
- google.cloud.cloudbuild.build.v1.statusChanged
Index ¶
- Variables
- type Artifacts
- func (*Artifacts) Descriptor() ([]byte, []int)deprecated
- func (x *Artifacts) GetImages() []string
- func (x *Artifacts) GetObjects() *Artifacts_ArtifactObjects
- func (*Artifacts) ProtoMessage()
- func (x *Artifacts) ProtoReflect() protoreflect.Message
- func (x *Artifacts) Reset()
- func (x *Artifacts) String() string
- type Artifacts_ArtifactObjects
- func (*Artifacts_ArtifactObjects) Descriptor() ([]byte, []int)deprecated
- func (x *Artifacts_ArtifactObjects) GetLocation() string
- func (x *Artifacts_ArtifactObjects) GetPaths() []string
- func (x *Artifacts_ArtifactObjects) GetTiming() *TimeSpan
- func (*Artifacts_ArtifactObjects) ProtoMessage()
- func (x *Artifacts_ArtifactObjects) ProtoReflect() protoreflect.Message
- func (x *Artifacts_ArtifactObjects) Reset()
- func (x *Artifacts_ArtifactObjects) String() string
- type BuildEventData
- func (*BuildEventData) Descriptor() ([]byte, []int)deprecated
- func (x *BuildEventData) GetArtifacts() *Artifacts
- func (x *BuildEventData) GetBuildTriggerId() string
- func (x *BuildEventData) GetCreateTime() *timestamppb.Timestamp
- func (x *BuildEventData) GetFinishTime() *timestamppb.Timestamp
- func (x *BuildEventData) GetId() string
- func (x *BuildEventData) GetImages() []string
- func (x *BuildEventData) GetLogUrl() string
- func (x *BuildEventData) GetLogsBucket() string
- func (x *BuildEventData) GetOptions() *BuildOptions
- func (x *BuildEventData) GetProjectId() string
- func (x *BuildEventData) GetQueueTtl() *durationpb.Duration
- func (x *BuildEventData) GetResults() *Results
- func (x *BuildEventData) GetSecrets() []*Secret
- func (x *BuildEventData) GetSource() *Source
- func (x *BuildEventData) GetSourceProvenance() *SourceProvenance
- func (x *BuildEventData) GetStartTime() *timestamppb.Timestamp
- func (x *BuildEventData) GetStatus() BuildEventData_Status
- func (x *BuildEventData) GetStatusDetail() string
- func (x *BuildEventData) GetSteps() []*BuildStep
- func (x *BuildEventData) GetSubstitutions() map[string]string
- func (x *BuildEventData) GetTags() []string
- func (x *BuildEventData) GetTimeout() *durationpb.Duration
- func (x *BuildEventData) GetTiming() map[string]*TimeSpan
- func (*BuildEventData) ProtoMessage()
- func (x *BuildEventData) ProtoReflect() protoreflect.Message
- func (x *BuildEventData) Reset()
- func (x *BuildEventData) String() string
- type BuildEventData_Status
- func (BuildEventData_Status) Descriptor() protoreflect.EnumDescriptor
- func (x BuildEventData_Status) Enum() *BuildEventData_Status
- func (BuildEventData_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x BuildEventData_Status) Number() protoreflect.EnumNumber
- func (x BuildEventData_Status) String() string
- func (BuildEventData_Status) Type() protoreflect.EnumType
- type BuildOptions
- func (*BuildOptions) Descriptor() ([]byte, []int)deprecated
- func (x *BuildOptions) GetDiskSizeGb() int64
- func (x *BuildOptions) GetEnv() []string
- func (x *BuildOptions) GetLogStreamingOption() BuildOptions_LogStreamingOption
- func (x *BuildOptions) GetLogging() BuildOptions_LoggingMode
- func (x *BuildOptions) GetMachineType() BuildOptions_MachineType
- func (x *BuildOptions) GetRequestedVerifyOption() BuildOptions_VerifyOption
- func (x *BuildOptions) GetSecretEnv() []string
- func (x *BuildOptions) GetSourceProvenanceHash() []Hash_HashType
- func (x *BuildOptions) GetSubstitutionOption() BuildOptions_SubstitutionOption
- func (x *BuildOptions) GetVolumes() []*Volume
- func (x *BuildOptions) GetWorkerPool() string
- func (*BuildOptions) ProtoMessage()
- func (x *BuildOptions) ProtoReflect() protoreflect.Message
- func (x *BuildOptions) Reset()
- func (x *BuildOptions) String() string
- type BuildOptions_LogStreamingOption
- func (BuildOptions_LogStreamingOption) Descriptor() protoreflect.EnumDescriptor
- func (x BuildOptions_LogStreamingOption) Enum() *BuildOptions_LogStreamingOption
- func (BuildOptions_LogStreamingOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x BuildOptions_LogStreamingOption) Number() protoreflect.EnumNumber
- func (x BuildOptions_LogStreamingOption) String() string
- func (BuildOptions_LogStreamingOption) Type() protoreflect.EnumType
- type BuildOptions_LoggingMode
- func (BuildOptions_LoggingMode) Descriptor() protoreflect.EnumDescriptor
- func (x BuildOptions_LoggingMode) Enum() *BuildOptions_LoggingMode
- func (BuildOptions_LoggingMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x BuildOptions_LoggingMode) Number() protoreflect.EnumNumber
- func (x BuildOptions_LoggingMode) String() string
- func (BuildOptions_LoggingMode) Type() protoreflect.EnumType
- type BuildOptions_MachineType
- func (BuildOptions_MachineType) Descriptor() protoreflect.EnumDescriptor
- func (x BuildOptions_MachineType) Enum() *BuildOptions_MachineType
- func (BuildOptions_MachineType) EnumDescriptor() ([]byte, []int)deprecated
- func (x BuildOptions_MachineType) Number() protoreflect.EnumNumber
- func (x BuildOptions_MachineType) String() string
- func (BuildOptions_MachineType) Type() protoreflect.EnumType
- type BuildOptions_SubstitutionOption
- func (BuildOptions_SubstitutionOption) Descriptor() protoreflect.EnumDescriptor
- func (x BuildOptions_SubstitutionOption) Enum() *BuildOptions_SubstitutionOption
- func (BuildOptions_SubstitutionOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x BuildOptions_SubstitutionOption) Number() protoreflect.EnumNumber
- func (x BuildOptions_SubstitutionOption) String() string
- func (BuildOptions_SubstitutionOption) Type() protoreflect.EnumType
- type BuildOptions_VerifyOption
- func (BuildOptions_VerifyOption) Descriptor() protoreflect.EnumDescriptor
- func (x BuildOptions_VerifyOption) Enum() *BuildOptions_VerifyOption
- func (BuildOptions_VerifyOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x BuildOptions_VerifyOption) Number() protoreflect.EnumNumber
- func (x BuildOptions_VerifyOption) String() string
- func (BuildOptions_VerifyOption) Type() protoreflect.EnumType
- type BuildStep
- func (*BuildStep) Descriptor() ([]byte, []int)deprecated
- func (x *BuildStep) GetArgs() []string
- func (x *BuildStep) GetDir() string
- func (x *BuildStep) GetEntrypoint() string
- func (x *BuildStep) GetEnv() []string
- func (x *BuildStep) GetId() string
- func (x *BuildStep) GetName() string
- func (x *BuildStep) GetPullTiming() *TimeSpan
- func (x *BuildStep) GetSecretEnv() []string
- func (x *BuildStep) GetStatus() BuildEventData_Status
- func (x *BuildStep) GetTimeout() *durationpb.Duration
- func (x *BuildStep) GetTiming() *TimeSpan
- func (x *BuildStep) GetVolumes() []*Volume
- func (x *BuildStep) GetWaitFor() []string
- func (*BuildStep) ProtoMessage()
- func (x *BuildStep) ProtoReflect() protoreflect.Message
- func (x *BuildStep) Reset()
- func (x *BuildStep) String() string
- type BuiltImage
- func (*BuiltImage) Descriptor() ([]byte, []int)deprecated
- func (x *BuiltImage) GetDigest() string
- func (x *BuiltImage) GetName() string
- func (x *BuiltImage) GetPushTiming() *TimeSpan
- func (*BuiltImage) ProtoMessage()
- func (x *BuiltImage) ProtoReflect() protoreflect.Message
- func (x *BuiltImage) Reset()
- func (x *BuiltImage) String() string
- type FileHashes
- type Hash
- type Hash_HashType
- func (Hash_HashType) Descriptor() protoreflect.EnumDescriptor
- func (x Hash_HashType) Enum() *Hash_HashType
- func (Hash_HashType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Hash_HashType) Number() protoreflect.EnumNumber
- func (x Hash_HashType) String() string
- func (Hash_HashType) Type() protoreflect.EnumType
- type RepoSource
- func (*RepoSource) Descriptor() ([]byte, []int)deprecated
- func (x *RepoSource) GetBranchName() string
- func (x *RepoSource) GetCommitSha() string
- func (x *RepoSource) GetDir() string
- func (x *RepoSource) GetInvertRegex() bool
- func (x *RepoSource) GetProjectId() string
- func (x *RepoSource) GetRepoName() string
- func (m *RepoSource) GetRevision() isRepoSource_Revision
- func (x *RepoSource) GetSubstitutions() map[string]string
- func (x *RepoSource) GetTagName() string
- func (*RepoSource) ProtoMessage()
- func (x *RepoSource) ProtoReflect() protoreflect.Message
- func (x *RepoSource) Reset()
- func (x *RepoSource) String() string
- type RepoSource_BranchName
- type RepoSource_CommitSha
- type RepoSource_TagName
- type Results
- func (*Results) Descriptor() ([]byte, []int)deprecated
- func (x *Results) GetArtifactManifest() string
- func (x *Results) GetArtifactTiming() *TimeSpan
- func (x *Results) GetBuildStepImages() []string
- func (x *Results) GetBuildStepOutputs() [][]byte
- func (x *Results) GetImages() []*BuiltImage
- func (x *Results) GetNumArtifacts() int64
- func (*Results) ProtoMessage()
- func (x *Results) ProtoReflect() protoreflect.Message
- func (x *Results) Reset()
- func (x *Results) String() string
- type Secret
- type Source
- func (*Source) Descriptor() ([]byte, []int)deprecated
- func (x *Source) GetRepoSource() *RepoSource
- func (m *Source) GetSource() isSource_Source
- func (x *Source) GetStorageSource() *StorageSource
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) String() string
- type SourceProvenance
- func (*SourceProvenance) Descriptor() ([]byte, []int)deprecated
- func (x *SourceProvenance) GetFileHashes() map[string]*FileHashes
- func (x *SourceProvenance) GetResolvedRepoSource() *RepoSource
- func (x *SourceProvenance) GetResolvedStorageSource() *StorageSource
- func (*SourceProvenance) ProtoMessage()
- func (x *SourceProvenance) ProtoReflect() protoreflect.Message
- func (x *SourceProvenance) Reset()
- func (x *SourceProvenance) String() string
- type Source_RepoSource
- type Source_StorageSource
- type StorageSource
- func (*StorageSource) Descriptor() ([]byte, []int)deprecated
- func (x *StorageSource) GetBucket() string
- func (x *StorageSource) GetGeneration() int64
- func (x *StorageSource) GetObject() string
- func (*StorageSource) ProtoMessage()
- func (x *StorageSource) ProtoReflect() protoreflect.Message
- func (x *StorageSource) Reset()
- func (x *StorageSource) String() string
- type TimeSpan
- func (*TimeSpan) Descriptor() ([]byte, []int)deprecated
- func (x *TimeSpan) GetEndTime() *timestamppb.Timestamp
- func (x *TimeSpan) GetStartTime() *timestamppb.Timestamp
- func (*TimeSpan) ProtoMessage()
- func (x *TimeSpan) ProtoReflect() protoreflect.Message
- func (x *TimeSpan) Reset()
- func (x *TimeSpan) String() string
- type Volume
Constants ¶
This section is empty.
Variables ¶
var ( BuildEventData_Status_name = map[int32]string{ 0: "STATUS_UNKNOWN", 1: "QUEUED", 2: "WORKING", 3: "SUCCESS", 4: "FAILURE", 5: "INTERNAL_ERROR", 6: "TIMEOUT", 7: "CANCELLED", 9: "EXPIRED", } BuildEventData_Status_value = map[string]int32{ "STATUS_UNKNOWN": 0, "QUEUED": 1, "WORKING": 2, "SUCCESS": 3, "FAILURE": 4, "INTERNAL_ERROR": 5, "TIMEOUT": 6, "CANCELLED": 7, "EXPIRED": 9, } )
Enum value maps for BuildEventData_Status.
var ( Hash_HashType_name = map[int32]string{ 0: "NONE", 1: "SHA256", 2: "MD5", } Hash_HashType_value = map[string]int32{ "NONE": 0, "SHA256": 1, "MD5": 2, } )
Enum value maps for Hash_HashType.
var ( BuildOptions_VerifyOption_name = map[int32]string{ 0: "NOT_VERIFIED", 1: "VERIFIED", } BuildOptions_VerifyOption_value = map[string]int32{ "NOT_VERIFIED": 0, "VERIFIED": 1, } )
Enum value maps for BuildOptions_VerifyOption.
var ( BuildOptions_MachineType_name = map[int32]string{ 0: "UNSPECIFIED", 1: "N1_HIGHCPU_8", 2: "N1_HIGHCPU_32", } BuildOptions_MachineType_value = map[string]int32{ "UNSPECIFIED": 0, "N1_HIGHCPU_8": 1, "N1_HIGHCPU_32": 2, } )
Enum value maps for BuildOptions_MachineType.
var ( BuildOptions_SubstitutionOption_name = map[int32]string{ 0: "MUST_MATCH", 1: "ALLOW_LOOSE", } BuildOptions_SubstitutionOption_value = map[string]int32{ "MUST_MATCH": 0, "ALLOW_LOOSE": 1, } )
Enum value maps for BuildOptions_SubstitutionOption.
var ( BuildOptions_LogStreamingOption_name = map[int32]string{ 0: "STREAM_DEFAULT", 1: "STREAM_ON", 2: "STREAM_OFF", } BuildOptions_LogStreamingOption_value = map[string]int32{ "STREAM_DEFAULT": 0, "STREAM_ON": 1, "STREAM_OFF": 2, } )
Enum value maps for BuildOptions_LogStreamingOption.
var ( BuildOptions_LoggingMode_name = map[int32]string{ 0: "LOGGING_UNSPECIFIED", 1: "LEGACY", 2: "GCS_ONLY", } BuildOptions_LoggingMode_value = map[string]int32{ "LOGGING_UNSPECIFIED": 0, "LEGACY": 1, "GCS_ONLY": 2, } )
Enum value maps for BuildOptions_LoggingMode.
var File_cloud_cloudbuild_v1_data_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Artifacts ¶
type Artifacts struct { // A list of images to be pushed upon the successful completion of all build // steps. // // The images will be pushed using the builder service account's credentials. // // The digests of the pushed images will be stored in the Build resource's // results field. // // If any of the images fail to be pushed, the build is marked FAILURE. Images []string `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"` // A list of objects to be uploaded to Cloud Storage upon successful // completion of all build steps. // // Files in the workspace matching specified paths globs will be uploaded to // the specified Cloud Storage location using the builder service account's // credentials. // // The location and generation of the uploaded objects will be stored in the // Build resource's results field. // // If any objects fail to be pushed, the build is marked FAILURE. Objects *Artifacts_ArtifactObjects `protobuf:"bytes,2,opt,name=objects,proto3" json:"objects,omitempty"` // contains filtered or unexported fields }
Artifacts produced by a build that should be uploaded upon successful completion of all build steps.
func (*Artifacts) Descriptor
deprecated
func (*Artifacts) GetObjects ¶
func (x *Artifacts) GetObjects() *Artifacts_ArtifactObjects
func (*Artifacts) ProtoMessage ¶
func (*Artifacts) ProtoMessage()
func (*Artifacts) ProtoReflect ¶
func (x *Artifacts) ProtoReflect() protoreflect.Message
type Artifacts_ArtifactObjects ¶
type Artifacts_ArtifactObjects struct { // Cloud Storage bucket and optional object path, in the form // "gs://bucket/path/to/somewhere/". (see [Bucket Name // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). // // Files in the workspace matching any path pattern will be uploaded to // Cloud Storage with this location as a prefix. Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` // Path globs used to match files in the build's workspace. Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"` // Stores timing information for pushing all artifact objects. Timing *TimeSpan `protobuf:"bytes,3,opt,name=timing,proto3" json:"timing,omitempty"` // contains filtered or unexported fields }
Files in the workspace to upload to Cloud Storage upon successful completion of all build steps.
func (*Artifacts_ArtifactObjects) Descriptor
deprecated
func (*Artifacts_ArtifactObjects) Descriptor() ([]byte, []int)
Deprecated: Use Artifacts_ArtifactObjects.ProtoReflect.Descriptor instead.
func (*Artifacts_ArtifactObjects) GetLocation ¶
func (x *Artifacts_ArtifactObjects) GetLocation() string
func (*Artifacts_ArtifactObjects) GetPaths ¶
func (x *Artifacts_ArtifactObjects) GetPaths() []string
func (*Artifacts_ArtifactObjects) GetTiming ¶
func (x *Artifacts_ArtifactObjects) GetTiming() *TimeSpan
func (*Artifacts_ArtifactObjects) ProtoMessage ¶
func (*Artifacts_ArtifactObjects) ProtoMessage()
func (*Artifacts_ArtifactObjects) ProtoReflect ¶
func (x *Artifacts_ArtifactObjects) ProtoReflect() protoreflect.Message
func (*Artifacts_ArtifactObjects) Reset ¶
func (x *Artifacts_ArtifactObjects) Reset()
func (*Artifacts_ArtifactObjects) String ¶
func (x *Artifacts_ArtifactObjects) String() string
type BuildEventData ¶
type BuildEventData struct { // Unique identifier of the build. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project. ProjectId string `protobuf:"bytes,16,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Status of the build. Status BuildEventData_Status `` /* 127-byte string literal not displayed */ // Customer-readable message about the current status. StatusDetail string `protobuf:"bytes,24,opt,name=status_detail,json=statusDetail,proto3" json:"status_detail,omitempty"` // The location of the source files to build. Source *Source `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` // The operations to be performed on the workspace. Steps []*BuildStep `protobuf:"bytes,11,rep,name=steps,proto3" json:"steps,omitempty"` // Results of the build. Results *Results `protobuf:"bytes,10,opt,name=results,proto3" json:"results,omitempty"` // Time at which the request to create the build was received. CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Time at which execution of the build was started. StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Time at which execution of the build was finished. // // The difference between finish_time and start_time is the duration of the // build's execution. FinishTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"` // Amount of time that this build should be allowed to run, to second // granularity. If this amount of time elapses, work on the build will cease // and the build status will be `TIMEOUT`. Timeout *durationpb.Duration `protobuf:"bytes,12,opt,name=timeout,proto3" json:"timeout,omitempty"` // A list of images to be pushed upon the successful completion of all build // steps. // // The images are pushed using the builder service account's credentials. // // The digests of the pushed images will be stored in the `Build` resource's // results field. // // If any of the images fail to be pushed, the build status is marked // `FAILURE`. Images []string `protobuf:"bytes,13,rep,name=images,proto3" json:"images,omitempty"` // TTL in queue for this build. If provided and the build is enqueued longer // than this value, the build will expire and the build status will be // `EXPIRED`. // // The TTL starts ticking from create_time. QueueTtl *durationpb.Duration `protobuf:"bytes,40,opt,name=queue_ttl,json=queueTtl,proto3" json:"queue_ttl,omitempty"` // Artifacts produced by the build that should be uploaded upon // successful completion of all build steps. Artifacts *Artifacts `protobuf:"bytes,37,opt,name=artifacts,proto3" json:"artifacts,omitempty"` // Google Cloud Storage bucket where logs should be written (see // [Bucket Name // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). // Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`. LogsBucket string `protobuf:"bytes,19,opt,name=logs_bucket,json=logsBucket,proto3" json:"logs_bucket,omitempty"` // A permanent fixed identifier for source. SourceProvenance *SourceProvenance `protobuf:"bytes,21,opt,name=source_provenance,json=sourceProvenance,proto3" json:"source_provenance,omitempty"` // The ID of the `BuildTrigger` that triggered this build, if it // was triggered automatically. BuildTriggerId string `protobuf:"bytes,22,opt,name=build_trigger_id,json=buildTriggerId,proto3" json:"build_trigger_id,omitempty"` // Special options for this build. Options *BuildOptions `protobuf:"bytes,23,opt,name=options,proto3" json:"options,omitempty"` // URL to logs for this build in Google Cloud Console. LogUrl string `protobuf:"bytes,25,opt,name=log_url,json=logUrl,proto3" json:"log_url,omitempty"` // Substitutions data for `Build` resource. Substitutions map[string]string `` /* 168-byte string literal not displayed */ // Tags for annotation of a `Build`. These are not docker tags. Tags []string `protobuf:"bytes,31,rep,name=tags,proto3" json:"tags,omitempty"` // Secrets to decrypt using Cloud Key Management Service. Secrets []*Secret `protobuf:"bytes,32,rep,name=secrets,proto3" json:"secrets,omitempty"` // Stores timing information for phases of the build. Valid keys // are: // // * BUILD: time to execute all build steps // * PUSH: time to push all specified images. // * FETCHSOURCE: time to fetch source. // // If the build does not specify source or images, // these keys will not be included. Timing map[string]*TimeSpan `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
Build event data for Google Cloud Platform API operations.
func (*BuildEventData) Descriptor
deprecated
func (*BuildEventData) Descriptor() ([]byte, []int)
Deprecated: Use BuildEventData.ProtoReflect.Descriptor instead.
func (*BuildEventData) GetArtifacts ¶
func (x *BuildEventData) GetArtifacts() *Artifacts
func (*BuildEventData) GetBuildTriggerId ¶
func (x *BuildEventData) GetBuildTriggerId() string
func (*BuildEventData) GetCreateTime ¶
func (x *BuildEventData) GetCreateTime() *timestamppb.Timestamp
func (*BuildEventData) GetFinishTime ¶
func (x *BuildEventData) GetFinishTime() *timestamppb.Timestamp
func (*BuildEventData) GetId ¶
func (x *BuildEventData) GetId() string
func (*BuildEventData) GetImages ¶
func (x *BuildEventData) GetImages() []string
func (*BuildEventData) GetLogUrl ¶
func (x *BuildEventData) GetLogUrl() string
func (*BuildEventData) GetLogsBucket ¶
func (x *BuildEventData) GetLogsBucket() string
func (*BuildEventData) GetOptions ¶
func (x *BuildEventData) GetOptions() *BuildOptions
func (*BuildEventData) GetProjectId ¶
func (x *BuildEventData) GetProjectId() string
func (*BuildEventData) GetQueueTtl ¶
func (x *BuildEventData) GetQueueTtl() *durationpb.Duration
func (*BuildEventData) GetResults ¶
func (x *BuildEventData) GetResults() *Results
func (*BuildEventData) GetSecrets ¶
func (x *BuildEventData) GetSecrets() []*Secret
func (*BuildEventData) GetSource ¶
func (x *BuildEventData) GetSource() *Source
func (*BuildEventData) GetSourceProvenance ¶
func (x *BuildEventData) GetSourceProvenance() *SourceProvenance
func (*BuildEventData) GetStartTime ¶
func (x *BuildEventData) GetStartTime() *timestamppb.Timestamp
func (*BuildEventData) GetStatus ¶
func (x *BuildEventData) GetStatus() BuildEventData_Status
func (*BuildEventData) GetStatusDetail ¶
func (x *BuildEventData) GetStatusDetail() string
func (*BuildEventData) GetSteps ¶
func (x *BuildEventData) GetSteps() []*BuildStep
func (*BuildEventData) GetSubstitutions ¶
func (x *BuildEventData) GetSubstitutions() map[string]string
func (*BuildEventData) GetTags ¶
func (x *BuildEventData) GetTags() []string
func (*BuildEventData) GetTimeout ¶
func (x *BuildEventData) GetTimeout() *durationpb.Duration
func (*BuildEventData) GetTiming ¶
func (x *BuildEventData) GetTiming() map[string]*TimeSpan
func (*BuildEventData) ProtoMessage ¶
func (*BuildEventData) ProtoMessage()
func (*BuildEventData) ProtoReflect ¶
func (x *BuildEventData) ProtoReflect() protoreflect.Message
func (*BuildEventData) Reset ¶
func (x *BuildEventData) Reset()
func (*BuildEventData) String ¶
func (x *BuildEventData) String() string
type BuildEventData_Status ¶
type BuildEventData_Status int32
Possible status of a build or build step.
const ( // Status of the build is unknown. BuildEventData_STATUS_UNKNOWN BuildEventData_Status = 0 // Build or step is queued; work has not yet begun. BuildEventData_QUEUED BuildEventData_Status = 1 // Build or step is being executed. BuildEventData_WORKING BuildEventData_Status = 2 // Build or step finished successfully. BuildEventData_SUCCESS BuildEventData_Status = 3 // Build or step failed to complete successfully. BuildEventData_FAILURE BuildEventData_Status = 4 // Build or step failed due to an internal cause. BuildEventData_INTERNAL_ERROR BuildEventData_Status = 5 // Build or step took longer than was allowed. BuildEventData_TIMEOUT BuildEventData_Status = 6 // Build or step was canceled by a user. BuildEventData_CANCELLED BuildEventData_Status = 7 // Build was enqueued for longer than the value of `queue_ttl`. BuildEventData_EXPIRED BuildEventData_Status = 9 )
func (BuildEventData_Status) Descriptor ¶
func (BuildEventData_Status) Descriptor() protoreflect.EnumDescriptor
func (BuildEventData_Status) Enum ¶
func (x BuildEventData_Status) Enum() *BuildEventData_Status
func (BuildEventData_Status) EnumDescriptor
deprecated
func (BuildEventData_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use BuildEventData_Status.Descriptor instead.
func (BuildEventData_Status) Number ¶
func (x BuildEventData_Status) Number() protoreflect.EnumNumber
func (BuildEventData_Status) String ¶
func (x BuildEventData_Status) String() string
func (BuildEventData_Status) Type ¶
func (BuildEventData_Status) Type() protoreflect.EnumType
type BuildOptions ¶
type BuildOptions struct { // Requested hash for SourceProvenance. SourceProvenanceHash []Hash_HashType `` /* 184-byte string literal not displayed */ // Requested verifiability options. RequestedVerifyOption BuildOptions_VerifyOption `` /* 192-byte string literal not displayed */ // Compute Engine machine type on which to run the build. MachineType BuildOptions_MachineType `` /* 159-byte string literal not displayed */ // Requested disk size for the VM that runs the build. Note that this is *NOT* // "disk free"; some of the space will be used by the operating system and // build utilities. Also note that this is the minimum disk size that will be // allocated for the build -- the build may run with a larger disk than // requested. At present, the maximum disk size is 1000GB; builds that request // more than the maximum are rejected with an error. DiskSizeGb int64 `protobuf:"varint,6,opt,name=disk_size_gb,json=diskSizeGb,proto3" json:"disk_size_gb,omitempty"` // Option to specify behavior when there is an error in the substitution // checks. SubstitutionOption BuildOptions_SubstitutionOption `` /* 187-byte string literal not displayed */ // Option to define build log streaming behavior to Google Cloud // Storage. LogStreamingOption BuildOptions_LogStreamingOption `` /* 189-byte string literal not displayed */ // Option to specify a `WorkerPool` for the build. // Format: projects/{project}/locations/{location}/workerPools/{workerPool} WorkerPool string `protobuf:"bytes,7,opt,name=worker_pool,json=workerPool,proto3" json:"worker_pool,omitempty"` // Option to specify the logging mode, which determines where the logs are // stored. Logging BuildOptions_LoggingMode `` /* 133-byte string literal not displayed */ // A list of global environment variable definitions that will exist for all // build steps in this build. If a variable is defined in both globally and in // a build step, the variable will use the build step value. // // The elements are of the form "KEY=VALUE" for the environment variable "KEY" // being given the value "VALUE". Env []string `protobuf:"bytes,12,rep,name=env,proto3" json:"env,omitempty"` // A list of global environment variables, which are encrypted using a Cloud // Key Management Service crypto key. These values must be specified in the // build's `Secret`. These variables will be available to all build steps // in this build. SecretEnv []string `protobuf:"bytes,13,rep,name=secret_env,json=secretEnv,proto3" json:"secret_env,omitempty"` // Global list of volumes to mount for ALL build steps // // Each volume is created as an empty volume prior to starting the build // process. Upon completion of the build, volumes and their contents are // discarded. Global volume names and paths cannot conflict with the volumes // defined a build step. // // Using a global volume in a build with only one step is not valid as // it is indicative of a build request with an incorrect configuration. Volumes []*Volume `protobuf:"bytes,14,rep,name=volumes,proto3" json:"volumes,omitempty"` // contains filtered or unexported fields }
Optional arguments to enable specific features of builds.
func (*BuildOptions) Descriptor
deprecated
func (*BuildOptions) Descriptor() ([]byte, []int)
Deprecated: Use BuildOptions.ProtoReflect.Descriptor instead.
func (*BuildOptions) GetDiskSizeGb ¶
func (x *BuildOptions) GetDiskSizeGb() int64
func (*BuildOptions) GetEnv ¶
func (x *BuildOptions) GetEnv() []string
func (*BuildOptions) GetLogStreamingOption ¶
func (x *BuildOptions) GetLogStreamingOption() BuildOptions_LogStreamingOption
func (*BuildOptions) GetLogging ¶
func (x *BuildOptions) GetLogging() BuildOptions_LoggingMode
func (*BuildOptions) GetMachineType ¶
func (x *BuildOptions) GetMachineType() BuildOptions_MachineType
func (*BuildOptions) GetRequestedVerifyOption ¶
func (x *BuildOptions) GetRequestedVerifyOption() BuildOptions_VerifyOption
func (*BuildOptions) GetSecretEnv ¶
func (x *BuildOptions) GetSecretEnv() []string
func (*BuildOptions) GetSourceProvenanceHash ¶
func (x *BuildOptions) GetSourceProvenanceHash() []Hash_HashType
func (*BuildOptions) GetSubstitutionOption ¶
func (x *BuildOptions) GetSubstitutionOption() BuildOptions_SubstitutionOption
func (*BuildOptions) GetVolumes ¶
func (x *BuildOptions) GetVolumes() []*Volume
func (*BuildOptions) GetWorkerPool ¶
func (x *BuildOptions) GetWorkerPool() string
func (*BuildOptions) ProtoMessage ¶
func (*BuildOptions) ProtoMessage()
func (*BuildOptions) ProtoReflect ¶
func (x *BuildOptions) ProtoReflect() protoreflect.Message
func (*BuildOptions) Reset ¶
func (x *BuildOptions) Reset()
func (*BuildOptions) String ¶
func (x *BuildOptions) String() string
type BuildOptions_LogStreamingOption ¶
type BuildOptions_LogStreamingOption int32
Specifies the behavior when writing build logs to Google Cloud Storage.
const ( // Service may automatically determine build log streaming behavior. BuildOptions_STREAM_DEFAULT BuildOptions_LogStreamingOption = 0 // Build logs should be streamed to Google Cloud Storage. BuildOptions_STREAM_ON BuildOptions_LogStreamingOption = 1 // Build logs should not be streamed to Google Cloud Storage; they will be // written when the build is completed. BuildOptions_STREAM_OFF BuildOptions_LogStreamingOption = 2 )
func (BuildOptions_LogStreamingOption) Descriptor ¶
func (BuildOptions_LogStreamingOption) Descriptor() protoreflect.EnumDescriptor
func (BuildOptions_LogStreamingOption) Enum ¶
func (x BuildOptions_LogStreamingOption) Enum() *BuildOptions_LogStreamingOption
func (BuildOptions_LogStreamingOption) EnumDescriptor
deprecated
func (BuildOptions_LogStreamingOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use BuildOptions_LogStreamingOption.Descriptor instead.
func (BuildOptions_LogStreamingOption) Number ¶
func (x BuildOptions_LogStreamingOption) Number() protoreflect.EnumNumber
func (BuildOptions_LogStreamingOption) String ¶
func (x BuildOptions_LogStreamingOption) String() string
func (BuildOptions_LogStreamingOption) Type ¶
func (BuildOptions_LogStreamingOption) Type() protoreflect.EnumType
type BuildOptions_LoggingMode ¶
type BuildOptions_LoggingMode int32
Specifies the logging mode.
const ( // The service determines the logging mode. The default is `LEGACY`. Do not // rely on the default logging behavior as it may change in the future. BuildOptions_LOGGING_UNSPECIFIED BuildOptions_LoggingMode = 0 // Stackdriver logging and Cloud Storage logging are enabled. BuildOptions_LEGACY BuildOptions_LoggingMode = 1 // Only Cloud Storage logging is enabled. BuildOptions_GCS_ONLY BuildOptions_LoggingMode = 2 )
func (BuildOptions_LoggingMode) Descriptor ¶
func (BuildOptions_LoggingMode) Descriptor() protoreflect.EnumDescriptor
func (BuildOptions_LoggingMode) Enum ¶
func (x BuildOptions_LoggingMode) Enum() *BuildOptions_LoggingMode
func (BuildOptions_LoggingMode) EnumDescriptor
deprecated
func (BuildOptions_LoggingMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use BuildOptions_LoggingMode.Descriptor instead.
func (BuildOptions_LoggingMode) Number ¶
func (x BuildOptions_LoggingMode) Number() protoreflect.EnumNumber
func (BuildOptions_LoggingMode) String ¶
func (x BuildOptions_LoggingMode) String() string
func (BuildOptions_LoggingMode) Type ¶
func (BuildOptions_LoggingMode) Type() protoreflect.EnumType
type BuildOptions_MachineType ¶
type BuildOptions_MachineType int32
Supported VM sizes.
const ( // Standard machine type. BuildOptions_UNSPECIFIED BuildOptions_MachineType = 0 // Highcpu machine with 8 CPUs. BuildOptions_N1_HIGHCPU_8 BuildOptions_MachineType = 1 // Highcpu machine with 32 CPUs. BuildOptions_N1_HIGHCPU_32 BuildOptions_MachineType = 2 )
func (BuildOptions_MachineType) Descriptor ¶
func (BuildOptions_MachineType) Descriptor() protoreflect.EnumDescriptor
func (BuildOptions_MachineType) Enum ¶
func (x BuildOptions_MachineType) Enum() *BuildOptions_MachineType
func (BuildOptions_MachineType) EnumDescriptor
deprecated
func (BuildOptions_MachineType) EnumDescriptor() ([]byte, []int)
Deprecated: Use BuildOptions_MachineType.Descriptor instead.
func (BuildOptions_MachineType) Number ¶
func (x BuildOptions_MachineType) Number() protoreflect.EnumNumber
func (BuildOptions_MachineType) String ¶
func (x BuildOptions_MachineType) String() string
func (BuildOptions_MachineType) Type ¶
func (BuildOptions_MachineType) Type() protoreflect.EnumType
type BuildOptions_SubstitutionOption ¶
type BuildOptions_SubstitutionOption int32
Specifies the behavior when there is an error in the substitution checks.
const ( // Fails the build if error in substitutions checks, like missing // a substitution in the template or in the map. BuildOptions_MUST_MATCH BuildOptions_SubstitutionOption = 0 // Do not fail the build if error in substitutions checks. BuildOptions_ALLOW_LOOSE BuildOptions_SubstitutionOption = 1 )
func (BuildOptions_SubstitutionOption) Descriptor ¶
func (BuildOptions_SubstitutionOption) Descriptor() protoreflect.EnumDescriptor
func (BuildOptions_SubstitutionOption) Enum ¶
func (x BuildOptions_SubstitutionOption) Enum() *BuildOptions_SubstitutionOption
func (BuildOptions_SubstitutionOption) EnumDescriptor
deprecated
func (BuildOptions_SubstitutionOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use BuildOptions_SubstitutionOption.Descriptor instead.
func (BuildOptions_SubstitutionOption) Number ¶
func (x BuildOptions_SubstitutionOption) Number() protoreflect.EnumNumber
func (BuildOptions_SubstitutionOption) String ¶
func (x BuildOptions_SubstitutionOption) String() string
func (BuildOptions_SubstitutionOption) Type ¶
func (BuildOptions_SubstitutionOption) Type() protoreflect.EnumType
type BuildOptions_VerifyOption ¶
type BuildOptions_VerifyOption int32
Specifies the manner in which the build should be verified, if at all.
const ( // Not a verifiable build. (default) BuildOptions_NOT_VERIFIED BuildOptions_VerifyOption = 0 // Verified build. BuildOptions_VERIFIED BuildOptions_VerifyOption = 1 )
func (BuildOptions_VerifyOption) Descriptor ¶
func (BuildOptions_VerifyOption) Descriptor() protoreflect.EnumDescriptor
func (BuildOptions_VerifyOption) Enum ¶
func (x BuildOptions_VerifyOption) Enum() *BuildOptions_VerifyOption
func (BuildOptions_VerifyOption) EnumDescriptor
deprecated
func (BuildOptions_VerifyOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use BuildOptions_VerifyOption.Descriptor instead.
func (BuildOptions_VerifyOption) Number ¶
func (x BuildOptions_VerifyOption) Number() protoreflect.EnumNumber
func (BuildOptions_VerifyOption) String ¶
func (x BuildOptions_VerifyOption) String() string
func (BuildOptions_VerifyOption) Type ¶
func (BuildOptions_VerifyOption) Type() protoreflect.EnumType
type BuildStep ¶
type BuildStep struct { // The name of the container image that will run this particular // build step. // // If the image is available in the host's Docker daemon's cache, it // will be run directly. If not, the host will attempt to pull the image // first, using the builder service account's credentials if necessary. // // The Docker daemon's cache will already have the latest versions of all of // the officially supported build steps // ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). // The Docker daemon will also have cached many of the layers for some popular // images, like "ubuntu", "debian", but they will be refreshed at the time you // attempt to use them. // // If you built an image in a previous build step, it will be stored in the // host's Docker daemon's cache and is available to use as the name for a // later build step. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A list of environment variable definitions to be used when running a step. // // The elements are of the form "KEY=VALUE" for the environment variable "KEY" // being given the value "VALUE". Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"` // A list of arguments that will be presented to the step when it is started. // // If the image used to run the step's container has an entrypoint, the `args` // are used as arguments to that entrypoint. If the image does not define // an entrypoint, the first element in args is used as the entrypoint, // and the remainder will be used as arguments. Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` // Working directory to use when running this step's container. // // If this value is a relative path, it is relative to the build's working // directory. If this value is absolute, it may be outside the build's working // directory, in which case the contents of the path may not be persisted // across build step executions, unless a `volume` for that path is specified. // // If the build specifies a `RepoSource` with `dir` and a step with a `dir`, // which specifies an absolute path, the `RepoSource` `dir` is ignored for // the step's execution. Dir string `protobuf:"bytes,4,opt,name=dir,proto3" json:"dir,omitempty"` // Unique identifier for this build step, used in `wait_for` to // reference this build step as a dependency. Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` // The ID(s) of the step(s) that this build step depends on. // This build step will not start until all the build steps in `wait_for` // have completed successfully. If `wait_for` is empty, this build step will // start when all previous build steps in the `Build.Steps` list have // completed successfully. WaitFor []string `protobuf:"bytes,6,rep,name=wait_for,json=waitFor,proto3" json:"wait_for,omitempty"` // Entrypoint to be used instead of the build step image's default entrypoint. // If unset, the image's default entrypoint is used. Entrypoint string `protobuf:"bytes,7,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"` // A list of environment variables which are encrypted using a Cloud Key // Management Service crypto key. These values must be specified in the // build's `Secret`. SecretEnv []string `protobuf:"bytes,8,rep,name=secret_env,json=secretEnv,proto3" json:"secret_env,omitempty"` // List of volumes to mount into the build step. // // Each volume is created as an empty volume prior to execution of the // build step. Upon completion of the build, volumes and their contents are // discarded. // // Using a named volume in only one step is not valid as it is indicative // of a build request with an incorrect configuration. Volumes []*Volume `protobuf:"bytes,9,rep,name=volumes,proto3" json:"volumes,omitempty"` // Stores timing information for executing this build step. Timing *TimeSpan `protobuf:"bytes,10,opt,name=timing,proto3" json:"timing,omitempty"` // Stores timing information for pulling this build step's // builder image only. PullTiming *TimeSpan `protobuf:"bytes,13,opt,name=pull_timing,json=pullTiming,proto3" json:"pull_timing,omitempty"` // Time limit for executing this build step. If not defined, the step has no // time limit and will be allowed to continue to run until either it completes // or the build itself times out. Timeout *durationpb.Duration `protobuf:"bytes,11,opt,name=timeout,proto3" json:"timeout,omitempty"` // Status of the build step. At this time, build step status is // only updated on build completion; step status is not updated in real-time // as the build progresses. Status BuildEventData_Status `` /* 128-byte string literal not displayed */ // contains filtered or unexported fields }
A step in the build pipeline.
func (*BuildStep) Descriptor
deprecated
func (*BuildStep) GetEntrypoint ¶
func (*BuildStep) GetPullTiming ¶
func (*BuildStep) GetSecretEnv ¶
func (*BuildStep) GetStatus ¶
func (x *BuildStep) GetStatus() BuildEventData_Status
func (*BuildStep) GetTimeout ¶
func (x *BuildStep) GetTimeout() *durationpb.Duration
func (*BuildStep) GetVolumes ¶
func (*BuildStep) GetWaitFor ¶
func (*BuildStep) ProtoMessage ¶
func (*BuildStep) ProtoMessage()
func (*BuildStep) ProtoReflect ¶
func (x *BuildStep) ProtoReflect() protoreflect.Message
type BuiltImage ¶
type BuiltImage struct { // Name used to push the container image to Google Container Registry, as // presented to `docker push`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Docker Registry 2.0 digest. Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"` // Stores timing information for pushing the specified image. PushTiming *TimeSpan `protobuf:"bytes,4,opt,name=push_timing,json=pushTiming,proto3" json:"push_timing,omitempty"` // contains filtered or unexported fields }
An image built by the pipeline.
func (*BuiltImage) Descriptor
deprecated
func (*BuiltImage) Descriptor() ([]byte, []int)
Deprecated: Use BuiltImage.ProtoReflect.Descriptor instead.
func (*BuiltImage) GetDigest ¶
func (x *BuiltImage) GetDigest() string
func (*BuiltImage) GetName ¶
func (x *BuiltImage) GetName() string
func (*BuiltImage) GetPushTiming ¶
func (x *BuiltImage) GetPushTiming() *TimeSpan
func (*BuiltImage) ProtoMessage ¶
func (*BuiltImage) ProtoMessage()
func (*BuiltImage) ProtoReflect ¶
func (x *BuiltImage) ProtoReflect() protoreflect.Message
func (*BuiltImage) Reset ¶
func (x *BuiltImage) Reset()
func (*BuiltImage) String ¶
func (x *BuiltImage) String() string
type FileHashes ¶
type FileHashes struct { // Collection of file hashes. FileHash []*Hash `protobuf:"bytes,1,rep,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"` // contains filtered or unexported fields }
Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
func (*FileHashes) Descriptor
deprecated
func (*FileHashes) Descriptor() ([]byte, []int)
Deprecated: Use FileHashes.ProtoReflect.Descriptor instead.
func (*FileHashes) GetFileHash ¶
func (x *FileHashes) GetFileHash() []*Hash
func (*FileHashes) ProtoMessage ¶
func (*FileHashes) ProtoMessage()
func (*FileHashes) ProtoReflect ¶
func (x *FileHashes) ProtoReflect() protoreflect.Message
func (*FileHashes) Reset ¶
func (x *FileHashes) Reset()
func (*FileHashes) String ¶
func (x *FileHashes) String() string
type Hash ¶
type Hash struct { // The type of hash that was performed. Type Hash_HashType `protobuf:"varint,1,opt,name=type,proto3,enum=google.events.cloud.cloudbuild.v1.Hash_HashType" json:"type,omitempty"` // The hash value. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Container message for hash values.
func (*Hash) Descriptor
deprecated
func (*Hash) GetType ¶
func (x *Hash) GetType() Hash_HashType
func (*Hash) ProtoMessage ¶
func (*Hash) ProtoMessage()
func (*Hash) ProtoReflect ¶
func (x *Hash) ProtoReflect() protoreflect.Message
type Hash_HashType ¶
type Hash_HashType int32
Specifies the hash algorithm, if any.
const ( // No hash requested. Hash_NONE Hash_HashType = 0 // Use a sha256 hash. Hash_SHA256 Hash_HashType = 1 // Use a md5 hash. Hash_MD5 Hash_HashType = 2 )
func (Hash_HashType) Descriptor ¶
func (Hash_HashType) Descriptor() protoreflect.EnumDescriptor
func (Hash_HashType) Enum ¶
func (x Hash_HashType) Enum() *Hash_HashType
func (Hash_HashType) EnumDescriptor
deprecated
func (Hash_HashType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Hash_HashType.Descriptor instead.
func (Hash_HashType) Number ¶
func (x Hash_HashType) Number() protoreflect.EnumNumber
func (Hash_HashType) String ¶
func (x Hash_HashType) String() string
func (Hash_HashType) Type ¶
func (Hash_HashType) Type() protoreflect.EnumType
type RepoSource ¶
type RepoSource struct { // ID of the project that owns the Cloud Source Repository. ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Name of the Cloud Source Repository. RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"` // A revision within the Cloud Source Repository must be specified in // one of these ways. // // Types that are assignable to Revision: // // *RepoSource_BranchName // *RepoSource_TagName // *RepoSource_CommitSha Revision isRepoSource_Revision `protobuf_oneof:"revision"` // Directory, relative to the source root, in which to run the build. // // This must be a relative path. If a step's `dir` is specified and is an // absolute path, this value is ignored for that step's execution. Dir string `protobuf:"bytes,7,opt,name=dir,proto3" json:"dir,omitempty"` // Only trigger a build if the revision regex does NOT match the revision // regex. InvertRegex bool `protobuf:"varint,8,opt,name=invert_regex,json=invertRegex,proto3" json:"invert_regex,omitempty"` // Substitutions to use in a triggered build. // Should only be used with RunBuildTrigger Substitutions map[string]string `` /* 167-byte string literal not displayed */ // contains filtered or unexported fields }
Location of the source in a Google Cloud Source Repository.
func (*RepoSource) Descriptor
deprecated
func (*RepoSource) Descriptor() ([]byte, []int)
Deprecated: Use RepoSource.ProtoReflect.Descriptor instead.
func (*RepoSource) GetBranchName ¶
func (x *RepoSource) GetBranchName() string
func (*RepoSource) GetCommitSha ¶
func (x *RepoSource) GetCommitSha() string
func (*RepoSource) GetDir ¶
func (x *RepoSource) GetDir() string
func (*RepoSource) GetInvertRegex ¶
func (x *RepoSource) GetInvertRegex() bool
func (*RepoSource) GetProjectId ¶
func (x *RepoSource) GetProjectId() string
func (*RepoSource) GetRepoName ¶
func (x *RepoSource) GetRepoName() string
func (*RepoSource) GetRevision ¶
func (m *RepoSource) GetRevision() isRepoSource_Revision
func (*RepoSource) GetSubstitutions ¶
func (x *RepoSource) GetSubstitutions() map[string]string
func (*RepoSource) GetTagName ¶
func (x *RepoSource) GetTagName() string
func (*RepoSource) ProtoMessage ¶
func (*RepoSource) ProtoMessage()
func (*RepoSource) ProtoReflect ¶
func (x *RepoSource) ProtoReflect() protoreflect.Message
func (*RepoSource) Reset ¶
func (x *RepoSource) Reset()
func (*RepoSource) String ¶
func (x *RepoSource) String() string
type RepoSource_BranchName ¶
type RepoSource_BranchName struct { // Regex matching branches to build. // // The syntax of the regular expressions accepted is the syntax accepted by // RE2 and described at https://github.com/google/re2/wiki/Syntax BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3,oneof"` }
type RepoSource_CommitSha ¶
type RepoSource_CommitSha struct { // Explicit commit SHA to build. CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,proto3,oneof"` }
type RepoSource_TagName ¶
type RepoSource_TagName struct { // Regex matching tags to build. // // The syntax of the regular expressions accepted is the syntax accepted by // RE2 and described at https://github.com/google/re2/wiki/Syntax TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,proto3,oneof"` }
type Results ¶
type Results struct { // Container images that were built as a part of the build. Images []*BuiltImage `protobuf:"bytes,2,rep,name=images,proto3" json:"images,omitempty"` // List of build step digests, in the order corresponding to build step // indices. BuildStepImages []string `protobuf:"bytes,3,rep,name=build_step_images,json=buildStepImages,proto3" json:"build_step_images,omitempty"` // Path to the artifact manifest. Only populated when artifacts are uploaded. ArtifactManifest string `protobuf:"bytes,4,opt,name=artifact_manifest,json=artifactManifest,proto3" json:"artifact_manifest,omitempty"` // Number of artifacts uploaded. Only populated when artifacts are uploaded. NumArtifacts int64 `protobuf:"varint,5,opt,name=num_artifacts,json=numArtifacts,proto3" json:"num_artifacts,omitempty"` // List of build step outputs, produced by builder images, in the order // corresponding to build step indices. // // [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) // can produce this output by writing to `$BUILDER_OUTPUT/output`. // Only the first 4KB of data is stored. BuildStepOutputs [][]byte `protobuf:"bytes,6,rep,name=build_step_outputs,json=buildStepOutputs,proto3" json:"build_step_outputs,omitempty"` // Time to push all non-container artifacts. ArtifactTiming *TimeSpan `protobuf:"bytes,7,opt,name=artifact_timing,json=artifactTiming,proto3" json:"artifact_timing,omitempty"` // contains filtered or unexported fields }
Artifacts created by the build pipeline.
func (*Results) Descriptor
deprecated
func (*Results) GetArtifactManifest ¶
func (*Results) GetArtifactTiming ¶
func (*Results) GetBuildStepImages ¶
func (*Results) GetBuildStepOutputs ¶
func (*Results) GetImages ¶
func (x *Results) GetImages() []*BuiltImage
func (*Results) GetNumArtifacts ¶
func (*Results) ProtoMessage ¶
func (*Results) ProtoMessage()
func (*Results) ProtoReflect ¶
func (x *Results) ProtoReflect() protoreflect.Message
type Secret ¶
type Secret struct { // Cloud KMS key name to use to decrypt these envs. KmsKeyName string `protobuf:"bytes,1,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"` // Map of environment variable name to its encrypted value. // // Secret environment variables must be unique across all of a build's // secrets, and must be used by at least one build step. Values can be at most // 64 KB in size. There can be at most 100 secret values across all of a // build's secrets. SecretEnv map[string][]byte `` /* 176-byte string literal not displayed */ // contains filtered or unexported fields }
Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
func (*Secret) Descriptor
deprecated
func (*Secret) GetKmsKeyName ¶
func (*Secret) GetSecretEnv ¶
func (*Secret) ProtoMessage ¶
func (*Secret) ProtoMessage()
func (*Secret) ProtoReflect ¶
func (x *Secret) ProtoReflect() protoreflect.Message
type Source ¶
type Source struct { // Location of source. // // Types that are assignable to Source: // // *Source_StorageSource // *Source_RepoSource Source isSource_Source `protobuf_oneof:"source"` // contains filtered or unexported fields }
func (*Source) Descriptor
deprecated
func (*Source) GetRepoSource ¶
func (x *Source) GetRepoSource() *RepoSource
func (*Source) GetStorageSource ¶
func (x *Source) GetStorageSource() *StorageSource
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
type SourceProvenance ¶
type SourceProvenance struct { // A copy of the build's `source.storage_source`, if exists, with any // generations resolved. ResolvedStorageSource *StorageSource `` /* 126-byte string literal not displayed */ // A copy of the build's `source.repo_source`, if exists, with any // revisions resolved. ResolvedRepoSource *RepoSource `protobuf:"bytes,6,opt,name=resolved_repo_source,json=resolvedRepoSource,proto3" json:"resolved_repo_source,omitempty"` // Hash(es) of the build source, which can be used to verify that // the original source integrity was maintained in the build. Note that // `FileHashes` will only be populated if `BuildOptions` has requested a // `SourceProvenanceHash`. // // The keys to this map are file paths used as build source and the values // contain the hash values for those files. // // If the build source came in a single package such as a gzipped tarfile // (`.tar.gz`), the `FileHash` will be for the single path to that file. FileHashes map[string]*FileHashes `` /* 179-byte string literal not displayed */ // contains filtered or unexported fields }
Provenance of the source. Ways to find the original source, or verify that some source was used for this build.
func (*SourceProvenance) Descriptor
deprecated
func (*SourceProvenance) Descriptor() ([]byte, []int)
Deprecated: Use SourceProvenance.ProtoReflect.Descriptor instead.
func (*SourceProvenance) GetFileHashes ¶
func (x *SourceProvenance) GetFileHashes() map[string]*FileHashes
func (*SourceProvenance) GetResolvedRepoSource ¶
func (x *SourceProvenance) GetResolvedRepoSource() *RepoSource
func (*SourceProvenance) GetResolvedStorageSource ¶
func (x *SourceProvenance) GetResolvedStorageSource() *StorageSource
func (*SourceProvenance) ProtoMessage ¶
func (*SourceProvenance) ProtoMessage()
func (*SourceProvenance) ProtoReflect ¶
func (x *SourceProvenance) ProtoReflect() protoreflect.Message
func (*SourceProvenance) Reset ¶
func (x *SourceProvenance) Reset()
func (*SourceProvenance) String ¶
func (x *SourceProvenance) String() string
type Source_RepoSource ¶
type Source_RepoSource struct { // If provided, get the source from this location in a Cloud Source // Repository. RepoSource *RepoSource `protobuf:"bytes,3,opt,name=repo_source,json=repoSource,proto3,oneof"` }
type Source_StorageSource ¶
type Source_StorageSource struct { // If provided, get the source from this location in Google Cloud Storage. StorageSource *StorageSource `protobuf:"bytes,2,opt,name=storage_source,json=storageSource,proto3,oneof"` }
type StorageSource ¶
type StorageSource struct { // Google Cloud Storage bucket containing the source (see // [Bucket Name // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` // Google Cloud Storage object containing the source. Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` // Google Cloud Storage generation for the object. If the generation is // omitted, the latest generation will be used. Generation int64 `protobuf:"varint,3,opt,name=generation,proto3" json:"generation,omitempty"` // contains filtered or unexported fields }
Location of the source in an archive file in Google Cloud Storage.
func (*StorageSource) Descriptor
deprecated
func (*StorageSource) Descriptor() ([]byte, []int)
Deprecated: Use StorageSource.ProtoReflect.Descriptor instead.
func (*StorageSource) GetBucket ¶
func (x *StorageSource) GetBucket() string
func (*StorageSource) GetGeneration ¶
func (x *StorageSource) GetGeneration() int64
func (*StorageSource) GetObject ¶
func (x *StorageSource) GetObject() string
func (*StorageSource) ProtoMessage ¶
func (*StorageSource) ProtoMessage()
func (*StorageSource) ProtoReflect ¶
func (x *StorageSource) ProtoReflect() protoreflect.Message
func (*StorageSource) Reset ¶
func (x *StorageSource) Reset()
func (*StorageSource) String ¶
func (x *StorageSource) String() string
type TimeSpan ¶
type TimeSpan struct { // Start of time span. StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End of time span. EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
Start and end times for a build execution phase.
func (*TimeSpan) Descriptor
deprecated
func (*TimeSpan) GetEndTime ¶
func (x *TimeSpan) GetEndTime() *timestamppb.Timestamp
func (*TimeSpan) GetStartTime ¶
func (x *TimeSpan) GetStartTime() *timestamppb.Timestamp
func (*TimeSpan) ProtoMessage ¶
func (*TimeSpan) ProtoMessage()
func (*TimeSpan) ProtoReflect ¶
func (x *TimeSpan) ProtoReflect() protoreflect.Message
type Volume ¶
type Volume struct { // Name of the volume to mount. // // Volume names must be unique per build step and must be valid names for // Docker volumes. Each named volume must be used by at least two build steps. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Path at which to mount the volume. // // Paths must be absolute and cannot conflict with other volume paths on the // same build step or with certain reserved volume paths. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
func (*Volume) Descriptor
deprecated
func (*Volume) ProtoMessage ¶
func (*Volume) ProtoMessage()
func (*Volume) ProtoReflect ¶
func (x *Volume) ProtoReflect() protoreflect.Message