pools

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DeletePoolsPoolIDNoContentCode int = 204

DeletePoolsPoolIDNoContentCode is the HTTP code returned for type DeletePoolsPoolIDNoContent

View Source
const DeletePoolsPoolIDNotFoundCode int = 404

DeletePoolsPoolIDNotFoundCode is the HTTP code returned for type DeletePoolsPoolIDNotFound

View Source
const GetPoolsBadRequestCode int = 400

GetPoolsBadRequestCode is the HTTP code returned for type GetPoolsBadRequest

View Source
const GetPoolsOKCode int = 200

GetPoolsOKCode is the HTTP code returned for type GetPoolsOK

View Source
const GetPoolsPoolIDNotFoundCode int = 404

GetPoolsPoolIDNotFoundCode is the HTTP code returned for type GetPoolsPoolIDNotFound

View Source
const GetPoolsPoolIDOKCode int = 200

GetPoolsPoolIDOKCode is the HTTP code returned for type GetPoolsPoolIDOK

View Source
const PostPoolsBadRequestCode int = 400

PostPoolsBadRequestCode is the HTTP code returned for type PostPoolsBadRequest

View Source
const PostPoolsCreatedCode int = 201

PostPoolsCreatedCode is the HTTP code returned for type PostPoolsCreated

View Source
const PutPoolsPoolIDAcceptedCode int = 202

PutPoolsPoolIDAcceptedCode is the HTTP code returned for type PutPoolsPoolIDAccepted

View Source
const PutPoolsPoolIDNotFoundCode int = 404

PutPoolsPoolIDNotFoundCode is the HTTP code returned for type PutPoolsPoolIDNotFound

Variables

This section is empty.

Functions

This section is empty.

Types

type DeletePoolsPoolID

type DeletePoolsPoolID struct {
	Context *middleware.Context
	Handler DeletePoolsPoolIDHandler
}
DeletePoolsPoolID swagger:route DELETE /pools/{pool_id} Pools deletePoolsPoolId

Delete a pool

func NewDeletePoolsPoolID

func NewDeletePoolsPoolID(ctx *middleware.Context, handler DeletePoolsPoolIDHandler) *DeletePoolsPoolID

NewDeletePoolsPoolID creates a new http.Handler for the delete pools pool ID operation

func (*DeletePoolsPoolID) ServeHTTP

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

type DeletePoolsPoolIDDefault

