repositories

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

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

type GetAllReposParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL