Documentation ¶
Index ¶
- Constants
- type GetStatsV2
- type GetStatsV2Handler
- type GetStatsV2HandlerFunc
- type GetStatsV2InternalServerError
- type GetStatsV2NotFound
- type GetStatsV2OK
- func (o *GetStatsV2OK) SetLink(link string)
- func (o *GetStatsV2OK) SetPayload(payload []*models.StatsObject)
- func (o *GetStatsV2OK) WithLink(link string) *GetStatsV2OK
- func (o *GetStatsV2OK) WithPayload(payload []*models.StatsObject) *GetStatsV2OK
- func (o *GetStatsV2OK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetStatsV2Params
- type GetStatsV2URL
- func (o *GetStatsV2URL) Build() (*url.URL, error)
- func (o *GetStatsV2URL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStatsV2URL) Must(u *url.URL, err error) *url.URL
- func (o *GetStatsV2URL) SetBasePath(bp string)
- func (o *GetStatsV2URL) String() string
- func (o *GetStatsV2URL) StringFull(scheme, host string) string
- func (o *GetStatsV2URL) WithBasePath(bp string) *GetStatsV2URL
- type ListErrorsV2
- type ListErrorsV2Handler
- type ListErrorsV2HandlerFunc
- type ListErrorsV2InternalServerError
- type ListErrorsV2NotFound
- type ListErrorsV2OK
- func (o *ListErrorsV2OK) SetLink(link string)
- func (o *ListErrorsV2OK) SetPayload(payload []*models.ErrorV2)
- func (o *ListErrorsV2OK) WithLink(link string) *ListErrorsV2OK
- func (o *ListErrorsV2OK) WithPayload(payload []*models.ErrorV2) *ListErrorsV2OK
- func (o *ListErrorsV2OK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListErrorsV2Params
- type ListErrorsV2URL
- func (o *ListErrorsV2URL) Build() (*url.URL, error)
- func (o *ListErrorsV2URL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListErrorsV2URL) Must(u *url.URL, err error) *url.URL
- func (o *ListErrorsV2URL) SetBasePath(bp string)
- func (o *ListErrorsV2URL) String() string
- func (o *ListErrorsV2URL) StringFull(scheme, host string) string
- func (o *ListErrorsV2URL) WithBasePath(bp string) *ListErrorsV2URL
- type ListProjects
- type ListProjectsHandler
- type ListProjectsHandlerFunc
- type ListProjectsInternalServerError
- type ListProjectsNotFound
- type ListProjectsOK
- func (o *ListProjectsOK) SetLink(link string)
- func (o *ListProjectsOK) SetPayload(payload []*models.Project)
- func (o *ListProjectsOK) WithLink(link string) *ListProjectsOK
- func (o *ListProjectsOK) WithPayload(payload []*models.Project) *ListProjectsOK
- func (o *ListProjectsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListProjectsParams
- type ListProjectsURL
- func (o *ListProjectsURL) Build() (*url.URL, error)
- func (o *ListProjectsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListProjectsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListProjectsURL) SetBasePath(bp string)
- func (o *ListProjectsURL) String() string
- func (o *ListProjectsURL) StringFull(scheme, host string) string
- func (o *ListProjectsURL) WithBasePath(bp string) *ListProjectsURL
- type ListProjectsUnauthorized
Constants ¶
const GetStatsV2InternalServerErrorCode int = 500
GetStatsV2InternalServerErrorCode is the HTTP code returned for type GetStatsV2InternalServerError
const GetStatsV2NotFoundCode int = 404
GetStatsV2NotFoundCode is the HTTP code returned for type GetStatsV2NotFound
const GetStatsV2OKCode int = 200
GetStatsV2OKCode is the HTTP code returned for type GetStatsV2OK
const ListErrorsV2InternalServerErrorCode int = 500
ListErrorsV2InternalServerErrorCode is the HTTP code returned for type ListErrorsV2InternalServerError
const ListErrorsV2NotFoundCode int = 404
ListErrorsV2NotFoundCode is the HTTP code returned for type ListErrorsV2NotFound
const ListErrorsV2OKCode int = 200
ListErrorsV2OKCode is the HTTP code returned for type ListErrorsV2OK
const ListProjectsInternalServerErrorCode int = 500
ListProjectsInternalServerErrorCode is the HTTP code returned for type ListProjectsInternalServerError
const ListProjectsNotFoundCode int = 404
ListProjectsNotFoundCode is the HTTP code returned for type ListProjectsNotFound
const ListProjectsOKCode int = 200
ListProjectsOKCode is the HTTP code returned for type ListProjectsOK
ListProjectsUnauthorizedCode is the HTTP code returned for type ListProjectsUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetStatsV2 ¶
type GetStatsV2 struct { Context *middleware.Context Handler GetStatsV2Handler }
GetStatsV2 swagger:route GET /api/0/organizations/{groupId}/stats_v2 errorsV2 getStatsV2
Stats of events received for the group
func NewGetStatsV2 ¶
func NewGetStatsV2(ctx *middleware.Context, handler GetStatsV2Handler) *GetStatsV2
NewGetStatsV2 creates a new http.Handler for the get stats v2 operation
func (*GetStatsV2) ServeHTTP ¶
func (o *GetStatsV2) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStatsV2Handler ¶
type GetStatsV2Handler interface {
Handle(GetStatsV2Params) middleware.Responder
}
GetStatsV2Handler interface for that can handle valid get stats v2 params
type GetStatsV2HandlerFunc ¶
type GetStatsV2HandlerFunc func(GetStatsV2Params) middleware.Responder
GetStatsV2HandlerFunc turns a function with the right signature into a get stats v2 handler
func (GetStatsV2HandlerFunc) Handle ¶
func (fn GetStatsV2HandlerFunc) Handle(params GetStatsV2Params) middleware.Responder
Handle executing the request and returning a response
type GetStatsV2InternalServerError ¶
type GetStatsV2InternalServerError struct { }
GetStatsV2InternalServerError Internal error
swagger:response getStatsV2InternalServerError
func NewGetStatsV2InternalServerError ¶
func NewGetStatsV2InternalServerError() *GetStatsV2InternalServerError
NewGetStatsV2InternalServerError creates GetStatsV2InternalServerError with default headers values
func (*GetStatsV2InternalServerError) WriteResponse ¶
func (o *GetStatsV2InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStatsV2NotFound ¶
type GetStatsV2NotFound struct { }
GetStatsV2NotFound Project not found
swagger:response getStatsV2NotFound
func NewGetStatsV2NotFound ¶
func NewGetStatsV2NotFound() *GetStatsV2NotFound
NewGetStatsV2NotFound creates GetStatsV2NotFound with default headers values
func (*GetStatsV2NotFound) WriteResponse ¶
func (o *GetStatsV2NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStatsV2OK ¶
type GetStatsV2OK struct { /*Link header containing pagination information (previous and next pages). https://docs.gitlab.com/ee/api/#pagination-link-header */ Link string `json:"Link"` /* In: Body */ Payload []*models.StatsObject `json:"body,omitempty"` }
GetStatsV2OK Success
swagger:response getStatsV2OK
func NewGetStatsV2OK ¶
func NewGetStatsV2OK() *GetStatsV2OK
NewGetStatsV2OK creates GetStatsV2OK with default headers values
func (*GetStatsV2OK) SetLink ¶
func (o *GetStatsV2OK) SetLink(link string)
SetLink sets the link to the get stats v2 o k response
func (*GetStatsV2OK) SetPayload ¶
func (o *GetStatsV2OK) SetPayload(payload []*models.StatsObject)
SetPayload sets the payload to the get stats v2 o k response
func (*GetStatsV2OK) WithLink ¶
func (o *GetStatsV2OK) WithLink(link string) *GetStatsV2OK
WithLink adds the link to the get stats v2 o k response
func (*GetStatsV2OK) WithPayload ¶
func (o *GetStatsV2OK) WithPayload(payload []*models.StatsObject) *GetStatsV2OK
WithPayload adds the payload to the get stats v2 o k response
func (*GetStatsV2OK) WriteResponse ¶
func (o *GetStatsV2OK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStatsV2Params ¶
type GetStatsV2Params struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the group Required: true In: path */ GroupID uint64 }
GetStatsV2Params contains all the bound params for the get stats v2 operation typically these are obtained from a http.Request
swagger:parameters getStatsV2
func NewGetStatsV2Params ¶
func NewGetStatsV2Params() GetStatsV2Params
NewGetStatsV2Params creates a new GetStatsV2Params object
There are no default values defined in the spec.
func (*GetStatsV2Params) BindRequest ¶
func (o *GetStatsV2Params) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetStatsV2Params() beforehand.
type GetStatsV2URL ¶
type GetStatsV2URL struct { GroupID uint64 // contains filtered or unexported fields }
GetStatsV2URL generates an URL for the get stats v2 operation
func (*GetStatsV2URL) Build ¶
func (o *GetStatsV2URL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStatsV2URL) BuildFull ¶
func (o *GetStatsV2URL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStatsV2URL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStatsV2URL) SetBasePath ¶
func (o *GetStatsV2URL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetStatsV2URL) String ¶
func (o *GetStatsV2URL) String() string
String returns the string representation of the path with query string
func (*GetStatsV2URL) StringFull ¶
func (o *GetStatsV2URL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStatsV2URL) WithBasePath ¶
func (o *GetStatsV2URL) WithBasePath(bp string) *GetStatsV2URL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ListErrorsV2 ¶
type ListErrorsV2 struct { Context *middleware.Context Handler ListErrorsV2Handler }
ListErrorsV2 swagger:route GET /api/0/organizations/{groupId}/issues/ errorsV2 listErrorsV2
List of errors(V2)
func NewListErrorsV2 ¶
func NewListErrorsV2(ctx *middleware.Context, handler ListErrorsV2Handler) *ListErrorsV2
NewListErrorsV2 creates a new http.Handler for the list errors v2 operation
func (*ListErrorsV2) ServeHTTP ¶
func (o *ListErrorsV2) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListErrorsV2Handler ¶
type ListErrorsV2Handler interface {
Handle(ListErrorsV2Params) middleware.Responder
}
ListErrorsV2Handler interface for that can handle valid list errors v2 params
type ListErrorsV2HandlerFunc ¶
type ListErrorsV2HandlerFunc func(ListErrorsV2Params) middleware.Responder
ListErrorsV2HandlerFunc turns a function with the right signature into a list errors v2 handler
func (ListErrorsV2HandlerFunc) Handle ¶
func (fn ListErrorsV2HandlerFunc) Handle(params ListErrorsV2Params) middleware.Responder
Handle executing the request and returning a response
type ListErrorsV2InternalServerError ¶
type ListErrorsV2InternalServerError struct { }
ListErrorsV2InternalServerError Internal error
swagger:response listErrorsV2InternalServerError
func NewListErrorsV2InternalServerError ¶
func NewListErrorsV2InternalServerError() *ListErrorsV2InternalServerError
NewListErrorsV2InternalServerError creates ListErrorsV2InternalServerError with default headers values
func (*ListErrorsV2InternalServerError) WriteResponse ¶
func (o *ListErrorsV2InternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListErrorsV2NotFound ¶
type ListErrorsV2NotFound struct { }
ListErrorsV2NotFound Error not found
swagger:response listErrorsV2NotFound
func NewListErrorsV2NotFound ¶
func NewListErrorsV2NotFound() *ListErrorsV2NotFound
NewListErrorsV2NotFound creates ListErrorsV2NotFound with default headers values
func (*ListErrorsV2NotFound) WriteResponse ¶
func (o *ListErrorsV2NotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListErrorsV2OK ¶
type ListErrorsV2OK struct { /*Link header containing pagination information (previous and next pages). https://docs.gitlab.com/ee/api/#pagination-link-header */ Link string `json:"Link"` /* In: Body */ Payload []*models.ErrorV2 `json:"body,omitempty"` }
ListErrorsV2OK Success
swagger:response listErrorsV2OK
func NewListErrorsV2OK ¶
func NewListErrorsV2OK() *ListErrorsV2OK
NewListErrorsV2OK creates ListErrorsV2OK with default headers values
func (*ListErrorsV2OK) SetLink ¶
func (o *ListErrorsV2OK) SetLink(link string)
SetLink sets the link to the list errors v2 o k response
func (*ListErrorsV2OK) SetPayload ¶
func (o *ListErrorsV2OK) SetPayload(payload []*models.ErrorV2)
SetPayload sets the payload to the list errors v2 o k response
func (*ListErrorsV2OK) WithLink ¶
func (o *ListErrorsV2OK) WithLink(link string) *ListErrorsV2OK
WithLink adds the link to the list errors v2 o k response
func (*ListErrorsV2OK) WithPayload ¶
func (o *ListErrorsV2OK) WithPayload(payload []*models.ErrorV2) *ListErrorsV2OK
WithPayload adds the payload to the list errors v2 o k response
func (*ListErrorsV2OK) WriteResponse ¶
func (o *ListErrorsV2OK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListErrorsV2Params ¶
type ListErrorsV2Params struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Optional end of the stat period in format 2006-01-02T15:04:05 In: query */ End *string /* In: query */ Environment *string /*ID of the group Required: true In: path */ GroupID uint64 /*Number of entries to return Maximum: 10000 Minimum: 1 In: query Default: 20 */ Limit *int64 /*ID of the project where the error was created Required: true In: query Collection Format: multi */ Project []uint64 /* In: query */ Query *string /*Optional sorting column of the entries In: query Default: "date" */ Sort *string /*Optional start of the stat period in format 2006-01-02T15:04:05 In: query */ Start *string /* In: query Default: "unresolved" */ Status *string }
ListErrorsV2Params contains all the bound params for the list errors v2 operation typically these are obtained from a http.Request
swagger:parameters listErrorsV2
func NewListErrorsV2Params ¶
func NewListErrorsV2Params() ListErrorsV2Params
NewListErrorsV2Params creates a new ListErrorsV2Params object with the default values initialized.
func (*ListErrorsV2Params) BindRequest ¶
func (o *ListErrorsV2Params) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewListErrorsV2Params() beforehand.
type ListErrorsV2URL ¶
type ListErrorsV2URL struct { GroupID uint64 End *string Environment *string Limit *int64 Project []uint64 Query *string Sort *string Start *string Status *string // contains filtered or unexported fields }
ListErrorsV2URL generates an URL for the list errors v2 operation
func (*ListErrorsV2URL) Build ¶
func (o *ListErrorsV2URL) Build() (*url.URL, error)
Build a url path and query string
func (*ListErrorsV2URL) BuildFull ¶
func (o *ListErrorsV2URL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListErrorsV2URL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListErrorsV2URL) SetBasePath ¶
func (o *ListErrorsV2URL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ListErrorsV2URL) String ¶
func (o *ListErrorsV2URL) String() string
String returns the string representation of the path with query string
func (*ListErrorsV2URL) StringFull ¶
func (o *ListErrorsV2URL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListErrorsV2URL) WithBasePath ¶
func (o *ListErrorsV2URL) WithBasePath(bp string) *ListErrorsV2URL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ListProjects ¶
type ListProjects struct { Context *middleware.Context Handler ListProjectsHandler }
ListProjects swagger:route GET /api/0/organizations/{groupId}/projects/ errorsV2 listProjects
List of projects
func NewListProjects ¶
func NewListProjects(ctx *middleware.Context, handler ListProjectsHandler) *ListProjects
NewListProjects creates a new http.Handler for the list projects operation
func (*ListProjects) ServeHTTP ¶
func (o *ListProjects) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListProjectsHandler ¶
type ListProjectsHandler interface {
Handle(ListProjectsParams) middleware.Responder
}
ListProjectsHandler interface for that can handle valid list projects params
type ListProjectsHandlerFunc ¶
type ListProjectsHandlerFunc func(ListProjectsParams) middleware.Responder
ListProjectsHandlerFunc turns a function with the right signature into a list projects handler
func (ListProjectsHandlerFunc) Handle ¶
func (fn ListProjectsHandlerFunc) Handle(params ListProjectsParams) middleware.Responder
Handle executing the request and returning a response
type ListProjectsInternalServerError ¶
type ListProjectsInternalServerError struct { }
ListProjectsInternalServerError Internal error
swagger:response listProjectsInternalServerError
func NewListProjectsInternalServerError ¶
func NewListProjectsInternalServerError() *ListProjectsInternalServerError
NewListProjectsInternalServerError creates ListProjectsInternalServerError with default headers values
func (*ListProjectsInternalServerError) WriteResponse ¶
func (o *ListProjectsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListProjectsNotFound ¶
type ListProjectsNotFound struct { }
ListProjectsNotFound Project not found
swagger:response listProjectsNotFound
func NewListProjectsNotFound ¶
func NewListProjectsNotFound() *ListProjectsNotFound
NewListProjectsNotFound creates ListProjectsNotFound with default headers values
func (*ListProjectsNotFound) WriteResponse ¶
func (o *ListProjectsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListProjectsOK ¶
type ListProjectsOK struct { /*Link header containing pagination information (previous and next pages). https://docs.gitlab.com/ee/api/#pagination-link-header */ Link string `json:"Link"` /* In: Body */ Payload []*models.Project `json:"body,omitempty"` }
ListProjectsOK Success
swagger:response listProjectsOK
func NewListProjectsOK ¶
func NewListProjectsOK() *ListProjectsOK
NewListProjectsOK creates ListProjectsOK with default headers values
func (*ListProjectsOK) SetLink ¶
func (o *ListProjectsOK) SetLink(link string)
SetLink sets the link to the list projects o k response
func (*ListProjectsOK) SetPayload ¶
func (o *ListProjectsOK) SetPayload(payload []*models.Project)
SetPayload sets the payload to the list projects o k response
func (*ListProjectsOK) WithLink ¶
func (o *ListProjectsOK) WithLink(link string) *ListProjectsOK
WithLink adds the link to the list projects o k response
func (*ListProjectsOK) WithPayload ¶
func (o *ListProjectsOK) WithPayload(payload []*models.Project) *ListProjectsOK
WithPayload adds the payload to the list projects o k response
func (*ListProjectsOK) WriteResponse ¶
func (o *ListProjectsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListProjectsParams ¶
type ListProjectsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the group Required: true In: path */ GroupID uint64 }
ListProjectsParams contains all the bound params for the list projects operation typically these are obtained from a http.Request
swagger:parameters listProjects
func NewListProjectsParams ¶
func NewListProjectsParams() ListProjectsParams
NewListProjectsParams creates a new ListProjectsParams object
There are no default values defined in the spec.
func (*ListProjectsParams) BindRequest ¶
func (o *ListProjectsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewListProjectsParams() beforehand.
type ListProjectsURL ¶
type ListProjectsURL struct { GroupID uint64 // contains filtered or unexported fields }
ListProjectsURL generates an URL for the list projects operation
func (*ListProjectsURL) Build ¶
func (o *ListProjectsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListProjectsURL) BuildFull ¶
func (o *ListProjectsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListProjectsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListProjectsURL) SetBasePath ¶
func (o *ListProjectsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ListProjectsURL) String ¶
func (o *ListProjectsURL) String() string
String returns the string representation of the path with query string
func (*ListProjectsURL) StringFull ¶
func (o *ListProjectsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListProjectsURL) WithBasePath ¶
func (o *ListProjectsURL) WithBasePath(bp string) *ListProjectsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ListProjectsUnauthorized ¶
type ListProjectsUnauthorized struct { }
ListProjectsUnauthorized Unauthorized
swagger:response listProjectsUnauthorized
func NewListProjectsUnauthorized ¶
func NewListProjectsUnauthorized() *ListProjectsUnauthorized
NewListProjectsUnauthorized creates ListProjectsUnauthorized with default headers values
func (*ListProjectsUnauthorized) WriteResponse ¶
func (o *ListProjectsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client