eni

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteEniDisabledCode int = 501

DeleteEniDisabledCode is the HTTP code returned for type DeleteEniDisabled

View Source
const DeleteEniFailureCode int = 500

DeleteEniFailureCode is the HTTP code returned for type DeleteEniFailure

View Source
const DeleteEniInvalidCode int = 400

DeleteEniInvalidCode is the HTTP code returned for type DeleteEniInvalid

View Source
const DeleteEniNotFoundCode int = 404

DeleteEniNotFoundCode is the HTTP code returned for type DeleteEniNotFound

View Source
const DeleteEniOKCode int = 200

DeleteEniOKCode is the HTTP code returned for type DeleteEniOK

View Source
const PostEniDisabledCode int = 501

PostEniDisabledCode is the HTTP code returned for type PostEniDisabled

View Source
const PostEniExistsCode int = 409

PostEniExistsCode is the HTTP code returned for type PostEniExists

View Source
const PostEniFailureCode int = 500

PostEniFailureCode is the HTTP code returned for type PostEniFailure

View Source
const PostEniInvalidCode int = 400

PostEniInvalidCode is the HTTP code returned for type PostEniInvalid

View Source
const PostEniOKCode int = 200

PostEniOKCode is the HTTP code returned for type PostEniOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteEni

type DeleteEni struct {
	Context *middleware.Context
	Handler DeleteEniHandler
}

DeleteEni swagger:route DELETE /eni eni deleteEni

Release an allocated IP address for exclusive ENI

func NewDeleteEni

func NewDeleteEni(ctx *middleware.Context, handler DeleteEniHandler) *DeleteEni

NewDeleteEni creates a new http.Handler for the delete eni operation

func (*DeleteEni) ServeHTTP

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

type DeleteEniDisabled

type DeleteEniDisabled struct {
}

DeleteEniDisabled Allocation for address family disabled

swagger:response deleteEniDisabled

func NewDeleteEniDisabled

func NewDeleteEniDisabled() *DeleteEniDisabled

NewDeleteEniDisabled creates DeleteEniDisabled with default headers values

func (*DeleteEniDisabled) WriteResponse

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

WriteResponse to the client

type DeleteEniFailure

