daemon

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GetConfigOKCode int = 200

GetConfigOKCode is the HTTP code returned for type GetConfigOK

View Source
const GetHealthzOKCode int = 200

GetHealthzOKCode is the HTTP code returned for type GetHealthzOK

View Source
const PatchConfigBadRequestCode int = 400

PatchConfigBadRequestCode is the HTTP code returned for type PatchConfigBadRequest

View Source
const PatchConfigFailureCode int = 500

PatchConfigFailureCode is the HTTP code returned for type PatchConfigFailure

View Source
const PatchConfigOKCode int = 200

PatchConfigOKCode is the HTTP code returned for type PatchConfigOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetConfig

type GetConfig struct {
	Context *middleware.Context
	Handler GetConfigHandler
}

GetConfig swagger:route GET /config daemon getConfig

Get configuration of Cilium daemon

Returns the configuration of the Cilium daemon.

func NewGetConfig

func NewGetConfig(ctx *middleware.Context, handler GetConfigHandler) *GetConfig

NewGetConfig creates a new http.Handler for the get config operation

func (*GetConfig) ServeHTTP

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

type GetConfigHandler

type GetConfigHandler interface {
	Handle(GetConfigParams) middleware.Responder
}

GetConfigHandler interface for that can handle valid get config params

type GetConfigHandlerFunc

type GetConfigHandlerFunc func(GetConfigParams) middleware.Responder

GetConfigHandlerFunc turns a function with the right signature into a get config handler

func (GetConfigHandlerFunc) Handle

Handle executing the request and returning a response

type GetConfigOK

