Documentation
¶
Index ¶
- type SecretClient
- func (sc *SecretClient) AddPolicy(policyName, path string, capabilities []string) error
- func (sc *SecretClient) ApplyAppRoleWithPolicies(role string, policies []string) (string, error)
- func (sc *SecretClient) GetSecretV2(token, rootPath, path, key string) (string, error)
- func (sc *SecretClient) LogInWithAppRole(roleID, secretID string) error
- func (sc *SecretClient) LogInWithRoot()
- func (sc *SecretClient) LogOut()
- func (sc *SecretClient) PutSecretV2(roleID, rootPath, path string, kv map[string]any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretClient ¶
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
Click to show internal directories.
Click to hide internal directories.