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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GCPSecretType       string = "secret_type"
	GCPOAuthTokenScopes string = "token_scopes"
)
View Source
const DefaultGCPPath = "gcp"

Variables

This section is empty.

Functions

func GetGCPPath

If gcp path does not exist, then use default gcp path

Types

type GCPRole

type GCPRole struct {
	// contains filtered or unexported fields
}

func (*GCPRole) CreateConfig

func (a *GCPRole) CreateConfig() error

https://www.vaultproject.io/api/secret/gcp/index.html#write-config Writes the config file to specified path

func (*GCPRole) CreateRole

func (a *GCPRole) CreateRole() error

Links: - https://www.vaultproject.io/api/secret/gcp/index.html#create-update-roleset Creates roleset

func (*GCPRole) DeleteRole

func (a *GCPRole) DeleteRole(name string) error

DeleteRole deletes role It's safe to call multiple time. It doesn't give error even if respective role doesn't exist

func (*GCPRole) EnableGCP

func (a *GCPRole) EnableGCP() error

EnableGCP enables gcp secret engine It first checks whether gcp is enabled or not

func (*GCPRole) IsGCPEnabled

func (a *GCPRole) IsGCPEnabled() (bool, error)

checks whether gcp is enabled or not

type GCPRoleInterface

type GCPRoleInterface interface {
	role.RoleInterface

	// Enable enables gcp secret engine
	EnableGCP() error

	// IsGCPEnabled checks whether gcp is enabled or not
	IsGCPEnabled() (bool, error)

	// DeleteRole deletes role
	DeleteRole(name string) error
}

Jump to

Keyboard shortcuts

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