rdmaipam

package
v0.0.0-...-2690dc0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DeleteRdmaipamRdmaipsDisabledCode int = 501

DeleteRdmaipamRdmaipsDisabledCode is the HTTP code returned for type DeleteRdmaipamRdmaipsDisabled

View Source
const DeleteRdmaipamRdmaipsFailureCode int = 500

DeleteRdmaipamRdmaipsFailureCode is the HTTP code returned for type DeleteRdmaipamRdmaipsFailure

View Source
const DeleteRdmaipamRdmaipsInvalidCode int = 400

DeleteRdmaipamRdmaipsInvalidCode is the HTTP code returned for type DeleteRdmaipamRdmaipsInvalid

View Source
const DeleteRdmaipamRdmaipsNotFoundCode int = 404

DeleteRdmaipamRdmaipsNotFoundCode is the HTTP code returned for type DeleteRdmaipamRdmaipsNotFound

View Source
const DeleteRdmaipamRdmaipsOKCode int = 200

DeleteRdmaipamRdmaipsOKCode is the HTTP code returned for type DeleteRdmaipamRdmaipsOK

View Source
const PostRdmaipamCreatedCode int = 201

PostRdmaipamCreatedCode is the HTTP code returned for type PostRdmaipamCreated

View Source
const PostRdmaipamFailureCode int = 502

PostRdmaipamFailureCode is the HTTP code returned for type PostRdmaipamFailure

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteRdmaipamRdmaips

type DeleteRdmaipamRdmaips struct {
	Context *middleware.Context
	Handler DeleteRdmaipamRdmaipsHandler
}

DeleteRdmaipamRdmaips swagger:route DELETE /rdmaipam/{rdmaips} rdmaipam deleteRdmaipamRdmaips

Release allocated RDMA IP addresses

func NewDeleteRdmaipamRdmaips

func NewDeleteRdmaipamRdmaips(ctx *middleware.Context, handler DeleteRdmaipamRdmaipsHandler) *DeleteRdmaipamRdmaips

NewDeleteRdmaipamRdmaips creates a new http.Handler for the delete rdmaipam rdmaips operation

func (*DeleteRdmaipamRdmaips) ServeHTTP

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

type DeleteRdmaipamRdmaipsDisabled

type DeleteRdmaipamRdmaipsDisabled struct {
}

DeleteRdmaipamRdmaipsDisabled Allocation for address family disabled

swagger:response deleteRdmaipamRdmaipsDisabled

func NewDeleteRdmaipamRdmaipsDisabled

func NewDeleteRdmaipamRdmaipsDisabled() *DeleteRdmaipamRdmaipsDisabled

NewDeleteRdmaipamRdmaipsDisabled creates DeleteRdmaipamRdmaipsDisabled with default headers values

func (*DeleteRdmaipamRdmaipsDisabled) WriteResponse

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

WriteResponse to the client

type DeleteRdmaipamRdmaipsFailure

