Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizationToken ¶
func GetAuthorizationToken(ctx context.Context, region string, credentials aws.Credentials) (ecr_types.AuthorizationData, error)
func Initialize ¶
Types ¶
type StringableCredentials ¶
type StringableCredentials struct { aws.Credentials // Region specifies which region to connect to when using this credential Region string }
func (StringableCredentials) String ¶
func (c StringableCredentials) String() string
type Token ¶
type Token struct { Creds StringableCredentials CurrentToken *ecr_types.AuthorizationData TokenValidityDuration time.Duration LastQueriedAt time.Time }
func NewECRToken ¶
func NewECRToken(ctx context.Context, creds StringableCredentials) (*Token, error)
type TokenManager ¶
func NewECRTokenManager ¶
func NewECRTokenManager(logger logur.Logger) *TokenManager
func (*TokenManager) GetAuthorizationToken ¶
func (t *TokenManager) GetAuthorizationToken(ctx context.Context, key StringableCredentials) (ecr_types.AuthorizationData, error)
Click to show internal directories.
Click to hide internal directories.