Documentation
¶
Index ¶
- type GetAllRepos
- type GetAllReposDefault
- func (o *GetAllReposDefault) SetPayload(payload *models.Error)
- func (o *GetAllReposDefault) SetStatusCode(code int)
- func (o *GetAllReposDefault) WithPayload(payload *models.Error) *GetAllReposDefault
- func (o *GetAllReposDefault) WithStatusCode(code int) *GetAllReposDefault
- func (o *GetAllReposDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetAllReposHandler
- type GetAllReposHandlerFunc
- type GetAllReposOK
- type GetAllReposParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetAllRepos ¶
type GetAllRepos struct { Context *middleware.Context Handler GetAllReposHandler }
GetAllRepos swagger:route GET /v1/repos repositories getAllRepos
get all repositories enabled in the backend
func NewGetAllRepos ¶
func NewGetAllRepos(ctx *middleware.Context, handler GetAllReposHandler) *GetAllRepos
NewGetAllRepos creates a new http.Handler for the get all repos operation
func (*GetAllRepos) ServeHTTP ¶
func (o *GetAllRepos) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAllReposDefault ¶
type GetAllReposDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetAllReposDefault unexpected error
swagger:response getAllReposDefault
func NewGetAllReposDefault ¶
func NewGetAllReposDefault(code int) *GetAllReposDefault
NewGetAllReposDefault creates GetAllReposDefault with default headers values
func (*GetAllReposDefault) SetPayload ¶
func (o *GetAllReposDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get all repos default response
func (*GetAllReposDefault) SetStatusCode ¶
func (o *GetAllReposDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get all repos default response
func (*GetAllReposDefault) WithPayload ¶
func (o *GetAllReposDefault) WithPayload(payload *models.Error) *GetAllReposDefault
WithPayload adds the payload to the get all repos default response
func (*GetAllReposDefault) WithStatusCode ¶
func (o *GetAllReposDefault) WithStatusCode(code int) *GetAllReposDefault
WithStatusCode adds the status to the get all repos default response
func (*GetAllReposDefault) WriteResponse ¶
func (o *GetAllReposDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAllReposHandler ¶
type GetAllReposHandler interface {
Handle(GetAllReposParams) middleware.Responder
}
GetAllReposHandler interface for that can handle valid get all repos params
type GetAllReposHandlerFunc ¶
type GetAllReposHandlerFunc func(GetAllReposParams) middleware.Responder
GetAllReposHandlerFunc turns a function with the right signature into a get all repos handler
func (GetAllReposHandlerFunc) Handle ¶
func (fn GetAllReposHandlerFunc) Handle(params GetAllReposParams) middleware.Responder
Handle executing the request and returning a response
type GetAllReposOK ¶
type GetAllReposOK struct { // In: body Payload *models.ResourceArrayData `json:"body,omitempty"` }
GetAllReposOK repositories response
swagger:response getAllReposOK
func NewGetAllReposOK ¶
func NewGetAllReposOK() *GetAllReposOK
NewGetAllReposOK creates GetAllReposOK with default headers values
func (*GetAllReposOK) SetPayload ¶
func (o *GetAllReposOK) SetPayload(payload *models.ResourceArrayData)
SetPayload sets the payload to the get all repos o k response
func (*GetAllReposOK) WithPayload ¶
func (o *GetAllReposOK) WithPayload(payload *models.ResourceArrayData) *GetAllReposOK
WithPayload adds the payload to the get all repos o k response
func (*GetAllReposOK) WriteResponse ¶
func (o *GetAllReposOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAllReposParams ¶
GetAllReposParams contains all the bound params for the get all repos operation typically these are obtained from a http.Request
swagger:parameters getAllRepos
func NewGetAllReposParams ¶
func NewGetAllReposParams() GetAllReposParams
NewGetAllReposParams creates a new GetAllReposParams object with the default values initialized.
func (*GetAllReposParams) BindRequest ¶
func (o *GetAllReposParams) 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