rdmaipam

package
v0.0.0-...-b02393b Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for rdmaipam API

func (*Client) DeleteRdmaipamRdmaips

func (a *Client) DeleteRdmaipamRdmaips(params *DeleteRdmaipamRdmaipsParams) (*DeleteRdmaipamRdmaipsOK, error)

DeleteRdmaipamRdmaips releases allocated r d m a IP addresses

func (*Client) PostRdmaipam

func (a *Client) PostRdmaipam(params *PostRdmaipamParams) (*PostRdmaipamCreated, error)

PostRdmaipam allocates r d m a IP addresses

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeleteRdmaipamRdmaips(params *DeleteRdmaipamRdmaipsParams) (*DeleteRdmaipamRdmaipsOK, error)

	PostRdmaipam(params *PostRdmaipamParams) (*PostRdmaipamCreated, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new rdmaipam API client.

type DeleteRdmaipamRdmaipsDisabled

type DeleteRdmaipamRdmaipsDisabled struct {
}

DeleteRdmaipamRdmaipsDisabled handles this case with default header values.

Allocation for address family disabled

func NewDeleteRdmaipamRdmaipsDisabled

func NewDeleteRdmaipamRdmaipsDisabled() *DeleteRdmaipamRdmaipsDisabled

NewDeleteRdmaipamRdmaipsDisabled creates a DeleteRdmaipamRdmaipsDisabled with default headers values

func (*DeleteRdmaipamRdmaipsDisabled) Error

type DeleteRdmaipamRdmaipsFailure

type DeleteRdmaipamRdmaipsFailure struct {
	Payload models.Error
}

DeleteRdmaipamRdmaipsFailure handles this case with default header values.

Address release failure

func NewDeleteRdmaipamRdmaipsFailure

func NewDeleteRdmaipamRdmaipsFailure() *DeleteRdmaipamRdmaipsFailure

NewDeleteRdmaipamRdmaipsFailure creates a DeleteRdmaipamRdmaipsFailure with default headers values

func (*DeleteRdmaipamRdmaipsFailure) Error

func (*DeleteRdmaipamRdmaipsFailure) GetPayload

func (o *DeleteRdmaipamRdmaipsFailure) GetPayload() models.Error

type DeleteRdmaipamRdmaipsInvalid

type DeleteRdmaipamRdmaipsInvalid struct {
}

DeleteRdmaipamRdmaipsInvalid handles this case with default header values.

Invalid IP address

func NewDeleteRdmaipamRdmaipsInvalid

func NewDeleteRdmaipamRdmaipsInvalid() *DeleteRdmaipamRdmaipsInvalid

NewDeleteRdmaipamRdmaipsInvalid creates a DeleteRdmaipamRdmaipsInvalid with default headers values

func (*DeleteRdmaipamRdmaipsInvalid) Error

type DeleteRdmaipamRdmaipsNotFound

type DeleteRdmaipamRdmaipsNotFound struct {
}

DeleteRdmaipamRdmaipsNotFound handles this case with default header values.

IP address not found

func NewDeleteRdmaipamRdmaipsNotFound

func NewDeleteRdmaipamRdmaipsNotFound() *DeleteRdmaipamRdmaipsNotFound

NewDeleteRdmaipamRdmaipsNotFound creates a DeleteRdmaipamRdmaipsNotFound with default headers values

func (*DeleteRdmaipamRdmaipsNotFound) Error

type DeleteRdmaipamRdmaipsOK

type DeleteRdmaipamRdmaipsOK struct {
}

DeleteRdmaipamRdmaipsOK handles this case with default header values.

Success

func NewDeleteRdmaipamRdmaipsOK

func NewDeleteRdmaipamRdmaipsOK() *DeleteRdmaipamRdmaipsOK

NewDeleteRdmaipamRdmaipsOK creates a DeleteRdmaipamRdmaipsOK with default headers values

func (*DeleteRdmaipamRdmaipsOK) Error

func (o *DeleteRdmaipamRdmaipsOK) Error() string

type DeleteRdmaipamRdmaipsParams

type DeleteRdmaipamRdmaipsParams struct {

	/*ContainerID
	  container id provider by cni

	*/
	ContainerID *string
	/*Netns
	  netns provider by cni

	*/
	Netns *string
	/*Owner*/
	Owner *string
	/*RdmaIfnames
	  rdma ifnames provider by cni

	*/
	RdmaIfnames *string
	/*Rdmaips
	  RDMA IP addresses or owner name

	*/
	Rdmaips string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteRdmaipamRdmaipsParams contains all the parameters to send to the API endpoint for the delete rdmaipam rdmaips operation typically these are written to a http.Request

func NewDeleteRdmaipamRdmaipsParams

func NewDeleteRdmaipamRdmaipsParams() *DeleteRdmaipamRdmaipsParams

NewDeleteRdmaipamRdmaipsParams creates a new DeleteRdmaipamRdmaipsParams object with the default values initialized.

func NewDeleteRdmaipamRdmaipsParamsWithContext

func NewDeleteRdmaipamRdmaipsParamsWithContext(ctx context.Context) *DeleteRdmaipamRdmaipsParams

NewDeleteRdmaipamRdmaipsParamsWithContext creates a new DeleteRdmaipamRdmaipsParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteRdmaipamRdmaipsParamsWithHTTPClient

func NewDeleteRdmaipamRdmaipsParamsWithHTTPClient(client *http.Client) *DeleteRdmaipamRdmaipsParams

NewDeleteRdmaipamRdmaipsParamsWithHTTPClient creates a new DeleteRdmaipamRdmaipsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteRdmaipamRdmaipsParamsWithTimeout

func NewDeleteRdmaipamRdmaipsParamsWithTimeout(timeout time.Duration) *DeleteRdmaipamRdmaipsParams

NewDeleteRdmaipamRdmaipsParamsWithTimeout creates a new DeleteRdmaipamRdmaipsParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteRdmaipamRdmaipsParams) SetContainerID

func (o *DeleteRdmaipamRdmaipsParams) SetContainerID(containerID *string)

SetContainerID adds the containerId to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) SetContext

func (o *DeleteRdmaipamRdmaipsParams) SetContext(ctx context.Context)

SetContext adds the context to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) SetHTTPClient

func (o *DeleteRdmaipamRdmaipsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) SetNetns

func (o *DeleteRdmaipamRdmaipsParams) SetNetns(netns *string)

SetNetns adds the netns to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) SetOwner

func (o *DeleteRdmaipamRdmaipsParams) SetOwner(owner *string)

SetOwner adds the owner to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) SetRdmaIfnames

func (o *DeleteRdmaipamRdmaipsParams) SetRdmaIfnames(rdmaIfnames *string)

SetRdmaIfnames adds the rdmaIfnames to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) SetRdmaips

func (o *DeleteRdmaipamRdmaipsParams) SetRdmaips(rdmaips string)

SetRdmaips adds the rdmaips to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) SetTimeout

func (o *DeleteRdmaipamRdmaipsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) WithContainerID

func (o *DeleteRdmaipamRdmaipsParams) WithContainerID(containerID *string) *DeleteRdmaipamRdmaipsParams

WithContainerID adds the containerID to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) WithContext

WithContext adds the context to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) WithNetns

WithNetns adds the netns to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) WithOwner

WithOwner adds the owner to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) WithRdmaIfnames

func (o *DeleteRdmaipamRdmaipsParams) WithRdmaIfnames(rdmaIfnames *string) *DeleteRdmaipamRdmaipsParams

WithRdmaIfnames adds the rdmaIfnames to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) WithRdmaips

WithRdmaips adds the rdmaips to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) WithTimeout

WithTimeout adds the timeout to the delete rdmaipam rdmaips params

func (*DeleteRdmaipamRdmaipsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteRdmaipamRdmaipsReader

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

DeleteRdmaipamRdmaipsReader is a Reader for the DeleteRdmaipamRdmaips structure.

func (*DeleteRdmaipamRdmaipsReader) ReadResponse

func (o *DeleteRdmaipamRdmaipsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostRdmaipamCreated

type PostRdmaipamCreated struct {
	Payload []*models.RDMAIPAMResponse
}

PostRdmaipamCreated handles this case with default header values.

Success

func NewPostRdmaipamCreated

func NewPostRdmaipamCreated() *PostRdmaipamCreated

NewPostRdmaipamCreated creates a PostRdmaipamCreated with default headers values

func (*PostRdmaipamCreated) Error

func (o *PostRdmaipamCreated) Error() string

func (*PostRdmaipamCreated) GetPayload

func (o *PostRdmaipamCreated) GetPayload() []*models.RDMAIPAMResponse

type PostRdmaipamFailure

type PostRdmaipamFailure struct {
	Payload models.Error
}

PostRdmaipamFailure handles this case with default header values.

Allocation failure

func NewPostRdmaipamFailure

func NewPostRdmaipamFailure() *PostRdmaipamFailure

NewPostRdmaipamFailure creates a PostRdmaipamFailure with default headers values

func (*PostRdmaipamFailure) Error

func (o *PostRdmaipamFailure) Error() string

func (*PostRdmaipamFailure) GetPayload

func (o *PostRdmaipamFailure) GetPayload() models.Error

type PostRdmaipamParams

type PostRdmaipamParams struct {

	/*ContainerID
	  container id provider by cni

	*/
	ContainerID *string
	/*Expiration*/
	Expiration *bool
	/*Family*/
	Family *string
	/*Netns
	  netns provider by cni

	*/
	Netns *string
	/*Owner*/
	Owner *string
	/*RdmaIfnames
	  rdma ifnames provider by cni

	*/
	RdmaIfnames *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostRdmaipamParams contains all the parameters to send to the API endpoint for the post rdmaipam operation typically these are written to a http.Request

func NewPostRdmaipamParams

func NewPostRdmaipamParams() *PostRdmaipamParams

NewPostRdmaipamParams creates a new PostRdmaipamParams object with the default values initialized.

func NewPostRdmaipamParamsWithContext

func NewPostRdmaipamParamsWithContext(ctx context.Context) *PostRdmaipamParams

NewPostRdmaipamParamsWithContext creates a new PostRdmaipamParams object with the default values initialized, and the ability to set a context for a request

func NewPostRdmaipamParamsWithHTTPClient

func NewPostRdmaipamParamsWithHTTPClient(client *http.Client) *PostRdmaipamParams

NewPostRdmaipamParamsWithHTTPClient creates a new PostRdmaipamParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostRdmaipamParamsWithTimeout

func NewPostRdmaipamParamsWithTimeout(timeout time.Duration) *PostRdmaipamParams

NewPostRdmaipamParamsWithTimeout creates a new PostRdmaipamParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostRdmaipamParams) SetContainerID

func (o *PostRdmaipamParams) SetContainerID(containerID *string)

SetContainerID adds the containerId to the post rdmaipam params

func (*PostRdmaipamParams) SetContext

func (o *PostRdmaipamParams) SetContext(ctx context.Context)

SetContext adds the context to the post rdmaipam params

func (*PostRdmaipamParams) SetExpiration

func (o *PostRdmaipamParams) SetExpiration(expiration *bool)

SetExpiration adds the expiration to the post rdmaipam params

func (*PostRdmaipamParams) SetFamily

func (o *PostRdmaipamParams) SetFamily(family *string)

SetFamily adds the family to the post rdmaipam params

func (*PostRdmaipamParams) SetHTTPClient

func (o *PostRdmaipamParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post rdmaipam params

func (*PostRdmaipamParams) SetNetns

func (o *PostRdmaipamParams) SetNetns(netns *string)

SetNetns adds the netns to the post rdmaipam params

func (*PostRdmaipamParams) SetOwner

func (o *PostRdmaipamParams) SetOwner(owner *string)

SetOwner adds the owner to the post rdmaipam params

func (*PostRdmaipamParams) SetRdmaIfnames

func (o *PostRdmaipamParams) SetRdmaIfnames(rdmaIfnames *string)

SetRdmaIfnames adds the rdmaIfnames to the post rdmaipam params

func (*PostRdmaipamParams) SetTimeout

func (o *PostRdmaipamParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post rdmaipam params

func (*PostRdmaipamParams) WithContainerID

func (o *PostRdmaipamParams) WithContainerID(containerID *string) *PostRdmaipamParams

WithContainerID adds the containerID to the post rdmaipam params

func (*PostRdmaipamParams) WithContext

WithContext adds the context to the post rdmaipam params

func (*PostRdmaipamParams) WithExpiration

func (o *PostRdmaipamParams) WithExpiration(expiration *bool) *PostRdmaipamParams

WithExpiration adds the expiration to the post rdmaipam params

func (*PostRdmaipamParams) WithFamily

func (o *PostRdmaipamParams) WithFamily(family *string) *PostRdmaipamParams

WithFamily adds the family to the post rdmaipam params

func (*PostRdmaipamParams) WithHTTPClient

func (o *PostRdmaipamParams) WithHTTPClient(client *http.Client) *PostRdmaipamParams

WithHTTPClient adds the HTTPClient to the post rdmaipam params

func (*PostRdmaipamParams) WithNetns

func (o *PostRdmaipamParams) WithNetns(netns *string) *PostRdmaipamParams

WithNetns adds the netns to the post rdmaipam params

func (*PostRdmaipamParams) WithOwner

func (o *PostRdmaipamParams) WithOwner(owner *string) *PostRdmaipamParams

WithOwner adds the owner to the post rdmaipam params

func (*PostRdmaipamParams) WithRdmaIfnames

func (o *PostRdmaipamParams) WithRdmaIfnames(rdmaIfnames *string) *PostRdmaipamParams

WithRdmaIfnames adds the rdmaIfnames to the post rdmaipam params

func (*PostRdmaipamParams) WithTimeout

func (o *PostRdmaipamParams) WithTimeout(timeout time.Duration) *PostRdmaipamParams

WithTimeout adds the timeout to the post rdmaipam params

func (*PostRdmaipamParams) WriteToRequest

func (o *PostRdmaipamParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostRdmaipamReader

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

PostRdmaipamReader is a Reader for the PostRdmaipam structure.

func (*PostRdmaipamReader) ReadResponse

func (o *PostRdmaipamReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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