Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrProjectNotFound = errors.New("project not found")
)
View Source
var (
ErrServiceNotFound = errors.New("service not found")
)
Functions ¶
func CheckResponse ¶
CheckResponse checks the API response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. API error responses are expected to have either no response body, or a JSON response body that maps to ErrorResponse. Any other response body will be silently ignored.
Types ¶
type Client ¶
type Client struct {
BaseURL *url.URL
UserAgent string
Projects ProjectsService
Services ServicesService
// contains filtered or unexported fields
}
type ErrorResponse ¶
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
func (*ErrorResponse) HTTPStatusCode ¶
func (r *ErrorResponse) HTTPStatusCode() int
type ProjectCmd ¶
type ProjectsService ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
orbit
command
|
|
|
orbit-server
command
|
|
|
Adapted from https://code.csdn.net/flycutter/git-http-backend Adapted from https://code.csdn.net/flycutter/git-http-backend.
|
Adapted from https://code.csdn.net/flycutter/git-http-backend Adapted from https://code.csdn.net/flycutter/git-http-backend. |
Click to show internal directories.
Click to hide internal directories.