cloudbuild

package
v0.0.0-...-96659ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cloudbuild is a generated protocol buffer package.

It is generated from these files:

google/devtools/cloudbuild/v1/cloudbuild.proto

It has these top-level messages:

RetryBuildRequest
RunBuildTriggerRequest
StorageSource
RepoSource
Source
BuiltImage
BuildStep
Volume
Results
Build
BuildOperationMetadata
SourceProvenance
FileHashes
Hash
Secret
CreateBuildRequest
GetBuildRequest
ListBuildsRequest
ListBuildsResponse
CancelBuildRequest
BuildTrigger
CreateBuildTriggerRequest
GetBuildTriggerRequest
ListBuildTriggersRequest
ListBuildTriggersResponse
DeleteBuildTriggerRequest
UpdateBuildTriggerRequest
BuildOptions

Index

Constants

This section is empty.

Variables

View Source
var BuildOptions_LogStreamingOption_name = map[int32]string{
	0: "STREAM_DEFAULT",
	1: "STREAM_ON",
	2: "STREAM_OFF",
}
View Source
var BuildOptions_LogStreamingOption_value = map[string]int32{
	"STREAM_DEFAULT": 0,
	"STREAM_ON":      1,
	"STREAM_OFF":     2,
}
View Source
var BuildOptions_MachineType_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "N1_HIGHCPU_8",
	2: "N1_HIGHCPU_32",
}
View Source
var BuildOptions_MachineType_value = map[string]int32{
	"UNSPECIFIED":   0,
	"N1_HIGHCPU_8":  1,
	"N1_HIGHCPU_32": 2,
}
View Source
var BuildOptions_SubstitutionOption_name = map[int32]string{
	0: "MUST_MATCH",
	1: "ALLOW_LOOSE",
}
View Source
var BuildOptions_SubstitutionOption_value = map[string]int32{
	"MUST_MATCH":  0,
	"ALLOW_LOOSE": 1,
}
View Source
var BuildOptions_VerifyOption_name = map[int32]string{
	0: "NOT_VERIFIED",
	1: "VERIFIED",
}
View Source
var BuildOptions_VerifyOption_value = map[string]int32{
	"NOT_VERIFIED": 0,
	"VERIFIED":     1,
}
View Source
var Build_Status_name = map[int32]string{
	0: "STATUS_UNKNOWN",
	1: "QUEUED",
	2: "WORKING",
	3: "SUCCESS",
	4: "FAILURE",
	5: "INTERNAL_ERROR",
	6: "TIMEOUT",
	7: "CANCELLED",
}
View Source
var Build_Status_value = map[string]int32{
	"STATUS_UNKNOWN": 0,
	"QUEUED":         1,
	"WORKING":        2,
	"SUCCESS":        3,
	"FAILURE":        4,
	"INTERNAL_ERROR": 5,
	"TIMEOUT":        6,
	"CANCELLED":      7,
}
View Source
var Hash_HashType_name = map[int32]string{
	0: "NONE",
	1: "SHA256",
}
View Source
var Hash_HashType_value = map[string]int32{
	"NONE":   0,
	"SHA256": 1,
}

Functions

func RegisterCloudBuildServer

func RegisterCloudBuildServer(s *grpc.Server, srv CloudBuildServer)

Types

type Build

type Build struct {
	// Unique identifier of the build.
	// @OutputOnly
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// ID of the project.
	// @OutputOnly.
	ProjectId string `protobuf:"bytes,16,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// Status of the build.
	// @OutputOnly
	Status Build_Status `protobuf:"varint,2,opt,name=status,enum=google.devtools.cloudbuild.v1.Build_Status" json:"status,omitempty"`
	// Customer-readable message about the current status.
	// @OutputOnly
	StatusDetail string `protobuf:"bytes,24,opt,name=status_detail,json=statusDetail" json:"status_detail,omitempty"`
	// Describes where to find the source files to build.
	Source *Source `protobuf:"bytes,3,opt,name=source" json:"source,omitempty"`
	// Describes the operations to be performed on the workspace.
	Steps []*BuildStep `protobuf:"bytes,11,rep,name=steps" json:"steps,omitempty"`
	// Results of the build.
	// @OutputOnly
	Results *Results `protobuf:"bytes,10,opt,name=results" json:"results,omitempty"`
	// Time at which the request to create the build was received.
	// @OutputOnly
	CreateTime *google_protobuf5.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// Time at which execution of the build was started.
	// @OutputOnly
	StartTime *google_protobuf5.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime" 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.
	// @OutputOnly
	FinishTime *google_protobuf5.Timestamp `protobuf:"bytes,8,opt,name=finish_time,json=finishTime" 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.
	//
	// Default time is ten minutes.
	Timeout *google_protobuf4.Duration `protobuf:"bytes,12,opt,name=timeout" json:"timeout,omitempty"`
	// 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,13,rep,name=images" json:"images,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" json:"logs_bucket,omitempty"`
	// A permanent fixed identifier for source.
	// @OutputOnly
	SourceProvenance *SourceProvenance `protobuf:"bytes,21,opt,name=source_provenance,json=sourceProvenance" json:"source_provenance,omitempty"`
	// The ID of the BuildTrigger that triggered this build, if it was
	// triggered automatically.
	// @OutputOnly
	BuildTriggerId string `protobuf:"bytes,22,opt,name=build_trigger_id,json=buildTriggerId" json:"build_trigger_id,omitempty"`
	// Special options for this build.
	Options *BuildOptions `protobuf:"bytes,23,opt,name=options" json:"options,omitempty"`
	// URL to logs for this build in Google Cloud Logging.
	// @OutputOnly
	LogUrl string `protobuf:"bytes,25,opt,name=log_url,json=logUrl" json:"log_url,omitempty"`
	// Substitutions data for Build resource.
	Substitutions map[string]string `` /* 147-byte string literal not displayed */
	// Tags for annotation of a Build. These are not docker tags.
	Tags []string `protobuf:"bytes,31,rep,name=tags" json:"tags,omitempty"`
	// Secrets to decrypt using Cloud KMS.
	Secrets []*Secret `protobuf:"bytes,32,rep,name=secrets" json:"secrets,omitempty"`
}

