cloudbuild

package
v0.16.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trigger

type Trigger struct {
	// contains filtered or unexported fields
}

Creates a new build trigger within GCR. For more information, see [the official documentation](https://cloud.google.com/container-builder/docs/running-builds/automate-builds) and [API](https://godoc.org/google.golang.org/api/cloudbuild/v1#BuildTrigger).

func GetTrigger

func GetTrigger(ctx *pulumi.Context,
	name string, id pulumi.ID, state *TriggerState, opts ...pulumi.ResourceOpt) (*Trigger, error)

GetTrigger gets an existing Trigger resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTrigger

func NewTrigger(ctx *pulumi.Context,
	name string, args *TriggerArgs, opts ...pulumi.ResourceOpt) (*Trigger, error)

NewTrigger registers a new resource with the given unique name, arguments, and options.

func (*Trigger) Build

func (r *Trigger) Build() *pulumi.Output

A build resource in the Container Builder API. Structure is documented below. 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 where to store the built artifacts. 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 (*Trigger) Description

func (r *Trigger) Description() *pulumi.StringOutput

A brief description of this resource.

func (*Trigger) Filename

func (r *Trigger) Filename() *pulumi.StringOutput

Specify the path to a Cloud Build configuration file in the Git repo. This is mutually exclusive with `build`. This is typically `cloudbuild.yaml` however it can be specified by the user.

func (*Trigger) ID

func (r *Trigger) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Trigger) Project

func (r *Trigger) Project() *pulumi.StringOutput

The ID of the project that the trigger will be created in. Defaults to the provider project configuration.

func (*Trigger) Substitutions added in v0.16.0

func (r *Trigger) Substitutions() *pulumi.MapOutput

func (*Trigger) TriggerTemplate

func (r *Trigger) TriggerTemplate() *pulumi.Output

Location of the source in a Google Cloud Source Repository. Structure is documented below.

func (*Trigger) URN

func (r *Trigger) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

type TriggerArgs

type TriggerArgs struct {
	// A build resource in the Container Builder API.
	// Structure is documented below. 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 where to store
	// the built artifacts. 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`.
	Build interface{}
	// A brief description of this resource.
	Description interface{}
	// Specify the path to a Cloud Build configuration file
	// in the Git repo. This is mutually exclusive with `build`. This is typically
	// `cloudbuild.yaml` however it can be specified by the user.
	Filename interface{}
	// The ID of the project that the trigger will be created in.
	// Defaults to the provider project configuration.
	Project       interface{}
	Substitutions interface{}
	// Location of the source in a Google
	// Cloud Source Repository. Structure is documented below.
	TriggerTemplate interface{}
}

The set of arguments for constructing a Trigger resource.

type TriggerState

type TriggerState struct {
	// A build resource in the Container Builder API.
	// Structure is documented below. 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 where to store
	// the built artifacts. 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`.
	Build interface{}
	// A brief description of this resource.
	Description interface{}
	// Specify the path to a Cloud Build configuration file
	// in the Git repo. This is mutually exclusive with `build`. This is typically
	// `cloudbuild.yaml` however it can be specified by the user.
	Filename interface{}
	// The ID of the project that the trigger will be created in.
	// Defaults to the provider project configuration.
	Project       interface{}
	Substitutions interface{}
	// Location of the source in a Google
	// Cloud Source Repository. Structure is documented below.
	TriggerTemplate interface{}
}

Input properties used for looking up and filtering Trigger resources.

Jump to

Keyboard shortcuts

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