ipam

package
v0.0.0-...-686bfca Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DeleteIpamIPDisabledCode int = 501

DeleteIpamIPDisabledCode is the HTTP code returned for type DeleteIpamIPDisabled

View Source
const DeleteIpamIPFailureCode int = 500

DeleteIpamIPFailureCode is the HTTP code returned for type DeleteIpamIPFailure

View Source
const DeleteIpamIPInvalidCode int = 400

DeleteIpamIPInvalidCode is the HTTP code returned for type DeleteIpamIPInvalid

View Source
const DeleteIpamIPNotFoundCode int = 404

DeleteIpamIPNotFoundCode is the HTTP code returned for type DeleteIpamIPNotFound

View Source
const DeleteIpamIPOKCode int = 200

DeleteIpamIPOKCode is the HTTP code returned for type DeleteIpamIPOK

View Source
const PostIpamCreatedCode int = 201

PostIpamCreatedCode is the HTTP code returned for type PostIpamCreated

View Source
const PostIpamFailureCode int = 502

PostIpamFailureCode is the HTTP code returned for type PostIpamFailure

View Source
const PostIpamIPDisabledCode int = 501

PostIpamIPDisabledCode is the HTTP code returned for type PostIpamIPDisabled

View Source
const PostIpamIPExistsCode int = 409

PostIpamIPExistsCode is the HTTP code returned for type PostIpamIPExists

View Source
const PostIpamIPFailureCode int = 500

PostIpamIPFailureCode is the HTTP code returned for type PostIpamIPFailure

View Source
const PostIpamIPInvalidCode int = 400

PostIpamIPInvalidCode is the HTTP code returned for type PostIpamIPInvalid

View Source
const PostIpamIPOKCode int = 200

PostIpamIPOKCode is the HTTP code returned for type PostIpamIPOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteIpamIP

type DeleteIpamIP struct {
	Context *middleware.Context
	Handler DeleteIpamIPHandler
}

DeleteIpamIP swagger:route DELETE /ipam/{ip} ipam deleteIpamIp

Release an allocated IP address

func NewDeleteIpamIP

func NewDeleteIpamIP(ctx *middleware.Context, handler DeleteIpamIPHandler) *DeleteIpamIP

NewDeleteIpamIP creates a new http.Handler for the delete ipam IP operation

func (*DeleteIpamIP) ServeHTTP

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

type DeleteIpamIPDisabled

type DeleteIpamIPDisabled struct {
}

DeleteIpamIPDisabled Allocation for address family disabled

swagger:response deleteIpamIpDisabled

func NewDeleteIpamIPDisabled

func NewDeleteIpamIPDisabled() *DeleteIpamIPDisabled

NewDeleteIpamIPDisabled creates DeleteIpamIPDisabled with default headers values

func (*DeleteIpamIPDisabled) WriteResponse

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

WriteResponse to the client

type DeleteIpamIPFailure