A build resource in the Container Builder API.

At a high level, a Build describes where to find source code, how to build it (for example, the builder image to run on the source), and what tag to apply to the built image when it is pushed to Google Container Registry.

Fields can include the following variables which will be expanded when the build is created:

  • $PROJECT_ID: the project ID of the build.
  • $BUILD_ID: the autogenerated ID of the build.
  • $REPO_NAME: the source repository name specified by RepoSource.
  • $BRANCH_NAME: the branch name specified by RepoSource.
  • $TAG_NAME: the tag name specified by RepoSource.
  • $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag.
  • $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.

func (*Build) Descriptor

func (*Build) Descriptor() ([]byte, []int)

func (*Build) GetBuildTriggerId

func (m *Build) GetBuildTriggerId() string

func (*Build) GetCreateTime

func (m *Build) GetCreateTime() *google_protobuf5.Timestamp

func (*Build) GetFinishTime

func (m *Build) GetFinishTime() *google_protobuf5.Timestamp

func (*Build) GetId

func (m *Build) GetId() string

func (*Build) GetImages

func (m *Build) GetImages() []string

func (*Build) GetLogUrl

func (m *Build) GetLogUrl() string

func (*Build) GetLogsBucket

func (m *Build) GetLogsBucket() string

func (*Build) GetOptions

func (m *Build) GetOptions() *BuildOptions

func (*Build) GetProjectId

func (m *Build) GetProjectId() string

func (*Build) GetResults

func (m *Build) GetResults() *Results

func (*Build) GetSecrets

func (m *Build) GetSecrets() []*Secret

func (*Build) GetSource

func (m *Build) GetSource() *Source

func (*Build) GetSourceProvenance

func (m *Build) GetSourceProvenance() *SourceProvenance

func (*Build) GetStartTime

func (m *Build) GetStartTime() *google_protobuf5.Timestamp

func (*Build) GetStatus

func (m *Build) GetStatus() Build_Status

func (*Build) GetStatusDetail

func (m *Build) GetStatusDetail() string

func (*Build) GetSteps

func (m *Build) GetSteps() []*BuildStep

func (*Build) GetSubstitutions

func (m *Build) GetSubstitutions() map[string]string

func (*Build) GetTags

func (m *Build) GetTags() []string

func (*Build) GetTimeout

func (m *Build) GetTimeout() *google_protobuf4.Duration

func (*Build) ProtoMessage

func (*Build) ProtoMessage()

func (*Build) Reset

func (m *Build) Reset()

func (*Build) String

func (m *Build) String() string

type BuildOperationMetadata

type BuildOperationMetadata struct {
	// The build that the operation is tracking.
	Build *Build `protobuf:"bytes,1,opt,name=build" json:"build,omitempty"`
}

Metadata for build operations.

func (*BuildOperationMetadata) Descriptor

func (*BuildOperationMetadata) Descriptor() ([]byte, []int)

func (*BuildOperationMetadata) GetBuild

func (m *BuildOperationMetadata) GetBuild() *Build

func (*BuildOperationMetadata) ProtoMessage

func (*BuildOperationMetadata) ProtoMessage()

func (*BuildOperationMetadata) Reset

func (m *BuildOperationMetadata) Reset()

func (*BuildOperationMetadata) String

func (m *BuildOperationMetadata) String() string

type BuildOptions

type BuildOptions struct {
	// Requested hash for SourceProvenance.
	SourceProvenanceHash []Hash_HashType `` /* 173-byte string literal not displayed */
	// Requested verifiability options.
	RequestedVerifyOption BuildOptions_VerifyOption `` /* 181-byte string literal not displayed */
	// GCE VM size to run the build on.
	MachineType BuildOptions_MachineType `` /* 148-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" json:"disk_size_gb,omitempty"`
	// SubstitutionOption to allow unmatch substitutions.
	SubstitutionOption BuildOptions_SubstitutionOption `` /* 176-byte string literal not displayed */
	// LogStreamingOption to define build log streaming behavior to Google Cloud
	// Storage.
	LogStreamingOption BuildOptions_LogStreamingOption `` /* 178-byte string literal not displayed */
}

Optional arguments to enable specific features of builds.

func (*BuildOptions) Descriptor

func (*BuildOptions) Descriptor() ([]byte, []int)

func (*BuildOptions) GetDiskSizeGb

func (m *BuildOptions) GetDiskSizeGb() int64

func (*BuildOptions) GetLogStreamingOption

func (m *BuildOptions) GetLogStreamingOption() BuildOptions_LogStreamingOption

func (*BuildOptions) GetMachineType

func (m *BuildOptions) GetMachineType() BuildOptions_MachineType

func (*BuildOptions) GetRequestedVerifyOption

func (m *BuildOptions) GetRequestedVerifyOption() BuildOptions_VerifyOption

func (*BuildOptions) GetSourceProvenanceHash

func (m *BuildOptions) GetSourceProvenanceHash() []Hash_HashType

func (*BuildOptions) GetSubstitutionOption

func (m *BuildOptions) GetSubstitutionOption() BuildOptions_SubstitutionOption

func (*BuildOptions) ProtoMessage

func (*BuildOptions) ProtoMessage()

func (*BuildOptions) Reset

func (m *BuildOptions) Reset()

func (*BuildOptions) String

func (m *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) EnumDescriptor

func (BuildOptions_LogStreamingOption) EnumDescriptor() ([]byte, []int)

func (BuildOptions_LogStreamingOption) String

type BuildOptions_MachineType

type BuildOptions_MachineType int32

Supported VM sizes.

const (
	// Standard machine type.
	BuildOptions_UNSPECIFIED BuildOptions_MachineType = 0
	// Medium size.
	BuildOptions_N1_HIGHCPU_8 BuildOptions_MachineType = 1
	// Large size.
	BuildOptions_N1_HIGHCPU_32 BuildOptions_MachineType = 2
)

