authtoken

package
v0.0.0-...-b46b529 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	Endpoint  string
	Token     string
	ExpiresAt time.Time
	// contains filtered or unexported fields
}

func NewAuthToken

func NewAuthToken(provider TokenProvider) *AuthToken

func (*AuthToken) Generate

func (t *AuthToken) Generate() error

type TokenProvider

type TokenProvider interface {
	GetAuthorizationToken(input *ecr.GetAuthorizationTokenInput) (*ecr.GetAuthorizationTokenOutput, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL