config

package
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 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 (*Client) GetConfig

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

GetConfig configs gets the public configuration of the API

Config gets the public configuration of the API

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, opts ...ClientOption) (*GetConfigOK, 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 GetConfigInternalServerError

type GetConfigInternalServerError struct {
	Payload string
}

GetConfigInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetConfigInternalServerError

func NewGetConfigInternalServerError() *GetConfigInternalServerError

NewGetConfigInternalServerError creates a GetConfigInternalServerError with default headers values

func (*GetConfigInternalServerError) Code

Code gets the status code for the get config internal server error response

func (*GetConfigInternalServerError) Error

func (*GetConfigInternalServerError) GetPayload

func (o *GetConfigInternalServerError) GetPayload() string

func (*GetConfigInternalServerError) IsClientError

func (o *GetConfigInternalServerError) IsClientError() bool

IsClientError returns true when this get config internal server error response has a 4xx status code

func (*GetConfigInternalServerError) IsCode

func (o *GetConfigInternalServerError) IsCode(code int) bool

IsCode returns true when this get config internal server error response a status code equal to that given

func (*GetConfigInternalServerError) IsRedirect

func (o *GetConfigInternalServerError) IsRedirect() bool

IsRedirect returns true when this get config internal server error response has a 3xx status code

func (*GetConfigInternalServerError) IsServerError

func (o *GetConfigInternalServerError) IsServerError() bool

IsServerError returns true when this get config internal server error response has a 5xx status code

func (*GetConfigInternalServerError) IsSuccess

func (o *GetConfigInternalServerError) IsSuccess() bool

IsSuccess returns true when this get config internal server error response has a 2xx status code

func (*GetConfigInternalServerError) String

type GetConfigOK

type GetConfigOK struct {
	Payload []*models.ModelsConfigResponse
}

GetConfigOK describes a response with status code 200, with default header values.

OK

func NewGetConfigOK

func NewGetConfigOK() *GetConfigOK

NewGetConfigOK creates a GetConfigOK with default headers values

func (*GetConfigOK) Code

func (o *GetConfigOK) Code() int

Code gets the status code for the get config o k response

func (*GetConfigOK) Error

func (o *GetConfigOK) Error() string

func (*GetConfigOK) GetPayload

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

func (*GetConfigOK) IsClientError

func (o *GetConfigOK) IsClientError() bool

IsClientError returns true when this get config o k response has a 4xx status code

func (*GetConfigOK) IsCode

func (o *GetConfigOK) IsCode(code int) bool

IsCode returns true when this get config o k response a status code equal to that given

func (*GetConfigOK) IsRedirect

func (o *GetConfigOK) IsRedirect() bool

IsRedirect returns true when this get config o k response has a 3xx status code

func (*GetConfigOK) IsServerError

func (o *GetConfigOK) IsServerError() bool

IsServerError returns true when this get config o k response has a 5xx status code

func (*GetConfigOK) IsSuccess

func (o *GetConfigOK) IsSuccess() bool

IsSuccess returns true when this get config o k response has a 2xx status code

func (*GetConfigOK) String

func (o *GetConfigOK) String() 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 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) 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) 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 GetConfigUnauthorized

type GetConfigUnauthorized struct {
	Payload string
}

GetConfigUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetConfigUnauthorized

func NewGetConfigUnauthorized() *GetConfigUnauthorized

NewGetConfigUnauthorized creates a GetConfigUnauthorized with default headers values

func (*GetConfigUnauthorized) Code

func (o *GetConfigUnauthorized) Code() int

Code gets the status code for the get config unauthorized response

func (*GetConfigUnauthorized) Error

func (o *GetConfigUnauthorized) Error() string

func (*GetConfigUnauthorized) GetPayload

func (o *GetConfigUnauthorized) GetPayload() string

func (*GetConfigUnauthorized) IsClientError

func (o *GetConfigUnauthorized) IsClientError() bool

IsClientError returns true when this get config unauthorized response has a 4xx status code

func (*GetConfigUnauthorized) IsCode

func (o *GetConfigUnauthorized) IsCode(code int) bool

IsCode returns true when this get config unauthorized response a status code equal to that given

func (*GetConfigUnauthorized) IsRedirect

func (o *GetConfigUnauthorized) IsRedirect() bool

IsRedirect returns true when this get config unauthorized response has a 3xx status code

func (*GetConfigUnauthorized) IsServerError

func (o *GetConfigUnauthorized) IsServerError() bool

IsServerError returns true when this get config unauthorized response has a 5xx status code

func (*GetConfigUnauthorized) IsSuccess

func (o *GetConfigUnauthorized) IsSuccess() bool

IsSuccess returns true when this get config unauthorized response has a 2xx status code

func (*GetConfigUnauthorized) String

func (o *GetConfigUnauthorized) String() string

Jump to

Keyboard shortcuts

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