vault

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLUSTER_NAMESPACE      = "cluster"
	CLUSTER_PATH           = "kubernetes/%s/default/admin"
	CLUSTER_KUBECONFIG_KEY = "kubeconfig"
)

Variables

This section is empty.

Functions

Types

type Vault

type Vault struct {
	vaultproxy.SecretHTTPClient
	vaultproxy.AuthHTTPClient
	vaultproxy.AuthGrantHTTPClient
	// contains filtered or unexported fields
}

func (*Vault) CreateRole

func (s *Vault) CreateRole(ctx context.Context, clusterName string, role runtimeinterface.Role) error

CreateRole implements interfaces.SecretClient

func (*Vault) DeleteRole

func (s *Vault) DeleteRole(ctx context.Context, clusterName string, role runtimeinterface.Role) error

DeleteRole implements interfaces.SecretClient

func (*Vault) GetAccessInfo

func (s *Vault) GetAccessInfo(ctx context.Context, clusterName string) (string, error)

func (*Vault) GetCABundle added in v0.3.0

func (s *Vault) GetCABundle(ctx context.Context) (string, error)

func (*Vault) GetRole

func (s *Vault) GetRole(ctx context.Context, clusterName string, role runtimeinterface.Role) (*runtimeinterface.Role, error)

GetRole implements interfaces.SecretClient

func (*Vault) GetSecretDatabaseName

func (s *Vault) GetSecretDatabaseName(ctx context.Context, repo runtimeinterface.SecretInfo) (string, error)

GetSecretDatabaseName implements interfaces.SecretClient

func (*Vault) GetSecretKey

func (s *Vault) GetSecretKey(ctx context.Context, repo runtimeinterface.SecretInfo) (string, error)

GetSecretKey implements interfaces.SecretClient

func (*Vault) GrantPermission

func (s *Vault) GrantPermission(ctx context.Context, repo runtimeinterface.SecretInfo, destUser, destEnv string) error

func (*Vault) Logout

func (s *Vault) Logout() error

func (*Vault) RevokePermission

func (s *Vault) RevokePermission(ctx context.Context, repo runtimeinterface.SecretInfo, destUser, destEnv string) error

Jump to

Keyboard shortcuts

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