ipam

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 36

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 ipam API

func (*Client) DeleteIpamIP added in v0.15.7

func (a *Client) DeleteIpamIP(params *DeleteIpamIPParams) (*DeleteIpamIPOK, error)

DeleteIpamIP releases an allocated IP address

func (*Client) PostIpam added in v0.15.7

func (a *Client) PostIpam(params *PostIpamParams) (*PostIpamCreated, error)

PostIpam allocates an IP address

func (*Client) PostIpamIP added in v0.15.7

func (a *Client) PostIpamIP(params *PostIpamIPParams) (*PostIpamIPOK, error)

PostIpamIP allocates an IP address

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService added in v0.15.7

type ClientService interface {
	DeleteIpamIP(params *DeleteIpamIPParams) (*DeleteIpamIPOK, error)

	PostIpam(params *PostIpamParams) (*PostIpamCreated, error)

	PostIpamIP(params *PostIpamIPParams) (*PostIpamIPOK, 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 ipam API client.

type DeleteIpamIPDisabled added in v0.15.7

type DeleteIpamIPDisabled struct {
}

DeleteIpamIPDisabled handles this case with default header values.

Allocation for address family disabled

func NewDeleteIpamIPDisabled added in v0.15.7

func NewDeleteIpamIPDisabled() *DeleteIpamIPDisabled

NewDeleteIpamIPDisabled creates a DeleteIpamIPDisabled with default headers values

func (*DeleteIpamIPDisabled) Error added in v0.15.7

func (o *DeleteIpamIPDisabled) Error() string

type DeleteIpamIPFailure added in v0.15.7

type DeleteIpamIPFailure struct {
	Payload models.Error
}

DeleteIpamIPFailure handles this case with default header values.

Address release failure

func NewDeleteIpamIPFailure added in v0.15.7

func NewDeleteIpamIPFailure() *DeleteIpamIPFailure

NewDeleteIpamIPFailure creates a DeleteIpamIPFailure with default headers values

func (*DeleteIpamIPFailure) Error added in v0.15.7

func (o *DeleteIpamIPFailure) Error() string

func (*DeleteIpamIPFailure) GetPayload added in v0.15.7

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

type DeleteIpamIPInvalid added in v0.15.7

type DeleteIpamIPInvalid struct {
}

DeleteIpamIPInvalid handles this case with default header values.

Invalid IP address

func NewDeleteIpamIPInvalid added in v0.15.7

func NewDeleteIpamIPInvalid() *DeleteIpamIPInvalid

NewDeleteIpamIPInvalid creates a DeleteIpamIPInvalid with default headers values

func (*DeleteIpamIPInvalid) Error added in v0.15.7

func (o *DeleteIpamIPInvalid) Error() string

type DeleteIpamIPNotFound added in v0.15.7

type DeleteIpamIPNotFound struct {
}

DeleteIpamIPNotFound handles this case with default header values.

IP address not found

func NewDeleteIpamIPNotFound added in v0.15.7

func NewDeleteIpamIPNotFound() *DeleteIpamIPNotFound

NewDeleteIpamIPNotFound creates a DeleteIpamIPNotFound with default headers values

func (*DeleteIpamIPNotFound) Error added in v0.15.7

func (o *DeleteIpamIPNotFound) Error() string

type DeleteIpamIPOK added in v0.15.7

type DeleteIpamIPOK struct {
}

DeleteIpamIPOK handles this case with default header values.

Success

func NewDeleteIpamIPOK added in v0.15.7

func NewDeleteIpamIPOK() *DeleteIpamIPOK

NewDeleteIpamIPOK creates a DeleteIpamIPOK with default headers values

func (*DeleteIpamIPOK) Error added in v0.15.7

func (o *DeleteIpamIPOK) Error() string

type DeleteIpamIPParams added in v0.15.7

type DeleteIpamIPParams struct {

	/*IP
	  IP address or owner name

	*/
	IP string

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

DeleteIpamIPParams contains all the parameters to send to the API endpoint for the delete ipam IP operation typically these are written to a http.Request

func NewDeleteIpamIPParams added in v0.15.7

func NewDeleteIpamIPParams() *DeleteIpamIPParams

NewDeleteIpamIPParams creates a new DeleteIpamIPParams object with the default values initialized.

func NewDeleteIpamIPParamsWithContext added in v0.15.7

func NewDeleteIpamIPParamsWithContext(ctx context.Context) *DeleteIpamIPParams

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

func NewDeleteIpamIPParamsWithHTTPClient added in v0.15.7

func NewDeleteIpamIPParamsWithHTTPClient(client *http.Client) *DeleteIpamIPParams

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

func NewDeleteIpamIPParamsWithTimeout added in v0.15.7

func NewDeleteIpamIPParamsWithTimeout(timeout time.Duration) *DeleteIpamIPParams

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

func (*DeleteIpamIPParams) SetContext added in v0.15.7

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

SetContext adds the context to the delete ipam IP params

func (*DeleteIpamIPParams) SetHTTPClient added in v0.15.7

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

SetHTTPClient adds the HTTPClient to the delete ipam IP params

func (*DeleteIpamIPParams) SetIP added in v0.15.7

func (o *DeleteIpamIPParams) SetIP(ip string)

SetIP adds the ip to the delete ipam IP params

func (*DeleteIpamIPParams) SetTimeout added in v0.15.7

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

SetTimeout adds the timeout to the delete ipam IP params

func (*DeleteIpamIPParams) WithContext added in v0.15.7

WithContext adds the context to the delete ipam IP params

func (*DeleteIpamIPParams) WithHTTPClient added in v0.15.7

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

WithHTTPClient adds the HTTPClient to the delete ipam IP params

func (*DeleteIpamIPParams) WithIP added in v0.15.7

WithIP adds the ip to the delete ipam IP params

func (*DeleteIpamIPParams) WithTimeout added in v0.15.7

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

WithTimeout adds the timeout to the delete ipam IP params

func (*DeleteIpamIPParams) WriteToRequest added in v0.15.7

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

WriteToRequest writes these params to a swagger request

type DeleteIpamIPReader added in v0.15.7

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

DeleteIpamIPReader is a Reader for the DeleteIpamIP structure.

func (*DeleteIpamIPReader) ReadResponse added in v0.15.7

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

ReadResponse reads a server response into the received o.

type PostIpamCreated added in v0.15.7

type PostIpamCreated struct {
	Payload *models.IPAMResponse
}

PostIpamCreated handles this case with default header values.

Success

func NewPostIpamCreated added in v0.15.7

func NewPostIpamCreated() *PostIpamCreated

NewPostIpamCreated creates a PostIpamCreated with default headers values

func (*PostIpamCreated) Error added in v0.15.7

func (o *PostIpamCreated) Error() string

func (*PostIpamCreated) GetPayload added in v0.15.7

func (o *PostIpamCreated) GetPayload() *models.IPAMResponse

type PostIpamFailure added in v0.15.7

type PostIpamFailure struct {
	Payload models.Error
}

PostIpamFailure handles this case with default header values.

Allocation failure

func NewPostIpamFailure added in v0.15.7

func NewPostIpamFailure() *PostIpamFailure

NewPostIpamFailure creates a PostIpamFailure with default headers values

func (*PostIpamFailure) Error added in v0.15.7

func (o *PostIpamFailure) Error() string

func (*PostIpamFailure) GetPayload added in v0.15.7

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

type PostIpamIPDisabled added in v0.15.7

type PostIpamIPDisabled struct {
}

PostIpamIPDisabled handles this case with default header values.

Allocation for address family disabled

func NewPostIpamIPDisabled added in v0.15.7

func NewPostIpamIPDisabled() *PostIpamIPDisabled

NewPostIpamIPDisabled creates a PostIpamIPDisabled with default headers values

func (*PostIpamIPDisabled) Error added in v0.15.7

func (o *PostIpamIPDisabled) Error() string

type PostIpamIPExists added in v0.15.7

type PostIpamIPExists struct {
}

PostIpamIPExists handles this case with default header values.

IP already allocated

func NewPostIpamIPExists added in v0.15.7

func NewPostIpamIPExists() *PostIpamIPExists

NewPostIpamIPExists creates a PostIpamIPExists with default headers values

func (*PostIpamIPExists) Error added in v0.15.7

func (o *PostIpamIPExists) Error() string

type PostIpamIPFailure added in v0.15.7

type PostIpamIPFailure struct {
	Payload models.Error
}

PostIpamIPFailure handles this case with default header values.

IP allocation failure. Details in message.

func NewPostIpamIPFailure added in v0.15.7

func NewPostIpamIPFailure() *PostIpamIPFailure

NewPostIpamIPFailure creates a PostIpamIPFailure with default headers values

func (*PostIpamIPFailure) Error added in v0.15.7

func (o *PostIpamIPFailure) Error() string

func (*PostIpamIPFailure) GetPayload added in v0.15.7

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

type PostIpamIPInvalid added in v0.15.7

type PostIpamIPInvalid struct {
}

PostIpamIPInvalid handles this case with default header values.

Invalid IP address

func NewPostIpamIPInvalid added in v0.15.7

func NewPostIpamIPInvalid() *PostIpamIPInvalid

NewPostIpamIPInvalid creates a PostIpamIPInvalid with default headers values

func (*PostIpamIPInvalid) Error added in v0.15.7

func (o *PostIpamIPInvalid) Error() string

type PostIpamIPOK added in v0.15.7

type PostIpamIPOK struct {
}

PostIpamIPOK handles this case with default header values.

Success

func NewPostIpamIPOK added in v0.15.7

func NewPostIpamIPOK() *PostIpamIPOK

NewPostIpamIPOK creates a PostIpamIPOK with default headers values

func (*PostIpamIPOK) Error added in v0.15.7

func (o *PostIpamIPOK) Error() string

type PostIpamIPParams added in v0.15.7

type PostIpamIPParams struct {

	/*IP
	  IP address

	*/
	IP string
	/*Owner*/
	Owner *string

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

PostIpamIPParams contains all the parameters to send to the API endpoint for the post ipam IP operation typically these are written to a http.Request

func NewPostIpamIPParams added in v0.15.7

func NewPostIpamIPParams() *PostIpamIPParams

NewPostIpamIPParams creates a new PostIpamIPParams object with the default values initialized.

func NewPostIpamIPParamsWithContext added in v0.15.7

func NewPostIpamIPParamsWithContext(ctx context.Context) *PostIpamIPParams

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

func NewPostIpamIPParamsWithHTTPClient added in v0.15.7

func NewPostIpamIPParamsWithHTTPClient(client *http.Client) *PostIpamIPParams

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

func NewPostIpamIPParamsWithTimeout added in v0.15.7

func NewPostIpamIPParamsWithTimeout(timeout time.Duration) *PostIpamIPParams

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

func (*PostIpamIPParams) SetContext added in v0.15.7

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

SetContext adds the context to the post ipam IP params

func (*PostIpamIPParams) SetHTTPClient added in v0.15.7

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

SetHTTPClient adds the HTTPClient to the post ipam IP params

func (*PostIpamIPParams) SetIP added in v0.15.7

func (o *PostIpamIPParams) SetIP(ip string)

SetIP adds the ip to the post ipam IP params

func (*PostIpamIPParams) SetOwner added in v0.15.7

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

SetOwner adds the owner to the post ipam IP params

func (*PostIpamIPParams) SetTimeout added in v0.15.7

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

SetTimeout adds the timeout to the post ipam IP params

func (*PostIpamIPParams) WithContext added in v0.15.7

func (o *PostIpamIPParams) WithContext(ctx context.Context) *PostIpamIPParams

WithContext adds the context to the post ipam IP params

func (*PostIpamIPParams) WithHTTPClient added in v0.15.7

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

WithHTTPClient adds the HTTPClient to the post ipam IP params

func (*PostIpamIPParams) WithIP added in v0.15.7

func (o *PostIpamIPParams) WithIP(ip string) *PostIpamIPParams

WithIP adds the ip to the post ipam IP params

func (*PostIpamIPParams) WithOwner added in v0.15.7

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

WithOwner adds the owner to the post ipam IP params

func (*PostIpamIPParams) WithTimeout added in v0.15.7

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

WithTimeout adds the timeout to the post ipam IP params

func (*PostIpamIPParams) WriteToRequest added in v0.15.7

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

WriteToRequest writes these params to a swagger request

type PostIpamIPReader added in v0.15.7

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

PostIpamIPReader is a Reader for the PostIpamIP structure.

func (*PostIpamIPReader) ReadResponse added in v0.15.7

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

ReadResponse reads a server response into the received o.

type PostIpamParams added in v0.15.7

type PostIpamParams struct {

	/*Expiration*/
	Expiration *bool
	/*Family*/
	Family *string
	/*Owner*/
	Owner *string

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

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

func NewPostIpamParams added in v0.15.7

func NewPostIpamParams() *PostIpamParams

NewPostIpamParams creates a new PostIpamParams object with the default values initialized.

func NewPostIpamParamsWithContext added in v0.15.7

func NewPostIpamParamsWithContext(ctx context.Context) *PostIpamParams

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

func NewPostIpamParamsWithHTTPClient added in v0.15.7

func NewPostIpamParamsWithHTTPClient(client *http.Client) *PostIpamParams

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

func NewPostIpamParamsWithTimeout added in v0.15.7

func NewPostIpamParamsWithTimeout(timeout time.Duration) *PostIpamParams

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

func (*PostIpamParams) SetContext added in v0.15.7

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

SetContext adds the context to the post ipam params

func (*PostIpamParams) SetExpiration added in v0.15.7

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

SetExpiration adds the expiration to the post ipam params

func (*PostIpamParams) SetFamily added in v0.15.7

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

SetFamily adds the family to the post ipam params

func (*PostIpamParams) SetHTTPClient added in v0.15.7

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

SetHTTPClient adds the HTTPClient to the post ipam params

func (*PostIpamParams) SetOwner added in v0.15.7

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

SetOwner adds the owner to the post ipam params

func (*PostIpamParams) SetTimeout added in v0.15.7

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

SetTimeout adds the timeout to the post ipam params

func (*PostIpamParams) WithContext added in v0.15.7

func (o *PostIpamParams) WithContext(ctx context.Context) *PostIpamParams

WithContext adds the context to the post ipam params

func (*PostIpamParams) WithExpiration added in v0.15.7

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

WithExpiration adds the expiration to the post ipam params

func (*PostIpamParams) WithFamily added in v0.15.7

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

WithFamily adds the family to the post ipam params

func (*PostIpamParams) WithHTTPClient added in v0.15.7

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

WithHTTPClient adds the HTTPClient to the post ipam params

func (*PostIpamParams) WithOwner added in v0.15.7

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

WithOwner adds the owner to the post ipam params

func (*PostIpamParams) WithTimeout added in v0.15.7

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

WithTimeout adds the timeout to the post ipam params

func (*PostIpamParams) WriteToRequest added in v0.15.7

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

WriteToRequest writes these params to a swagger request

type PostIpamReader added in v0.15.7

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

PostIpamReader is a Reader for the PostIpam structure.

func (*PostIpamReader) ReadResponse added in v0.15.7

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