Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetConfigurationForbidden
- func (o *GetConfigurationForbidden) Code() int
- func (o *GetConfigurationForbidden) Error() string
- func (o *GetConfigurationForbidden) IsClientError() bool
- func (o *GetConfigurationForbidden) IsCode(code int) bool
- func (o *GetConfigurationForbidden) IsRedirect() bool
- func (o *GetConfigurationForbidden) IsServerError() bool
- func (o *GetConfigurationForbidden) IsSuccess() bool
- func (o *GetConfigurationForbidden) String() string
- type GetConfigurationInternalServerError
- func (o *GetConfigurationInternalServerError) Code() int
- func (o *GetConfigurationInternalServerError) Error() string
- func (o *GetConfigurationInternalServerError) IsClientError() bool
- func (o *GetConfigurationInternalServerError) IsCode(code int) bool
- func (o *GetConfigurationInternalServerError) IsRedirect() bool
- func (o *GetConfigurationInternalServerError) IsServerError() bool
- func (o *GetConfigurationInternalServerError) IsSuccess() bool
- func (o *GetConfigurationInternalServerError) String() string
- type GetConfigurationOK
- func (o *GetConfigurationOK) Code() int
- func (o *GetConfigurationOK) Error() string
- func (o *GetConfigurationOK) GetPayload() *models.ClusterConfiguration
- func (o *GetConfigurationOK) IsClientError() bool
- func (o *GetConfigurationOK) IsCode(code int) bool
- func (o *GetConfigurationOK) IsRedirect() bool
- func (o *GetConfigurationOK) IsServerError() bool
- func (o *GetConfigurationOK) IsSuccess() bool
- func (o *GetConfigurationOK) String() string
- type GetConfigurationParams
- func NewGetConfigurationParams() *GetConfigurationParams
- func NewGetConfigurationParamsWithContext(ctx context.Context) *GetConfigurationParams
- func NewGetConfigurationParamsWithHTTPClient(client *http.Client) *GetConfigurationParams
- func NewGetConfigurationParamsWithTimeout(timeout time.Duration) *GetConfigurationParams
- func (o *GetConfigurationParams) SetContext(ctx context.Context)
- func (o *GetConfigurationParams) SetDefaults()
- func (o *GetConfigurationParams) SetHTTPClient(client *http.Client)
- func (o *GetConfigurationParams) SetTimeout(timeout time.Duration)
- func (o *GetConfigurationParams) WithContext(ctx context.Context) *GetConfigurationParams
- func (o *GetConfigurationParams) WithDefaults() *GetConfigurationParams
- func (o *GetConfigurationParams) WithHTTPClient(client *http.Client) *GetConfigurationParams
- func (o *GetConfigurationParams) WithTimeout(timeout time.Duration) *GetConfigurationParams
- func (o *GetConfigurationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetConfigurationReader
- type GetConfigurationUnauthorized
- func (o *GetConfigurationUnauthorized) Code() int
- func (o *GetConfigurationUnauthorized) Error() string
- func (o *GetConfigurationUnauthorized) IsClientError() bool
- func (o *GetConfigurationUnauthorized) IsCode(code int) bool
- func (o *GetConfigurationUnauthorized) IsRedirect() bool
- func (o *GetConfigurationUnauthorized) IsServerError() bool
- func (o *GetConfigurationUnauthorized) IsSuccess() bool
- func (o *GetConfigurationUnauthorized) String() string
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 configuration API
func (*Client) GetConfiguration ¶
func (a *Client) GetConfiguration(params *GetConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigurationOK, error)
GetConfiguration shows the cluster environment
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
GetConfiguration(params *GetConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigurationOK, 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 configuration API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new configuration API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new configuration API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetConfigurationForbidden ¶
type GetConfigurationForbidden struct {
}
GetConfigurationForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetConfigurationForbidden ¶
func NewGetConfigurationForbidden() *GetConfigurationForbidden
NewGetConfigurationForbidden creates a GetConfigurationForbidden with default headers values
func (*GetConfigurationForbidden) Code ¶
func (o *GetConfigurationForbidden) Code() int
Code gets the status code for the get configuration forbidden response
func (*GetConfigurationForbidden) Error ¶
func (o *GetConfigurationForbidden) Error() string
func (*GetConfigurationForbidden) IsClientError ¶
func (o *GetConfigurationForbidden) IsClientError() bool
IsClientError returns true when this get configuration forbidden response has a 4xx status code
func (*GetConfigurationForbidden) IsCode ¶
func (o *GetConfigurationForbidden) IsCode(code int) bool
IsCode returns true when this get configuration forbidden response a status code equal to that given
func (*GetConfigurationForbidden) IsRedirect ¶
func (o *GetConfigurationForbidden) IsRedirect() bool
IsRedirect returns true when this get configuration forbidden response has a 3xx status code
func (*GetConfigurationForbidden) IsServerError ¶
func (o *GetConfigurationForbidden) IsServerError() bool
IsServerError returns true when this get configuration forbidden response has a 5xx status code
func (*GetConfigurationForbidden) IsSuccess ¶
func (o *GetConfigurationForbidden) IsSuccess() bool
IsSuccess returns true when this get configuration forbidden response has a 2xx status code
func (*GetConfigurationForbidden) String ¶
func (o *GetConfigurationForbidden) String() string
type GetConfigurationInternalServerError ¶
type GetConfigurationInternalServerError struct {
}
GetConfigurationInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewGetConfigurationInternalServerError ¶
func NewGetConfigurationInternalServerError() *GetConfigurationInternalServerError
NewGetConfigurationInternalServerError creates a GetConfigurationInternalServerError with default headers values
func (*GetConfigurationInternalServerError) Code ¶
func (o *GetConfigurationInternalServerError) Code() int
Code gets the status code for the get configuration internal server error response
func (*GetConfigurationInternalServerError) Error ¶
func (o *GetConfigurationInternalServerError) Error() string
func (*GetConfigurationInternalServerError) IsClientError ¶
func (o *GetConfigurationInternalServerError) IsClientError() bool
IsClientError returns true when this get configuration internal server error response has a 4xx status code
func (*GetConfigurationInternalServerError) IsCode ¶
func (o *GetConfigurationInternalServerError) IsCode(code int) bool
IsCode returns true when this get configuration internal server error response a status code equal to that given
func (*GetConfigurationInternalServerError) IsRedirect ¶
func (o *GetConfigurationInternalServerError) IsRedirect() bool
IsRedirect returns true when this get configuration internal server error response has a 3xx status code
func (*GetConfigurationInternalServerError) IsServerError ¶
func (o *GetConfigurationInternalServerError) IsServerError() bool
IsServerError returns true when this get configuration internal server error response has a 5xx status code
func (*GetConfigurationInternalServerError) IsSuccess ¶
func (o *GetConfigurationInternalServerError) IsSuccess() bool
IsSuccess returns true when this get configuration internal server error response has a 2xx status code
func (*GetConfigurationInternalServerError) String ¶
func (o *GetConfigurationInternalServerError) String() string
type GetConfigurationOK ¶
type GetConfigurationOK struct {
Payload *models.ClusterConfiguration
}
GetConfigurationOK describes a response with status code 200, with default header values.
Successful operation
func NewGetConfigurationOK ¶
func NewGetConfigurationOK() *GetConfigurationOK
NewGetConfigurationOK creates a GetConfigurationOK with default headers values
func (*GetConfigurationOK) Code ¶
func (o *GetConfigurationOK) Code() int
Code gets the status code for the get configuration o k response
func (*GetConfigurationOK) Error ¶
func (o *GetConfigurationOK) Error() string
func (*GetConfigurationOK) GetPayload ¶
func (o *GetConfigurationOK) GetPayload() *models.ClusterConfiguration
func (*GetConfigurationOK) IsClientError ¶
func (o *GetConfigurationOK) IsClientError() bool
IsClientError returns true when this get configuration o k response has a 4xx status code
func (*GetConfigurationOK) IsCode ¶
func (o *GetConfigurationOK) IsCode(code int) bool
IsCode returns true when this get configuration o k response a status code equal to that given
func (*GetConfigurationOK) IsRedirect ¶
func (o *GetConfigurationOK) IsRedirect() bool
IsRedirect returns true when this get configuration o k response has a 3xx status code
func (*GetConfigurationOK) IsServerError ¶
func (o *GetConfigurationOK) IsServerError() bool
IsServerError returns true when this get configuration o k response has a 5xx status code
func (*GetConfigurationOK) IsSuccess ¶
func (o *GetConfigurationOK) IsSuccess() bool
IsSuccess returns true when this get configuration o k response has a 2xx status code
func (*GetConfigurationOK) String ¶
func (o *GetConfigurationOK) String() string
type GetConfigurationParams ¶
type GetConfigurationParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetConfigurationParams contains all the parameters to send to the API endpoint
for the get configuration operation. Typically these are written to a http.Request.
func NewGetConfigurationParams ¶
func NewGetConfigurationParams() *GetConfigurationParams
NewGetConfigurationParams creates a new GetConfigurationParams 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 NewGetConfigurationParamsWithContext ¶
func NewGetConfigurationParamsWithContext(ctx context.Context) *GetConfigurationParams
NewGetConfigurationParamsWithContext creates a new GetConfigurationParams object with the ability to set a context for a request.
func NewGetConfigurationParamsWithHTTPClient ¶
func NewGetConfigurationParamsWithHTTPClient(client *http.Client) *GetConfigurationParams
NewGetConfigurationParamsWithHTTPClient creates a new GetConfigurationParams object with the ability to set a custom HTTPClient for a request.
func NewGetConfigurationParamsWithTimeout ¶
func NewGetConfigurationParamsWithTimeout(timeout time.Duration) *GetConfigurationParams
NewGetConfigurationParamsWithTimeout creates a new GetConfigurationParams object with the ability to set a timeout on a request.
func (*GetConfigurationParams) SetContext ¶
func (o *GetConfigurationParams) SetContext(ctx context.Context)
SetContext adds the context to the get configuration params
func (*GetConfigurationParams) SetDefaults ¶
func (o *GetConfigurationParams) SetDefaults()
SetDefaults hydrates default values in the get configuration params (not the query body).
All values with no default are reset to their zero value.
func (*GetConfigurationParams) SetHTTPClient ¶
func (o *GetConfigurationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get configuration params
func (*GetConfigurationParams) SetTimeout ¶
func (o *GetConfigurationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get configuration params
func (*GetConfigurationParams) WithContext ¶
func (o *GetConfigurationParams) WithContext(ctx context.Context) *GetConfigurationParams
WithContext adds the context to the get configuration params
func (*GetConfigurationParams) WithDefaults ¶
func (o *GetConfigurationParams) WithDefaults() *GetConfigurationParams
WithDefaults hydrates default values in the get configuration params (not the query body).
All values with no default are reset to their zero value.
func (*GetConfigurationParams) WithHTTPClient ¶
func (o *GetConfigurationParams) WithHTTPClient(client *http.Client) *GetConfigurationParams
WithHTTPClient adds the HTTPClient to the get configuration params
func (*GetConfigurationParams) WithTimeout ¶
func (o *GetConfigurationParams) WithTimeout(timeout time.Duration) *GetConfigurationParams
WithTimeout adds the timeout to the get configuration params
func (*GetConfigurationParams) WriteToRequest ¶
func (o *GetConfigurationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetConfigurationReader ¶
type GetConfigurationReader struct {
// contains filtered or unexported fields
}
GetConfigurationReader is a Reader for the GetConfiguration structure.
func (*GetConfigurationReader) ReadResponse ¶
func (o *GetConfigurationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetConfigurationUnauthorized ¶
type GetConfigurationUnauthorized struct {
}
GetConfigurationUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetConfigurationUnauthorized ¶
func NewGetConfigurationUnauthorized() *GetConfigurationUnauthorized
NewGetConfigurationUnauthorized creates a GetConfigurationUnauthorized with default headers values
func (*GetConfigurationUnauthorized) Code ¶
func (o *GetConfigurationUnauthorized) Code() int
Code gets the status code for the get configuration unauthorized response
func (*GetConfigurationUnauthorized) Error ¶
func (o *GetConfigurationUnauthorized) Error() string
func (*GetConfigurationUnauthorized) IsClientError ¶
func (o *GetConfigurationUnauthorized) IsClientError() bool
IsClientError returns true when this get configuration unauthorized response has a 4xx status code
func (*GetConfigurationUnauthorized) IsCode ¶
func (o *GetConfigurationUnauthorized) IsCode(code int) bool
IsCode returns true when this get configuration unauthorized response a status code equal to that given
func (*GetConfigurationUnauthorized) IsRedirect ¶
func (o *GetConfigurationUnauthorized) IsRedirect() bool
IsRedirect returns true when this get configuration unauthorized response has a 3xx status code
func (*GetConfigurationUnauthorized) IsServerError ¶
func (o *GetConfigurationUnauthorized) IsServerError() bool
IsServerError returns true when this get configuration unauthorized response has a 5xx status code
func (*GetConfigurationUnauthorized) IsSuccess ¶
func (o *GetConfigurationUnauthorized) IsSuccess() bool
IsSuccess returns true when this get configuration unauthorized response has a 2xx status code
func (*GetConfigurationUnauthorized) String ¶
func (o *GetConfigurationUnauthorized) String() string