type DeleteEniFailure struct {

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

DeleteEniFailure Address release failure

swagger:response deleteEniFailure

func NewDeleteEniFailure

func NewDeleteEniFailure() *DeleteEniFailure

NewDeleteEniFailure creates DeleteEniFailure with default headers values

func (*DeleteEniFailure) SetPayload

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

SetPayload sets the payload to the delete eni failure response

func (*DeleteEniFailure) WithPayload

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

WithPayload adds the payload to the delete eni failure response

func (*DeleteEniFailure) WriteResponse

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

WriteResponse to the client

type DeleteEniHandler

type DeleteEniHandler interface {
	Handle(DeleteEniParams) middleware.Responder
}

DeleteEniHandler interface for that can handle valid delete eni params

type DeleteEniHandlerFunc

type DeleteEniHandlerFunc func(DeleteEniParams) middleware.Responder

DeleteEniHandlerFunc turns a function with the right signature into a delete eni handler

func (DeleteEniHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteEniInvalid

type DeleteEniInvalid struct {
}

DeleteEniInvalid Invalid IP address

swagger:response deleteEniInvalid

func NewDeleteEniInvalid

func NewDeleteEniInvalid() *DeleteEniInvalid

NewDeleteEniInvalid creates DeleteEniInvalid with default headers values

func (*DeleteEniInvalid) WriteResponse

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

WriteResponse to the client

type DeleteEniNotFound

type DeleteEniNotFound struct {
}

DeleteEniNotFound IP address not found

swagger:response deleteEniNotFound

func NewDeleteEniNotFound

func NewDeleteEniNotFound() *DeleteEniNotFound

NewDeleteEniNotFound creates DeleteEniNotFound with default headers values

func (*DeleteEniNotFound) WriteResponse

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

WriteResponse to the client

type DeleteEniOK

type DeleteEniOK struct {
}

DeleteEniOK Success

swagger:response deleteEniOK

func NewDeleteEniOK

func NewDeleteEniOK() *DeleteEniOK

NewDeleteEniOK creates DeleteEniOK with default headers values

func (*DeleteEniOK) WriteResponse

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

WriteResponse to the client

type DeleteEniParams

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

DeleteEniParams contains all the bound params for the delete eni operation typically these are obtained from a http.Request

swagger:parameters DeleteEni

func NewDeleteEniParams

func NewDeleteEniParams() DeleteEniParams

NewDeleteEniParams creates a new DeleteEniParams object no default values defined in spec.

func (*DeleteEniParams) BindRequest

func (o *DeleteEniParams) 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 NewDeleteEniParams() beforehand.

type PostEni

type PostEni struct {
	Context *middleware.Context
	Handler PostEniHandler
}

PostEni swagger:route POST /eni eni postEni

Allocate an IP address for exclusive ENI

func NewPostEni

func NewPostEni(ctx *middleware.Context, handler PostEniHandler) *PostEni

NewPostEni creates a new http.Handler for the post eni operation

func (*PostEni) ServeHTTP

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

type PostEniDisabled

type PostEniDisabled struct {
}

PostEniDisabled Allocation for address family disabled

swagger:response postEniDisabled

func NewPostEniDisabled

func NewPostEniDisabled() *PostEniDisabled

NewPostEniDisabled creates PostEniDisabled with default headers values

func (*PostEniDisabled) WriteResponse

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

WriteResponse to the client

type PostEniExists

type PostEniExists struct {
}

PostEniExists IP already allocated

swagger:response postEniExists

func NewPostEniExists

func NewPostEniExists() *PostEniExists

NewPostEniExists creates PostEniExists with default headers values

func (*PostEniExists) WriteResponse

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

WriteResponse to the client

type PostEniFailure

type PostEniFailure struct {

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

PostEniFailure IP allocation failure. Details in message.

swagger:response postEniFailure

func NewPostEniFailure

func NewPostEniFailure() *PostEniFailure

NewPostEniFailure creates PostEniFailure with default headers values

func (*PostEniFailure) SetPayload

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

SetPayload sets the payload to the post eni failure response

func (*PostEniFailure) WithPayload

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

WithPayload adds the payload to the post eni failure response

func (*PostEniFailure) WriteResponse

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

WriteResponse to the client

type PostEniHandler

type PostEniHandler interface {
	Handle(PostEniParams) middleware.Responder
}

PostEniHandler interface for that can handle valid post eni params

type PostEniHandlerFunc

type PostEniHandlerFunc func(PostEniParams) middleware.Responder

PostEniHandlerFunc turns a function with the right signature into a post eni handler

func (PostEniHandlerFunc) Handle

Handle executing the request and returning a response

type PostEniInvalid

type PostEniInvalid struct {
}

PostEniInvalid Invalid IP address

swagger:response postEniInvalid

func NewPostEniInvalid

func NewPostEniInvalid() *PostEniInvalid

NewPostEniInvalid creates PostEniInvalid with default headers values

func (*PostEniInvalid) WriteResponse

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

WriteResponse to the client

type PostEniOK

type PostEniOK struct {

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

PostEniOK Success

swagger:response postEniOK

func NewPostEniOK

func NewPostEniOK() *PostEniOK

NewPostEniOK creates PostEniOK with default headers values

func (*PostEniOK) SetPayload

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

SetPayload sets the payload to the post eni o k response

func (*PostEniOK) WithPayload

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

WithPayload adds the payload to the post eni o k response

func (*PostEniOK) WriteResponse

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

WriteResponse to the client

type PostEniParams

type PostEniParams struct {

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

	/*container id provider by cni
	  In: query
	*/
	ContainerID *string
	/*Expectations when applying for ENI
	  In: body
	*/
	Eni *models.ENI
	/*ifname provider by cni
	  In: query
	*/
	Ifname *string
	/*netns provider by cni
	  In: query
	*/
	Netns *string
	/*
	  In: query
	*/
	Owner *string
}

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

swagger:parameters PostEni

func NewPostEniParams

func NewPostEniParams() PostEniParams

NewPostEniParams creates a new PostEniParams object no default values defined in spec.

func (*PostEniParams) BindRequest

func (o *PostEniParams) 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 NewPostEniParams() beforehand.

Jump to

Keyboard shortcuts

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