type DeleteIpamIPFailure struct {

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

DeleteIpamIPFailure Address release failure

swagger:response deleteIpamIpFailure

func NewDeleteIpamIPFailure

func NewDeleteIpamIPFailure() *DeleteIpamIPFailure

NewDeleteIpamIPFailure creates DeleteIpamIPFailure with default headers values

func (*DeleteIpamIPFailure) SetPayload

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

SetPayload sets the payload to the delete ipam Ip failure response

func (*DeleteIpamIPFailure) WithPayload

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

WithPayload adds the payload to the delete ipam Ip failure response

func (*DeleteIpamIPFailure) WriteResponse

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

WriteResponse to the client

type DeleteIpamIPHandler

type DeleteIpamIPHandler interface {
	Handle(DeleteIpamIPParams) middleware.Responder
}

DeleteIpamIPHandler interface for that can handle valid delete ipam IP params

type DeleteIpamIPHandlerFunc

type DeleteIpamIPHandlerFunc func(DeleteIpamIPParams) middleware.Responder

DeleteIpamIPHandlerFunc turns a function with the right signature into a delete ipam IP handler

func (DeleteIpamIPHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteIpamIPInvalid

type DeleteIpamIPInvalid struct {
}

DeleteIpamIPInvalid Invalid IP address

swagger:response deleteIpamIpInvalid

func NewDeleteIpamIPInvalid

func NewDeleteIpamIPInvalid() *DeleteIpamIPInvalid

NewDeleteIpamIPInvalid creates DeleteIpamIPInvalid with default headers values

func (*DeleteIpamIPInvalid) WriteResponse

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

WriteResponse to the client

type DeleteIpamIPNotFound

type DeleteIpamIPNotFound struct {
}

DeleteIpamIPNotFound IP address not found

swagger:response deleteIpamIpNotFound

func NewDeleteIpamIPNotFound

func NewDeleteIpamIPNotFound() *DeleteIpamIPNotFound

NewDeleteIpamIPNotFound creates DeleteIpamIPNotFound with default headers values

func (*DeleteIpamIPNotFound) WriteResponse

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

WriteResponse to the client

type DeleteIpamIPOK

type DeleteIpamIPOK struct {
}

DeleteIpamIPOK Success

swagger:response deleteIpamIpOK

func NewDeleteIpamIPOK

func NewDeleteIpamIPOK() *DeleteIpamIPOK

NewDeleteIpamIPOK creates DeleteIpamIPOK with default headers values

func (*DeleteIpamIPOK) WriteResponse

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

WriteResponse to the client

type DeleteIpamIPParams

type DeleteIpamIPParams struct {

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

	/*container id provider by cni
	  In: query
	*/
	ContainerID *string
	/*ifname provider by cni
	  In: query
	*/
	Ifname *string
	/*IP address or owner name
	  Required: true
	  In: path
	*/
	IP string
	/*netns provider by cni
	  In: query
	*/
	Netns *string
	/*
	  In: query
	*/
	Owner *string
}

DeleteIpamIPParams contains all the bound params for the delete ipam IP operation typically these are obtained from a http.Request

swagger:parameters DeleteIpamIP

func NewDeleteIpamIPParams

func NewDeleteIpamIPParams() DeleteIpamIPParams

NewDeleteIpamIPParams creates a new DeleteIpamIPParams object no default values defined in spec.

func (*DeleteIpamIPParams) BindRequest

func (o *DeleteIpamIPParams) 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 NewDeleteIpamIPParams() beforehand.

type PostIpam

type PostIpam struct {
	Context *middleware.Context
	Handler PostIpamHandler
}

PostIpam swagger:route POST /ipam ipam postIpam

Allocate an IP address

func NewPostIpam

func NewPostIpam(ctx *middleware.Context, handler PostIpamHandler) *PostIpam

NewPostIpam creates a new http.Handler for the post ipam operation

func (*PostIpam) ServeHTTP

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

type PostIpamCreated

type PostIpamCreated struct {

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

PostIpamCreated Success

swagger:response postIpamCreated

func NewPostIpamCreated

func NewPostIpamCreated() *PostIpamCreated

NewPostIpamCreated creates PostIpamCreated with default headers values

func (*PostIpamCreated) SetPayload

func (o *PostIpamCreated) SetPayload(payload *models.IPAMResponse)

SetPayload sets the payload to the post ipam created response

func (*PostIpamCreated) WithPayload

func (o *PostIpamCreated) WithPayload(payload *models.IPAMResponse) *PostIpamCreated

WithPayload adds the payload to the post ipam created response

func (*PostIpamCreated) WriteResponse

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

WriteResponse to the client

type PostIpamFailure

type PostIpamFailure struct {

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

PostIpamFailure Allocation failure

swagger:response postIpamFailure

func NewPostIpamFailure

func NewPostIpamFailure() *PostIpamFailure

NewPostIpamFailure creates PostIpamFailure with default headers values

func (*PostIpamFailure) SetPayload

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

SetPayload sets the payload to the post ipam failure response

func (*PostIpamFailure) WithPayload

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

WithPayload adds the payload to the post ipam failure response

func (*PostIpamFailure) WriteResponse

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

WriteResponse to the client

type PostIpamHandler

type PostIpamHandler interface {
	Handle(PostIpamParams) middleware.Responder
}

PostIpamHandler interface for that can handle valid post ipam params

type PostIpamHandlerFunc

type PostIpamHandlerFunc func(PostIpamParams) middleware.Responder

PostIpamHandlerFunc turns a function with the right signature into a post ipam handler

func (PostIpamHandlerFunc) Handle

Handle executing the request and returning a response

type PostIpamIP

type PostIpamIP struct {
	Context *middleware.Context
	Handler PostIpamIPHandler
}

PostIpamIP swagger:route POST /ipam/{ip} ipam postIpamIp

Allocate an IP address

func NewPostIpamIP

func NewPostIpamIP(ctx *middleware.Context, handler PostIpamIPHandler) *PostIpamIP

NewPostIpamIP creates a new http.Handler for the post ipam IP operation

func (*PostIpamIP) ServeHTTP

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

type PostIpamIPDisabled

type PostIpamIPDisabled struct {
}

PostIpamIPDisabled Allocation for address family disabled

swagger:response postIpamIpDisabled

func NewPostIpamIPDisabled

func NewPostIpamIPDisabled() *PostIpamIPDisabled

NewPostIpamIPDisabled creates PostIpamIPDisabled with default headers values

func (*PostIpamIPDisabled) WriteResponse

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

WriteResponse to the client

type PostIpamIPExists

type PostIpamIPExists struct {
}

PostIpamIPExists IP already allocated

swagger:response postIpamIpExists

func NewPostIpamIPExists

func NewPostIpamIPExists() *PostIpamIPExists

NewPostIpamIPExists creates PostIpamIPExists with default headers values

func (*PostIpamIPExists) WriteResponse

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

WriteResponse to the client

type PostIpamIPFailure

type PostIpamIPFailure struct {

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

PostIpamIPFailure IP allocation failure. Details in message.

swagger:response postIpamIpFailure

func NewPostIpamIPFailure

func NewPostIpamIPFailure() *PostIpamIPFailure

NewPostIpamIPFailure creates PostIpamIPFailure with default headers values

func (*PostIpamIPFailure) SetPayload

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

SetPayload sets the payload to the post ipam Ip failure response

func (*PostIpamIPFailure) WithPayload

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

WithPayload adds the payload to the post ipam Ip failure response

func (*PostIpamIPFailure) WriteResponse

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

WriteResponse to the client

type PostIpamIPHandler

type PostIpamIPHandler interface {
	Handle(PostIpamIPParams) middleware.Responder
}

PostIpamIPHandler interface for that can handle valid post ipam IP params

type PostIpamIPHandlerFunc

type PostIpamIPHandlerFunc func(PostIpamIPParams) middleware.Responder

PostIpamIPHandlerFunc turns a function with the right signature into a post ipam IP handler

func (PostIpamIPHandlerFunc) Handle

Handle executing the request and returning a response

type PostIpamIPInvalid

type PostIpamIPInvalid struct {
}

PostIpamIPInvalid Invalid IP address

swagger:response postIpamIpInvalid

func NewPostIpamIPInvalid

func NewPostIpamIPInvalid() *PostIpamIPInvalid

NewPostIpamIPInvalid creates PostIpamIPInvalid with default headers values

func (*PostIpamIPInvalid) WriteResponse

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

WriteResponse to the client

type PostIpamIPOK

type PostIpamIPOK struct {
}

PostIpamIPOK Success

swagger:response postIpamIpOK

func NewPostIpamIPOK

func NewPostIpamIPOK() *PostIpamIPOK

NewPostIpamIPOK creates PostIpamIPOK with default headers values

func (*PostIpamIPOK) WriteResponse

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

WriteResponse to the client

type PostIpamIPParams

type PostIpamIPParams struct {

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

	/*container id provider by cni
	  In: query
	*/
	ContainerID *string
	/*ifname provider by cni
	  In: query
	*/
	Ifname *string
	/*IP address
	  Required: true
	  In: path
	*/
	IP string
	/*netns provider by cni
	  In: query
	*/
	Netns *string
	/*
	  In: query
	*/
	Owner *string
}

PostIpamIPParams contains all the bound params for the post ipam IP operation typically these are obtained from a http.Request

swagger:parameters PostIpamIP

func NewPostIpamIPParams

func NewPostIpamIPParams() PostIpamIPParams

NewPostIpamIPParams creates a new PostIpamIPParams object no default values defined in spec.

func (*PostIpamIPParams) BindRequest

func (o *PostIpamIPParams) 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 NewPostIpamIPParams() beforehand.

type PostIpamParams

type PostIpamParams 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
	/*ifname provider by cni
	  In: query
	*/
	Ifname *string
	/*netns provider by cni
	  In: query
	*/
	Netns *string
	/*
	  In: query
	*/
	Owner *string
}

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

swagger:parameters PostIpam

func NewPostIpamParams

func NewPostIpamParams() PostIpamParams

NewPostIpamParams creates a new PostIpamParams object no default values defined in spec.

func (*PostIpamParams) BindRequest

func (o *PostIpamParams) 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 NewPostIpamParams() beforehand.

Jump to

Keyboard shortcuts

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