endpoint

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

Documentation

Index

Constants

View Source
const GetEndpointExtpluginStatusFailureCode int = 500

GetEndpointExtpluginStatusFailureCode is the HTTP code returned for type GetEndpointExtpluginStatusFailure

View Source
const GetEndpointExtpluginStatusOKCode int = 200

GetEndpointExtpluginStatusOKCode is the HTTP code returned for type GetEndpointExtpluginStatusOK

View Source
const PutEndpointProbeCreatedCode int = 201

PutEndpointProbeCreatedCode is the HTTP code returned for type PutEndpointProbeCreated

View Source
const PutEndpointProbeFailureCode int = 500

PutEndpointProbeFailureCode is the HTTP code returned for type PutEndpointProbeFailure

Variables

This section is empty.

Functions

This section is empty.

Types

type GetEndpointExtpluginStatus

type GetEndpointExtpluginStatus struct {
	Context *middleware.Context
	Handler GetEndpointExtpluginStatusHandler
}

GetEndpointExtpluginStatus swagger:route GET /endpoint/extplugin/status endpoint getEndpointExtpluginStatus

get external plugin status

func NewGetEndpointExtpluginStatus

func NewGetEndpointExtpluginStatus(ctx *middleware.Context, handler GetEndpointExtpluginStatusHandler) *GetEndpointExtpluginStatus

NewGetEndpointExtpluginStatus creates a new http.Handler for the get endpoint extplugin status operation

func (*GetEndpointExtpluginStatus) ServeHTTP

type GetEndpointExtpluginStatusFailure