func (BuildOptions_MachineType) EnumDescriptor

func (BuildOptions_MachineType) EnumDescriptor() ([]byte, []int)

func (BuildOptions_MachineType) String

func (x BuildOptions_MachineType) String() string

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) EnumDescriptor

func (BuildOptions_SubstitutionOption) EnumDescriptor() ([]byte, []int)

func (BuildOptions_SubstitutionOption) String

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) EnumDescriptor

func (BuildOptions_VerifyOption) EnumDescriptor() ([]byte, []int)

func (BuildOptions_VerifyOption) String

func (x BuildOptions_VerifyOption) String() string

type BuildStep

type BuildStep struct {
	// The name of the container image that will run this particular build step.
	//
	// If the image is already 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" 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" 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, these args
	// will be used as arguments to that entrypoint. If the image does not define
	// an entrypoint, the first element in args will be used as the entrypoint,
	// and the remainder will be used as arguments.
	Args []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"`
	// Working directory (relative to project source root) to use when running
	// this operation's container.
	Dir string `protobuf:"bytes,4,opt,name=dir" json:"dir,omitempty"`
	// Optional 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" 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" json:"wait_for,omitempty"`
	// Optional entrypoint to be used instead of the build step image's default
	// If unset, the image's default will be used.
	Entrypoint string `protobuf:"bytes,7,opt,name=entrypoint" json:"entrypoint,omitempty"`
	// A list of environment variables which are encrypted using a Cloud KMS
	// crypto key. These values must be specified in the build's secrets.
	SecretEnv []string `protobuf:"bytes,8,rep,name=secret_env,json=secretEnv" json:"secret_env,omitempty"`
	// List of volumes to mount into the build step.
	//
	// Each volume will be created as an empty volume prior to execution of the
	// build step. Upon completion of the build, volumes and their contents will
	// be discarded.
	//
	// Using a named volume in only one step is not valid as it is indicative
	// of a mis-configured build request.
	Volumes []*Volume `protobuf:"bytes,9,rep,name=volumes" json:"volumes,omitempty"`
}

BuildStep describes a step to perform in the build pipeline.

func (*BuildStep) Descriptor

func (*BuildStep) Descriptor() ([]byte, []int)

func (*BuildStep) GetArgs

func (m *BuildStep) GetArgs() []string

func (*BuildStep) GetDir

func (m *BuildStep) GetDir() string

func (*BuildStep) GetEntrypoint

func (m *BuildStep) GetEntrypoint() string

func (*BuildStep) GetEnv

func (m *BuildStep) GetEnv() []string

func (*BuildStep) GetId

func (m *BuildStep) GetId() string

func (*BuildStep) GetName

func (m *BuildStep) GetName() string

func (*BuildStep) GetSecretEnv

func (m *BuildStep) GetSecretEnv() []string

func (*BuildStep) GetVolumes

func (m *BuildStep) GetVolumes() []*Volume

func (*BuildStep) GetWaitFor

func (m *BuildStep) GetWaitFor() []string

func (*BuildStep) ProtoMessage

func (*BuildStep) ProtoMessage()

func (*BuildStep) Reset

func (m *BuildStep) Reset()

func (*BuildStep) String

func (m *BuildStep) String() string

type BuildTrigger

type BuildTrigger struct {
	// Unique identifier of the trigger.
	//
	// @OutputOnly
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// Human-readable description of this trigger.
	Description string `protobuf:"bytes,10,opt,name=description" json:"description,omitempty"`
	// Template describing the types of source changes to trigger a build.
	//
	// Branch and tag names in trigger templates are interpreted as regular
	// expressions. Any branch or tag change that matches that regular expression
	// will trigger a build.
	TriggerTemplate *RepoSource `protobuf:"bytes,7,opt,name=trigger_template,json=triggerTemplate" json:"trigger_template,omitempty"`
	// Template describing the Build request to make when the trigger is matched.
	//
	// Types that are valid to be assigned to BuildTemplate:
	//	*BuildTrigger_Build
	//	*BuildTrigger_Filename
	BuildTemplate isBuildTrigger_BuildTemplate `protobuf_oneof:"build_template"`
	// Time when the trigger was created.
	//
	// @OutputOnly
	CreateTime *google_protobuf5.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// If true, the trigger will never result in a build.
	Disabled bool `protobuf:"varint,9,opt,name=disabled" json:"disabled,omitempty"`
	// Substitutions data for Build resource.
	Substitutions map[string]string `` /* 147-byte string literal not displayed */
}

Configuration for an automated build in response to source repository changes.

func (*BuildTrigger) Descriptor

func (*BuildTrigger) Descriptor() ([]byte, []int)

func (*BuildTrigger) GetBuild

func (m *BuildTrigger) GetBuild() *Build

func (*BuildTrigger) GetBuildTemplate

func (m *BuildTrigger) GetBuildTemplate() isBuildTrigger_BuildTemplate

func (*BuildTrigger) GetCreateTime

func (m *BuildTrigger) GetCreateTime() *google_protobuf5.Timestamp

func (*BuildTrigger) GetDescription

func (m *BuildTrigger) GetDescription() string

func (*BuildTrigger) GetDisabled

func (m *BuildTrigger) GetDisabled() bool

func (*BuildTrigger) GetFilename

func (m *BuildTrigger) GetFilename() string

func (*BuildTrigger) GetId

func (m *BuildTrigger) GetId() string

func (*BuildTrigger) GetSubstitutions

func (m *BuildTrigger) GetSubstitutions() map[string]string

func (*BuildTrigger) GetTriggerTemplate

func (m *BuildTrigger) GetTriggerTemplate() *RepoSource

func (*BuildTrigger) ProtoMessage

func (*BuildTrigger) ProtoMessage()

func (*BuildTrigger) Reset

func (m *BuildTrigger) Reset()

func (*BuildTrigger) String

