Documentation
¶
Index ¶
- type Trigger
- func (r *Trigger) Build() *pulumi.Output
- func (r *Trigger) Description() *pulumi.StringOutput
- func (r *Trigger) Filename() *pulumi.StringOutput
- func (r *Trigger) ID() *pulumi.IDOutput
- func (r *Trigger) Project() *pulumi.StringOutput
- func (r *Trigger) TriggerTemplate() *pulumi.Output
- func (r *Trigger) URN() *pulumi.URNOutput
- type TriggerArgs
- type TriggerState
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 ¶
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) Project ¶
func (r *Trigger) Project() *pulumi.StringOutput
ID of the project that owns the Cloud Source Repository.
func (*Trigger) TriggerTemplate ¶
Location of the source in a Google Cloud Source Repository. Structure is documented below.
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{} // ID of the project that owns the Cloud Source Repository. Project 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{} // ID of the project that owns the Cloud Source Repository. Project 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.