config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MPL-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 (*Client) GetConfig

func (a *Client) GetConfig(params *GetConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigOK, error)

GetConfig returns all config settings for a single server

func (*Client) GetConfigSetting

func (a *Client) GetConfigSetting(params *GetConfigSettingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigSettingOK, error)

GetConfigSetting returns a specific config setting for a single server

NOT IMPLEMENTED

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetConfig(params *GetConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigOK, error)

	GetConfigSetting(params *GetConfigSettingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigSettingOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new config API client.

type GetConfigOK

type GetConfigOK struct {
	Payload []*models.ConfigSetting
}
GetConfigOK describes a response with status code 200, with default header values.

List of config values

func NewGetConfigOK

func NewGetConfigOK() *GetConfigOK

NewGetConfigOK creates a GetConfigOK with default headers values

func (*GetConfigOK) Error

func (o *GetConfigOK) Error() string

func (*GetConfigOK) GetPayload

func (o *GetConfigOK) GetPayload() []*models.ConfigSetting

type GetConfigParams

type GetConfigParams struct {

	/* ServerID.

	   The id of the server to retrieve
	*/
	ServerID string

	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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetConfigParamsWithContext

func NewGetConfigParamsWithContext(ctx context.Context) *GetConfigParams

NewGetConfigParamsWithContext creates a new GetConfigParams object with 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 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 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) SetDefaults

func (o *GetConfigParams) SetDefaults()

SetDefaults hydrates default values in the get config params (not the query body).

All values with no default are reset to their zero value.

func (*GetConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get config params

func (*GetConfigParams) SetServerID

func (o *GetConfigParams) SetServerID(serverID string)

SetServerID adds the serverId 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) WithDefaults

func (o *GetConfigParams) WithDefaults() *GetConfigParams

WithDefaults hydrates default values in the get config params (not the query body).

All values with no default are reset to their zero value.

func (*GetConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get config params

func (*GetConfigParams) WithServerID

func (o *GetConfigParams) WithServerID(serverID string) *GetConfigParams

WithServerID adds the serverID 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 GetConfigSettingOK

type GetConfigSettingOK struct {
	Payload *models.ConfigSetting
}
GetConfigSettingOK describes a response with status code 200, with default header values.

List of config values

func NewGetConfigSettingOK

func NewGetConfigSettingOK() *GetConfigSettingOK

NewGetConfigSettingOK creates a GetConfigSettingOK with default headers values

func (*GetConfigSettingOK) Error

func (o *GetConfigSettingOK) Error() string

func (*GetConfigSettingOK) GetPayload

func (o *GetConfigSettingOK) GetPayload() *models.ConfigSetting

type GetConfigSettingParams

type GetConfigSettingParams struct {

	/* ConfigSettingName.

	   The name of the setting to retrieve
	*/
	ConfigSettingName string

	/* ServerID.

	   The id of the server to retrieve
	*/
	ServerID string

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

GetConfigSettingParams contains all the parameters to send to the API endpoint

for the get config setting operation.

Typically these are written to a http.Request.

func NewGetConfigSettingParams

func NewGetConfigSettingParams() *GetConfigSettingParams

NewGetConfigSettingParams creates a new GetConfigSettingParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetConfigSettingParamsWithContext

func NewGetConfigSettingParamsWithContext(ctx context.Context) *GetConfigSettingParams

NewGetConfigSettingParamsWithContext creates a new GetConfigSettingParams object with the ability to set a context for a request.

func NewGetConfigSettingParamsWithHTTPClient

func NewGetConfigSettingParamsWithHTTPClient(client *http.Client) *GetConfigSettingParams

NewGetConfigSettingParamsWithHTTPClient creates a new GetConfigSettingParams object with the ability to set a custom HTTPClient for a request.

func NewGetConfigSettingParamsWithTimeout

func NewGetConfigSettingParamsWithTimeout(timeout time.Duration) *GetConfigSettingParams

NewGetConfigSettingParamsWithTimeout creates a new GetConfigSettingParams object with the ability to set a timeout on a request.

func (*GetConfigSettingParams) SetConfigSettingName

func (o *GetConfigSettingParams) SetConfigSettingName(configSettingName string)

SetConfigSettingName adds the configSettingName to the get config setting params

func (*GetConfigSettingParams) SetContext

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

SetContext adds the context to the get config setting params

func (*GetConfigSettingParams) SetDefaults

func (o *GetConfigSettingParams) SetDefaults()

SetDefaults hydrates default values in the get config setting params (not the query body).

All values with no default are reset to their zero value.

func (*GetConfigSettingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get config setting params

func (*GetConfigSettingParams) SetServerID

func (o *GetConfigSettingParams) SetServerID(serverID string)

SetServerID adds the serverId to the get config setting params

func (*GetConfigSettingParams) SetTimeout

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

SetTimeout adds the timeout to the get config setting params

func (*GetConfigSettingParams) WithConfigSettingName

func (o *GetConfigSettingParams) WithConfigSettingName(configSettingName string) *GetConfigSettingParams

WithConfigSettingName adds the configSettingName to the get config setting params

func (*GetConfigSettingParams) WithContext

WithContext adds the context to the get config setting params

func (*GetConfigSettingParams) WithDefaults

WithDefaults hydrates default values in the get config setting params (not the query body).

All values with no default are reset to their zero value.

func (*GetConfigSettingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get config setting params

func (*GetConfigSettingParams) WithServerID

func (o *GetConfigSettingParams) WithServerID(serverID string) *GetConfigSettingParams

WithServerID adds the serverID to the get config setting params

func (*GetConfigSettingParams) WithTimeout

WithTimeout adds the timeout to the get config setting params

func (*GetConfigSettingParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetConfigSettingReader

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

GetConfigSettingReader is a Reader for the GetConfigSetting structure.

func (*GetConfigSettingReader) ReadResponse

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