Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct { Name string `json:"name"` RoleArn string `json:"roleArn"` Duration int64 `json:"duration"` }
Account represents the configuration for an assumable role.
type Configuration ¶ added in v0.9.0
Configuration passed to the Lambda, pointing to an S3 object with the team configuration.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles API calls to AWS.
func NewManager ¶
NewManager creates a new manager from an existing AWS session.
func NewTestManager ¶
func NewTestManager(sm SecretsClient, sts STSClient, s3 S3Client) *Manager
NewTestManager ...
func (*Manager) AssumeRole ¶
AssumeRole on the given role ARN and the given team name (identifier).
func (*Manager) ReadConfig ¶ added in v0.9.0
ReadConfig from S3.
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 SecretsClient ¶ added in v0.3.0
type SecretsClient secretsmanageriface.SecretsManagerAPI
SecretsClient for testing purposes.
Click to show internal directories.
Click to hide internal directories.