config

package
v2.2.0-beta.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 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 config API

func New

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

New creates a new config API client.

func (*Client) GetConfig

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

GetConfig returns a current view of the kubescaler configuration

This will show all configuration parameters of the application.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateConfig

func (a *Client) UpdateConfig(params *UpdateConfigParams) (*UpdateConfigOK, error)

UpdateConfig returns a new view of the kubescaler configuration

This will update current configuration of the application.

type GetConfigOK

type GetConfigOK struct {
	Payload *models.Config
}

GetConfigOK handles this case with default header values.

configResponse contains an application config parameters.

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 UpdateConfigOK

type UpdateConfigOK struct {
	Payload *models.Config
}

UpdateConfigOK handles this case with default header values.

configResponse contains an application config parameters.

func NewUpdateConfigOK

func NewUpdateConfigOK() *UpdateConfigOK

NewUpdateConfigOK creates a UpdateConfigOK with default headers values

func (*UpdateConfigOK) Error

func (o *UpdateConfigOK) Error() string

type UpdateConfigParams

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

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

func NewUpdateConfigParams

func NewUpdateConfigParams() *UpdateConfigParams

NewUpdateConfigParams creates a new UpdateConfigParams object with the default values initialized.

func NewUpdateConfigParamsWithContext

func NewUpdateConfigParamsWithContext(ctx context.Context) *UpdateConfigParams

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

func NewUpdateConfigParamsWithHTTPClient

func NewUpdateConfigParamsWithHTTPClient(client *http.Client) *UpdateConfigParams

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

func NewUpdateConfigParamsWithTimeout

func NewUpdateConfigParamsWithTimeout(timeout time.Duration) *UpdateConfigParams

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

func (*UpdateConfigParams) SetContext

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

SetContext adds the context to the update config params

func (*UpdateConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update config params

func (*UpdateConfigParams) SetTimeout

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

SetTimeout adds the timeout to the update config params

func (*UpdateConfigParams) WithContext

WithContext adds the context to the update config params

func (*UpdateConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update config params

func (*UpdateConfigParams) WithTimeout

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

WithTimeout adds the timeout to the update config params

func (*UpdateConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateConfigReader

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

UpdateConfigReader is a Reader for the UpdateConfig structure.

func (*UpdateConfigReader) ReadResponse

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