Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact interface {
TryMakeRequest(host string, w http.ResponseWriter, r *http.Request, token string, responseHandler func(*http.Response) bool) bool
}
Artifact allows to handle artifact related requests
type Auth ¶
type Auth interface { IsAuthSupported() bool RequireAuth(w http.ResponseWriter, r *http.Request) bool GetTokenIfExists(w http.ResponseWriter, r *http.Request) (string, error) CheckResponseForInvalidToken(w http.ResponseWriter, r *http.Request, resp *http.Response) bool }
Auth handles the authentication logic
Click to show internal directories.
Click to hide internal directories.