Documentation ¶
Index ¶
- Constants
- func NewClient(cfg nautescfg.SecretRepo) (runtimeinterface.SecretClient, error)
- type Vault
- func (s *Vault) CreateRole(ctx context.Context, clusterName string, role runtimeinterface.Role) error
- func (s *Vault) DeleteRole(ctx context.Context, clusterName string, role runtimeinterface.Role) error
- func (s *Vault) GetAccessInfo(ctx context.Context, clusterName string) (string, error)
- func (s *Vault) GetCABundle(ctx context.Context) (string, error)
- func (s *Vault) GetRole(ctx context.Context, clusterName string, role runtimeinterface.Role) (*runtimeinterface.Role, error)
- func (s *Vault) GetSecretDatabaseName(ctx context.Context, repo runtimeinterface.SecretInfo) (string, error)
- func (s *Vault) GetSecretKey(ctx context.Context, repo runtimeinterface.SecretInfo) (string, error)
- func (s *Vault) GrantPermission(ctx context.Context, repo runtimeinterface.SecretInfo, ...) error
- func (s *Vault) Logout() error
- func (s *Vault) RevokePermission(ctx context.Context, repo runtimeinterface.SecretInfo, ...) error
Constants ¶
View Source
const ( CLUSTER_NAMESPACE = "cluster" CLUSTER_PATH = "kubernetes/%s/default/admin" CLUSTER_KUBECONFIG_KEY = "kubeconfig" )
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(cfg nautescfg.SecretRepo) (runtimeinterface.SecretClient, error)
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 (*Vault) GetCABundle ¶ added in v0.3.0
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) RevokePermission ¶
func (s *Vault) RevokePermission(ctx context.Context, repo runtimeinterface.SecretInfo, destUser, destEnv string) error
Click to show internal directories.
Click to hide internal directories.