Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthInfo ¶
type AuthInfo struct { // Usernane or email Username string // Plaintext password or token Password string // repo component of URL // Usually: "username/repo_name" // But could also be: "some_repo.git" Repo string // Request that needs to be authenticated in case you need access to additional headers or information about the request Request *http.Request // Are we pushing or fetching ? Push bool Fetch bool }
type StatusError ¶
type StatusError interface {
StatusCode() int
}
StatusCode is an interface allowing authenticators to pass down error's with an http error code
Click to show internal directories.
Click to hide internal directories.