Documentation ¶
Index ¶
- Variables
- func NewHTTPError(r *http.Response) error
- type BasicAuth
- type GitUploadPackService
- func (s *GitUploadPackService) Connect(url common.Endpoint) error
- func (s *GitUploadPackService) ConnectWithAuth(url common.Endpoint, auth common.AuthMethod) error
- func (s *GitUploadPackService) Fetch(r *common.GitUploadPackRequest) (io.ReadCloser, error)
- func (s *GitUploadPackService) Info() (*common.GitUploadPackInfo, error)
- type HTTPAuthMethod
- type HTTPError
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidAuthMethodErr = errors.New("invalid http auth method: a http.HTTPAuthMethod should be provided.")
Functions ¶
func NewHTTPError ¶
Types ¶
type BasicAuth ¶
type BasicAuth struct {
// contains filtered or unexported fields
}
func NewBasicAuth ¶
type GitUploadPackService ¶
func NewGitUploadPackService ¶
func NewGitUploadPackService(url string) *GitUploadPackService
func (*GitUploadPackService) Connect ¶
func (s *GitUploadPackService) Connect(url common.Endpoint) error
func (*GitUploadPackService) ConnectWithAuth ¶
func (s *GitUploadPackService) ConnectWithAuth(url common.Endpoint, auth common.AuthMethod) error
func (*GitUploadPackService) Fetch ¶
func (s *GitUploadPackService) Fetch(r *common.GitUploadPackRequest) (io.ReadCloser, error)
func (*GitUploadPackService) Info ¶
func (s *GitUploadPackService) Info() (*common.GitUploadPackInfo, error)
type HTTPAuthMethod ¶
type HTTPAuthMethod interface { common.AuthMethod // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.