func (m *BuildTrigger) String() string

func (*BuildTrigger) XXX_OneofFuncs

func (*BuildTrigger) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type BuildTrigger_Build

type BuildTrigger_Build struct {
	Build *Build `protobuf:"bytes,4,opt,name=build,oneof"`
}

type BuildTrigger_Filename

type BuildTrigger_Filename struct {
	Filename string `protobuf:"bytes,8,opt,name=filename,oneof"`
}

type Build_Status

type Build_Status int32

Possible status of a build.

const (
	// Status of the build is unknown.
	Build_STATUS_UNKNOWN Build_Status = 0
	// Build is queued; work has not yet begun.
	Build_QUEUED Build_Status = 1
	// Build is being executed.
	Build_WORKING Build_Status = 2
	// Build finished successfully.
	Build_SUCCESS Build_Status = 3
	// Build failed to complete successfully.
	Build_FAILURE Build_Status = 4
	// Build failed due to an internal cause.
	Build_INTERNAL_ERROR Build_Status = 5
	// Build took longer than was allowed.
	Build_TIMEOUT Build_Status = 6
	// Build was canceled by a user.
	Build_CANCELLED Build_Status = 7
)

func (Build_Status) EnumDescriptor

func (Build_Status) EnumDescriptor() ([]byte, []int)

func (Build_Status) String

func (x Build_Status) String() string

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" json:"name,omitempty"`
	// Docker Registry 2.0 digest.
	Digest string `protobuf:"bytes,3,opt,name=digest" json:"digest,omitempty"`
}

BuiltImage describes an image built by the pipeline.

func (*BuiltImage) Descriptor

func (*BuiltImage) Descriptor() ([]byte, []int)

func (*BuiltImage) GetDigest

func (m *BuiltImage) GetDigest() string

func (*BuiltImage) GetName

func (m *BuiltImage) GetName() string

func (*BuiltImage) ProtoMessage

func (*BuiltImage) ProtoMessage()

func (*BuiltImage) Reset

func (m *BuiltImage) Reset()

func (*BuiltImage) String

func (m *BuiltImage) String() string

type CancelBuildRequest

type CancelBuildRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// ID of the build.
	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
}

Request to cancel an ongoing build.

func (*CancelBuildRequest) Descriptor

func (*CancelBuildRequest) Descriptor() ([]byte, []int)

func (*CancelBuildRequest) GetId

func (m *CancelBuildRequest) GetId() string

func (*CancelBuildRequest) GetProjectId

func (m *CancelBuildRequest) GetProjectId() string

func (*CancelBuildRequest) ProtoMessage

func (*CancelBuildRequest) ProtoMessage()

func (*CancelBuildRequest) Reset

func (m *CancelBuildRequest) Reset()

func (*CancelBuildRequest) String

func (m *CancelBuildRequest) String() string

type CloudBuildClient

