Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Basic ... Basic = "Basic" // Bearer ... Bearer = "Bearer" // APIKey ... APIKey = "APIKey" // APIKeyScannerAdapter ... APIKeyScannerAdapter = "X-ScannerAdapter-API-Key" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
Authorizer defines operation for authorizing the requests
func GetAuthorizer ¶
func GetAuthorizer(auth, cred string) (Authorizer, error)
GetAuthorizer is a factory method for getting an authorizer based on the given auth type
func NewAPIKeyAuthorizer ¶
func NewAPIKeyAuthorizer(key, accessCred string) Authorizer
NewAPIKeyAuthorizer news a apiKeyAuthorizer
func NewBearerAuth ¶
func NewBearerAuth(accessCred string) Authorizer
NewBearerAuth create bearer authorizer
Click to show internal directories.
Click to hide internal directories.