type DeletePoolsPoolIDDefault struct {

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

DeletePoolsPoolIDDefault Unexpected Error

swagger:response deletePoolsPoolIdDefault

func NewDeletePoolsPoolIDDefault

func NewDeletePoolsPoolIDDefault(code int) *DeletePoolsPoolIDDefault

NewDeletePoolsPoolIDDefault creates DeletePoolsPoolIDDefault with default headers values

func (*DeletePoolsPoolIDDefault) SetPayload

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

SetPayload sets the payload to the delete pools pool ID default response

func (*DeletePoolsPoolIDDefault) SetStatusCode

func (o *DeletePoolsPoolIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete pools pool ID default response

func (*DeletePoolsPoolIDDefault) WithPayload

WithPayload adds the payload to the delete pools pool ID default response

func (*DeletePoolsPoolIDDefault) WithStatusCode

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

WithStatusCode adds the status to the delete pools pool ID default response

func (*DeletePoolsPoolIDDefault) WriteResponse

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

WriteResponse to the client

type DeletePoolsPoolIDHandler

type DeletePoolsPoolIDHandler interface {
	Handle(DeletePoolsPoolIDParams) middleware.Responder
}

DeletePoolsPoolIDHandler interface for that can handle valid delete pools pool ID params

type DeletePoolsPoolIDHandlerFunc

type DeletePoolsPoolIDHandlerFunc func(DeletePoolsPoolIDParams) middleware.Responder

DeletePoolsPoolIDHandlerFunc turns a function with the right signature into a delete pools pool ID handler

func (DeletePoolsPoolIDHandlerFunc) Handle

Handle executing the request and returning a response

type DeletePoolsPoolIDNoContent

type DeletePoolsPoolIDNoContent struct {
}

DeletePoolsPoolIDNoContent Resource successfully deleted.

swagger:response deletePoolsPoolIdNoContent

func NewDeletePoolsPoolIDNoContent

func NewDeletePoolsPoolIDNoContent() *DeletePoolsPoolIDNoContent

NewDeletePoolsPoolIDNoContent creates DeletePoolsPoolIDNoContent with default headers values

func (*DeletePoolsPoolIDNoContent) WriteResponse

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

WriteResponse to the client

type DeletePoolsPoolIDNotFound

type DeletePoolsPoolIDNotFound struct {

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

DeletePoolsPoolIDNotFound Not Found

swagger:response deletePoolsPoolIdNotFound

func NewDeletePoolsPoolIDNotFound

func NewDeletePoolsPoolIDNotFound() *DeletePoolsPoolIDNotFound

NewDeletePoolsPoolIDNotFound creates DeletePoolsPoolIDNotFound with default headers values

func (*DeletePoolsPoolIDNotFound) SetPayload

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

SetPayload sets the payload to the delete pools pool Id not found response

func (*DeletePoolsPoolIDNotFound) WithPayload

WithPayload adds the payload to the delete pools pool Id not found response

func (*DeletePoolsPoolIDNotFound) WriteResponse

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

WriteResponse to the client

type DeletePoolsPoolIDParams

type DeletePoolsPoolIDParams struct {

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

	/*The UUID of the pool
	  Required: true
	  In: path
	*/
	PoolID strfmt.UUID
}

DeletePoolsPoolIDParams contains all the bound params for the delete pools pool ID operation typically these are obtained from a http.Request

swagger:parameters DeletePoolsPoolID

func NewDeletePoolsPoolIDParams

func NewDeletePoolsPoolIDParams() DeletePoolsPoolIDParams

NewDeletePoolsPoolIDParams creates a new DeletePoolsPoolIDParams object

There are no default values defined in the spec.

func (*DeletePoolsPoolIDParams) BindRequest

func (o *DeletePoolsPoolIDParams) 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 NewDeletePoolsPoolIDParams() beforehand.

type DeletePoolsPoolIDURL

type DeletePoolsPoolIDURL struct {
	PoolID strfmt.UUID
	// contains filtered or unexported fields
}

DeletePoolsPoolIDURL generates an URL for the delete pools pool ID operation

func (*DeletePoolsPoolIDURL) Build

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

Build a url path and query string

func (*DeletePoolsPoolIDURL) BuildFull

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

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

func (*DeletePoolsPoolIDURL) Must

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

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

func (*DeletePoolsPoolIDURL) SetBasePath

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

func (o *DeletePoolsPoolIDURL) String() string

String returns the string representation of the path with query string

func (*DeletePoolsPoolIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeletePoolsPoolIDURL) WithBasePath

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

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 GetPools

type GetPools struct {
	Context *middleware.Context
	Handler GetPoolsHandler
}
GetPools swagger:route GET /pools Pools getPools

List pools

func NewGetPools

func NewGetPools(ctx *middleware.Context, handler GetPoolsHandler) *GetPools

NewGetPools creates a new http.Handler for the get pools operation

func (*GetPools) ServeHTTP

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

type GetPoolsBadRequest

type GetPoolsBadRequest struct {

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

GetPoolsBadRequest Bad request

swagger:response getPoolsBadRequest

func NewGetPoolsBadRequest

func NewGetPoolsBadRequest() *GetPoolsBadRequest

NewGetPoolsBadRequest creates GetPoolsBadRequest with default headers values

func (*GetPoolsBadRequest) SetPayload

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

SetPayload sets the payload to the get pools bad request response

func (*GetPoolsBadRequest) WithPayload

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

WithPayload adds the payload to the get pools bad request response

func (*GetPoolsBadRequest) WriteResponse

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

WriteResponse to the client

type GetPoolsDefault

type GetPoolsDefault struct {

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

GetPoolsDefault Unexpected Error

swagger:response getPoolsDefault

func NewGetPoolsDefault

func NewGetPoolsDefault(code int) *GetPoolsDefault

NewGetPoolsDefault creates GetPoolsDefault with default headers values

func (*GetPoolsDefault) SetPayload

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

SetPayload sets the payload to the get pools default response

func (*GetPoolsDefault) SetStatusCode

func (o *GetPoolsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get pools default response

func (*GetPoolsDefault) WithPayload

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

WithPayload adds the payload to the get pools default response

func (*GetPoolsDefault) WithStatusCode

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

WithStatusCode adds the status to the get pools default response

func (*GetPoolsDefault) WriteResponse

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

WriteResponse to the client

type GetPoolsHandler

type GetPoolsHandler interface {
	Handle(GetPoolsParams) middleware.Responder
}

GetPoolsHandler interface for that can handle valid get pools params

type GetPoolsHandlerFunc

type GetPoolsHandlerFunc func(GetPoolsParams) middleware.Responder

GetPoolsHandlerFunc turns a function with the right signature into a get pools handler

func (GetPoolsHandlerFunc) Handle

Handle executing the request and returning a response

type GetPoolsOK

type GetPoolsOK struct {

	/*
	  In: Body
	*/
	Payload *GetPoolsOKBody `json:"body,omitempty"`
}

GetPoolsOK A JSON array of pools

swagger:response getPoolsOK

func NewGetPoolsOK

func NewGetPoolsOK() *GetPoolsOK

NewGetPoolsOK creates GetPoolsOK with default headers values

func (*GetPoolsOK) SetPayload

func (o *GetPoolsOK) SetPayload(payload *GetPoolsOKBody)

SetPayload sets the payload to the get pools o k response

func (*GetPoolsOK) WithPayload

func (o *GetPoolsOK) WithPayload(payload *GetPoolsOKBody) *GetPoolsOK

WithPayload adds the payload to the get pools o k response

func (*GetPoolsOK) WriteResponse

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

WriteResponse to the client

type GetPoolsOKBody

type GetPoolsOKBody struct {

	// links
	Links []*models.Link `json:"links,omitempty"`

	// pools
	Pools []*models.Pool `json:"pools"`
}

GetPoolsOKBody get pools o k body

swagger:model GetPoolsOKBody

func (*GetPoolsOKBody) ContextValidate

func (o *GetPoolsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get pools o k body based on the context it is used

func (*GetPoolsOKBody) MarshalBinary

func (o *GetPoolsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPoolsOKBody) UnmarshalBinary

func (o *GetPoolsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPoolsOKBody) Validate

func (o *GetPoolsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get pools o k body

type GetPoolsParams

type GetPoolsParams struct {

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

	/*Sets the page size.
	  In: query
	*/
	Limit *int64
	/*Pagination ID of the last item in the previous list.
	  In: query
	*/
	Marker *strfmt.UUID
	/*Filter for resources not having tags, multiple not-tags are considered as logical AND.
	Should be provided in a comma separated list.

	  In: query
	*/
	NotTags []string
	/*Filter for resources not having tags, multiple tags are considered as logical OR.
	Should be provided in a comma separated list.

	  In: query
	*/
	NotTagsAny []string
	/*Sets the page direction.
	  In: query
	*/
	PageReverse *bool
	/*Comma-separated list of sort keys, optinally prefix with - to reverse sort order.
	  In: query
	*/
	Sort *string
	/*Filter for tags, multiple tags are considered as logical AND.
	Should be provided in a comma separated list.

	  In: query
	*/
	Tags []string
	/*Filter for tags, multiple tags are considered as logical OR.
	Should be provided in a comma separated list.

	  In: query
	*/
	TagsAny []string
}

GetPoolsParams contains all the bound params for the get pools operation typically these are obtained from a http.Request

swagger:parameters GetPools

func NewGetPoolsParams

func NewGetPoolsParams() GetPoolsParams

NewGetPoolsParams creates a new GetPoolsParams object

There are no default values defined in the spec.

func (*GetPoolsParams) BindRequest

func (o *GetPoolsParams) 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 NewGetPoolsParams() beforehand.

type GetPoolsPoolID

type GetPoolsPoolID struct {
	Context *middleware.Context
	Handler GetPoolsPoolIDHandler
}
GetPoolsPoolID swagger:route GET /pools/{pool_id} Pools getPoolsPoolId

Show pool detail

func NewGetPoolsPoolID

func NewGetPoolsPoolID(ctx *middleware.Context, handler GetPoolsPoolIDHandler) *GetPoolsPoolID

NewGetPoolsPoolID creates a new http.Handler for the get pools pool ID operation

func (*GetPoolsPoolID) ServeHTTP

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

type GetPoolsPoolIDDefault

type GetPoolsPoolIDDefault struct {

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

GetPoolsPoolIDDefault Unexpected Error

swagger:response getPoolsPoolIdDefault

func NewGetPoolsPoolIDDefault

func NewGetPoolsPoolIDDefault(code int) *GetPoolsPoolIDDefault

NewGetPoolsPoolIDDefault creates GetPoolsPoolIDDefault with default headers values

func (*GetPoolsPoolIDDefault) SetPayload

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

SetPayload sets the payload to the get pools pool ID default response

func (*GetPoolsPoolIDDefault) SetStatusCode

func (o *GetPoolsPoolIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get pools pool ID default response

func (*GetPoolsPoolIDDefault) WithPayload

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

WithPayload adds the payload to the get pools pool ID default response

func (*GetPoolsPoolIDDefault) WithStatusCode

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

WithStatusCode adds the status to the get pools pool ID default response

func (*GetPoolsPoolIDDefault) WriteResponse

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

WriteResponse to the client

type GetPoolsPoolIDHandler

type GetPoolsPoolIDHandler interface {
	Handle(GetPoolsPoolIDParams) middleware.Responder
}

GetPoolsPoolIDHandler interface for that can handle valid get pools pool ID params

type GetPoolsPoolIDHandlerFunc

type GetPoolsPoolIDHandlerFunc func(GetPoolsPoolIDParams) middleware.Responder

GetPoolsPoolIDHandlerFunc turns a function with the right signature into a get pools pool ID handler

func (GetPoolsPoolIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetPoolsPoolIDNotFound

type GetPoolsPoolIDNotFound struct {

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

GetPoolsPoolIDNotFound Not Found

swagger:response getPoolsPoolIdNotFound

func NewGetPoolsPoolIDNotFound

func NewGetPoolsPoolIDNotFound() *GetPoolsPoolIDNotFound

NewGetPoolsPoolIDNotFound creates GetPoolsPoolIDNotFound with default headers values

func (*GetPoolsPoolIDNotFound) SetPayload

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

SetPayload sets the payload to the get pools pool Id not found response

func (*GetPoolsPoolIDNotFound) WithPayload

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

WithPayload adds the payload to the get pools pool Id not found response

func (*GetPoolsPoolIDNotFound) WriteResponse

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

WriteResponse to the client

type GetPoolsPoolIDOK

type GetPoolsPoolIDOK struct {

	/*
	  In: Body
	*/
	Payload *GetPoolsPoolIDOKBody `json:"body,omitempty"`
}

GetPoolsPoolIDOK Shows the details of a specific pool.

swagger:response getPoolsPoolIdOK

func NewGetPoolsPoolIDOK

func NewGetPoolsPoolIDOK() *GetPoolsPoolIDOK

NewGetPoolsPoolIDOK creates GetPoolsPoolIDOK with default headers values

func (*GetPoolsPoolIDOK) SetPayload

func (o *GetPoolsPoolIDOK) SetPayload(payload *GetPoolsPoolIDOKBody)

SetPayload sets the payload to the get pools pool Id o k response

func (*GetPoolsPoolIDOK) WithPayload

func (o *GetPoolsPoolIDOK) WithPayload(payload *GetPoolsPoolIDOKBody) *GetPoolsPoolIDOK

WithPayload adds the payload to the get pools pool Id o k response

func (*GetPoolsPoolIDOK) WriteResponse

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

WriteResponse to the client

type GetPoolsPoolIDOKBody

type GetPoolsPoolIDOKBody struct {

	// pool
	Pool *models.Pool `json:"pool,omitempty"`
}

GetPoolsPoolIDOKBody get pools pool ID o k body

swagger:model GetPoolsPoolIDOKBody

func (*GetPoolsPoolIDOKBody) ContextValidate

func (o *GetPoolsPoolIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get pools pool ID o k body based on the context it is used

func (*GetPoolsPoolIDOKBody) MarshalBinary

func (o *GetPoolsPoolIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPoolsPoolIDOKBody) UnmarshalBinary

func (o *GetPoolsPoolIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPoolsPoolIDOKBody) Validate

func (o *GetPoolsPoolIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this get pools pool ID o k body

type GetPoolsPoolIDParams

type GetPoolsPoolIDParams struct {

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

	/*The UUID of the pool
	  Required: true
	  In: path
	*/
	PoolID strfmt.UUID
}

GetPoolsPoolIDParams contains all the bound params for the get pools pool ID operation typically these are obtained from a http.Request

swagger:parameters GetPoolsPoolID

func NewGetPoolsPoolIDParams

func NewGetPoolsPoolIDParams() GetPoolsPoolIDParams

NewGetPoolsPoolIDParams creates a new GetPoolsPoolIDParams object

There are no default values defined in the spec.

func (*GetPoolsPoolIDParams) BindRequest

func (o *GetPoolsPoolIDParams) 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 NewGetPoolsPoolIDParams() beforehand.

type GetPoolsPoolIDURL

type GetPoolsPoolIDURL struct {
	PoolID strfmt.UUID
	// contains filtered or unexported fields
}

GetPoolsPoolIDURL generates an URL for the get pools pool ID operation

func (*GetPoolsPoolIDURL) Build

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

Build a url path and query string

func (*GetPoolsPoolIDURL) BuildFull

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

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

func (*GetPoolsPoolIDURL) Must

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

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

func (*GetPoolsPoolIDURL) SetBasePath

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

func (o *GetPoolsPoolIDURL) String() string

String returns the string representation of the path with query string

func (*GetPoolsPoolIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPoolsPoolIDURL) WithBasePath

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

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 GetPoolsURL

type GetPoolsURL struct {
	Limit       *int64
	Marker      *strfmt.UUID
	NotTags     []string
	NotTagsAny  []string
	PageReverse *bool
	Sort        *string
	Tags        []string
	TagsAny     []string
	// contains filtered or unexported fields
}

GetPoolsURL generates an URL for the get pools operation

func (*GetPoolsURL) Build

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

Build a url path and query string

func (*GetPoolsURL) BuildFull

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

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

func (*GetPoolsURL) Must

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

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

func (*GetPoolsURL) SetBasePath

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

func (o *GetPoolsURL) String() string

String returns the string representation of the path with query string

func (*GetPoolsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPoolsURL) WithBasePath

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

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 PostPools

type PostPools struct {
	Context *middleware.Context
	Handler PostPoolsHandler
}
PostPools swagger:route POST /pools Pools postPools

Create new pool

func NewPostPools

func NewPostPools(ctx *middleware.Context, handler PostPoolsHandler) *PostPools

NewPostPools creates a new http.Handler for the post pools operation

func (*PostPools) ServeHTTP

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

type PostPoolsBadRequest

type PostPoolsBadRequest struct {

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

PostPoolsBadRequest Bad request

swagger:response postPoolsBadRequest

func NewPostPoolsBadRequest

func NewPostPoolsBadRequest() *PostPoolsBadRequest

NewPostPoolsBadRequest creates PostPoolsBadRequest with default headers values

func (*PostPoolsBadRequest) SetPayload

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

SetPayload sets the payload to the post pools bad request response

func (*PostPoolsBadRequest) WithPayload

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

WithPayload adds the payload to the post pools bad request response

func (*PostPoolsBadRequest) WriteResponse

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

WriteResponse to the client

type PostPoolsBody

type PostPoolsBody struct {

	// pool
	// Required: true
	Pool *models.Pool `json:"pool"`
}

PostPoolsBody post pools body

swagger:model PostPoolsBody

func (*PostPoolsBody) ContextValidate

func (o *PostPoolsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post pools body based on the context it is used

func (*PostPoolsBody) MarshalBinary

func (o *PostPoolsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostPoolsBody) UnmarshalBinary

func (o *PostPoolsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostPoolsBody) Validate

func (o *PostPoolsBody) Validate(formats strfmt.Registry) error

Validate validates this post pools body

type PostPoolsCreated

type PostPoolsCreated struct {

	/*
	  In: Body
	*/
	Payload *PostPoolsCreatedBody `json:"body,omitempty"`
}

PostPoolsCreated Created pool.

swagger:response postPoolsCreated

func NewPostPoolsCreated

func NewPostPoolsCreated() *PostPoolsCreated

NewPostPoolsCreated creates PostPoolsCreated with default headers values

func (*PostPoolsCreated) SetPayload

func (o *PostPoolsCreated) SetPayload(payload *PostPoolsCreatedBody)

SetPayload sets the payload to the post pools created response

func (*PostPoolsCreated) WithPayload

func (o *PostPoolsCreated) WithPayload(payload *PostPoolsCreatedBody) *PostPoolsCreated

WithPayload adds the payload to the post pools created response

func (*PostPoolsCreated) WriteResponse

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

WriteResponse to the client

type PostPoolsCreatedBody

type PostPoolsCreatedBody struct {

	// pool
	Pool *models.Pool `json:"pool,omitempty"`
}

PostPoolsCreatedBody post pools created body

swagger:model PostPoolsCreatedBody

func (*PostPoolsCreatedBody) ContextValidate

func (o *PostPoolsCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post pools created body based on the context it is used

func (*PostPoolsCreatedBody) MarshalBinary

func (o *PostPoolsCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostPoolsCreatedBody) UnmarshalBinary

func (o *PostPoolsCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostPoolsCreatedBody) Validate

func (o *PostPoolsCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this post pools created body

type PostPoolsDefault

type PostPoolsDefault struct {

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

PostPoolsDefault Unexpected Error

swagger:response postPoolsDefault

func NewPostPoolsDefault

func NewPostPoolsDefault(code int) *PostPoolsDefault

NewPostPoolsDefault creates PostPoolsDefault with default headers values

func (*PostPoolsDefault) SetPayload

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

SetPayload sets the payload to the post pools default response

func (*PostPoolsDefault) SetStatusCode

func (o *PostPoolsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post pools default response

func (*PostPoolsDefault) WithPayload

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

WithPayload adds the payload to the post pools default response

func (*PostPoolsDefault) WithStatusCode

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

WithStatusCode adds the status to the post pools default response

func (*PostPoolsDefault) WriteResponse

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

WriteResponse to the client

type PostPoolsHandler

type PostPoolsHandler interface {
	Handle(PostPoolsParams) middleware.Responder
}

PostPoolsHandler interface for that can handle valid post pools params

type PostPoolsHandlerFunc

type PostPoolsHandlerFunc func(PostPoolsParams) middleware.Responder

PostPoolsHandlerFunc turns a function with the right signature into a post pools handler

func (PostPoolsHandlerFunc) Handle

Handle executing the request and returning a response

type PostPoolsParams

type PostPoolsParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Pool PostPoolsBody
}

PostPoolsParams contains all the bound params for the post pools operation typically these are obtained from a http.Request

swagger:parameters PostPools

func NewPostPoolsParams

func NewPostPoolsParams() PostPoolsParams

NewPostPoolsParams creates a new PostPoolsParams object

There are no default values defined in the spec.

func (*PostPoolsParams) BindRequest

func (o *PostPoolsParams) 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 NewPostPoolsParams() beforehand.

type PostPoolsURL

type PostPoolsURL struct {
	// contains filtered or unexported fields
}

PostPoolsURL generates an URL for the post pools operation

func (*PostPoolsURL) Build

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

Build a url path and query string

func (*PostPoolsURL) BuildFull

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

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

func (*PostPoolsURL) Must

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

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

func (*PostPoolsURL) SetBasePath

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

func (o *PostPoolsURL) String() string

String returns the string representation of the path with query string

func (*PostPoolsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostPoolsURL) WithBasePath

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

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 PutPoolsPoolID

type PutPoolsPoolID struct {
	Context *middleware.Context
	Handler PutPoolsPoolIDHandler
}
PutPoolsPoolID swagger:route PUT /pools/{pool_id} Pools putPoolsPoolId

Update a pool

func NewPutPoolsPoolID

func NewPutPoolsPoolID(ctx *middleware.Context, handler PutPoolsPoolIDHandler) *PutPoolsPoolID

NewPutPoolsPoolID creates a new http.Handler for the put pools pool ID operation

func (*PutPoolsPoolID) ServeHTTP

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

type PutPoolsPoolIDAccepted

type PutPoolsPoolIDAccepted struct {

	/*
	  In: Body
	*/
	Payload *PutPoolsPoolIDAcceptedBody `json:"body,omitempty"`
}

PutPoolsPoolIDAccepted Updated pool.

swagger:response putPoolsPoolIdAccepted

func NewPutPoolsPoolIDAccepted

func NewPutPoolsPoolIDAccepted() *PutPoolsPoolIDAccepted

NewPutPoolsPoolIDAccepted creates PutPoolsPoolIDAccepted with default headers values

func (*PutPoolsPoolIDAccepted) SetPayload

func (o *PutPoolsPoolIDAccepted) SetPayload(payload *PutPoolsPoolIDAcceptedBody)

SetPayload sets the payload to the put pools pool Id accepted response

func (*PutPoolsPoolIDAccepted) WithPayload

WithPayload adds the payload to the put pools pool Id accepted response

func (*PutPoolsPoolIDAccepted) WriteResponse

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

WriteResponse to the client

type PutPoolsPoolIDAcceptedBody

type PutPoolsPoolIDAcceptedBody struct {

	// pool
	Pool *models.Pool `json:"pool,omitempty"`
}

PutPoolsPoolIDAcceptedBody put pools pool ID accepted body

swagger:model PutPoolsPoolIDAcceptedBody

func (*PutPoolsPoolIDAcceptedBody) ContextValidate

func (o *PutPoolsPoolIDAcceptedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this put pools pool ID accepted body based on the context it is used

func (*PutPoolsPoolIDAcceptedBody) MarshalBinary

func (o *PutPoolsPoolIDAcceptedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutPoolsPoolIDAcceptedBody) UnmarshalBinary

func (o *PutPoolsPoolIDAcceptedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutPoolsPoolIDAcceptedBody) Validate

func (o *PutPoolsPoolIDAcceptedBody) Validate(formats strfmt.Registry) error

Validate validates this put pools pool ID accepted body

type PutPoolsPoolIDBody

type PutPoolsPoolIDBody struct {

	// pool
	// Required: true
	Pool *models.Pool `json:"pool"`
}

PutPoolsPoolIDBody put pools pool ID body

swagger:model PutPoolsPoolIDBody

func (*PutPoolsPoolIDBody) ContextValidate

func (o *PutPoolsPoolIDBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this put pools pool ID body based on the context it is used

func (*PutPoolsPoolIDBody) MarshalBinary

func (o *PutPoolsPoolIDBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutPoolsPoolIDBody) UnmarshalBinary

func (o *PutPoolsPoolIDBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutPoolsPoolIDBody) Validate

func (o *PutPoolsPoolIDBody) Validate(formats strfmt.Registry) error

Validate validates this put pools pool ID body

type PutPoolsPoolIDDefault

type PutPoolsPoolIDDefault struct {

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

PutPoolsPoolIDDefault Unexpected Error

swagger:response putPoolsPoolIdDefault

func NewPutPoolsPoolIDDefault

func NewPutPoolsPoolIDDefault(code int) *PutPoolsPoolIDDefault

NewPutPoolsPoolIDDefault creates PutPoolsPoolIDDefault with default headers values

func (*PutPoolsPoolIDDefault) SetPayload

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

SetPayload sets the payload to the put pools pool ID default response

func (*PutPoolsPoolIDDefault) SetStatusCode

func (o *PutPoolsPoolIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put pools pool ID default response

func (*PutPoolsPoolIDDefault) WithPayload

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

WithPayload adds the payload to the put pools pool ID default response

func (*PutPoolsPoolIDDefault) WithStatusCode

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

WithStatusCode adds the status to the put pools pool ID default response

func (*PutPoolsPoolIDDefault) WriteResponse

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

WriteResponse to the client

type PutPoolsPoolIDHandler

type PutPoolsPoolIDHandler interface {
	Handle(PutPoolsPoolIDParams) middleware.Responder
}

PutPoolsPoolIDHandler interface for that can handle valid put pools pool ID params

type PutPoolsPoolIDHandlerFunc

type PutPoolsPoolIDHandlerFunc func(PutPoolsPoolIDParams) middleware.Responder

PutPoolsPoolIDHandlerFunc turns a function with the right signature into a put pools pool ID handler

func (PutPoolsPoolIDHandlerFunc) Handle

Handle executing the request and returning a response

type PutPoolsPoolIDNotFound

type PutPoolsPoolIDNotFound struct {

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

PutPoolsPoolIDNotFound Not Found

swagger:response putPoolsPoolIdNotFound

func NewPutPoolsPoolIDNotFound

func NewPutPoolsPoolIDNotFound() *PutPoolsPoolIDNotFound

NewPutPoolsPoolIDNotFound creates PutPoolsPoolIDNotFound with default headers values

func (*PutPoolsPoolIDNotFound) SetPayload

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

SetPayload sets the payload to the put pools pool Id not found response

func (*PutPoolsPoolIDNotFound) WithPayload

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

WithPayload adds the payload to the put pools pool Id not found response

func (*PutPoolsPoolIDNotFound) WriteResponse

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

WriteResponse to the client

type PutPoolsPoolIDParams

type PutPoolsPoolIDParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Pool PutPoolsPoolIDBody
	/*The UUID of the pool
	  Required: true
	  In: path
	*/
	PoolID strfmt.UUID
}

PutPoolsPoolIDParams contains all the bound params for the put pools pool ID operation typically these are obtained from a http.Request

swagger:parameters PutPoolsPoolID

func NewPutPoolsPoolIDParams

func NewPutPoolsPoolIDParams() PutPoolsPoolIDParams

NewPutPoolsPoolIDParams creates a new PutPoolsPoolIDParams object

There are no default values defined in the spec.

func (*PutPoolsPoolIDParams) BindRequest

func (o *PutPoolsPoolIDParams) 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 NewPutPoolsPoolIDParams() beforehand.

type PutPoolsPoolIDURL

type PutPoolsPoolIDURL struct {
	PoolID strfmt.UUID
	// contains filtered or unexported fields
}

PutPoolsPoolIDURL generates an URL for the put pools pool ID operation

func (*PutPoolsPoolIDURL) Build

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

Build a url path and query string

func (*PutPoolsPoolIDURL) BuildFull

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

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

func (*PutPoolsPoolIDURL) Must

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

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

func (*PutPoolsPoolIDURL) SetBasePath

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

func (o *PutPoolsPoolIDURL) String() string

String returns the string representation of the path with query string

func (*PutPoolsPoolIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutPoolsPoolIDURL) WithBasePath

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

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