type CloudBuildClient interface {
	// Starts a build with the specified configuration.
	//
	// The long-running Operation returned by this method will include the ID of
	// the build, which can be passed to GetBuild to determine its status (e.g.,
	// success or failure).
	CreateBuild(ctx context.Context, in *CreateBuildRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
	// Returns information about a previously requested build.
	//
	// The Build that is returned includes its status (e.g., success or failure,
	// or in-progress), and timing information.
	GetBuild(ctx context.Context, in *GetBuildRequest, opts ...grpc.CallOption) (*Build, error)
	// Lists previously requested builds.
	//
	// Previously requested builds may still be in-progress, or may have finished
	// successfully or unsuccessfully.
	ListBuilds(ctx context.Context, in *ListBuildsRequest, opts ...grpc.CallOption) (*ListBuildsResponse, error)
	// Cancels a requested build in progress.
	CancelBuild(ctx context.Context, in *CancelBuildRequest, opts ...grpc.CallOption) (*Build, error)
	// Creates a new BuildTrigger.
	//
	// This API is experimental.
	CreateBuildTrigger(ctx context.Context, in *CreateBuildTriggerRequest, opts ...grpc.CallOption) (*BuildTrigger, error)
	// Gets information about a BuildTrigger.
	//
	// This API is experimental.
	GetBuildTrigger(ctx context.Context, in *GetBuildTriggerRequest, opts ...grpc.CallOption) (*BuildTrigger, error)
	// Lists existing BuildTrigger.
	//
	// This API is experimental.
	ListBuildTriggers(ctx context.Context, in *ListBuildTriggersRequest, opts ...grpc.CallOption) (*ListBuildTriggersResponse, error)
	// Deletes an BuildTrigger by its project ID and trigger ID.
	//
	// This API is experimental.
	DeleteBuildTrigger(ctx context.Context, in *DeleteBuildTriggerRequest, opts ...grpc.CallOption) (*google_protobuf3.Empty, error)
	// Updates an BuildTrigger by its project ID and trigger ID.
	//
	// This API is experimental.
	UpdateBuildTrigger(ctx context.Context, in *UpdateBuildTriggerRequest, opts ...grpc.CallOption) (*BuildTrigger, error)
	// Runs a BuildTrigger at a particular source revision.
	RunBuildTrigger(ctx context.Context, in *RunBuildTriggerRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
	// Creates a new build based on the given build.
	//
	// This API creates a new build using the original build request,  which may
	// or may not result in an identical build.
	//
	// For triggered builds:
	//
	// * Triggered builds resolve to a precise revision, so a retry of a triggered
	// build will result in a build that uses the same revision.
	//
	// For non-triggered builds that specify RepoSource:
	//
	// * If the original build built from the tip of a branch, the retried build
	// will build from the tip of that branch, which may not be the same revision
	// as the original build.
	// * If the original build specified a commit sha or revision ID, the retried
	// build will use the identical source.
	//
	// For builds that specify StorageSource:
	//
	// * If the original build pulled source from Cloud Storage without specifying
	// the generation of the object, the new build will use the current object,
	// which may be different from the original build source.
	// * If the original build pulled source from Cloud Storage and specified the
	// generation of the object, the new build will attempt to use the same
	// object, which may or may not be available depending on the bucket's
	// lifecycle management settings.
	RetryBuild(ctx context.Context, in *RetryBuildRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
}

func NewCloudBuildClient

func NewCloudBuildClient(cc *grpc.ClientConn) CloudBuildClient

type CloudBuildServer

type CloudBuildServer interface {
	// Starts a build with the specified configuration.
	//
	// The long-running Operation returned by this method will include the ID of
	// the build, which can be passed to GetBuild to determine its status (e.g.,
	// success or failure).
	CreateBuild(context.Context, *CreateBuildRequest) (*google_longrunning.Operation, error)
	// Returns information about a previously requested build.
	//
	// The Build that is returned includes its status (e.g., success or failure,
	// or in-progress), and timing information.
	GetBuild(context.Context, *GetBuildRequest) (*Build, error)
	// Lists previously requested builds.
	//
	// Previously requested builds may still be in-progress, or may have finished
	// successfully or unsuccessfully.
	ListBuilds(context.Context, *ListBuildsRequest) (*ListBuildsResponse, error)
	// Cancels a requested build in progress.
	CancelBuild(context.Context, *CancelBuildRequest) (*Build, error)
	// Creates a new BuildTrigger.
	//
	// This API is experimental.
	CreateBuildTrigger(context.Context, *CreateBuildTriggerRequest) (*BuildTrigger, error)
	// Gets information about a BuildTrigger.
	//
	// This API is experimental.
	GetBuildTrigger(context.Context, *GetBuildTriggerRequest) (*BuildTrigger, error)
	// Lists existing BuildTrigger.
	//
	// This API is experimental.
	ListBuildTriggers(context.Context, *ListBuildTriggersRequest) (*ListBuildTriggersResponse, error)
	// Deletes an BuildTrigger by its project ID and trigger ID.
	//
	// This API is experimental.
	DeleteBuildTrigger(context.Context, *DeleteBuildTriggerRequest) (*google_protobuf3.Empty, error)
	// Updates an BuildTrigger by its project ID and trigger ID.
	//
	// This API is experimental.
	UpdateBuildTrigger(context.Context, *UpdateBuildTriggerRequest) (*BuildTrigger, error)
	// Runs a BuildTrigger at a particular source revision.
	RunBuildTrigger(context.Context, *RunBuildTriggerRequest) (*google_longrunning.Operation, error)
	// Creates a new build based on the given build.
	//
	// This API creates a new build using the original build request,  which may
	// or may not result in an identical build.
	//
	// For triggered builds:
	//
	// * Triggered builds resolve to a precise revision, so a retry of a triggered
	// build will result in a build that uses the same revision.
	//
	// For non-triggered builds that specify RepoSource:
	//
	// * If the original build built from the tip of a branch, the retried build
	// will build from the tip of that branch, which may not be the same revision
	// as the original build.
	// * If the original build specified a commit sha or revision ID, the retried
	// build will use the identical source.
	//
	// For builds that specify StorageSource:
	//
	// * If the original build pulled source from Cloud Storage without specifying
	// the generation of the object, the new build will use the current object,
	// which may be different from the original build source.
	// * If the original build pulled source from Cloud Storage and specified the
	// generation of the object, the new build will attempt to use the same
	// object, which may or may not be available depending on the bucket's
	// lifecycle management settings.
	RetryBuild(context.Context, *RetryBuildRequest) (*google_longrunning.Operation, error)
}

type CreateBuildRequest

type CreateBuildRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// Build resource to create.
	Build *Build `protobuf:"bytes,2,opt,name=build" json:"build,omitempty"`
}

Request to create a new build.

func (*CreateBuildRequest) Descriptor

func (*CreateBuildRequest) Descriptor() ([]byte, []int)

func (*CreateBuildRequest) GetBuild

func (m *CreateBuildRequest) GetBuild() *Build

func (*CreateBuildRequest) GetProjectId

func (m *CreateBuildRequest) GetProjectId() string

func (*CreateBuildRequest) ProtoMessage

func (*CreateBuildRequest) ProtoMessage()

func (*CreateBuildRequest) Reset

func (m *CreateBuildRequest) Reset()

func (*CreateBuildRequest) String

func (m *CreateBuildRequest) String() string

type CreateBuildTriggerRequest

type CreateBuildTriggerRequest struct {
	// ID of the project for which to configure automatic builds.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// BuildTrigger to create.
	Trigger *BuildTrigger `protobuf:"bytes,2,opt,name=trigger" json:"trigger,omitempty"`
}

Request to create a new BuildTrigger.

func (*CreateBuildTriggerRequest) Descriptor

func (*CreateBuildTriggerRequest) Descriptor() ([]byte, []int)

func (*CreateBuildTriggerRequest) GetProjectId

func (m *CreateBuildTriggerRequest) GetProjectId() string

func (*CreateBuildTriggerRequest) GetTrigger

func (m *CreateBuildTriggerRequest) GetTrigger() *BuildTrigger

func (*CreateBuildTriggerRequest) ProtoMessage

func (*CreateBuildTriggerRequest) ProtoMessage()

func (*CreateBuildTriggerRequest) Reset

func (m *CreateBuildTriggerRequest) Reset()

func (*CreateBuildTriggerRequest) String

func (m *CreateBuildTriggerRequest) String() string

type DeleteBuildTriggerRequest

type DeleteBuildTriggerRequest struct {
	// ID of the project that owns the trigger.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// ID of the BuildTrigger to delete.
	TriggerId string `protobuf:"bytes,2,opt,name=trigger_id,json=triggerId" json:"trigger_id,omitempty"`
}

Request to delete a BuildTrigger.

func (*DeleteBuildTriggerRequest) Descriptor

func (*DeleteBuildTriggerRequest) Descriptor() ([]byte, []int)

func (*DeleteBuildTriggerRequest) GetProjectId

func (m *DeleteBuildTriggerRequest) GetProjectId() string

func (*DeleteBuildTriggerRequest) GetTriggerId

func (m *DeleteBuildTriggerRequest) GetTriggerId() string

func (*DeleteBuildTriggerRequest) ProtoMessage

func (*DeleteBuildTriggerRequest) ProtoMessage()

func (*DeleteBuildTriggerRequest) Reset

func (m *DeleteBuildTriggerRequest) Reset()

func (*DeleteBuildTriggerRequest) String

func (m *DeleteBuildTriggerRequest) String() string

type FileHashes

type FileHashes struct {
	// Collection of file hashes.
	FileHash []*Hash `protobuf:"bytes,1,rep,name=file_hash,json=fileHash" json:"file_hash,omitempty"`
}

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

func (*FileHashes) Descriptor() ([]byte, []int)

func (*FileHashes) GetFileHash

func (m *FileHashes) GetFileHash() []*Hash

func (*FileHashes) ProtoMessage

func (*FileHashes) ProtoMessage()

func (*FileHashes) Reset

func (m *FileHashes) Reset()

func (*FileHashes) String

func (m *FileHashes) String() string

type GetBuildRequest

type GetBuildRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// ID of the build.
	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
}

Request to get a build.

func (*GetBuildRequest) Descriptor

func (*GetBuildRequest) Descriptor() ([]byte, []int)

func (*GetBuildRequest) GetId

func (m *GetBuildRequest) GetId() string

func (*GetBuildRequest) GetProjectId

func (m *GetBuildRequest) GetProjectId() string

func (*GetBuildRequest) ProtoMessage

func (*GetBuildRequest) ProtoMessage()

func (*GetBuildRequest) Reset

func (m *GetBuildRequest) Reset()

func (*GetBuildRequest) String

func (m *GetBuildRequest) String() string

type GetBuildTriggerRequest

type GetBuildTriggerRequest struct {
	// ID of the project that owns the trigger.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// ID of the BuildTrigger to get.
	TriggerId string `protobuf:"bytes,2,opt,name=trigger_id,json=triggerId" json:"trigger_id,omitempty"`
}

Returns the BuildTrigger with the specified ID.

func (*GetBuildTriggerRequest) Descriptor

func (*GetBuildTriggerRequest) Descriptor() ([]byte, []int)

func (*GetBuildTriggerRequest) GetProjectId

func (m *GetBuildTriggerRequest) GetProjectId() string

func (*GetBuildTriggerRequest) GetTriggerId

func (m *GetBuildTriggerRequest) GetTriggerId() string

func (*GetBuildTriggerRequest) ProtoMessage

func (*GetBuildTriggerRequest) ProtoMessage()

func (*GetBuildTriggerRequest) Reset

func (m *GetBuildTriggerRequest) Reset()

func (*GetBuildTriggerRequest) String

func (m *GetBuildTriggerRequest) String() string

type Hash

type Hash struct {
	// The type of hash that was performed.
	Type Hash_HashType `protobuf:"varint,1,opt,name=type,enum=google.devtools.cloudbuild.v1.Hash_HashType" json:"type,omitempty"`
	// The hash value.
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

Container message for hash values.

func (*Hash) Descriptor

func (*Hash) Descriptor() ([]byte, []int)

func (*Hash) GetType

func (m *Hash) GetType() Hash_HashType

func (*Hash) GetValue

func (m *Hash) GetValue() []byte

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) Reset

func (m *Hash) Reset()

func (*Hash) String

func (m *Hash) String() string

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
)

