events

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ListEventsForbiddenCode int = 403

ListEventsForbiddenCode is the HTTP code returned for type ListEventsForbidden

View Source
const ListEventsInternalServerErrorCode int = 500

ListEventsInternalServerErrorCode is the HTTP code returned for type ListEventsInternalServerError

View Source
const ListEventsMethodNotAllowedCode int = 405

ListEventsMethodNotAllowedCode is the HTTP code returned for type ListEventsMethodNotAllowed

View Source
const ListEventsNotFoundCode int = 404

ListEventsNotFoundCode is the HTTP code returned for type ListEventsNotFound

View Source
const ListEventsOKCode int = 200

ListEventsOKCode is the HTTP code returned for type ListEventsOK

View Source
const ListEventsUnauthorizedCode int = 401

ListEventsUnauthorizedCode is the HTTP code returned for type ListEventsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type ListEvents

type ListEvents struct {
	Context *middleware.Context
	Handler ListEventsHandler
}

ListEvents swagger:route GET /clusters/{cluster_id}/events events listEvents

Lists events for a cluster

func NewListEvents

func NewListEvents(ctx *middleware.Context, handler ListEventsHandler) *ListEvents

NewListEvents creates a new http.Handler for the list events operation

func (*ListEvents) ServeHTTP

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

type ListEventsForbidden

type ListEventsForbidden struct {

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

ListEventsForbidden Forbidden.

swagger:response listEventsForbidden

func NewListEventsForbidden

func NewListEventsForbidden() *ListEventsForbidden

NewListEventsForbidden creates ListEventsForbidden with default headers values

func (*ListEventsForbidden) SetPayload

func (o *ListEventsForbidden) SetPayload(payload *models.InfraError)

SetPayload sets the payload to the list events forbidden response

func (*ListEventsForbidden) WithPayload

func (o *ListEventsForbidden) WithPayload(payload *models.InfraError) *ListEventsForbidden

WithPayload adds the payload to the list events forbidden response

func (*ListEventsForbidden) WriteResponse

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

WriteResponse to the client

type ListEventsHandler

type ListEventsHandler interface {
	Handle(ListEventsParams, interface{}) middleware.Responder
}

ListEventsHandler interface for that can handle valid list events params

type ListEventsHandlerFunc

type ListEventsHandlerFunc func(ListEventsParams, interface{}) middleware.Responder

ListEventsHandlerFunc turns a function with the right signature into a list events handler

func (ListEventsHandlerFunc) Handle

func (fn ListEventsHandlerFunc) Handle(params ListEventsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListEventsInternalServerError

type ListEventsInternalServerError struct {

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

ListEventsInternalServerError Error.

swagger:response listEventsInternalServerError

func NewListEventsInternalServerError

func NewListEventsInternalServerError() *ListEventsInternalServerError

NewListEventsInternalServerError creates ListEventsInternalServerError with default headers values

func (*ListEventsInternalServerError) SetPayload

func (o *ListEventsInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the list events internal server error response

func (*ListEventsInternalServerError) WithPayload

WithPayload adds the payload to the list events internal server error response

func (*ListEventsInternalServerError) WriteResponse

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

WriteResponse to the client

type ListEventsMethodNotAllowed

type ListEventsMethodNotAllowed struct {

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

ListEventsMethodNotAllowed Method Not Allowed.

swagger:response listEventsMethodNotAllowed

func NewListEventsMethodNotAllowed

func NewListEventsMethodNotAllowed() *ListEventsMethodNotAllowed

NewListEventsMethodNotAllowed creates ListEventsMethodNotAllowed with default headers values

func (*ListEventsMethodNotAllowed) SetPayload

func (o *ListEventsMethodNotAllowed) SetPayload(payload *models.Error)

SetPayload sets the payload to the list events method not allowed response

func (*ListEventsMethodNotAllowed) WithPayload

WithPayload adds the payload to the list events method not allowed response

func (*ListEventsMethodNotAllowed) WriteResponse

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

WriteResponse to the client

type ListEventsNotFound

type ListEventsNotFound struct {

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

ListEventsNotFound Error.

swagger:response listEventsNotFound

func NewListEventsNotFound

func NewListEventsNotFound() *ListEventsNotFound

NewListEventsNotFound creates ListEventsNotFound with default headers values

func (*ListEventsNotFound) SetPayload

func (o *ListEventsNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the list events not found response

func (*ListEventsNotFound) WithPayload

func (o *ListEventsNotFound) WithPayload(payload *models.Error) *ListEventsNotFound

WithPayload adds the payload to the list events not found response

func (*ListEventsNotFound) WriteResponse

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

WriteResponse to the client

type ListEventsOK

type ListEventsOK struct {

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

ListEventsOK Success.

swagger:response listEventsOK

func NewListEventsOK

func NewListEventsOK() *ListEventsOK

NewListEventsOK creates ListEventsOK with default headers values

func (*ListEventsOK) SetPayload

func (o *ListEventsOK) SetPayload(payload models.EventList)

SetPayload sets the payload to the list events o k response

func (*ListEventsOK) WithPayload

func (o *ListEventsOK) WithPayload(payload models.EventList) *ListEventsOK

WithPayload adds the payload to the list events o k response

func (*ListEventsOK) WriteResponse

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

WriteResponse to the client

type ListEventsParams

type ListEventsParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ClusterID strfmt.UUID
	/*
	  In: query
	*/
	HostID *strfmt.UUID
}

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

swagger:parameters ListEvents

func NewListEventsParams

func NewListEventsParams() ListEventsParams

NewListEventsParams creates a new ListEventsParams object no default values defined in spec.

func (*ListEventsParams) BindRequest

func (o *ListEventsParams) 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 NewListEventsParams() beforehand.

type ListEventsURL

type ListEventsURL struct {
	ClusterID strfmt.UUID

	HostID *strfmt.UUID
	// contains filtered or unexported fields
}

ListEventsURL generates an URL for the list events operation

func (*ListEventsURL) Build

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

Build a url path and query string

func (*ListEventsURL) BuildFull

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

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

func (*ListEventsURL) Must

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

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

func (*ListEventsURL) SetBasePath

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

func (o *ListEventsURL) String() string

String returns the string representation of the path with query string

func (*ListEventsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListEventsURL) WithBasePath

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

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 ListEventsUnauthorized

type ListEventsUnauthorized struct {

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

ListEventsUnauthorized Unauthorized.

swagger:response listEventsUnauthorized

func NewListEventsUnauthorized

func NewListEventsUnauthorized() *ListEventsUnauthorized

NewListEventsUnauthorized creates ListEventsUnauthorized with default headers values

func (*ListEventsUnauthorized) SetPayload

func (o *ListEventsUnauthorized) SetPayload(payload *models.InfraError)

SetPayload sets the payload to the list events unauthorized response

func (*ListEventsUnauthorized) WithPayload

WithPayload adds the payload to the list events unauthorized response

func (*ListEventsUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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