Documentation ¶
Overview ¶
Package cloudbuild wraps the upstream cloudbuild package in a simplified interface. All code MUST be correct by inspection.
Index ¶
- type Trigger
- func (t *Trigger) Create(ctx context.Context, project string, bt *cloudbuild.BuildTrigger) (*cloudbuild.BuildTrigger, error)
- func (t *Trigger) Get(ctx context.Context, project string, name string) (*cloudbuild.BuildTrigger, error)
- func (t *Trigger) List(ctx context.Context, project string, ...) error
- func (t *Trigger) Run(ctx context.Context, project string, triggerId string, ...) (*cloudbuild.Operation, error)
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
}
Trigger wraps the cloudbuild API into a simple interface.
func NewTrigger ¶
func NewTrigger(s *cloudbuild.Service) *Trigger
NewTrigger creates a new Trigger instance.
func (*Trigger) Get ¶
func (t *Trigger) Get(ctx context.Context, project string, name string) (*cloudbuild.BuildTrigger, error)
Get searches all build triggers in a given project looking for one with a name matching the passed name parameter. If one is found it returns the corresponding BuildTrigger object, else an error.
Click to show internal directories.
Click to hide internal directories.