func (Hash_HashType) EnumDescriptor

func (Hash_HashType) EnumDescriptor() ([]byte, []int)

func (Hash_HashType) String

func (x Hash_HashType) String() string

type ListBuildTriggersRequest

type ListBuildTriggersRequest struct {
	// ID of the project for which to list BuildTriggers.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
}

Request to list existing BuildTriggers.

func (*ListBuildTriggersRequest) Descriptor

func (*ListBuildTriggersRequest) Descriptor() ([]byte, []int)

func (*ListBuildTriggersRequest) GetProjectId

func (m *ListBuildTriggersRequest) GetProjectId() string

func (*ListBuildTriggersRequest) ProtoMessage

func (*ListBuildTriggersRequest) ProtoMessage()

func (*ListBuildTriggersRequest) Reset

func (m *ListBuildTriggersRequest) Reset()

func (*ListBuildTriggersRequest) String

func (m *ListBuildTriggersRequest) String() string

type ListBuildTriggersResponse

type ListBuildTriggersResponse struct {
	// BuildTriggers for the project, sorted by create_time descending.
	Triggers []*BuildTrigger `protobuf:"bytes,1,rep,name=triggers" json:"triggers,omitempty"`
}

Response containing existing BuildTriggers.

func (*ListBuildTriggersResponse) Descriptor

func (*ListBuildTriggersResponse) Descriptor() ([]byte, []int)

func (*ListBuildTriggersResponse) GetTriggers

func (m *ListBuildTriggersResponse) GetTriggers() []*BuildTrigger

func (*ListBuildTriggersResponse) ProtoMessage

func (*ListBuildTriggersResponse) ProtoMessage()

func (*ListBuildTriggersResponse) Reset

func (m *ListBuildTriggersResponse) Reset()

func (*ListBuildTriggersResponse) String

func (m *ListBuildTriggersResponse) String() string

type ListBuildsRequest

type ListBuildsRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// Number of results to return in the list.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	// Token to provide to skip to a particular spot in the list.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
	// The raw filter text to constrain the results.
	Filter string `protobuf:"bytes,8,opt,name=filter" json:"filter,omitempty"`
}

Request to list builds.

func (*ListBuildsRequest) Descriptor

func (*ListBuildsRequest) Descriptor() ([]byte, []int)

func (*ListBuildsRequest) GetFilter

func (m *ListBuildsRequest) GetFilter() string

func (*ListBuildsRequest) GetPageSize

func (m *ListBuildsRequest) GetPageSize() int32

func (*ListBuildsRequest) GetPageToken

func (m *ListBuildsRequest) GetPageToken() string

