ipam

package
v0.0.0-...-c34bea4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 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 ipam API

func (*Client) DeleteIpamIP

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

DeleteIpamIP releases an allocated IP address

func (*Client) PostIpam

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

PostIpam allocates an IP address

func (*Client) PostIpamIP

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

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

type DeleteIpamIPDisabled struct {
}

DeleteIpamIPDisabled handles this case with default header values.

Allocation for address family disabled

func NewDeleteIpamIPDisabled

func NewDeleteIpamIPDisabled() *DeleteIpamIPDisabled

NewDeleteIpamIPDisabled creates a DeleteIpamIPDisabled with default headers values

func (*DeleteIpamIPDisabled) Error

func (o *DeleteIpamIPDisabled) Error() string

type DeleteIpamIPFailure

type DeleteIpamIPFailure struct {
	Payload models.Error
}

DeleteIpamIPFailure handles this case with default header values.

Address release failure

func NewDeleteIpamIPFailure

func NewDeleteIpamIPFailure() *DeleteIpamIPFailure

NewDeleteIpamIPFailure creates a DeleteIpamIPFailure with default headers values

func (*DeleteIpamIPFailure) Error

func (o *DeleteIpamIPFailure) Error() string

func (*DeleteIpamIPFailure) GetPayload

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

type DeleteIpamIPInvalid

type DeleteIpamIPInvalid struct {
}

DeleteIpamIPInvalid handles this case with default header values.

Invalid IP address

func NewDeleteIpamIPInvalid

func NewDeleteIpamIPInvalid() *DeleteIpamIPInvalid

NewDeleteIpamIPInvalid creates a DeleteIpamIPInvalid with default headers values

func (*DeleteIpamIPInvalid) Error

func (o *DeleteIpamIPInvalid) Error() string

type DeleteIpamIPNotFound

type DeleteIpamIPNotFound struct {
}

DeleteIpamIPNotFound handles this case with default header values.

IP address not found

func NewDeleteIpamIPNotFound

func NewDeleteIpamIPNotFound() *DeleteIpamIPNotFound

NewDeleteIpamIPNotFound creates a DeleteIpamIPNotFound with default headers values

func (*DeleteIpamIPNotFound) Error

func (o *DeleteIpamIPNotFound) Error() string

type DeleteIpamIPOK

type DeleteIpamIPOK struct {
}

DeleteIpamIPOK handles this case with default header values.

Success

func NewDeleteIpamIPOK

func NewDeleteIpamIPOK() *DeleteIpamIPOK

NewDeleteIpamIPOK creates a DeleteIpamIPOK with default headers values

func (*DeleteIpamIPOK) Error

func (o *DeleteIpamIPOK) Error() string

type DeleteIpamIPParams

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

func NewDeleteIpamIPParams() *DeleteIpamIPParams

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

func NewDeleteIpamIPParamsWithContext

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

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

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

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

SetContext adds the context to the delete ipam IP params

