Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type SettingsServiceGetDefault
- type SettingsServiceGetOK
- type SettingsServiceGetParams
- func NewSettingsServiceGetParams() *SettingsServiceGetParams
- func NewSettingsServiceGetParamsWithContext(ctx context.Context) *SettingsServiceGetParams
- func NewSettingsServiceGetParamsWithHTTPClient(client *http.Client) *SettingsServiceGetParams
- func NewSettingsServiceGetParamsWithTimeout(timeout time.Duration) *SettingsServiceGetParams
- func (o *SettingsServiceGetParams) SetContext(ctx context.Context)
- func (o *SettingsServiceGetParams) SetDefaults()
- func (o *SettingsServiceGetParams) SetHTTPClient(client *http.Client)
- func (o *SettingsServiceGetParams) SetTimeout(timeout time.Duration)
- func (o *SettingsServiceGetParams) WithContext(ctx context.Context) *SettingsServiceGetParams
- func (o *SettingsServiceGetParams) WithDefaults() *SettingsServiceGetParams
- func (o *SettingsServiceGetParams) WithHTTPClient(client *http.Client) *SettingsServiceGetParams
- func (o *SettingsServiceGetParams) WithTimeout(timeout time.Duration) *SettingsServiceGetParams
- func (o *SettingsServiceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SettingsServiceGetReader
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 settings service API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) SettingsServiceGet ¶
func (a *Client) SettingsServiceGet(params *SettingsServiceGetParams, opts ...ClientOption) (*SettingsServiceGetOK, error)
SettingsServiceGet gets returns argo c d settings
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { SettingsServiceGet(params *SettingsServiceGetParams, opts ...ClientOption) (*SettingsServiceGetOK, 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 settings service API client.
type SettingsServiceGetDefault ¶
type SettingsServiceGetDefault struct { Payload *models.RuntimeError // contains filtered or unexported fields }
SettingsServiceGetDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewSettingsServiceGetDefault ¶
func NewSettingsServiceGetDefault(code int) *SettingsServiceGetDefault
NewSettingsServiceGetDefault creates a SettingsServiceGetDefault with default headers values
func (*SettingsServiceGetDefault) Code ¶
func (o *SettingsServiceGetDefault) Code() int
Code gets the status code for the settings service get default response
func (*SettingsServiceGetDefault) Error ¶
func (o *SettingsServiceGetDefault) Error() string
func (*SettingsServiceGetDefault) GetPayload ¶
func (o *SettingsServiceGetDefault) GetPayload() *models.RuntimeError
type SettingsServiceGetOK ¶
type SettingsServiceGetOK struct {
Payload *models.ClusterSettings
}
SettingsServiceGetOK describes a response with status code 200, with default header values.
A successful response.
func NewSettingsServiceGetOK ¶
func NewSettingsServiceGetOK() *SettingsServiceGetOK
NewSettingsServiceGetOK creates a SettingsServiceGetOK with default headers values
func (*SettingsServiceGetOK) Error ¶
func (o *SettingsServiceGetOK) Error() string
func (*SettingsServiceGetOK) GetPayload ¶
func (o *SettingsServiceGetOK) GetPayload() *models.ClusterSettings
type SettingsServiceGetParams ¶
type SettingsServiceGetParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SettingsServiceGetParams contains all the parameters to send to the API endpoint
for the settings service get operation. Typically these are written to a http.Request.
func NewSettingsServiceGetParams ¶
func NewSettingsServiceGetParams() *SettingsServiceGetParams
NewSettingsServiceGetParams creates a new SettingsServiceGetParams 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 NewSettingsServiceGetParamsWithContext ¶
func NewSettingsServiceGetParamsWithContext(ctx context.Context) *SettingsServiceGetParams
NewSettingsServiceGetParamsWithContext creates a new SettingsServiceGetParams object with the ability to set a context for a request.
func NewSettingsServiceGetParamsWithHTTPClient ¶
func NewSettingsServiceGetParamsWithHTTPClient(client *http.Client) *SettingsServiceGetParams
NewSettingsServiceGetParamsWithHTTPClient creates a new SettingsServiceGetParams object with the ability to set a custom HTTPClient for a request.
func NewSettingsServiceGetParamsWithTimeout ¶
func NewSettingsServiceGetParamsWithTimeout(timeout time.Duration) *SettingsServiceGetParams
NewSettingsServiceGetParamsWithTimeout creates a new SettingsServiceGetParams object with the ability to set a timeout on a request.
func (*SettingsServiceGetParams) SetContext ¶
func (o *SettingsServiceGetParams) SetContext(ctx context.Context)
SetContext adds the context to the settings service get params
func (*SettingsServiceGetParams) SetDefaults ¶
func (o *SettingsServiceGetParams) SetDefaults()
SetDefaults hydrates default values in the settings service get params (not the query body).
All values with no default are reset to their zero value.
func (*SettingsServiceGetParams) SetHTTPClient ¶
func (o *SettingsServiceGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the settings service get params
func (*SettingsServiceGetParams) SetTimeout ¶
func (o *SettingsServiceGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the settings service get params
func (*SettingsServiceGetParams) WithContext ¶
func (o *SettingsServiceGetParams) WithContext(ctx context.Context) *SettingsServiceGetParams
WithContext adds the context to the settings service get params
func (*SettingsServiceGetParams) WithDefaults ¶
func (o *SettingsServiceGetParams) WithDefaults() *SettingsServiceGetParams
WithDefaults hydrates default values in the settings service get params (not the query body).
All values with no default are reset to their zero value.
func (*SettingsServiceGetParams) WithHTTPClient ¶
func (o *SettingsServiceGetParams) WithHTTPClient(client *http.Client) *SettingsServiceGetParams
WithHTTPClient adds the HTTPClient to the settings service get params
func (*SettingsServiceGetParams) WithTimeout ¶
func (o *SettingsServiceGetParams) WithTimeout(timeout time.Duration) *SettingsServiceGetParams
WithTimeout adds the timeout to the settings service get params
func (*SettingsServiceGetParams) WriteToRequest ¶
func (o *SettingsServiceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SettingsServiceGetReader ¶
type SettingsServiceGetReader struct {
// contains filtered or unexported fields
}
SettingsServiceGetReader is a Reader for the SettingsServiceGet structure.
func (*SettingsServiceGetReader) ReadResponse ¶
func (o *SettingsServiceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.