gcp

package
v0.0.0-...-85ffd96 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UID = "GCP"
)

Variables

This section is empty.

Functions

func NewSecretGetter

func NewSecretGetter(vc *vaultapi.Client, path string, roleName string, secretType engine.GCPSecretType, reqSpec engine.GCPAccessKeyRequestSpec) secret.SecretGetter

func NewSecretManager

func NewSecretManager() secret.SecretManager

func NewSecretManagerWithOptions

func NewSecretManagerWithOptions(c *vaultapi.Client, opts map[string]string) secret.SecretManager

Types

type SecretInfo

type SecretInfo struct {
	// Specifies the path where secret engine is enabled
	Path string

	// Specifies the role for credential
	Role string

	// Contains the information about secret type, i.e. access_token or service_account_key
	SecretType string

	// Key algorithm used to generate key, required when SecretType is set to service_account_key
	KeyAlgorithm string

	// Private key type to generate, required when SecretType is set to service_account_key
	KeyType string

	Client *vaultapi.Client
}

func New

func New() *SecretInfo

func (*SecretInfo) GetSecret

func (s *SecretInfo) GetSecret() (*vaultapi.Secret, error)

func (*SecretInfo) SetOptions

func (s *SecretInfo) SetOptions(c *vaultapi.Client, opts map[string]string) error

Jump to

Keyboard shortcuts

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