v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	FiatClient fiat.Client
	SqlClient  sql.Client
	Builder    gcloud.CloudRunCommandBuilder
}

func (*Controller) CreateCredentials

func (cc *Controller) CreateCredentials(c *gin.Context)

CreateCredentials creates a new account for Cloud Run. If the account field it not provided it is generated in the format `cr-<PROJECT_ID>`.

func (*Controller) CreateDeployment

func (cc *Controller) CreateDeployment(c *gin.Context)

CreateDeployment generates and runs a `gcloud run deploy` command.

func (*Controller) DeleteCredentials

func (cc *Controller) DeleteCredentials(c *gin.Context)

DeleteCredentials deletes credentials from the DB by account name.

func (*Controller) GetCredentials

func (cc *Controller) GetCredentials(c *gin.Context)

GetCredentials gets credentials by account name.

func (*Controller) GetDeployment

func (cc *Controller) GetDeployment(c *gin.Context)

GetDeployment gets a deployment from the DB by a given deployment ID.

func (*Controller) ListCredentials

func (cc *Controller) ListCredentials(c *gin.Context)

ListCredentials lists all credentials. If the query param 'onlyForUser' is true, then grab the user from the `X-SPINNAKER-USER` header, get their groups, and filter accounts by read/write groups that are contained within the user's groups.

Jump to

Keyboard shortcuts

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