func (*DeleteIpamIPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete ipam IP params

func (*DeleteIpamIPParams) SetIP

func (o *DeleteIpamIPParams) SetIP(ip string)

SetIP adds the ip to the delete ipam IP params

func (*DeleteIpamIPParams) SetTimeout

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

SetTimeout adds the timeout to the delete ipam IP params

func (*DeleteIpamIPParams) WithContext

WithContext adds the context to the delete ipam IP params

func (*DeleteIpamIPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete ipam IP params

func (*DeleteIpamIPParams) WithIP

WithIP adds the ip to the delete ipam IP params

func (*DeleteIpamIPParams) WithTimeout

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

WithTimeout adds the timeout to the delete ipam IP params

func (*DeleteIpamIPParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteIpamIPReader

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

DeleteIpamIPReader is a Reader for the DeleteIpamIP structure.

func (*DeleteIpamIPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostIpamCreated

type PostIpamCreated struct {
	Payload *models.IPAMResponse
}

PostIpamCreated handles this case with default header values.

Success

func NewPostIpamCreated

func NewPostIpamCreated() *PostIpamCreated

NewPostIpamCreated creates a PostIpamCreated with default headers values

func (*PostIpamCreated) Error

func (o *PostIpamCreated) Error() string

func (*PostIpamCreated) GetPayload

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

type PostIpamFailure

type PostIpamFailure struct {
	Payload models.Error
}

PostIpamFailure handles this case with default header values.

Allocation failure

func NewPostIpamFailure

func NewPostIpamFailure() *PostIpamFailure

NewPostIpamFailure creates a PostIpamFailure with default headers values

func (*PostIpamFailure) Error

func (o *PostIpamFailure) Error() string

func (*PostIpamFailure) GetPayload

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

type PostIpamIPDisabled

type PostIpamIPDisabled struct {
}

PostIpamIPDisabled handles this case with default header values.

Allocation for address family disabled

func NewPostIpamIPDisabled

func NewPostIpamIPDisabled() *PostIpamIPDisabled

NewPostIpamIPDisabled creates a PostIpamIPDisabled with default headers values

func (*PostIpamIPDisabled) Error

func (o *PostIpamIPDisabled) Error() string

type PostIpamIPExists

type PostIpamIPExists struct {
}

PostIpamIPExists handles this case with default header values.

IP already allocated

func NewPostIpamIPExists

func NewPostIpamIPExists() *PostIpamIPExists

NewPostIpamIPExists creates a PostIpamIPExists with default headers values

func (*PostIpamIPExists) Error

func (o *PostIpamIPExists) Error() string

type PostIpamIPFailure

type PostIpamIPFailure struct {
	Payload models.Error
}

PostIpamIPFailure handles this case with default header values.

IP allocation failure. Details in message.

func NewPostIpamIPFailure

func NewPostIpamIPFailure() *PostIpamIPFailure

NewPostIpamIPFailure creates a PostIpamIPFailure with default headers values

func (*PostIpamIPFailure) Error

func (o *PostIpamIPFailure) Error() string

func (*PostIpamIPFailure) GetPayload

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

type PostIpamIPInvalid

type PostIpamIPInvalid struct {
}

PostIpamIPInvalid handles this case with default header values.

Invalid IP address

func NewPostIpamIPInvalid

func NewPostIpamIPInvalid() *PostIpamIPInvalid

NewPostIpamIPInvalid creates a PostIpamIPInvalid with default headers values

func (*PostIpamIPInvalid) Error

func (o *PostIpamIPInvalid) Error() string

type PostIpamIPOK

type PostIpamIPOK struct {
}

PostIpamIPOK handles this case with default header values.

Success

func NewPostIpamIPOK

func NewPostIpamIPOK() *PostIpamIPOK

NewPostIpamIPOK creates a PostIpamIPOK with default headers values

func (*PostIpamIPOK) Error

func (o *PostIpamIPOK) Error() string

type PostIpamIPParams

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

func NewPostIpamIPParams() *PostIpamIPParams

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

func NewPostIpamIPParamsWithContext

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

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

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

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

SetContext adds the context to the post ipam IP params

func (*PostIpamIPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post ipam IP params

func (*PostIpamIPParams) SetIP

func (o *PostIpamIPParams) SetIP(ip string)

SetIP adds the ip to the post ipam IP params

func (*PostIpamIPParams) SetOwner

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

SetOwner adds the owner to the post ipam IP params

func (*PostIpamIPParams) SetTimeout

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

SetTimeout adds the timeout to the post ipam IP params

func (*PostIpamIPParams) WithContext

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

WithContext adds the context to the post ipam IP params

func (*PostIpamIPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post ipam IP params

func (*PostIpamIPParams) WithIP

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

WithIP adds the ip to the post ipam IP params

func (*PostIpamIPParams) WithOwner

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

WithOwner adds the owner to the post ipam IP params

func (*PostIpamIPParams) WithTimeout

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

WithTimeout adds the timeout to the post ipam IP params

func (*PostIpamIPParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostIpamIPReader

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

PostIpamIPReader is a Reader for the PostIpamIP structure.

func (*PostIpamIPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostIpamParams

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

func NewPostIpamParams() *PostIpamParams

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

func NewPostIpamParamsWithContext

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

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

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

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

SetContext adds the context to the post ipam params

func (*PostIpamParams) SetExpiration

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

SetExpiration adds the expiration to the post ipam params

func (*PostIpamParams) SetFamily

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

SetFamily adds the family to the post ipam params

func (*PostIpamParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post ipam params

func (*PostIpamParams) SetOwner

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

SetOwner adds the owner to the post ipam params

func (*PostIpamParams) SetTimeout

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

SetTimeout adds the timeout to the post ipam params

func (*PostIpamParams) WithContext

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

WithContext adds the context to the post ipam params

func (*PostIpamParams) WithExpiration

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

WithExpiration adds the expiration to the post ipam params

func (*PostIpamParams) WithFamily

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

WithFamily adds the family to the post ipam params

func (*PostIpamParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post ipam params

func (*PostIpamParams) WithOwner

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

WithOwner adds the owner to the post ipam params

func (*PostIpamParams) WithTimeout

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

WithTimeout adds the timeout to the post ipam params

func (*PostIpamParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostIpamReader

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

PostIpamReader is a Reader for the PostIpam structure.

func (*PostIpamReader) ReadResponse

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