type GetEndpointExtpluginStatusFailure struct {

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

GetEndpointExtpluginStatusFailure failed to get external plugin status. Details in message.

swagger:response getEndpointExtpluginStatusFailure

func NewGetEndpointExtpluginStatusFailure

func NewGetEndpointExtpluginStatusFailure() *GetEndpointExtpluginStatusFailure

NewGetEndpointExtpluginStatusFailure creates GetEndpointExtpluginStatusFailure with default headers values

func (*GetEndpointExtpluginStatusFailure) SetPayload

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

SetPayload sets the payload to the get endpoint extplugin status failure response

func (*GetEndpointExtpluginStatusFailure) WithPayload

WithPayload adds the payload to the get endpoint extplugin status failure response

func (*GetEndpointExtpluginStatusFailure) WriteResponse

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

WriteResponse to the client

type GetEndpointExtpluginStatusHandler

type GetEndpointExtpluginStatusHandler interface {
	Handle(GetEndpointExtpluginStatusParams) middleware.Responder
}

GetEndpointExtpluginStatusHandler interface for that can handle valid get endpoint extplugin status params

type GetEndpointExtpluginStatusHandlerFunc

type GetEndpointExtpluginStatusHandlerFunc func(GetEndpointExtpluginStatusParams) middleware.Responder

GetEndpointExtpluginStatusHandlerFunc turns a function with the right signature into a get endpoint extplugin status handler

func (GetEndpointExtpluginStatusHandlerFunc) Handle

Handle executing the request and returning a response

type GetEndpointExtpluginStatusOK

type GetEndpointExtpluginStatusOK struct {

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

GetEndpointExtpluginStatusOK Success

swagger:response getEndpointExtpluginStatusOK

func NewGetEndpointExtpluginStatusOK

func NewGetEndpointExtpluginStatusOK() *GetEndpointExtpluginStatusOK

NewGetEndpointExtpluginStatusOK creates GetEndpointExtpluginStatusOK with default headers values

func (*GetEndpointExtpluginStatusOK) SetPayload

func (o *GetEndpointExtpluginStatusOK) SetPayload(payload models.ExtFeatureData)

SetPayload sets the payload to the get endpoint extplugin status o k response

func (*GetEndpointExtpluginStatusOK) WithPayload

WithPayload adds the payload to the get endpoint extplugin status o k response

func (*GetEndpointExtpluginStatusOK) WriteResponse

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

WriteResponse to the client

type GetEndpointExtpluginStatusParams

type GetEndpointExtpluginStatusParams struct {

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

	/*container id provider by cni
	  In: query
	*/
	ContainerID *string
	/*
	  In: query
	*/
	Owner *string
}

GetEndpointExtpluginStatusParams contains all the bound params for the get endpoint extplugin status operation typically these are obtained from a http.Request

swagger:parameters GetEndpointExtpluginStatus

func NewGetEndpointExtpluginStatusParams

func NewGetEndpointExtpluginStatusParams() GetEndpointExtpluginStatusParams

NewGetEndpointExtpluginStatusParams creates a new GetEndpointExtpluginStatusParams object no default values defined in spec.

func (*GetEndpointExtpluginStatusParams) BindRequest

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 NewGetEndpointExtpluginStatusParams() beforehand.

type PutEndpointProbe

type PutEndpointProbe struct {
	Context *middleware.Context
	Handler PutEndpointProbeHandler
}

PutEndpointProbe swagger:route PUT /endpoint/probe endpoint putEndpointProbe

create or update endpint probe

func NewPutEndpointProbe

func NewPutEndpointProbe(ctx *middleware.Context, handler PutEndpointProbeHandler) *PutEndpointProbe

NewPutEndpointProbe creates a new http.Handler for the put endpoint probe operation

func (*PutEndpointProbe) ServeHTTP

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

type PutEndpointProbeCreated

type PutEndpointProbeCreated struct {

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

PutEndpointProbeCreated Success

swagger:response putEndpointProbeCreated

func NewPutEndpointProbeCreated

func NewPutEndpointProbeCreated() *PutEndpointProbeCreated

NewPutEndpointProbeCreated creates PutEndpointProbeCreated with default headers values

func (*PutEndpointProbeCreated) SetPayload

func (o *PutEndpointProbeCreated) SetPayload(payload *models.EndpointProbeResponse)

SetPayload sets the payload to the put endpoint probe created response

func (*PutEndpointProbeCreated) WithPayload

WithPayload adds the payload to the put endpoint probe created response

func (*PutEndpointProbeCreated) WriteResponse

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

WriteResponse to the client

type PutEndpointProbeFailure

type PutEndpointProbeFailure struct {

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

PutEndpointProbeFailure update endpoint failed. Details in message.

swagger:response putEndpointProbeFailure

func NewPutEndpointProbeFailure

func NewPutEndpointProbeFailure() *PutEndpointProbeFailure

NewPutEndpointProbeFailure creates PutEndpointProbeFailure with default headers values

func (*PutEndpointProbeFailure) SetPayload

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

SetPayload sets the payload to the put endpoint probe failure response

func (*PutEndpointProbeFailure) WithPayload

WithPayload adds the payload to the put endpoint probe failure response

func (*PutEndpointProbeFailure) WriteResponse

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

WriteResponse to the client

type PutEndpointProbeHandler

type PutEndpointProbeHandler interface {
	Handle(PutEndpointProbeParams) middleware.Responder
}

PutEndpointProbeHandler interface for that can handle valid put endpoint probe params

type PutEndpointProbeHandlerFunc

type PutEndpointProbeHandlerFunc func(PutEndpointProbeParams) middleware.Responder

PutEndpointProbeHandlerFunc turns a function with the right signature into a put endpoint probe handler

func (PutEndpointProbeHandlerFunc) Handle

Handle executing the request and returning a response

type PutEndpointProbeParams

type PutEndpointProbeParams struct {

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

	/*
	  In: query
	*/
	CniDriver *string
	/*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
}

PutEndpointProbeParams contains all the bound params for the put endpoint probe operation typically these are obtained from a http.Request

swagger:parameters PutEndpointProbe

func NewPutEndpointProbeParams

func NewPutEndpointProbeParams() PutEndpointProbeParams

NewPutEndpointProbeParams creates a new PutEndpointProbeParams object no default values defined in spec.

func (*PutEndpointProbeParams) BindRequest

func (o *PutEndpointProbeParams) 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 NewPutEndpointProbeParams() beforehand.

Jump to

Keyboard shortcuts

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