Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LoginURL path to the Hub login URL LoginURL = "/v2/users/login" // ScanTokenURL path to the Hub provider token generation URL ScanTokenURL = "/api/scan/v1/provider/token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Domain string
}
Client sends authenticates on Hub and sends requests to the API
type Instance ¶
Instance stores all the specific pieces needed to dialog with Hub
func GetInstance ¶
func GetInstance() *Instance
GetInstance returns the current hub instance, which can be overridden by DOCKER_SCAN_HUB_INSTANCE env var
Click to show internal directories.
Click to hide internal directories.