auth

package
v1.0.64 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenResponse

type TokenResponse interface {
	Method() string
	Token() string
	ExpiresIn() int
	AuthHeader() string
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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