Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles API calls to AWS.
func NewManager ¶
NewManager creates a new manager from a session and region string.
func NewTestManager ¶
func NewTestManager(s SecretsManager, t STSManager) *Manager
NewTestManager ...
func (*Manager) AssumeRole ¶
func (m *Manager) AssumeRole(arn, team string) (*sts.Credentials, error)
AssumeRole on the given role ARN and the given team name (identifier).
func (*Manager) WriteCredentials ¶
func (m *Manager) WriteCredentials(creds *sts.Credentials, path string) error
WriteCredentials handles writing a set of Credentials to the parameter store.
type SecretPath ¶ added in v0.2.0
SecretPath represents the path used to write secrets into Secrets manager.
func NewSecretPath ¶ added in v0.2.0
func NewSecretPath(team, account, template string) *SecretPath
NewSecretPath ...
func (*SecretPath) String ¶ added in v0.2.0
func (p *SecretPath) String() (string, error)
type SecretsManager ¶ added in v0.2.0
type SecretsManager secretsmanageriface.SecretsManagerAPI
SecretsManager for testing purposes.
Click to show internal directories.
Click to hide internal directories.