type DeleteRdmaipamRdmaipsFailure struct {

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

DeleteRdmaipamRdmaipsFailure Address release failure

swagger:response deleteRdmaipamRdmaipsFailure

func NewDeleteRdmaipamRdmaipsFailure

func NewDeleteRdmaipamRdmaipsFailure() *DeleteRdmaipamRdmaipsFailure

NewDeleteRdmaipamRdmaipsFailure creates DeleteRdmaipamRdmaipsFailure with default headers values

func (*DeleteRdmaipamRdmaipsFailure) SetPayload

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

SetPayload sets the payload to the delete rdmaipam rdmaips failure response

func (*DeleteRdmaipamRdmaipsFailure) WithPayload

WithPayload adds the payload to the delete rdmaipam rdmaips failure response

func (*DeleteRdmaipamRdmaipsFailure) WriteResponse

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

WriteResponse to the client

type DeleteRdmaipamRdmaipsHandler

type DeleteRdmaipamRdmaipsHandler interface {
	Handle(DeleteRdmaipamRdmaipsParams) middleware.Responder
}

DeleteRdmaipamRdmaipsHandler interface for that can handle valid delete rdmaipam rdmaips params

type DeleteRdmaipamRdmaipsHandlerFunc

type DeleteRdmaipamRdmaipsHandlerFunc func(DeleteRdmaipamRdmaipsParams) middleware.Responder

DeleteRdmaipamRdmaipsHandlerFunc turns a function with the right signature into a delete rdmaipam rdmaips handler

func (DeleteRdmaipamRdmaipsHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteRdmaipamRdmaipsInvalid

type DeleteRdmaipamRdmaipsInvalid struct {
}

DeleteRdmaipamRdmaipsInvalid Invalid IP address

swagger:response deleteRdmaipamRdmaipsInvalid

func NewDeleteRdmaipamRdmaipsInvalid

func NewDeleteRdmaipamRdmaipsInvalid() *DeleteRdmaipamRdmaipsInvalid

NewDeleteRdmaipamRdmaipsInvalid creates DeleteRdmaipamRdmaipsInvalid with default headers values

func (*DeleteRdmaipamRdmaipsInvalid) WriteResponse

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

WriteResponse to the client

type DeleteRdmaipamRdmaipsNotFound

type DeleteRdmaipamRdmaipsNotFound struct {
}

DeleteRdmaipamRdmaipsNotFound IP address not found

swagger:response deleteRdmaipamRdmaipsNotFound

func NewDeleteRdmaipamRdmaipsNotFound

func NewDeleteRdmaipamRdmaipsNotFound() *DeleteRdmaipamRdmaipsNotFound

NewDeleteRdmaipamRdmaipsNotFound creates DeleteRdmaipamRdmaipsNotFound with default headers values

func (*DeleteRdmaipamRdmaipsNotFound) WriteResponse

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

WriteResponse to the client

type DeleteRdmaipamRdmaipsOK

type DeleteRdmaipamRdmaipsOK struct {
}

DeleteRdmaipamRdmaipsOK Success

swagger:response deleteRdmaipamRdmaipsOK

func NewDeleteRdmaipamRdmaipsOK

func NewDeleteRdmaipamRdmaipsOK() *DeleteRdmaipamRdmaipsOK

NewDeleteRdmaipamRdmaipsOK creates DeleteRdmaipamRdmaipsOK with default headers values

func (*DeleteRdmaipamRdmaipsOK) WriteResponse

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

WriteResponse to the client

type DeleteRdmaipamRdmaipsParams

type DeleteRdmaipamRdmaipsParams struct {

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

	/*container id provider by cni
	  In: query
	*/
	ContainerID *string
	/*netns provider by cni
	  In: query
	*/
	Netns *string
	/*
	  In: query
	*/
	Owner *string
	/*rdma ifnames provider by cni
	  In: query
	*/
	RdmaIfnames *string
	/*RDMA IP addresses or owner name
	  Required: true
	  In: path
	*/
	Rdmaips string
}

DeleteRdmaipamRdmaipsParams contains all the bound params for the delete rdmaipam rdmaips operation typically these are obtained from a http.Request

swagger:parameters DeleteRdmaipamRdmaips

func NewDeleteRdmaipamRdmaipsParams

func NewDeleteRdmaipamRdmaipsParams() DeleteRdmaipamRdmaipsParams

NewDeleteRdmaipamRdmaipsParams creates a new DeleteRdmaipamRdmaipsParams object no default values defined in spec.

func (*DeleteRdmaipamRdmaipsParams) BindRequest

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 NewDeleteRdmaipamRdmaipsParams() beforehand.

type PostRdmaipam

type PostRdmaipam struct {
	Context *middleware.Context
	Handler PostRdmaipamHandler
}

PostRdmaipam swagger:route POST /rdmaipam rdmaipam postRdmaipam

Allocate RDMA IP addresses

func NewPostRdmaipam

func NewPostRdmaipam(ctx *middleware.Context, handler PostRdmaipamHandler) *PostRdmaipam

NewPostRdmaipam creates a new http.Handler for the post rdmaipam operation

func (*PostRdmaipam) ServeHTTP

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

type PostRdmaipamCreated

type PostRdmaipamCreated struct {

	/*
	  In: Body
	*/
	Payload []*models.RDMAIPAMResponse `json:"body,omitempty"`
}

PostRdmaipamCreated Success

swagger:response postRdmaipamCreated

func NewPostRdmaipamCreated

func NewPostRdmaipamCreated() *PostRdmaipamCreated

NewPostRdmaipamCreated creates PostRdmaipamCreated with default headers values

func (*PostRdmaipamCreated) SetPayload

func (o *PostRdmaipamCreated) SetPayload(payload []*models.RDMAIPAMResponse)

SetPayload sets the payload to the post rdmaipam created response

func (*PostRdmaipamCreated) WithPayload

func (o *PostRdmaipamCreated) WithPayload(payload []*models.RDMAIPAMResponse) *PostRdmaipamCreated

WithPayload adds the payload to the post rdmaipam created response

func (*PostRdmaipamCreated) WriteResponse

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

WriteResponse to the client

type PostRdmaipamFailure

type PostRdmaipamFailure struct {

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

PostRdmaipamFailure Allocation failure

swagger:response postRdmaipamFailure

func NewPostRdmaipamFailure

func NewPostRdmaipamFailure() *PostRdmaipamFailure

NewPostRdmaipamFailure creates PostRdmaipamFailure with default headers values

func (*PostRdmaipamFailure) SetPayload

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

SetPayload sets the payload to the post rdmaipam failure response

func (*PostRdmaipamFailure) WithPayload

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

WithPayload adds the payload to the post rdmaipam failure response

func (*PostRdmaipamFailure) WriteResponse

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

WriteResponse to the client

type PostRdmaipamHandler

type PostRdmaipamHandler interface {
	Handle(PostRdmaipamParams) middleware.Responder
}

PostRdmaipamHandler interface for that can handle valid post rdmaipam params

type PostRdmaipamHandlerFunc

type PostRdmaipamHandlerFunc func(PostRdmaipamParams) middleware.Responder

PostRdmaipamHandlerFunc turns a function with the right signature into a post rdmaipam handler

func (PostRdmaipamHandlerFunc) Handle

Handle executing the request and returning a response

type PostRdmaipamParams

type PostRdmaipamParams struct {

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

	/*container id provider by cni
	  In: query
	*/
	ContainerID *string
	/*
	  In: header
	*/
	Expiration *bool
	/*
	  In: query
	*/
	Family *string
	/*netns provider by cni
	  In: query
	*/
	Netns *string
	/*
	  In: query
	*/
	Owner *string
	/*rdma ifnames provider by cni
	  In: query
	*/
	RdmaIfnames *string
}

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

swagger:parameters PostRdmaipam

func NewPostRdmaipamParams

func NewPostRdmaipamParams() PostRdmaipamParams

NewPostRdmaipamParams creates a new PostRdmaipamParams object no default values defined in spec.

func (*PostRdmaipamParams) BindRequest

func (o *PostRdmaipamParams) 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 NewPostRdmaipamParams() beforehand.

Jump to

Keyboard shortcuts

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