Documentation
¶
Index ¶
- Constants
- Variables
- type Artifacts
- func (x *Artifacts) ClearObjects()
- func (x *Artifacts) GetImages() []string
- func (x *Artifacts) GetObjects() *Artifacts_ArtifactObjects
- func (x *Artifacts) HasObjects() bool
- func (*Artifacts) ProtoMessage()
- func (x *Artifacts) ProtoReflect() protoreflect.Message
- func (x *Artifacts) Reset()
- func (x *Artifacts) SetImages(v []string)
- func (x *Artifacts) SetObjects(v *Artifacts_ArtifactObjects)
- func (x *Artifacts) String() string
- type Artifacts_ArtifactObjects
- func (x *Artifacts_ArtifactObjects) ClearTiming()
- func (x *Artifacts_ArtifactObjects) GetLocation() string
- func (x *Artifacts_ArtifactObjects) GetPaths() []string
- func (x *Artifacts_ArtifactObjects) GetTiming() *TimeSpan
- func (x *Artifacts_ArtifactObjects) HasTiming() bool
- func (*Artifacts_ArtifactObjects) ProtoMessage()
- func (x *Artifacts_ArtifactObjects) ProtoReflect() protoreflect.Message
- func (x *Artifacts_ArtifactObjects) Reset()
- func (x *Artifacts_ArtifactObjects) SetLocation(v string)
- func (x *Artifacts_ArtifactObjects) SetPaths(v []string)
- func (x *Artifacts_ArtifactObjects) SetTiming(v *TimeSpan)
- func (x *Artifacts_ArtifactObjects) String() string
- type Artifacts_ArtifactObjects_builder
- type Artifacts_builder
- type BuildEventData
- func (x *BuildEventData) ClearArtifacts()
- func (x *BuildEventData) ClearCreateTime()
- func (x *BuildEventData) ClearFinishTime()
- func (x *BuildEventData) ClearOptions()
- func (x *BuildEventData) ClearQueueTtl()
- func (x *BuildEventData) ClearResults()
- func (x *BuildEventData) ClearSource()
- func (x *BuildEventData) ClearSourceProvenance()
- func (x *BuildEventData) ClearStartTime()
- func (x *BuildEventData) ClearTimeout()
- 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 (x *BuildEventData) HasArtifacts() bool
- func (x *BuildEventData) HasCreateTime() bool
- func (x *BuildEventData) HasFinishTime() bool
- func (x *BuildEventData) HasOptions() bool
- func (x *BuildEventData) HasQueueTtl() bool
- func (x *BuildEventData) HasResults() bool
- func (x *BuildEventData) HasSource() bool
- func (x *BuildEventData) HasSourceProvenance() bool
- func (x *BuildEventData) HasStartTime() bool
- func (x *BuildEventData) HasTimeout() bool
- func (*BuildEventData) ProtoMessage()
- func (x *BuildEventData) ProtoReflect() protoreflect.Message
- func (x *BuildEventData) Reset()
- func (x *BuildEventData) SetArtifacts(v *Artifacts)
- func (x *BuildEventData) SetBuildTriggerId(v string)
- func (x *BuildEventData) SetCreateTime(v *timestamppb.Timestamp)
- func (x *BuildEventData) SetFinishTime(v *timestamppb.Timestamp)
- func (x *BuildEventData) SetId(v string)
- func (x *BuildEventData) SetImages(v []string)
- func (x *BuildEventData) SetLogUrl(v string)
- func (x *BuildEventData) SetLogsBucket(v string)
- func (x *BuildEventData) SetOptions(v *BuildOptions)
- func (x *BuildEventData) SetProjectId(v string)
- func (x *BuildEventData) SetQueueTtl(v *durationpb.Duration)
- func (x *BuildEventData) SetResults(v *Results)
- func (x *BuildEventData) SetSecrets(v []*Secret)
- func (x *BuildEventData) SetSource(v *Source)
- func (x *BuildEventData) SetSourceProvenance(v *SourceProvenance)
- func (x *BuildEventData) SetStartTime(v *timestamppb.Timestamp)
- func (x *BuildEventData) SetStatus(v BuildEventData_Status)
- func (x *BuildEventData) SetStatusDetail(v string)
- func (x *BuildEventData) SetSteps(v []*BuildStep)
- func (x *BuildEventData) SetSubstitutions(v map[string]string)
- func (x *BuildEventData) SetTags(v []string)
- func (x *BuildEventData) SetTimeout(v *durationpb.Duration)
- func (x *BuildEventData) SetTiming(v map[string]*TimeSpan)
- func (x *BuildEventData) String() string
- type BuildEventData_Status
- type BuildEventData_builder
- type BuildOptions
- 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) SetDiskSizeGb(v int64)
- func (x *BuildOptions) SetEnv(v []string)
- func (x *BuildOptions) SetLogStreamingOption(v BuildOptions_LogStreamingOption)
- func (x *BuildOptions) SetLogging(v BuildOptions_LoggingMode)
- func (x *BuildOptions) SetMachineType(v BuildOptions_MachineType)
- func (x *BuildOptions) SetRequestedVerifyOption(v BuildOptions_VerifyOption)
- func (x *BuildOptions) SetSecretEnv(v []string)
- func (x *BuildOptions) SetSourceProvenanceHash(v []Hash_HashType)
- func (x *BuildOptions) SetSubstitutionOption(v BuildOptions_SubstitutionOption)
- func (x *BuildOptions) SetVolumes(v []*Volume)
- func (x *BuildOptions) SetWorkerPool(v string)
- func (x *BuildOptions) String() string
- type BuildOptions_LogStreamingOption
- func (BuildOptions_LogStreamingOption) Descriptor() protoreflect.EnumDescriptor
- func (x BuildOptions_LogStreamingOption) Enum() *BuildOptions_LogStreamingOption
- 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 (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 (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 (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 (x BuildOptions_VerifyOption) Number() protoreflect.EnumNumber
- func (x BuildOptions_VerifyOption) String() string
- func (BuildOptions_VerifyOption) Type() protoreflect.EnumType
- type BuildOptions_builder
- type BuildStep
- func (x *BuildStep) ClearPullTiming()
- func (x *BuildStep) ClearTimeout()
- func (x *BuildStep) ClearTiming()
- 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 (x *BuildStep) HasPullTiming() bool
- func (x *BuildStep) HasTimeout() bool
- func (x *BuildStep) HasTiming() bool
- func (*BuildStep) ProtoMessage()
- func (x *BuildStep) ProtoReflect() protoreflect.Message
- func (x *BuildStep) Reset()
- func (x *BuildStep) SetArgs(v []string)
- func (x *BuildStep) SetDir(v string)
- func (x *BuildStep) SetEntrypoint(v string)
- func (x *BuildStep) SetEnv(v []string)
- func (x *BuildStep) SetId(v string)
- func (x *BuildStep) SetName(v string)
- func (x *BuildStep) SetPullTiming(v *TimeSpan)
- func (x *BuildStep) SetSecretEnv(v []string)
- func (x *BuildStep) SetStatus(v BuildEventData_Status)
- func (x *BuildStep) SetTimeout(v *durationpb.Duration)
- func (x *BuildStep) SetTiming(v *TimeSpan)
- func (x *BuildStep) SetVolumes(v []*Volume)
- func (x *BuildStep) SetWaitFor(v []string)
- func (x *BuildStep) String() string
- type BuildStep_builder
- type BuiltImage
- func (x *BuiltImage) ClearPushTiming()
- func (x *BuiltImage) GetDigest() string
- func (x *BuiltImage) GetName() string
- func (x *BuiltImage) GetPushTiming() *TimeSpan
- func (x *BuiltImage) HasPushTiming() bool
- func (*BuiltImage) ProtoMessage()
- func (x *BuiltImage) ProtoReflect() protoreflect.Message
- func (x *BuiltImage) Reset()
- func (x *BuiltImage) SetDigest(v string)
- func (x *BuiltImage) SetName(v string)
- func (x *BuiltImage) SetPushTiming(v *TimeSpan)
- func (x *BuiltImage) String() string
- type BuiltImage_builder
- type CloudBuildEvent
- func (x *CloudBuildEvent) ClearData()
- func (x *CloudBuildEvent) GetData() *BuildEventData
- func (x *CloudBuildEvent) HasData() bool
- func (*CloudBuildEvent) ProtoMessage()
- func (x *CloudBuildEvent) ProtoReflect() protoreflect.Message
- func (x *CloudBuildEvent) Reset()
- func (x *CloudBuildEvent) SetData(v *BuildEventData)
- func (x *CloudBuildEvent) String() string
- type CloudBuildEvent_builder
- type FileHashes
- type FileHashes_builder
- type Hash
- type Hash_HashType
- type Hash_builder
- type RepoSource
- func (x *RepoSource) ClearBranchName()
- func (x *RepoSource) ClearCommitSha()
- func (x *RepoSource) ClearRevision()
- func (x *RepoSource) ClearTagName()
- 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 (x *RepoSource) GetRevision() isRepoSource_Revision
- func (x *RepoSource) GetSubstitutions() map[string]string
- func (x *RepoSource) GetTagName() string
- func (x *RepoSource) HasBranchName() bool
- func (x *RepoSource) HasCommitSha() bool
- func (x *RepoSource) HasRevision() bool
- func (x *RepoSource) HasTagName() bool
- func (*RepoSource) ProtoMessage()
- func (x *RepoSource) ProtoReflect() protoreflect.Message
- func (x *RepoSource) Reset()
- func (x *RepoSource) SetBranchName(v string)
- func (x *RepoSource) SetCommitSha(v string)
- func (x *RepoSource) SetDir(v string)
- func (x *RepoSource) SetInvertRegex(v bool)
- func (x *RepoSource) SetProjectId(v string)
- func (x *RepoSource) SetRepoName(v string)
- func (x *RepoSource) SetSubstitutions(v map[string]string)
- func (x *RepoSource) SetTagName(v string)
- func (x *RepoSource) String() string
- func (x *RepoSource) WhichRevision() case_RepoSource_Revision
- type RepoSource_BranchName
- type RepoSource_CommitSha
- type RepoSource_TagName
- type RepoSource_builder
- type Results
- func (x *Results) ClearArtifactTiming()
- 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 (x *Results) HasArtifactTiming() bool
- func (*Results) ProtoMessage()
- func (x *Results) ProtoReflect() protoreflect.Message
- func (x *Results) Reset()
- func (x *Results) SetArtifactManifest(v string)
- func (x *Results) SetArtifactTiming(v *TimeSpan)
- func (x *Results) SetBuildStepImages(v []string)
- func (x *Results) SetBuildStepOutputs(v [][]byte)
- func (x *Results) SetImages(v []*BuiltImage)
- func (x *Results) SetNumArtifacts(v int64)
- func (x *Results) String() string
- type Results_builder
- type Secret
- func (x *Secret) GetKmsKeyName() string
- func (x *Secret) GetSecretEnv() map[string][]byte
- func (*Secret) ProtoMessage()
- func (x *Secret) ProtoReflect() protoreflect.Message
- func (x *Secret) Reset()
- func (x *Secret) SetKmsKeyName(v string)
- func (x *Secret) SetSecretEnv(v map[string][]byte)
- func (x *Secret) String() string
- type Secret_builder
- type Source
- func (x *Source) ClearRepoSource()
- func (x *Source) ClearSource()
- func (x *Source) ClearStorageSource()
- func (x *Source) GetRepoSource() *RepoSource
- func (x *Source) GetSource() isSource_Source
- func (x *Source) GetStorageSource() *StorageSource
- func (x *Source) HasRepoSource() bool
- func (x *Source) HasSource() bool
- func (x *Source) HasStorageSource() bool
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) SetRepoSource(v *RepoSource)
- func (x *Source) SetStorageSource(v *StorageSource)
- func (x *Source) String() string
- func (x *Source) WhichSource() case_Source_Source
- type SourceProvenance
- func (x *SourceProvenance) ClearResolvedRepoSource()
- func (x *SourceProvenance) ClearResolvedStorageSource()
- func (x *SourceProvenance) GetFileHashes() map[string]*FileHashes
- func (x *SourceProvenance) GetResolvedRepoSource() *RepoSource
- func (x *SourceProvenance) GetResolvedStorageSource() *StorageSource
- func (x *SourceProvenance) HasResolvedRepoSource() bool
- func (x *SourceProvenance) HasResolvedStorageSource() bool
- func (*SourceProvenance) ProtoMessage()
- func (x *SourceProvenance) ProtoReflect() protoreflect.Message
- func (x *SourceProvenance) Reset()
- func (x *SourceProvenance) SetFileHashes(v map[string]*FileHashes)
- func (x *SourceProvenance) SetResolvedRepoSource(v *RepoSource)
- func (x *SourceProvenance) SetResolvedStorageSource(v *StorageSource)
- func (x *SourceProvenance) String() string
- type SourceProvenance_builder
- type Source_RepoSource
- type Source_StorageSource
- type Source_builder
- type StorageSource
- 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) SetBucket(v string)
- func (x *StorageSource) SetGeneration(v int64)
- func (x *StorageSource) SetObject(v string)
- func (x *StorageSource) String() string
- type StorageSource_builder
- type TimeSpan
- func (x *TimeSpan) ClearEndTime()
- func (x *TimeSpan) ClearStartTime()
- func (x *TimeSpan) GetEndTime() *timestamppb.Timestamp
- func (x *TimeSpan) GetStartTime() *timestamppb.Timestamp
- func (x *TimeSpan) HasEndTime() bool
- func (x *TimeSpan) HasStartTime() bool
- func (*TimeSpan) ProtoMessage()
- func (x *TimeSpan) ProtoReflect() protoreflect.Message
- func (x *TimeSpan) Reset()
- func (x *TimeSpan) SetEndTime(v *timestamppb.Timestamp)
- func (x *TimeSpan) SetStartTime(v *timestamppb.Timestamp)
- func (x *TimeSpan) String() string
- type TimeSpan_builder
- type Volume
- type Volume_builder
Constants ¶
const RepoSource_BranchName_case case_RepoSource_Revision = 3
const RepoSource_CommitSha_case case_RepoSource_Revision = 5
const RepoSource_Revision_not_set_case case_RepoSource_Revision = 0
const RepoSource_TagName_case case_RepoSource_Revision = 4
const Source_RepoSource_case case_Source_Source = 3
const Source_Source_not_set_case case_Source_Source = 0
const Source_StorageSource_case case_Source_Source = 2
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_google_events_cloud_cloudbuild_v1_data_proto protoreflect.FileDescriptor
var File_google_events_cloud_cloudbuild_v1_events_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) GetObjects ¶
func (x *Artifacts) GetObjects() *Artifacts_ArtifactObjects
func (*Artifacts) ProtoReflect ¶
func (x *Artifacts) ProtoReflect() protoreflect.Message
func (*Artifacts) SetObjects ¶
func (x *Artifacts) SetObjects(v *Artifacts_ArtifactObjects)
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) ClearTiming ¶
func (x *Artifacts_ArtifactObjects) ClearTiming()
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) HasTiming ¶
func (x *Artifacts_ArtifactObjects) HasTiming() bool
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) SetLocation ¶
func (x *Artifacts_ArtifactObjects) SetLocation(v string)
func (*Artifacts_ArtifactObjects) SetPaths ¶
func (x *Artifacts_ArtifactObjects) SetPaths(v []string)
func (*Artifacts_ArtifactObjects) SetTiming ¶
func (x *Artifacts_ArtifactObjects) SetTiming(v *TimeSpan)
func (*Artifacts_ArtifactObjects) String ¶
func (x *Artifacts_ArtifactObjects) String() string
type Artifacts_ArtifactObjects_builder ¶
type Artifacts_ArtifactObjects_builder 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
// Path globs used to match files in the build's workspace.
Paths []string
// Stores timing information for pushing all artifact objects.
Timing *TimeSpan
// contains filtered or unexported fields
}
func (Artifacts_ArtifactObjects_builder) Build ¶
func (b0 Artifacts_ArtifactObjects_builder) Build() *Artifacts_ArtifactObjects
type Artifacts_builder ¶
type Artifacts_builder 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
// 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
// contains filtered or unexported fields
}
func (Artifacts_builder) Build ¶
func (b0 Artifacts_builder) Build() *Artifacts
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 `` /* 154-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 `` /* 140-byte string literal not displayed */
// contains filtered or unexported fields
}
Build event data for Google Cloud Platform API operations.
func (*BuildEventData) ClearArtifacts ¶
func (x *BuildEventData) ClearArtifacts()
func (*BuildEventData) ClearCreateTime ¶
func (x *BuildEventData) ClearCreateTime()
func (*BuildEventData) ClearFinishTime ¶
func (x *BuildEventData) ClearFinishTime()
func (*BuildEventData) ClearOptions ¶
func (x *BuildEventData) ClearOptions()
func (*BuildEventData) ClearQueueTtl ¶
func (x *BuildEventData) ClearQueueTtl()
func (*BuildEventData) ClearResults ¶
func (x *BuildEventData) ClearResults()
func (*BuildEventData) ClearSource ¶
func (x *BuildEventData) ClearSource()
func (*BuildEventData) ClearSourceProvenance ¶
func (x *BuildEventData) ClearSourceProvenance()
func (*BuildEventData) ClearStartTime ¶
func (x *BuildEventData) ClearStartTime()
func (*BuildEventData) ClearTimeout ¶
func (x *BuildEventData) ClearTimeout()
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) HasArtifacts ¶
func (x *BuildEventData) HasArtifacts() bool
func (*BuildEventData) HasCreateTime ¶
func (x *BuildEventData) HasCreateTime() bool
func (*BuildEventData) HasFinishTime ¶
func (x *BuildEventData) HasFinishTime() bool
func (*BuildEventData) HasOptions ¶
func (x *BuildEventData) HasOptions() bool
func (*BuildEventData) HasQueueTtl ¶
func (x *BuildEventData) HasQueueTtl() bool
func (*BuildEventData) HasResults ¶
func (x *BuildEventData) HasResults() bool
func (*BuildEventData) HasSource ¶
func (x *BuildEventData) HasSource() bool
func (*BuildEventData) HasSourceProvenance ¶
func (x *BuildEventData) HasSourceProvenance() bool
func (*BuildEventData) HasStartTime ¶
func (x *BuildEventData) HasStartTime() bool
func (*BuildEventData) HasTimeout ¶
func (x *BuildEventData) HasTimeout() bool
func (*BuildEventData) ProtoMessage ¶
func (*BuildEventData) ProtoMessage()
func (*BuildEventData) ProtoReflect ¶
func (x *BuildEventData) ProtoReflect() protoreflect.Message
func (*BuildEventData) Reset ¶
func (x *BuildEventData) Reset()
func (*BuildEventData) SetArtifacts ¶
func (x *BuildEventData) SetArtifacts(v *Artifacts)
func (*BuildEventData) SetBuildTriggerId ¶
func (x *BuildEventData) SetBuildTriggerId(v string)
func (*BuildEventData) SetCreateTime ¶
func (x *BuildEventData) SetCreateTime(v *timestamppb.Timestamp)
func (*BuildEventData) SetFinishTime ¶
func (x *BuildEventData) SetFinishTime(v *timestamppb.Timestamp)
func (*BuildEventData) SetId ¶
func (x *BuildEventData) SetId(v string)
func (*BuildEventData) SetImages ¶
func (x *BuildEventData) SetImages(v []string)
func (*BuildEventData) SetLogUrl ¶
func (x *BuildEventData) SetLogUrl(v string)
func (*BuildEventData) SetLogsBucket ¶
func (x *BuildEventData) SetLogsBucket(v string)
func (*BuildEventData) SetOptions ¶
func (x *BuildEventData) SetOptions(v *BuildOptions)
func (*BuildEventData) SetProjectId ¶
func (x *BuildEventData) SetProjectId(v string)
func (*BuildEventData) SetQueueTtl ¶
func (x *BuildEventData) SetQueueTtl(v *durationpb.Duration)
func (*BuildEventData) SetResults ¶
func (x *BuildEventData) SetResults(v *Results)
func (*BuildEventData) SetSecrets ¶
func (x *BuildEventData) SetSecrets(v []*Secret)
func (*BuildEventData) SetSource ¶
func (x *BuildEventData) SetSource(v *Source)
func (*BuildEventData) SetSourceProvenance ¶
func (x *BuildEventData) SetSourceProvenance(v *SourceProvenance)
func (*BuildEventData) SetStartTime ¶
func (x *BuildEventData) SetStartTime(v *timestamppb.Timestamp)
func (*BuildEventData) SetStatus ¶
func (x *BuildEventData) SetStatus(v BuildEventData_Status)
func (*BuildEventData) SetStatusDetail ¶
func (x *BuildEventData) SetStatusDetail(v string)
func (*BuildEventData) SetSteps ¶
func (x *BuildEventData) SetSteps(v []*BuildStep)
func (*BuildEventData) SetSubstitutions ¶
func (x *BuildEventData) SetSubstitutions(v map[string]string)
func (*BuildEventData) SetTags ¶
func (x *BuildEventData) SetTags(v []string)
func (*BuildEventData) SetTimeout ¶
func (x *BuildEventData) SetTimeout(v *durationpb.Duration)
func (*BuildEventData) SetTiming ¶
func (x *BuildEventData) SetTiming(v map[string]*TimeSpan)
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) 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 BuildEventData_builder ¶
type BuildEventData_builder struct {
// Unique identifier of the build.
Id string
// ID of the project.
ProjectId string
// Status of the build.
Status BuildEventData_Status
// Customer-readable message about the current status.
StatusDetail string
// The location of the source files to build.
Source *Source
// The operations to be performed on the workspace.
Steps []*BuildStep
// Results of the build.
Results *Results
// Time at which the request to create the build was received.
CreateTime *timestamppb.Timestamp
// Time at which execution of the build was started.
StartTime *timestamppb.Timestamp
// 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
// 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
// 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
// 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
// Artifacts produced by the build that should be uploaded upon
// successful completion of all build steps.
Artifacts *Artifacts
// 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
// A permanent fixed identifier for source.
SourceProvenance *SourceProvenance
// The ID of the `BuildTrigger` that triggered this build, if it
// was triggered automatically.
BuildTriggerId string
// Special options for this build.
Options *BuildOptions
// URL to logs for this build in Google Cloud Console.
LogUrl string
// Substitutions data for `Build` resource.
Substitutions map[string]string
// Tags for annotation of a `Build`. These are not docker tags.
Tags []string
// Secrets to decrypt using Cloud Key Management Service.
Secrets []*Secret
// 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
// contains filtered or unexported fields
}
func (BuildEventData_builder) Build ¶
func (b0 BuildEventData_builder) Build() *BuildEventData
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) 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) SetDiskSizeGb ¶
func (x *BuildOptions) SetDiskSizeGb(v int64)
func (*BuildOptions) SetEnv ¶
func (x *BuildOptions) SetEnv(v []string)
func (*BuildOptions) SetLogStreamingOption ¶
func (x *BuildOptions) SetLogStreamingOption(v BuildOptions_LogStreamingOption)
func (*BuildOptions) SetLogging ¶
func (x *BuildOptions) SetLogging(v BuildOptions_LoggingMode)
func (*BuildOptions) SetMachineType ¶
func (x *BuildOptions) SetMachineType(v BuildOptions_MachineType)
func (*BuildOptions) SetRequestedVerifyOption ¶
func (x *BuildOptions) SetRequestedVerifyOption(v BuildOptions_VerifyOption)
func (*BuildOptions) SetSecretEnv ¶
func (x *BuildOptions) SetSecretEnv(v []string)
func (*BuildOptions) SetSourceProvenanceHash ¶
func (x *BuildOptions) SetSourceProvenanceHash(v []Hash_HashType)
func (*BuildOptions) SetSubstitutionOption ¶
func (x *BuildOptions) SetSubstitutionOption(v BuildOptions_SubstitutionOption)
func (*BuildOptions) SetVolumes ¶
func (x *BuildOptions) SetVolumes(v []*Volume)
func (*BuildOptions) SetWorkerPool ¶
func (x *BuildOptions) SetWorkerPool(v string)
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) 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) 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) 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) 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) 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 BuildOptions_builder ¶
type BuildOptions_builder struct {
// Requested hash for SourceProvenance.
SourceProvenanceHash []Hash_HashType
// Requested verifiability options.
RequestedVerifyOption BuildOptions_VerifyOption
// Compute Engine machine type on which to run the build.
MachineType BuildOptions_MachineType
// 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
// Option to specify behavior when there is an error in the substitution
// checks.
SubstitutionOption BuildOptions_SubstitutionOption
// Option to define build log streaming behavior to Google Cloud
// Storage.
LogStreamingOption BuildOptions_LogStreamingOption
// Option to specify a `WorkerPool` for the build.
// Format: projects/{project}/locations/{location}/workerPools/{workerPool}
WorkerPool string
// Option to specify the logging mode, which determines where the logs are
// stored.
Logging BuildOptions_LoggingMode
// 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
// 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
// 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
// contains filtered or unexported fields
}
func (BuildOptions_builder) Build ¶
func (b0 BuildOptions_builder) Build() *BuildOptions
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) GetStatus ¶
func (x *BuildStep) GetStatus() BuildEventData_Status
func (*BuildStep) GetTimeout ¶
func (x *BuildStep) GetTimeout() *durationpb.Duration
func (*BuildStep) ProtoReflect ¶
func (x *BuildStep) ProtoReflect() protoreflect.Message
func (*BuildStep) SetStatus ¶
func (x *BuildStep) SetStatus(v BuildEventData_Status)
func (*BuildStep) SetTimeout ¶
func (x *BuildStep) SetTimeout(v *durationpb.Duration)
type BuildStep_builder ¶
type BuildStep_builder 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
// 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
// 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
// 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
// Unique identifier for this build step, used in `wait_for` to
// reference this build step as a dependency.
Id string
// 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
// Entrypoint to be used instead of the build step image's default entrypoint.
// If unset, the image's default entrypoint is used.
Entrypoint string
// 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
// 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
// Stores timing information for executing this build step.
Timing *TimeSpan
// Stores timing information for pulling this build step's
// builder image only.
PullTiming *TimeSpan
// 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
// 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
// contains filtered or unexported fields
}
func (BuildStep_builder) Build ¶
func (b0 BuildStep_builder) Build() *BuildStep
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) ClearPushTiming ¶
func (x *BuiltImage) ClearPushTiming()
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) HasPushTiming ¶
func (x *BuiltImage) HasPushTiming() bool
func (*BuiltImage) ProtoMessage ¶
func (*BuiltImage) ProtoMessage()
func (*BuiltImage) ProtoReflect ¶
func (x *BuiltImage) ProtoReflect() protoreflect.Message
func (*BuiltImage) Reset ¶
func (x *BuiltImage) Reset()
func (*BuiltImage) SetDigest ¶
func (x *BuiltImage) SetDigest(v string)
func (*BuiltImage) SetName ¶
func (x *BuiltImage) SetName(v string)
func (*BuiltImage) SetPushTiming ¶
func (x *BuiltImage) SetPushTiming(v *TimeSpan)
func (*BuiltImage) String ¶
func (x *BuiltImage) String() string
type BuiltImage_builder ¶
type BuiltImage_builder struct {
// Name used to push the container image to Google Container Registry, as
// presented to `docker push`.
Name string
// Docker Registry 2.0 digest.
Digest string
// Stores timing information for pushing the specified image.
PushTiming *TimeSpan
// contains filtered or unexported fields
}
func (BuiltImage_builder) Build ¶
func (b0 BuiltImage_builder) Build() *BuiltImage
type CloudBuildEvent ¶
type CloudBuildEvent struct {
// The data associated with the event.
Data *BuildEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when your build's state changes.
func (*CloudBuildEvent) ClearData ¶
func (x *CloudBuildEvent) ClearData()
func (*CloudBuildEvent) GetData ¶
func (x *CloudBuildEvent) GetData() *BuildEventData
func (*CloudBuildEvent) HasData ¶
func (x *CloudBuildEvent) HasData() bool
func (*CloudBuildEvent) ProtoMessage ¶
func (*CloudBuildEvent) ProtoMessage()
func (*CloudBuildEvent) ProtoReflect ¶
func (x *CloudBuildEvent) ProtoReflect() protoreflect.Message
func (*CloudBuildEvent) Reset ¶
func (x *CloudBuildEvent) Reset()
func (*CloudBuildEvent) SetData ¶
func (x *CloudBuildEvent) SetData(v *BuildEventData)
func (*CloudBuildEvent) String ¶
func (x *CloudBuildEvent) String() string
type CloudBuildEvent_builder ¶
type CloudBuildEvent_builder struct {
// The data associated with the event.
Data *BuildEventData
// contains filtered or unexported fields
}
func (CloudBuildEvent_builder) Build ¶
func (b0 CloudBuildEvent_builder) Build() *CloudBuildEvent
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) 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) SetFileHash ¶
func (x *FileHashes) SetFileHash(v []*Hash)
func (*FileHashes) String ¶
func (x *FileHashes) String() string
type FileHashes_builder ¶
type FileHashes_builder struct {
// Collection of file hashes.
FileHash []*Hash
// contains filtered or unexported fields
}
func (FileHashes_builder) Build ¶
func (b0 FileHashes_builder) Build() *FileHashes
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) GetType ¶
func (x *Hash) GetType() Hash_HashType
func (*Hash) ProtoReflect ¶
func (x *Hash) ProtoReflect() protoreflect.Message
func (*Hash) SetType ¶
func (x *Hash) SetType(v Hash_HashType)
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) 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 Hash_builder ¶
type Hash_builder struct {
// The type of hash that was performed.
Type Hash_HashType
// The hash value.
Value []byte
// contains filtered or unexported fields
}
func (Hash_builder) Build ¶
func (b0 Hash_builder) Build() *Hash
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 valid to be assigned 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 `` /* 153-byte string literal not displayed */
// contains filtered or unexported fields
}
Location of the source in a Google Cloud Source Repository.
func (*RepoSource) ClearBranchName ¶
func (x *RepoSource) ClearBranchName()
func (*RepoSource) ClearCommitSha ¶
func (x *RepoSource) ClearCommitSha()
func (*RepoSource) ClearRevision ¶
func (x *RepoSource) ClearRevision()
func (*RepoSource) ClearTagName ¶
func (x *RepoSource) ClearTagName()
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 (x *RepoSource) GetRevision() isRepoSource_Revision
func (*RepoSource) GetSubstitutions ¶
func (x *RepoSource) GetSubstitutions() map[string]string
func (*RepoSource) GetTagName ¶
func (x *RepoSource) GetTagName() string
func (*RepoSource) HasBranchName ¶
func (x *RepoSource) HasBranchName() bool
func (*RepoSource) HasCommitSha ¶
func (x *RepoSource) HasCommitSha() bool
func (*RepoSource) HasRevision ¶
func (x *RepoSource) HasRevision() bool
func (*RepoSource) HasTagName ¶
func (x *RepoSource) HasTagName() bool
func (*RepoSource) ProtoMessage ¶
func (*RepoSource) ProtoMessage()
func (*RepoSource) ProtoReflect ¶
func (x *RepoSource) ProtoReflect() protoreflect.Message
func (*RepoSource) Reset ¶
func (x *RepoSource) Reset()
func (*RepoSource) SetBranchName ¶
func (x *RepoSource) SetBranchName(v string)
func (*RepoSource) SetCommitSha ¶
func (x *RepoSource) SetCommitSha(v string)
func (*RepoSource) SetDir ¶
func (x *RepoSource) SetDir(v string)
func (*RepoSource) SetInvertRegex ¶
func (x *RepoSource) SetInvertRegex(v bool)
func (*RepoSource) SetProjectId ¶
func (x *RepoSource) SetProjectId(v string)
func (*RepoSource) SetRepoName ¶
func (x *RepoSource) SetRepoName(v string)
func (*RepoSource) SetSubstitutions ¶
func (x *RepoSource) SetSubstitutions(v map[string]string)
func (*RepoSource) SetTagName ¶
func (x *RepoSource) SetTagName(v string)
func (*RepoSource) String ¶
func (x *RepoSource) String() string
func (*RepoSource) WhichRevision ¶
func (x *RepoSource) WhichRevision() case_RepoSource_Revision
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 RepoSource_builder ¶
type RepoSource_builder struct {
// ID of the project that owns the Cloud Source Repository.
ProjectId string
// Name of the Cloud Source Repository.
RepoName string
// Fields of oneof Revision:
// 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
// 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
// Explicit commit SHA to build.
CommitSha *string
// -- end of 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
// Only trigger a build if the revision regex does NOT match the revision
// regex.
InvertRegex bool
// Substitutions to use in a triggered build.
// Should only be used with RunBuildTrigger
Substitutions map[string]string
// contains filtered or unexported fields
}
func (RepoSource_builder) Build ¶
func (b0 RepoSource_builder) Build() *RepoSource
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) GetImages ¶
func (x *Results) GetImages() []*BuiltImage
func (*Results) ProtoReflect ¶
func (x *Results) ProtoReflect() protoreflect.Message
func (*Results) SetImages ¶
func (x *Results) SetImages(v []*BuiltImage)
type Results_builder ¶
type Results_builder struct {
// Container images that were built as a part of the build.
Images []*BuiltImage
// List of build step digests, in the order corresponding to build step
// indices.
BuildStepImages []string
// Path to the artifact manifest. Only populated when artifacts are uploaded.
ArtifactManifest string
// Number of artifacts uploaded. Only populated when artifacts are uploaded.
NumArtifacts int64
// 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
// Time to push all non-container artifacts.
ArtifactTiming *TimeSpan
// contains filtered or unexported fields
}
func (Results_builder) Build ¶
func (b0 Results_builder) Build() *Results
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 `` /* 162-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) ProtoReflect ¶
func (x *Secret) ProtoReflect() protoreflect.Message
type Secret_builder ¶
type Secret_builder struct {
// Cloud KMS key name to use to decrypt these envs.
KmsKeyName string
// 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
// contains filtered or unexported fields
}
func (Secret_builder) Build ¶
func (b0 Secret_builder) Build() *Secret
type Source ¶
type Source struct {
// Location of source.
//
// Types that are valid to be assigned to Source:
//
// *Source_StorageSource
// *Source_RepoSource
Source isSource_Source `protobuf_oneof:"source"`
// contains filtered or unexported fields
}
func (*Source) GetRepoSource ¶
func (x *Source) GetRepoSource() *RepoSource
func (*Source) GetStorageSource ¶
func (x *Source) GetStorageSource() *StorageSource
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
func (*Source) SetRepoSource ¶
func (x *Source) SetRepoSource(v *RepoSource)
func (*Source) SetStorageSource ¶
func (x *Source) SetStorageSource(v *StorageSource)
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 `` /* 165-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) ClearResolvedRepoSource ¶
func (x *SourceProvenance) ClearResolvedRepoSource()
func (*SourceProvenance) ClearResolvedStorageSource ¶
func (x *SourceProvenance) ClearResolvedStorageSource()
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) HasResolvedRepoSource ¶
func (x *SourceProvenance) HasResolvedRepoSource() bool
func (*SourceProvenance) HasResolvedStorageSource ¶
func (x *SourceProvenance) HasResolvedStorageSource() bool
func (*SourceProvenance) ProtoMessage ¶
func (*SourceProvenance) ProtoMessage()
func (*SourceProvenance) ProtoReflect ¶
func (x *SourceProvenance) ProtoReflect() protoreflect.Message
func (*SourceProvenance) Reset ¶
func (x *SourceProvenance) Reset()
func (*SourceProvenance) SetFileHashes ¶
func (x *SourceProvenance) SetFileHashes(v map[string]*FileHashes)
func (*SourceProvenance) SetResolvedRepoSource ¶
func (x *SourceProvenance) SetResolvedRepoSource(v *RepoSource)
func (*SourceProvenance) SetResolvedStorageSource ¶
func (x *SourceProvenance) SetResolvedStorageSource(v *StorageSource)
func (*SourceProvenance) String ¶
func (x *SourceProvenance) String() string
type SourceProvenance_builder ¶
type SourceProvenance_builder struct {
// A copy of the build's `source.storage_source`, if exists, with any
// generations resolved.
ResolvedStorageSource *StorageSource
// A copy of the build's `source.repo_source`, if exists, with any
// revisions resolved.
ResolvedRepoSource *RepoSource
// 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
// contains filtered or unexported fields
}
func (SourceProvenance_builder) Build ¶
func (b0 SourceProvenance_builder) Build() *SourceProvenance
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 Source_builder ¶
type Source_builder struct {
// Fields of oneof Source:
// If provided, get the source from this location in Google Cloud Storage.
StorageSource *StorageSource
// If provided, get the source from this location in a Cloud Source
// Repository.
RepoSource *RepoSource
// contains filtered or unexported fields
}
func (Source_builder) Build ¶
func (b0 Source_builder) Build() *Source
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) 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) SetBucket ¶
func (x *StorageSource) SetBucket(v string)
func (*StorageSource) SetGeneration ¶
func (x *StorageSource) SetGeneration(v int64)
func (*StorageSource) SetObject ¶
func (x *StorageSource) SetObject(v string)
func (*StorageSource) String ¶
func (x *StorageSource) String() string
type StorageSource_builder ¶
type StorageSource_builder struct {
// Google Cloud Storage bucket containing the source (see
// [Bucket Name
// Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bucket string
// Google Cloud Storage object containing the source.
Object string
// Google Cloud Storage generation for the object. If the generation is
// omitted, the latest generation will be used.
Generation int64
// contains filtered or unexported fields
}
func (StorageSource_builder) Build ¶
func (b0 StorageSource_builder) Build() *StorageSource
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) GetEndTime ¶
func (x *TimeSpan) GetEndTime() *timestamppb.Timestamp
func (*TimeSpan) GetStartTime ¶
func (x *TimeSpan) GetStartTime() *timestamppb.Timestamp
func (*TimeSpan) ProtoReflect ¶
func (x *TimeSpan) ProtoReflect() protoreflect.Message
func (*TimeSpan) SetEndTime ¶
func (x *TimeSpan) SetEndTime(v *timestamppb.Timestamp)
func (*TimeSpan) SetStartTime ¶
func (x *TimeSpan) SetStartTime(v *timestamppb.Timestamp)
type TimeSpan_builder ¶
type TimeSpan_builder struct {
// Start of time span.
StartTime *timestamppb.Timestamp
// End of time span.
EndTime *timestamppb.Timestamp
// contains filtered or unexported fields
}
func (TimeSpan_builder) Build ¶
func (b0 TimeSpan_builder) Build() *TimeSpan
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) ProtoReflect ¶
func (x *Volume) ProtoReflect() protoreflect.Message
type Volume_builder ¶
type Volume_builder 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
// 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
// contains filtered or unexported fields
}
func (Volume_builder) Build ¶
func (b0 Volume_builder) Build() *Volume
Source Files
¶
- data.pb.go
- events.pb.go