Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type UpdateControllerBadRequest
- func (o *UpdateControllerBadRequest) Code() int
- func (o *UpdateControllerBadRequest) Error() string
- func (o *UpdateControllerBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *UpdateControllerBadRequest) IsClientError() bool
- func (o *UpdateControllerBadRequest) IsCode(code int) bool
- func (o *UpdateControllerBadRequest) IsRedirect() bool
- func (o *UpdateControllerBadRequest) IsServerError() bool
- func (o *UpdateControllerBadRequest) IsSuccess() bool
- func (o *UpdateControllerBadRequest) String() string
- type UpdateControllerOK
- func (o *UpdateControllerOK) Code() int
- func (o *UpdateControllerOK) Error() string
- func (o *UpdateControllerOK) GetPayload() garm_params.ControllerInfo
- func (o *UpdateControllerOK) IsClientError() bool
- func (o *UpdateControllerOK) IsCode(code int) bool
- func (o *UpdateControllerOK) IsRedirect() bool
- func (o *UpdateControllerOK) IsServerError() bool
- func (o *UpdateControllerOK) IsSuccess() bool
- func (o *UpdateControllerOK) String() string
- type UpdateControllerParams
- func NewUpdateControllerParams() *UpdateControllerParams
- func NewUpdateControllerParamsWithContext(ctx context.Context) *UpdateControllerParams
- func NewUpdateControllerParamsWithHTTPClient(client *http.Client) *UpdateControllerParams
- func NewUpdateControllerParamsWithTimeout(timeout time.Duration) *UpdateControllerParams
- func (o *UpdateControllerParams) SetBody(body garm_params.UpdateControllerParams)
- func (o *UpdateControllerParams) SetContext(ctx context.Context)
- func (o *UpdateControllerParams) SetDefaults()
- func (o *UpdateControllerParams) SetHTTPClient(client *http.Client)
- func (o *UpdateControllerParams) SetTimeout(timeout time.Duration)
- func (o *UpdateControllerParams) WithBody(body garm_params.UpdateControllerParams) *UpdateControllerParams
- func (o *UpdateControllerParams) WithContext(ctx context.Context) *UpdateControllerParams
- func (o *UpdateControllerParams) WithDefaults() *UpdateControllerParams
- func (o *UpdateControllerParams) WithHTTPClient(client *http.Client) *UpdateControllerParams
- func (o *UpdateControllerParams) WithTimeout(timeout time.Duration) *UpdateControllerParams
- func (o *UpdateControllerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateControllerReader
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 API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateController ¶
func (a *Client) UpdateController(params *UpdateControllerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateControllerOK, error)
UpdateController updates controller
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { UpdateController(params *UpdateControllerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateControllerOK, 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 API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new controller 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 controller 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 UpdateControllerBadRequest ¶
type UpdateControllerBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
UpdateControllerBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewUpdateControllerBadRequest ¶
func NewUpdateControllerBadRequest() *UpdateControllerBadRequest
NewUpdateControllerBadRequest creates a UpdateControllerBadRequest with default headers values
func (*UpdateControllerBadRequest) Code ¶
func (o *UpdateControllerBadRequest) Code() int
Code gets the status code for the update controller bad request response
func (*UpdateControllerBadRequest) Error ¶
func (o *UpdateControllerBadRequest) Error() string
func (*UpdateControllerBadRequest) GetPayload ¶
func (o *UpdateControllerBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*UpdateControllerBadRequest) IsClientError ¶
func (o *UpdateControllerBadRequest) IsClientError() bool
IsClientError returns true when this update controller bad request response has a 4xx status code
func (*UpdateControllerBadRequest) IsCode ¶
func (o *UpdateControllerBadRequest) IsCode(code int) bool
IsCode returns true when this update controller bad request response a status code equal to that given
func (*UpdateControllerBadRequest) IsRedirect ¶
func (o *UpdateControllerBadRequest) IsRedirect() bool
IsRedirect returns true when this update controller bad request response has a 3xx status code
func (*UpdateControllerBadRequest) IsServerError ¶
func (o *UpdateControllerBadRequest) IsServerError() bool
IsServerError returns true when this update controller bad request response has a 5xx status code
func (*UpdateControllerBadRequest) IsSuccess ¶
func (o *UpdateControllerBadRequest) IsSuccess() bool
IsSuccess returns true when this update controller bad request response has a 2xx status code
func (*UpdateControllerBadRequest) String ¶
func (o *UpdateControllerBadRequest) String() string
type UpdateControllerOK ¶
type UpdateControllerOK struct {
Payload garm_params.ControllerInfo
}
UpdateControllerOK describes a response with status code 200, with default header values.
ControllerInfo
func NewUpdateControllerOK ¶
func NewUpdateControllerOK() *UpdateControllerOK
NewUpdateControllerOK creates a UpdateControllerOK with default headers values
func (*UpdateControllerOK) Code ¶
func (o *UpdateControllerOK) Code() int
Code gets the status code for the update controller o k response
func (*UpdateControllerOK) Error ¶
func (o *UpdateControllerOK) Error() string
func (*UpdateControllerOK) GetPayload ¶
func (o *UpdateControllerOK) GetPayload() garm_params.ControllerInfo
func (*UpdateControllerOK) IsClientError ¶
func (o *UpdateControllerOK) IsClientError() bool
IsClientError returns true when this update controller o k response has a 4xx status code
func (*UpdateControllerOK) IsCode ¶
func (o *UpdateControllerOK) IsCode(code int) bool
IsCode returns true when this update controller o k response a status code equal to that given
func (*UpdateControllerOK) IsRedirect ¶
func (o *UpdateControllerOK) IsRedirect() bool
IsRedirect returns true when this update controller o k response has a 3xx status code
func (*UpdateControllerOK) IsServerError ¶
func (o *UpdateControllerOK) IsServerError() bool
IsServerError returns true when this update controller o k response has a 5xx status code
func (*UpdateControllerOK) IsSuccess ¶
func (o *UpdateControllerOK) IsSuccess() bool
IsSuccess returns true when this update controller o k response has a 2xx status code
func (*UpdateControllerOK) String ¶
func (o *UpdateControllerOK) String() string
type UpdateControllerParams ¶
type UpdateControllerParams struct { /* Body. Parameters used when updating the controller. */ Body garm_params.UpdateControllerParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateControllerParams contains all the parameters to send to the API endpoint
for the update controller operation. Typically these are written to a http.Request.
func NewUpdateControllerParams ¶
func NewUpdateControllerParams() *UpdateControllerParams
NewUpdateControllerParams creates a new UpdateControllerParams 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 NewUpdateControllerParamsWithContext ¶
func NewUpdateControllerParamsWithContext(ctx context.Context) *UpdateControllerParams
NewUpdateControllerParamsWithContext creates a new UpdateControllerParams object with the ability to set a context for a request.
func NewUpdateControllerParamsWithHTTPClient ¶
func NewUpdateControllerParamsWithHTTPClient(client *http.Client) *UpdateControllerParams
NewUpdateControllerParamsWithHTTPClient creates a new UpdateControllerParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateControllerParamsWithTimeout ¶
func NewUpdateControllerParamsWithTimeout(timeout time.Duration) *UpdateControllerParams
NewUpdateControllerParamsWithTimeout creates a new UpdateControllerParams object with the ability to set a timeout on a request.
func (*UpdateControllerParams) SetBody ¶
func (o *UpdateControllerParams) SetBody(body garm_params.UpdateControllerParams)
SetBody adds the body to the update controller params
func (*UpdateControllerParams) SetContext ¶
func (o *UpdateControllerParams) SetContext(ctx context.Context)
SetContext adds the context to the update controller params
func (*UpdateControllerParams) SetDefaults ¶
func (o *UpdateControllerParams) SetDefaults()
SetDefaults hydrates default values in the update controller params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateControllerParams) SetHTTPClient ¶
func (o *UpdateControllerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update controller params
func (*UpdateControllerParams) SetTimeout ¶
func (o *UpdateControllerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update controller params
func (*UpdateControllerParams) WithBody ¶
func (o *UpdateControllerParams) WithBody(body garm_params.UpdateControllerParams) *UpdateControllerParams
WithBody adds the body to the update controller params
func (*UpdateControllerParams) WithContext ¶
func (o *UpdateControllerParams) WithContext(ctx context.Context) *UpdateControllerParams
WithContext adds the context to the update controller params
func (*UpdateControllerParams) WithDefaults ¶
func (o *UpdateControllerParams) WithDefaults() *UpdateControllerParams
WithDefaults hydrates default values in the update controller params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateControllerParams) WithHTTPClient ¶
func (o *UpdateControllerParams) WithHTTPClient(client *http.Client) *UpdateControllerParams
WithHTTPClient adds the HTTPClient to the update controller params
func (*UpdateControllerParams) WithTimeout ¶
func (o *UpdateControllerParams) WithTimeout(timeout time.Duration) *UpdateControllerParams
WithTimeout adds the timeout to the update controller params
func (*UpdateControllerParams) WriteToRequest ¶
func (o *UpdateControllerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateControllerReader ¶
type UpdateControllerReader struct {
// contains filtered or unexported fields
}
UpdateControllerReader is a Reader for the UpdateController structure.
func (*UpdateControllerReader) ReadResponse ¶
func (o *UpdateControllerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.