Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { LogLevel string `yaml:"log_level"` SecretID string `yaml:"secret_id"` SecretVersionID string `yaml:"secret_version_id"` AWSAccountID string `yaml:"-"` Region string Message string MessageForSystemUser string `yaml:"message_for_system_user"` Slack SlackConfig InitialPasswordLength int `yaml:"initial_password_length"` WhenLoginProfileExist string `yaml:"when_login_profile_exist"` DynamoDBTableName string `yaml:"dynamodb_table_name"` DynamoDBTTL int `yaml:"dynamodb_ttl"` }
type Controller ¶
type Controller struct { Stdin io.Reader Stdout io.Writer Stderr io.Writer Config Config SlackBot *slack.Client MessageTemplate *template.Template MessageTemplateForSystemUser *template.Template }
func (*Controller) CompileTemplate ¶
func (ctrl *Controller) CompileTemplate(text string) (*template.Template, error)
type IAM ¶ added in v0.1.1
type IAM interface {
UpdateLoginProfileWithContext(ctx aws.Context, input *iam.UpdateLoginProfileInput, opts ...request.Option) (*iam.UpdateLoginProfileOutput, error)
}
type SlackConfig ¶
type SlackConfig struct {
ChannelIDForSystemUser string `yaml:"channel_id_for_system_user"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.