Documentation ¶
Index ¶
- func InjectZapLogger(conf util.LoggerConfig)
- func NewCognitoUserPoolClient(region string, userPoolID string, clientID string) userpool.Client
- func NewDummyIDGenerator() entity.IDGenerator
- func NewDummyIDValidator() entity.IDValidator
- func NewDummyUsersReader(idManager entity.IDManager) entity.UsersReader
- func NewDynamoDBAttributeValueMapper() adapter.AttributeValueMapper
- func NewDynamoDBClient(creds adapter.DynamoDBCredentials, region string) (*dynamoDBClient, error)
- func NewDynamoDBClientFromEnv(region string) (*dynamoDBClient, error)
- func NewDynamoDBCredentials(accessKeyID string, secretAccessKey string) *dynamoDBCredentials
- func NewSSMClient(creds adapter.Credentials, region string) (adapter.Client, error)
- func NewSSMClientFromEnv(region string) (adapter.Client, error)
- func NewULIDGenerator() entity.IDGenerator
- func NewULIDValidator() entity.IDValidator
- func NewUUIDGenerator() entity.IDGenerator
- func NewUUIDValidator() entity.IDValidator
- func NewZapLogger(conf util.LoggerConfig) (util.Logger, error)
- type JWTManager
- type SlackConfig
- type SlackNotifier
- type TokenManagerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectZapLogger ¶
func InjectZapLogger(conf util.LoggerConfig)
func NewDummyUsersReader ¶
func NewDummyUsersReader(idManager entity.IDManager) entity.UsersReader
func NewDynamoDBAttributeValueMapper ¶
func NewDynamoDBAttributeValueMapper() adapter.AttributeValueMapper
func NewDynamoDBClient ¶
func NewDynamoDBClient(creds adapter.DynamoDBCredentials, region string) (*dynamoDBClient, error)
func NewDynamoDBCredentials ¶
func NewSSMClient ¶
func NewZapLogger ¶
func NewZapLogger(conf util.LoggerConfig) (util.Logger, error)
Types ¶
type JWTManager ¶
type JWTManager interface { ReadRSAPrivatePemFile(path string) (jwk.Key, error) ReadJWKSetFile(path string) (jwk.Set, error) GenerateToken(subject string) (jwt.Token, error) Sign(token jwt.Token, key jwk.Key) ([]byte, error) Verify(signed []byte, key jwk.Key) ([]byte, error) VerifyWithKeySet(signed []byte, publicKeySet jwk.Set) ([]byte, error) }
func NewJWTManager ¶
func NewJWTManager(config TokenManagerConfig, idgen entity.IDGenerator) JWTManager
type SlackNotifier ¶
type SlackNotifier struct {
// contains filtered or unexported fields
}
func NewSlackNotifier ¶
func NewSlackNotifier(token string, config SlackConfig) *SlackNotifier
type TokenManagerConfig ¶
type TokenManagerConfig interface { Issuer() string Audience() []string ValidityDuration() time.Duration }
func NewTokenManagerConfig ¶
func NewTokenManagerConfig( issuer string, audience []string, validityDuration time.Duration, ) TokenManagerConfig
Click to show internal directories.
Click to hide internal directories.