v1

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCredentials

func CreateCredentials(c *gin.Context)

CreateCredentials generates a new account name for Cloud Run in the format `cr-<PROJECT_ID>-<LIFECYCLE>` and inserts it into the DB.

func CreateDeployment

func CreateDeployment(c *gin.Context)

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

func DeleteCredentials

func DeleteCredentials(c *gin.Context)

DeleteCredentials deletes credentials from the DB by account name.

func GetCredentials

func GetCredentials(c *gin.Context)

GetCredentials gets credentials by account name.

func GetDeployment

func GetDeployment(c *gin.Context)

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

func ListCredentials

func 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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