Documentation
¶
Index ¶
- type Manager
- func (m *Manager) AttachIAMPolicy(namespace, name, serviceAccountName string) error
- func (m *Manager) CreateSecret(namespace, name, value string) error
- func (m *Manager) CreateSecretIAMPolicy(namespace, name, arn string) error
- func (m *Manager) DeleteSecret(namespace, name string) error
- func (m *Manager) DeleteSecretIAMPolicy(namespace, name string) error
- func (m *Manager) GetIAMPolicy(namespace, name string) (*iam.GetPolicyOutput, error)
- func (m *Manager) GetSecret(namespace, name string) (*sm.DescribeSecretOutput, error)
- func (m *Manager) ListSecrets(namespace string) ([]string, error)
- func (m *Manager) UpdateSecret(namespace, name, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) AttachIAMPolicy ¶
Attach a secret's IAM policy to a service account IAM role
func (*Manager) CreateSecret ¶
Create a secret with the given string value. The secret will be logically scoped to the provided namespace (i.e. will only bind to service account roles also in that namespace).
func (*Manager) CreateSecretIAMPolicy ¶
Create an IAM policy that allows reading a secret with the provided namespace/name and ARN
func (*Manager) DeleteSecret ¶
Delete a secret with the given name.
func (*Manager) DeleteSecretIAMPolicy ¶
Delete IAM Policy for a secret with the given name.
func (*Manager) GetIAMPolicy ¶
func (m *Manager) GetIAMPolicy(namespace, name string) (*iam.GetPolicyOutput, error)
Gets the IAM policy with namesapce and name.
func (*Manager) GetSecret ¶
func (m *Manager) GetSecret(namespace, name string) (*sm.DescribeSecretOutput, error)
Gets the secret with namesapce and name.
func (*Manager) ListSecrets ¶
Returns a list of all secret names for given namespace. It uses the short name defined in tags rather than the full secret name used in AWS.
func (*Manager) UpdateSecret ¶
Update a secret with the given string value in the namespace provided.