type GetConfigOK struct {

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

GetConfigOK Success

swagger:response getConfigOK

func NewGetConfigOK

func NewGetConfigOK() *GetConfigOK

NewGetConfigOK creates GetConfigOK with default headers values

func (*GetConfigOK) SetPayload

func (o *GetConfigOK) SetPayload(payload *models.DaemonConfigurationResponse)

SetPayload sets the payload to the get config o k response

func (*GetConfigOK) WithPayload

func (o *GetConfigOK) WithPayload(payload *models.DaemonConfigurationResponse) *GetConfigOK

WithPayload adds the payload to the get config o k response

func (*GetConfigOK) WriteResponse

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

WriteResponse to the client

type GetConfigParams

type GetConfigParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

GetConfigParams contains all the bound params for the get config operation typically these are obtained from a http.Request

swagger:parameters GetConfig

func NewGetConfigParams

func NewGetConfigParams() GetConfigParams

NewGetConfigParams creates a new GetConfigParams object with the default values initialized.

func (*GetConfigParams) BindRequest

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

type GetConfigURL

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

GetConfigURL generates an URL for the get config operation

func (*GetConfigURL) Build

func (o *GetConfigURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetConfigURL) BuildFull

func (o *GetConfigURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetConfigURL) Must

func (o *GetConfigURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetConfigURL) SetBasePath

func (o *GetConfigURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetConfigURL) String

func (o *GetConfigURL) String() string

String returns the string representation of the path with query string

func (*GetConfigURL) StringFull

func (o *GetConfigURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetConfigURL) WithBasePath

func (o *GetConfigURL) WithBasePath(bp string) *GetConfigURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetHealthz

type GetHealthz struct {
	Context *middleware.Context
	Handler GetHealthzHandler
}

GetHealthz swagger:route GET /healthz daemon getHealthz

Get health of Cilium daemon

Returns health and status information of the Cilium daemon and related components such as the local container runtime, connected datastore, Kubernetes integration.

func NewGetHealthz

func NewGetHealthz(ctx *middleware.Context, handler GetHealthzHandler) *GetHealthz

NewGetHealthz creates a new http.Handler for the get healthz operation

func (*GetHealthz) ServeHTTP

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

type GetHealthzHandler

type GetHealthzHandler interface {
	Handle(GetHealthzParams) middleware.Responder
}

GetHealthzHandler interface for that can handle valid get healthz params

type GetHealthzHandlerFunc

type GetHealthzHandlerFunc func(GetHealthzParams) middleware.Responder

GetHealthzHandlerFunc turns a function with the right signature into a get healthz handler

func (GetHealthzHandlerFunc) Handle

Handle executing the request and returning a response

type GetHealthzOK

type GetHealthzOK struct {

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

GetHealthzOK Success

swagger:response getHealthzOK

func NewGetHealthzOK

func NewGetHealthzOK() *GetHealthzOK

NewGetHealthzOK creates GetHealthzOK with default headers values

func (*GetHealthzOK) SetPayload

func (o *GetHealthzOK) SetPayload(payload *models.StatusResponse)

SetPayload sets the payload to the get healthz o k response

func (*GetHealthzOK) WithPayload

func (o *GetHealthzOK) WithPayload(payload *models.StatusResponse) *GetHealthzOK

WithPayload adds the payload to the get healthz o k response

func (*GetHealthzOK) WriteResponse

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

WriteResponse to the client

type GetHealthzParams

type GetHealthzParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

GetHealthzParams contains all the bound params for the get healthz operation typically these are obtained from a http.Request

swagger:parameters GetHealthz

func NewGetHealthzParams

func NewGetHealthzParams() GetHealthzParams

NewGetHealthzParams creates a new GetHealthzParams object with the default values initialized.

func (*GetHealthzParams) BindRequest

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

type GetHealthzURL

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

GetHealthzURL generates an URL for the get healthz operation

func (*GetHealthzURL) Build

func (o *GetHealthzURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetHealthzURL) BuildFull

func (o *GetHealthzURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetHealthzURL) Must

func (o *GetHealthzURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetHealthzURL) SetBasePath

func (o *GetHealthzURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetHealthzURL) String

func (o *GetHealthzURL) String() string

String returns the string representation of the path with query string

func (*GetHealthzURL) StringFull

func (o *GetHealthzURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetHealthzURL) WithBasePath

func (o *GetHealthzURL) WithBasePath(bp string) *GetHealthzURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PatchConfig

type PatchConfig struct {
	Context *middleware.Context
	Handler PatchConfigHandler
}

PatchConfig swagger:route PATCH /config daemon patchConfig

Modify daemon configuration

Updates the daemon configuration by applying the provided ConfigurationMap and regenerates & recompiles all required datapath components.

func NewPatchConfig

func NewPatchConfig(ctx *middleware.Context, handler PatchConfigHandler) *PatchConfig

NewPatchConfig creates a new http.Handler for the patch config operation

func (*PatchConfig) ServeHTTP

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

type PatchConfigBadRequest

type PatchConfigBadRequest struct {

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

PatchConfigBadRequest Bad configuration parameters

swagger:response patchConfigBadRequest

func NewPatchConfigBadRequest

func NewPatchConfigBadRequest() *PatchConfigBadRequest

NewPatchConfigBadRequest creates PatchConfigBadRequest with default headers values

func (*PatchConfigBadRequest) SetPayload

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

SetPayload sets the payload to the patch config bad request response

func (*PatchConfigBadRequest) WithPayload

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

WithPayload adds the payload to the patch config bad request response

func (*PatchConfigBadRequest) WriteResponse

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

WriteResponse to the client

type PatchConfigFailure

type PatchConfigFailure struct {

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

PatchConfigFailure Recompilation failed

swagger:response patchConfigFailure

func NewPatchConfigFailure

func NewPatchConfigFailure() *PatchConfigFailure

NewPatchConfigFailure creates PatchConfigFailure with default headers values

func (*PatchConfigFailure) SetPayload

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

SetPayload sets the payload to the patch config failure response

func (*PatchConfigFailure) WithPayload

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

WithPayload adds the payload to the patch config failure response

func (*PatchConfigFailure) WriteResponse

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

WriteResponse to the client

type PatchConfigHandler

type PatchConfigHandler interface {
	Handle(PatchConfigParams) middleware.Responder
}

PatchConfigHandler interface for that can handle valid patch config params

type PatchConfigHandlerFunc

type PatchConfigHandlerFunc func(PatchConfigParams) middleware.Responder

PatchConfigHandlerFunc turns a function with the right signature into a patch config handler

func (PatchConfigHandlerFunc) Handle

Handle executing the request and returning a response

type PatchConfigOK

type PatchConfigOK struct {
}

PatchConfigOK Success

swagger:response patchConfigOK

func NewPatchConfigOK

func NewPatchConfigOK() *PatchConfigOK

NewPatchConfigOK creates PatchConfigOK with default headers values

func (*PatchConfigOK) WriteResponse

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

WriteResponse to the client

type PatchConfigParams

type PatchConfigParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: body
	*/
	Configuration models.ConfigurationMap
}

PatchConfigParams contains all the bound params for the patch config operation typically these are obtained from a http.Request

swagger:parameters PatchConfig

func NewPatchConfigParams

func NewPatchConfigParams() PatchConfigParams

NewPatchConfigParams creates a new PatchConfigParams object with the default values initialized.

func (*PatchConfigParams) BindRequest

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

type PatchConfigURL

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

PatchConfigURL generates an URL for the patch config operation

func (*PatchConfigURL) Build

func (o *PatchConfigURL) Build() (*url.URL, error)

Build a url path and query string

func (*PatchConfigURL) BuildFull

func (o *PatchConfigURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PatchConfigURL) Must

func (o *PatchConfigURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PatchConfigURL) SetBasePath

func (o *PatchConfigURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PatchConfigURL) String

func (o *PatchConfigURL) String() string

String returns the string representation of the path with query string

func (*PatchConfigURL) StringFull

func (o *PatchConfigURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PatchConfigURL) WithBasePath

func (o *PatchConfigURL) WithBasePath(bp string) *PatchConfigURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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