Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator logs on docker Hub and retrieves a DockerScanID if the one stored locally has expired
func NewAuthenticator ¶
func NewAuthenticator(jwks jose.JSONWebKeySet, apiHubBaseURL string) *Authenticator
NewAuthenticator returns an Authenticator configured to run against Docker Hub prod or staging
func (*Authenticator) GetToken ¶
func (a *Authenticator) GetToken(hubAuthConfig types.AuthConfig) (string, error)
GetToken checks the local DockerScanID content for expiry, if expired it negotiates a new one on Docker Hub.
Click to show internal directories.
Click to hide internal directories.