Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenResponse ¶
TokenResponse is an abstraction for aggregated token-related information we get from authentication services
func NewToken ¶
func NewToken(repo *repository.Repository, username, password string) (TokenResponse, error)
NewToken is a high-level function which: * detects authentication type (e.g. Bearer or Basic) * delegates actual authentication to type-specific implementation
Click to show internal directories.
Click to hide internal directories.