daemon

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: Apache-2.0 Imports: 10 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 daemon API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new daemon API client.

func (*Client) GetConfig

func (a *Client) GetConfig(params *GetConfigParams) (*GetConfigOK, error)

GetConfig gets configuration of cilium daemon

Returns the configuration of the Cilium daemon.

func (*Client) GetHealthz

func (a *Client) GetHealthz(params *GetHealthzParams) (*GetHealthzOK, error)

GetHealthz gets 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 (*Client) PatchConfig

func (a *Client) PatchConfig(params *PatchConfigParams) (*PatchConfigOK, error)

PatchConfig modifies daemon configuration

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

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type GetConfigOK

type GetConfigOK struct {
	Payload *models.DaemonConfigurationResponse
}

GetConfigOK handles this case with default header values.

Success

func NewGetConfigOK

func NewGetConfigOK() *GetConfigOK

NewGetConfigOK creates a GetConfigOK with default headers values

func (*GetConfigOK) Error

func (o *GetConfigOK) Error() string

type GetConfigParams

type GetConfigParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetConfigParams contains all the parameters to send to the API endpoint for the get config operation typically these are written to a http.Request

func NewGetConfigParams

func NewGetConfigParams() *GetConfigParams

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

func NewGetConfigParamsWithContext

func NewGetConfigParamsWithContext(ctx context.Context) *GetConfigParams

NewGetConfigParamsWithContext creates a new GetConfigParams object with the default values initialized, and the ability to set a context for a request

func NewGetConfigParamsWithHTTPClient

func NewGetConfigParamsWithHTTPClient(client *http.Client) *GetConfigParams

NewGetConfigParamsWithHTTPClient creates a new GetConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetConfigParamsWithTimeout

func NewGetConfigParamsWithTimeout(timeout time.Duration) *GetConfigParams

NewGetConfigParamsWithTimeout creates a new GetConfigParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetConfigParams) SetContext

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

SetContext adds the context to the get config params

func (*GetConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get config params

func (*GetConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get config params

func (*GetConfigParams) WithContext

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

WithContext adds the context to the get config params

func (*GetConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get config params

func (*GetConfigParams) WithTimeout

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

WithTimeout adds the timeout to the get config params

func (*GetConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConfigReader

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

GetConfigReader is a Reader for the GetConfig structure.

func (*GetConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHealthzOK

type GetHealthzOK struct {
	Payload *models.StatusResponse
}

GetHealthzOK handles this case with default header values.

Success

func NewGetHealthzOK

func NewGetHealthzOK() *GetHealthzOK

NewGetHealthzOK creates a GetHealthzOK with default headers values

func (*GetHealthzOK) Error

func (o *GetHealthzOK) Error() string

type GetHealthzParams

type GetHealthzParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetHealthzParams contains all the parameters to send to the API endpoint for the get healthz operation typically these are written to a http.Request

func NewGetHealthzParams

func NewGetHealthzParams() *GetHealthzParams

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

func NewGetHealthzParamsWithContext

func NewGetHealthzParamsWithContext(ctx context.Context) *GetHealthzParams

NewGetHealthzParamsWithContext creates a new GetHealthzParams object with the default values initialized, and the ability to set a context for a request

func NewGetHealthzParamsWithHTTPClient

func NewGetHealthzParamsWithHTTPClient(client *http.Client) *GetHealthzParams

NewGetHealthzParamsWithHTTPClient creates a new GetHealthzParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetHealthzParamsWithTimeout

func NewGetHealthzParamsWithTimeout(timeout time.Duration) *GetHealthzParams

NewGetHealthzParamsWithTimeout creates a new GetHealthzParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetHealthzParams) SetContext

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

SetContext adds the context to the get healthz params

func (*GetHealthzParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get healthz params

func (*GetHealthzParams) SetTimeout

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

SetTimeout adds the timeout to the get healthz params

func (*GetHealthzParams) WithContext

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

WithContext adds the context to the get healthz params

func (*GetHealthzParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get healthz params

func (*GetHealthzParams) WithTimeout

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

WithTimeout adds the timeout to the get healthz params

func (*GetHealthzParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetHealthzReader

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

GetHealthzReader is a Reader for the GetHealthz structure.

func (*GetHealthzReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchConfigBadRequest

type PatchConfigBadRequest struct {
	Payload models.Error
}

PatchConfigBadRequest handles this case with default header values.

Bad configuration parameters

func NewPatchConfigBadRequest

func NewPatchConfigBadRequest() *PatchConfigBadRequest

NewPatchConfigBadRequest creates a PatchConfigBadRequest with default headers values

func (*PatchConfigBadRequest) Error

func (o *PatchConfigBadRequest) Error() string

type PatchConfigFailure

type PatchConfigFailure struct {
	Payload models.Error
}

PatchConfigFailure handles this case with default header values.

Recompilation failed

func NewPatchConfigFailure

func NewPatchConfigFailure() *PatchConfigFailure

NewPatchConfigFailure creates a PatchConfigFailure with default headers values

func (*PatchConfigFailure) Error

func (o *PatchConfigFailure) Error() string

type PatchConfigOK

type PatchConfigOK struct {
}

PatchConfigOK handles this case with default header values.

Success

func NewPatchConfigOK

func NewPatchConfigOK() *PatchConfigOK

NewPatchConfigOK creates a PatchConfigOK with default headers values

func (*PatchConfigOK) Error

func (o *PatchConfigOK) Error() string

type PatchConfigParams

type PatchConfigParams struct {

	/*Configuration*/
	Configuration models.ConfigurationMap

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PatchConfigParams contains all the parameters to send to the API endpoint for the patch config operation typically these are written to a http.Request

func NewPatchConfigParams

func NewPatchConfigParams() *PatchConfigParams

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

func NewPatchConfigParamsWithContext

func NewPatchConfigParamsWithContext(ctx context.Context) *PatchConfigParams

NewPatchConfigParamsWithContext creates a new PatchConfigParams object with the default values initialized, and the ability to set a context for a request

func NewPatchConfigParamsWithHTTPClient

func NewPatchConfigParamsWithHTTPClient(client *http.Client) *PatchConfigParams

NewPatchConfigParamsWithHTTPClient creates a new PatchConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPatchConfigParamsWithTimeout

func NewPatchConfigParamsWithTimeout(timeout time.Duration) *PatchConfigParams

NewPatchConfigParamsWithTimeout creates a new PatchConfigParams object with the default values initialized, and the ability to set a timeout on a request

func (*PatchConfigParams) SetConfiguration

func (o *PatchConfigParams) SetConfiguration(configuration models.ConfigurationMap)

SetConfiguration adds the configuration to the patch config params

func (*PatchConfigParams) SetContext

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

SetContext adds the context to the patch config params

func (*PatchConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch config params

func (*PatchConfigParams) SetTimeout

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

SetTimeout adds the timeout to the patch config params

func (*PatchConfigParams) WithConfiguration

func (o *PatchConfigParams) WithConfiguration(configuration models.ConfigurationMap) *PatchConfigParams

WithConfiguration adds the configuration to the patch config params

func (*PatchConfigParams) WithContext

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

WithContext adds the context to the patch config params

func (*PatchConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch config params

func (*PatchConfigParams) WithTimeout

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

WithTimeout adds the timeout to the patch config params

func (*PatchConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PatchConfigReader

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

PatchConfigReader is a Reader for the PatchConfig structure.

func (*PatchConfigReader) ReadResponse

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