func (*ListBuildsRequest) GetProjectId

func (m *ListBuildsRequest) GetProjectId() string

func (*ListBuildsRequest) ProtoMessage

func (*ListBuildsRequest) ProtoMessage()

func (*ListBuildsRequest) Reset

func (m *ListBuildsRequest) Reset()

func (*ListBuildsRequest) String

func (m *ListBuildsRequest) String() string

type ListBuildsResponse

type ListBuildsResponse struct {
	// Builds will be sorted by create_time, descending.
	Builds []*Build `protobuf:"bytes,1,rep,name=builds" json:"builds,omitempty"`
	// Token to receive the next page of results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}

Response including listed builds.

func (*ListBuildsResponse) Descriptor

func (*ListBuildsResponse) Descriptor() ([]byte, []int)

func (*ListBuildsResponse) GetBuilds

func (m *ListBuildsResponse) GetBuilds() []*Build

func (*ListBuildsResponse) GetNextPageToken

func (m *ListBuildsResponse) GetNextPageToken() string

func (*ListBuildsResponse) ProtoMessage

func (*ListBuildsResponse) ProtoMessage()

func (*ListBuildsResponse) Reset

func (m *ListBuildsResponse) Reset()

func (*ListBuildsResponse) String

func (m *ListBuildsResponse) String() string

type RepoSource

type RepoSource struct {
	// ID of the project that owns the repo. If omitted, the project ID requesting
	// the build is assumed.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// Name of the repo. If omitted, the name "default" is assumed.
	RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName" json:"repo_name,omitempty"`
	// A revision within the 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.
	Dir string `protobuf:"bytes,7,opt,name=dir" json:"dir,omitempty"`
}

RepoSource describes the location of the source in a Google Cloud Source Repository.

func (*RepoSource) Descriptor

func (*RepoSource) Descriptor() ([]byte, []int)

func (*RepoSource) GetBranchName

func (m *RepoSource) GetBranchName() string

func (*RepoSource) GetCommitSha

func (m *RepoSource) GetCommitSha() string

func (*RepoSource) GetDir

func (m *RepoSource) GetDir() string

func (*RepoSource) GetProjectId

func (m *RepoSource) GetProjectId() string

func (*RepoSource) GetRepoName

func (m *RepoSource) GetRepoName() string

func (*RepoSource) GetRevision

func (m *RepoSource) GetRevision() isRepoSource_Revision

func (*RepoSource) GetTagName

func (m *RepoSource) GetTagName() string

func (*RepoSource) ProtoMessage

func (*RepoSource) ProtoMessage()

func (*RepoSource) Reset

func (m *RepoSource) Reset()

func (*RepoSource) String

func (m *RepoSource) String() string

func (*RepoSource) XXX_OneofFuncs

func (*RepoSource) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type RepoSource_BranchName

type RepoSource_BranchName struct {
	BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,oneof"`
}

type RepoSource_CommitSha

type RepoSource_CommitSha struct {
	CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,oneof"`
}

type RepoSource_TagName

type RepoSource_TagName struct {
	TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,oneof"`
}

type Results

type Results struct {
	// Images that were built as a part of the build.
	Images []*BuiltImage `protobuf:"bytes,2,rep,name=images" json:"images,omitempty"`
	// List of build step digests, in order corresponding to build step indices.
	BuildStepImages []string `protobuf:"bytes,3,rep,name=build_step_images,json=buildStepImages" json:"build_step_images,omitempty"`
}

Results describes the artifacts created by the build pipeline.

func (*Results) Descriptor

func (*Results) Descriptor() ([]byte, []int)

func (*Results) GetBuildStepImages

func (m *Results) GetBuildStepImages() []string

func (*Results) GetImages

func (m *Results) GetImages() []*BuiltImage

func (*Results) ProtoMessage

func (*Results) ProtoMessage()

func (*Results) Reset

func (m *Results) Reset()

func (*Results) String

func (m *Results) String() string

type RetryBuildRequest

type RetryBuildRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// Build ID of the original build.
	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
}

RetryBuildRequest specifies a build to retry.

func (*RetryBuildRequest) Descriptor

func (*RetryBuildRequest) Descriptor() ([]byte, []int)

func (*RetryBuildRequest) GetId

func (m *RetryBuildRequest) GetId() string

func (*RetryBuildRequest) GetProjectId

func (m *RetryBuildRequest) GetProjectId() string

func (*RetryBuildRequest) ProtoMessage

func (*RetryBuildRequest) ProtoMessage()

func (*RetryBuildRequest) Reset

func (m *RetryBuildRequest) Reset()

func (*RetryBuildRequest) String

func (m *RetryBuildRequest) String() string

type RunBuildTriggerRequest

type RunBuildTriggerRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// ID of the trigger.
	TriggerId string `protobuf:"bytes,2,opt,name=trigger_id,json=triggerId" json:"trigger_id,omitempty"`
	// Source to build against this trigger.
	Source *RepoSource `protobuf:"bytes,3,opt,name=source" json:"source,omitempty"`
}

RunBuildTriggerRequest specifies a build trigger to run and the source to use.

func (*RunBuildTriggerRequest) Descriptor

func (*RunBuildTriggerRequest) Descriptor() ([]byte, []int)

func (*RunBuildTriggerRequest) GetProjectId

func (m *RunBuildTriggerRequest) GetProjectId() string

func (*RunBuildTriggerRequest) GetSource

func (m *RunBuildTriggerRequest) GetSource() *RepoSource

func (*RunBuildTriggerRequest) GetTriggerId

func (m *RunBuildTriggerRequest) GetTriggerId() string

func (*RunBuildTriggerRequest) ProtoMessage

func (*RunBuildTriggerRequest) ProtoMessage()

func (*RunBuildTriggerRequest) Reset

func (m *RunBuildTriggerRequest) Reset()

func (*RunBuildTriggerRequest) String

