Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ControllerInfoConflict
- func (o *ControllerInfoConflict) Code() int
- func (o *ControllerInfoConflict) Error() string
- func (o *ControllerInfoConflict) GetPayload() apiserver_params.APIErrorResponse
- func (o *ControllerInfoConflict) IsClientError() bool
- func (o *ControllerInfoConflict) IsCode(code int) bool
- func (o *ControllerInfoConflict) IsRedirect() bool
- func (o *ControllerInfoConflict) IsServerError() bool
- func (o *ControllerInfoConflict) IsSuccess() bool
- func (o *ControllerInfoConflict) String() string
- type ControllerInfoOK
- func (o *ControllerInfoOK) Code() int
- func (o *ControllerInfoOK) Error() string
- func (o *ControllerInfoOK) GetPayload() garm_params.ControllerInfo
- func (o *ControllerInfoOK) IsClientError() bool
- func (o *ControllerInfoOK) IsCode(code int) bool
- func (o *ControllerInfoOK) IsRedirect() bool
- func (o *ControllerInfoOK) IsServerError() bool
- func (o *ControllerInfoOK) IsSuccess() bool
- func (o *ControllerInfoOK) String() string
- type ControllerInfoParams
- func NewControllerInfoParams() *ControllerInfoParams
- func NewControllerInfoParamsWithContext(ctx context.Context) *ControllerInfoParams
- func NewControllerInfoParamsWithHTTPClient(client *http.Client) *ControllerInfoParams
- func NewControllerInfoParamsWithTimeout(timeout time.Duration) *ControllerInfoParams
- func (o *ControllerInfoParams) SetContext(ctx context.Context)
- func (o *ControllerInfoParams) SetDefaults()
- func (o *ControllerInfoParams) SetHTTPClient(client *http.Client)
- func (o *ControllerInfoParams) SetTimeout(timeout time.Duration)
- func (o *ControllerInfoParams) WithContext(ctx context.Context) *ControllerInfoParams
- func (o *ControllerInfoParams) WithDefaults() *ControllerInfoParams
- func (o *ControllerInfoParams) WithHTTPClient(client *http.Client) *ControllerInfoParams
- func (o *ControllerInfoParams) WithTimeout(timeout time.Duration) *ControllerInfoParams
- func (o *ControllerInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ControllerInfoReader
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 controller info API
func (*Client) ControllerInfo ¶
func (a *Client) ControllerInfo(params *ControllerInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ControllerInfoOK, error)
ControllerInfo gets controller info
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 { ControllerInfo(params *ControllerInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ControllerInfoOK, 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 controller info API client.
func NewClientWithBasicAuth ¶ added in v0.1.5
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new controller info 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 ¶ added in v0.1.5
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new controller info 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 ControllerInfoConflict ¶
type ControllerInfoConflict struct {
Payload apiserver_params.APIErrorResponse
}
ControllerInfoConflict describes a response with status code 409, with default header values.
APIErrorResponse
func NewControllerInfoConflict ¶
func NewControllerInfoConflict() *ControllerInfoConflict
NewControllerInfoConflict creates a ControllerInfoConflict with default headers values
func (*ControllerInfoConflict) Code ¶
func (o *ControllerInfoConflict) Code() int
Code gets the status code for the controller info conflict response
func (*ControllerInfoConflict) Error ¶
func (o *ControllerInfoConflict) Error() string
func (*ControllerInfoConflict) GetPayload ¶
func (o *ControllerInfoConflict) GetPayload() apiserver_params.APIErrorResponse
func (*ControllerInfoConflict) IsClientError ¶
func (o *ControllerInfoConflict) IsClientError() bool
IsClientError returns true when this controller info conflict response has a 4xx status code
func (*ControllerInfoConflict) IsCode ¶
func (o *ControllerInfoConflict) IsCode(code int) bool
IsCode returns true when this controller info conflict response a status code equal to that given
func (*ControllerInfoConflict) IsRedirect ¶
func (o *ControllerInfoConflict) IsRedirect() bool
IsRedirect returns true when this controller info conflict response has a 3xx status code
func (*ControllerInfoConflict) IsServerError ¶
func (o *ControllerInfoConflict) IsServerError() bool
IsServerError returns true when this controller info conflict response has a 5xx status code
func (*ControllerInfoConflict) IsSuccess ¶
func (o *ControllerInfoConflict) IsSuccess() bool
IsSuccess returns true when this controller info conflict response has a 2xx status code
func (*ControllerInfoConflict) String ¶
func (o *ControllerInfoConflict) String() string
type ControllerInfoOK ¶
type ControllerInfoOK struct {
Payload garm_params.ControllerInfo
}
ControllerInfoOK describes a response with status code 200, with default header values.
ControllerInfo
func NewControllerInfoOK ¶
func NewControllerInfoOK() *ControllerInfoOK
NewControllerInfoOK creates a ControllerInfoOK with default headers values
func (*ControllerInfoOK) Code ¶
func (o *ControllerInfoOK) Code() int
Code gets the status code for the controller info o k response
func (*ControllerInfoOK) Error ¶
func (o *ControllerInfoOK) Error() string
func (*ControllerInfoOK) GetPayload ¶
func (o *ControllerInfoOK) GetPayload() garm_params.ControllerInfo
func (*ControllerInfoOK) IsClientError ¶
func (o *ControllerInfoOK) IsClientError() bool
IsClientError returns true when this controller info o k response has a 4xx status code
func (*ControllerInfoOK) IsCode ¶
func (o *ControllerInfoOK) IsCode(code int) bool
IsCode returns true when this controller info o k response a status code equal to that given
func (*ControllerInfoOK) IsRedirect ¶
func (o *ControllerInfoOK) IsRedirect() bool
IsRedirect returns true when this controller info o k response has a 3xx status code
func (*ControllerInfoOK) IsServerError ¶
func (o *ControllerInfoOK) IsServerError() bool
IsServerError returns true when this controller info o k response has a 5xx status code
func (*ControllerInfoOK) IsSuccess ¶
func (o *ControllerInfoOK) IsSuccess() bool
IsSuccess returns true when this controller info o k response has a 2xx status code
func (*ControllerInfoOK) String ¶
func (o *ControllerInfoOK) String() string
type ControllerInfoParams ¶
type ControllerInfoParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ControllerInfoParams contains all the parameters to send to the API endpoint
for the controller info operation. Typically these are written to a http.Request.
func NewControllerInfoParams ¶
func NewControllerInfoParams() *ControllerInfoParams
NewControllerInfoParams creates a new ControllerInfoParams 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 NewControllerInfoParamsWithContext ¶
func NewControllerInfoParamsWithContext(ctx context.Context) *ControllerInfoParams
NewControllerInfoParamsWithContext creates a new ControllerInfoParams object with the ability to set a context for a request.
func NewControllerInfoParamsWithHTTPClient ¶
func NewControllerInfoParamsWithHTTPClient(client *http.Client) *ControllerInfoParams
NewControllerInfoParamsWithHTTPClient creates a new ControllerInfoParams object with the ability to set a custom HTTPClient for a request.
func NewControllerInfoParamsWithTimeout ¶
func NewControllerInfoParamsWithTimeout(timeout time.Duration) *ControllerInfoParams
NewControllerInfoParamsWithTimeout creates a new ControllerInfoParams object with the ability to set a timeout on a request.
func (*ControllerInfoParams) SetContext ¶
func (o *ControllerInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the controller info params
func (*ControllerInfoParams) SetDefaults ¶
func (o *ControllerInfoParams) SetDefaults()
SetDefaults hydrates default values in the controller info params (not the query body).
All values with no default are reset to their zero value.
func (*ControllerInfoParams) SetHTTPClient ¶
func (o *ControllerInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the controller info params
func (*ControllerInfoParams) SetTimeout ¶
func (o *ControllerInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the controller info params
func (*ControllerInfoParams) WithContext ¶
func (o *ControllerInfoParams) WithContext(ctx context.Context) *ControllerInfoParams
WithContext adds the context to the controller info params
func (*ControllerInfoParams) WithDefaults ¶
func (o *ControllerInfoParams) WithDefaults() *ControllerInfoParams
WithDefaults hydrates default values in the controller info params (not the query body).
All values with no default are reset to their zero value.
func (*ControllerInfoParams) WithHTTPClient ¶
func (o *ControllerInfoParams) WithHTTPClient(client *http.Client) *ControllerInfoParams
WithHTTPClient adds the HTTPClient to the controller info params
func (*ControllerInfoParams) WithTimeout ¶
func (o *ControllerInfoParams) WithTimeout(timeout time.Duration) *ControllerInfoParams
WithTimeout adds the timeout to the controller info params
func (*ControllerInfoParams) WriteToRequest ¶
func (o *ControllerInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ControllerInfoReader ¶
type ControllerInfoReader struct {
// contains filtered or unexported fields
}
ControllerInfoReader is a Reader for the ControllerInfo structure.
func (*ControllerInfoReader) ReadResponse ¶
func (o *ControllerInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.