release

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const ListReleasesOKCode int = 200

ListReleasesOKCode is the HTTP code returned for type ListReleasesOK

Variables

This section is empty.

Functions

This section is empty.

Types

type ListReleases

type ListReleases struct {
	Context *middleware.Context
	Handler ListReleasesHandler
}
ListReleases swagger:route GET /releases release listReleases

Get repo releases for a given version

func NewListReleases

func NewListReleases(ctx *middleware.Context, handler ListReleasesHandler) *ListReleases

NewListReleases creates a new http.Handler for the list releases operation

func (*ListReleases) ServeHTTP

func (o *ListReleases) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListReleasesDefault

type ListReleasesDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ListReleasesDefault Generic error response.

swagger:response listReleasesDefault

func NewListReleasesDefault

func NewListReleasesDefault(code int) *ListReleasesDefault

NewListReleasesDefault creates ListReleasesDefault with default headers values

func (*ListReleasesDefault) SetPayload

func (o *ListReleasesDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the list releases default response

func (*ListReleasesDefault) SetStatusCode

func (o *ListReleasesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list releases default response

func (*ListReleasesDefault) WithPayload

func (o *ListReleasesDefault) WithPayload(payload *models.APIError) *ListReleasesDefault

WithPayload adds the payload to the list releases default response

func (*ListReleasesDefault) WithStatusCode

func (o *ListReleasesDefault) WithStatusCode(code int) *ListReleasesDefault

WithStatusCode adds the status to the list releases default response

func (*ListReleasesDefault) WriteResponse

func (o *ListReleasesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListReleasesHandler

type ListReleasesHandler interface {
	Handle(ListReleasesParams, *models.Principal) middleware.Responder
}

ListReleasesHandler interface for that can handle valid list releases params

type ListReleasesHandlerFunc

type ListReleasesHandlerFunc func(ListReleasesParams, *models.Principal) middleware.Responder

ListReleasesHandlerFunc turns a function with the right signature into a list releases handler

func (ListReleasesHandlerFunc) Handle

Handle executing the request and returning a response

type ListReleasesOK

type ListReleasesOK struct {

	/*
	  In: Body
	*/
	Payload *models.ReleaseListResponse `json:"body,omitempty"`
}

ListReleasesOK A successful response.

swagger:response listReleasesOK

func NewListReleasesOK

func NewListReleasesOK() *ListReleasesOK

NewListReleasesOK creates ListReleasesOK with default headers values

func (*ListReleasesOK) SetPayload

func (o *ListReleasesOK) SetPayload(payload *models.ReleaseListResponse)

SetPayload sets the payload to the list releases o k response

func (*ListReleasesOK) WithPayload

func (o *ListReleasesOK) WithPayload(payload *models.ReleaseListResponse) *ListReleasesOK

WithPayload adds the payload to the list releases o k response

func (*ListReleasesOK) WriteResponse

func (o *ListReleasesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListReleasesParams

type ListReleasesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Current Release
	  In: query
	*/
	Current *string
	/*filter releases
	  In: query
	*/
	Filter *string
	/*repo name
	  Required: true
	  In: query
	*/
	Repo string
	/*search content
	  In: query
	*/
	Search *string
}

ListReleasesParams contains all the bound params for the list releases operation typically these are obtained from a http.Request

swagger:parameters ListReleases

func NewListReleasesParams

func NewListReleasesParams() ListReleasesParams

NewListReleasesParams creates a new ListReleasesParams object

There are no default values defined in the spec.

func (*ListReleasesParams) BindRequest

func (o *ListReleasesParams) 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 NewListReleasesParams() beforehand.

type ListReleasesURL

type ListReleasesURL struct {
	Current *string
	Filter  *string
	Repo    string
	Search  *string
	// contains filtered or unexported fields
}

ListReleasesURL generates an URL for the list releases operation

func (*ListReleasesURL) Build

func (o *ListReleasesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListReleasesURL) BuildFull

func (o *ListReleasesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListReleasesURL) Must

func (o *ListReleasesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListReleasesURL) SetBasePath

func (o *ListReleasesURL) 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 (*ListReleasesURL) String

func (o *ListReleasesURL) String() string

String returns the string representation of the path with query string

func (*ListReleasesURL) StringFull

func (o *ListReleasesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListReleasesURL) WithBasePath

func (o *ListReleasesURL) WithBasePath(bp string) *ListReleasesURL

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

Jump to

Keyboard shortcuts

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