func (m *RunBuildTriggerRequest) String() string

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" 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
	// 1 KB in size. There can be at most ten secret values across all of a
	// build's secrets.
	SecretEnv map[string][]byte `` /* 162-byte string literal not displayed */
}

Secret pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.

func (*Secret) Descriptor

func (*Secret) Descriptor() ([]byte, []int)

func (*Secret) GetKmsKeyName

func (m *Secret) GetKmsKeyName() string

func (*Secret) GetSecretEnv

func (m *Secret) GetSecretEnv() map[string][]byte

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) Reset

func (m *Secret) Reset()

func (*Secret) String

func (m *Secret) String() string

type Source

type Source struct {
	// Describes location of source.
	//
	// Types that are valid to be assigned to Source:
	//	*Source_StorageSource
	//	*Source_RepoSource
	Source isSource_Source `protobuf_oneof:"source"`
}

Source describes the location of the source in a supported storage service.

func (*Source) Descriptor

func (*Source) Descriptor() ([]byte, []int)

func (*Source) GetRepoSource

func (m *Source) GetRepoSource() *RepoSource

func (*Source) GetSource

func (m *Source) GetSource() isSource_Source

func (*Source) GetStorageSource

func (m *Source) GetStorageSource() *StorageSource

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) Reset

func (m *Source) Reset()

func (*Source) String

func (m *Source) String() string

func (*Source) XXX_OneofFuncs

func (*Source) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type SourceProvenance

type SourceProvenance struct {
	// A copy of the build's source.storage_source, if exists, with any
	// generations resolved.
	ResolvedStorageSource *StorageSource `protobuf:"bytes,3,opt,name=resolved_storage_source,json=resolvedStorageSource" json:"resolved_storage_source,omitempty"`
	// 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" 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.
	// @OutputOnly
	FileHashes map[string]*FileHashes `` /* 158-byte string literal not displayed */
}

Provenance of the source. Ways to find the original source, or verify that some source was used for this build.

func (*SourceProvenance) Descriptor

func (*SourceProvenance) Descriptor() ([]byte, []int)

func (*SourceProvenance) GetFileHashes

func (m *SourceProvenance) GetFileHashes() map[string]*FileHashes

func (*SourceProvenance) GetResolvedRepoSource

func (m *SourceProvenance) GetResolvedRepoSource() *RepoSource

func (*SourceProvenance) GetResolvedStorageSource

func (m *SourceProvenance) GetResolvedStorageSource() *StorageSource

func (*SourceProvenance) ProtoMessage

func (*SourceProvenance) ProtoMessage()

func (*SourceProvenance) Reset

func (m *SourceProvenance) Reset()

func (*SourceProvenance) String

func (m *SourceProvenance) String() string

type Source_RepoSource

type Source_RepoSource struct {
	RepoSource *RepoSource `protobuf:"bytes,3,opt,name=repo_source,json=repoSource,oneof"`
}

type Source_StorageSource

type Source_StorageSource struct {
	StorageSource *StorageSource `protobuf:"bytes,2,opt,name=storage_source,json=storageSource,oneof"`
}

type StorageSource

type StorageSource struct {
	// Google Cloud Storage bucket containing source (see
	// [Bucket Name
	// Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
	Bucket string `protobuf:"bytes,1,opt,name=bucket" json:"bucket,omitempty"`
	// Google Cloud Storage object containing source.
	//
	// This object must be a gzipped archive file (.tar.gz) containing source to
	// build.
	Object string `protobuf:"bytes,2,opt,name=object" 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" json:"generation,omitempty"`
}

StorageSource describes the location of the source in an archive file in Google Cloud Storage.

func (*StorageSource) Descriptor

func (*StorageSource) Descriptor() ([]byte, []int)

func (*StorageSource) GetBucket

func (m *StorageSource) GetBucket() string

func (*StorageSource) GetGeneration

func (m *StorageSource) GetGeneration() int64

func (*StorageSource) GetObject

func (m *StorageSource) GetObject() string

func (*StorageSource) ProtoMessage

func (*StorageSource) ProtoMessage()

func (*StorageSource) Reset

func (m *StorageSource) Reset()

func (*StorageSource) String

func (m *StorageSource) String() string

type UpdateBuildTriggerRequest

type UpdateBuildTriggerRequest struct {
	// ID of the project that owns the trigger.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// ID of the BuildTrigger to update.
	TriggerId string `protobuf:"bytes,2,opt,name=trigger_id,json=triggerId" json:"trigger_id,omitempty"`
	// BuildTrigger to update.
	Trigger *BuildTrigger `protobuf:"bytes,3,opt,name=trigger" json:"trigger,omitempty"`
}

Request to update an existing BuildTrigger.

func (*UpdateBuildTriggerRequest) Descriptor

func (*UpdateBuildTriggerRequest) Descriptor() ([]byte, []int)

func (*UpdateBuildTriggerRequest) GetProjectId

func (m *UpdateBuildTriggerRequest) GetProjectId() string

func (*UpdateBuildTriggerRequest) GetTrigger

func (m *UpdateBuildTriggerRequest) GetTrigger() *BuildTrigger

func (*UpdateBuildTriggerRequest) GetTriggerId

func (m *UpdateBuildTriggerRequest) GetTriggerId() string

func (*UpdateBuildTriggerRequest) ProtoMessage

func (*UpdateBuildTriggerRequest) ProtoMessage()

func (*UpdateBuildTriggerRequest) Reset

func (m *UpdateBuildTriggerRequest) Reset()

func (*UpdateBuildTriggerRequest) String

func (m *UpdateBuildTriggerRequest) String() string

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" 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" json:"path,omitempty"`
}

Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.

func (*Volume) Descriptor

func (*Volume) Descriptor() ([]byte, []int)

func (*Volume) GetName

func (m *Volume) GetName() string

func (*Volume) GetPath

func (m *Volume) GetPath() string

func (*Volume) ProtoMessage

func (*Volume) ProtoMessage()

func (*Volume) Reset

func (m *Volume) Reset()

func (*Volume) String

func (m *Volume) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL