gcb

package
v0.3.2-rc11 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package gcb helps with Google Cloud Build

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameters

type Parameters struct {
	BuildTimeout            string `yaml:"buildTimeout"  valid:"isNotZeroValue"`
	QueueTTL                string `yaml:"queueTtl"  valid:"isNotZeroValue"`
	DeployIAMServiceAccount bool
	DeployIAMBindings       bool
	ServiceAccountBindings  struct {
		GRM grm.Bindings
		IAM iamgt.Bindings
	} `yaml:"serviceAccountBindings"`
}

Parameters structure

type TriggerDeployment

type TriggerDeployment struct {
	Artifacts struct {
		ProjectsTriggersService *cloudbuild.ProjectsTriggersService `yaml:"-"`
		BuildTrigger            cloudbuild.BuildTrigger
		AssetShortTypeName      string
	}
	Core     *deploy.Core
	Settings struct {
		Service struct {
			GCB Parameters
		}
	}
}

TriggerDeployment settings and artifacts structure

func NewTriggerDeployment

func NewTriggerDeployment() *TriggerDeployment

NewTriggerDeployment create deployment structure

func (*TriggerDeployment) Deploy

func (triggerDeployment *TriggerDeployment) Deploy() (err error)

Deploy delete if exist, then create a cloud build trigger to deploy a microservice instance

Jump to

Keyboard shortcuts

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