Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenResponse ¶
TokenResponse implementation for Bearer authentication
func RequestToken ¶
func RequestToken(realm, service, repoPath, username, password string) (*TokenResponse, error)
RequestToken requests Bearer token from authentication service
func (TokenResponse) AuthHeader ¶
func (tr TokenResponse) AuthHeader() string
AuthHeader returns contents of the Authorization HTTP header
func (TokenResponse) ExpiresIn ¶
func (tr TokenResponse) ExpiresIn() int
ExpiresIn token lifetime in seconds
Click to show internal directories.
Click to hide internal directories.