googlecloud

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentService

type DeploymentService struct {
	/*
		Project is the unique project identifier number within Google Cloud Platform.
		The string is used as part of the request string that will be sent to the GCP secret store.
	*/
	ProjectID string
}

SecretStore is the base struct of our authentication.SecretStore interface implemetation Basically a wrapper for the google cloud API

func NewSecretHandler added in v0.7.0

func NewSecretHandler() (ds *DeploymentService)

func (DeploymentService) GetSecret

func (ds DeploymentService) GetSecret(SecretName string) func(version string) (secret string)

GetSecret looks up the secret from the store and updates its value in the map project is the project id (ours is a 12 digit int) key is the name of the stored data version is the fixed version number i.e. "5" or the current value "latest"

Jump to

Keyboard shortcuts

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