Documentation ¶
Index ¶
- Constants
- Variables
- func Close() error
- func NewCredentials(ctx context.Context) (option.ClientOption, error)
- func SetLogger(logger *slog.Logger)
- func SetSSMClient(client GetParameterAPIClient)
- func WithCredentials(ctx context.Context) option.ClientOption
- type CredentialsManager
- func (mgr *CredentialsManager) Close() error
- func (mgr *CredentialsManager) NewCredentialsOption(ctx context.Context) (option.ClientOption, error)
- func (mgr *CredentialsManager) SetLogger(logger *slog.Logger)
- func (mgr *CredentialsManager) SetSSMClient(client GetParameterAPIClient)
- func (mgr *CredentialsManager) WithCredentials(ctx context.Context) option.ClientOption
- type GetParameterAPIClient
Constants ¶
View Source
const ( CacheLifetimeSeconds = 4 * 60 ServiceAccountImpersonationLifetimeSeconds = 5 * 60 SubjectTokenTypeForAWS = "urn:ietf:params:aws:token-type:aws4_request" )
Variables ¶
View Source
var DefaultCredentialsManager = &CredentialsManager{}
Functions ¶
func NewCredentials ¶
func NewCredentials(ctx context.Context) (option.ClientOption, error)
func SetSSMClient ¶
func SetSSMClient(client GetParameterAPIClient)
func WithCredentials ¶
func WithCredentials(ctx context.Context) option.ClientOption
Types ¶
type CredentialsManager ¶
type CredentialsManager struct {
// contains filtered or unexported fields
}
func (*CredentialsManager) Close ¶
func (mgr *CredentialsManager) Close() error
func (*CredentialsManager) NewCredentialsOption ¶
func (mgr *CredentialsManager) NewCredentialsOption(ctx context.Context) (option.ClientOption, error)
func (*CredentialsManager) SetLogger ¶
func (mgr *CredentialsManager) SetLogger(logger *slog.Logger)
func (*CredentialsManager) SetSSMClient ¶
func (mgr *CredentialsManager) SetSSMClient(client GetParameterAPIClient)
func (*CredentialsManager) WithCredentials ¶
func (mgr *CredentialsManager) WithCredentials(ctx context.Context) option.ClientOption
type GetParameterAPIClient ¶
type GetParameterAPIClient interface {
GetParameter(ctx context.Context, input *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
}
Click to show internal directories.
Click to hide internal directories.