secret

package
v0.0.0-...-9d91e49 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretClient

type SecretClient struct {
	Client *vault.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *SecretClient

func (*SecretClient) AddPolicy

func (sc *SecretClient) AddPolicy(policyName, path string, capabilities []string) error

새 경로에 Vault Secret이 생성될 때마다 자동으로 Policy 생성 Role에 해당 경로에 대한 Read/Write Policy를 관리자가 할당하도록 설정

func (*SecretClient) ApplyAppRoleWithPolicies

func (sc *SecretClient) ApplyAppRoleWithPolicies(role string, policies []string) (string, error)

func (*SecretClient) GetSecretV2

func (sc *SecretClient) GetSecretV2(token, rootPath, path, key string) (string, error)

func (*SecretClient) LogInWithAppRole

func (sc *SecretClient) LogInWithAppRole(roleID, secretID string) error

func (*SecretClient) LogInWithRoot

func (sc *SecretClient) LogInWithRoot()

func (*SecretClient) LogOut

func (sc *SecretClient) LogOut()

func (*SecretClient) PutSecretV2

func (sc *SecretClient) PutSecretV2(roleID, rootPath, path string, kv map[string]any) error

Jump to

Keyboard shortcuts

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