Documentation ¶
Index ¶
- type Client
- type ShutdownDefault
- type ShutdownOK
- type ShutdownParams
- func (o *ShutdownParams) SetContext(ctx context.Context)
- func (o *ShutdownParams) SetHTTPClient(client *http.Client)
- func (o *ShutdownParams) SetTimeout(timeout time.Duration)
- func (o *ShutdownParams) WithContext(ctx context.Context) *ShutdownParams
- func (o *ShutdownParams) WithHTTPClient(client *http.Client) *ShutdownParams
- func (o *ShutdownParams) WithTimeout(timeout time.Duration) *ShutdownParams
- func (o *ShutdownParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ShutdownReader
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 system API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new system API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) Shutdown ¶
func (a *Client) Shutdown(params *ShutdownParams) (*ShutdownOK, error)
Shutdown shutdowns the operating system
type ShutdownDefault ¶
ShutdownDefault handles this case with default header values.
Unexpected error
func NewShutdownDefault ¶
func NewShutdownDefault(code int) *ShutdownDefault
NewShutdownDefault creates a ShutdownDefault with default headers values
func (*ShutdownDefault) Code ¶
func (o *ShutdownDefault) Code() int
Code gets the status code for the shutdown default response
func (*ShutdownDefault) Error ¶
func (o *ShutdownDefault) Error() string
type ShutdownOK ¶
ShutdownOK handles this case with default header values.
Shutdown executed successfully
func NewShutdownOK ¶
func NewShutdownOK() *ShutdownOK
NewShutdownOK creates a ShutdownOK with default headers values
func (*ShutdownOK) Error ¶
func (o *ShutdownOK) Error() string
type ShutdownParams ¶
type ShutdownParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ShutdownParams contains all the parameters to send to the API endpoint for the shutdown operation typically these are written to a http.Request
func NewShutdownParams ¶
func NewShutdownParams() *ShutdownParams
NewShutdownParams creates a new ShutdownParams object with the default values initialized.
func NewShutdownParamsWithContext ¶
func NewShutdownParamsWithContext(ctx context.Context) *ShutdownParams
NewShutdownParamsWithContext creates a new ShutdownParams object with the default values initialized, and the ability to set a context for a request
func NewShutdownParamsWithHTTPClient ¶
func NewShutdownParamsWithHTTPClient(client *http.Client) *ShutdownParams
NewShutdownParamsWithHTTPClient creates a new ShutdownParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewShutdownParamsWithTimeout ¶
func NewShutdownParamsWithTimeout(timeout time.Duration) *ShutdownParams
NewShutdownParamsWithTimeout creates a new ShutdownParams object with the default values initialized, and the ability to set a timeout on a request
func (*ShutdownParams) SetContext ¶
func (o *ShutdownParams) SetContext(ctx context.Context)
SetContext adds the context to the shutdown params
func (*ShutdownParams) SetHTTPClient ¶
func (o *ShutdownParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the shutdown params
func (*ShutdownParams) SetTimeout ¶
func (o *ShutdownParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the shutdown params
func (*ShutdownParams) WithContext ¶
func (o *ShutdownParams) WithContext(ctx context.Context) *ShutdownParams
WithContext adds the context to the shutdown params
func (*ShutdownParams) WithHTTPClient ¶
func (o *ShutdownParams) WithHTTPClient(client *http.Client) *ShutdownParams
WithHTTPClient adds the HTTPClient to the shutdown params
func (*ShutdownParams) WithTimeout ¶
func (o *ShutdownParams) WithTimeout(timeout time.Duration) *ShutdownParams
WithTimeout adds the timeout to the shutdown params
func (*ShutdownParams) WriteToRequest ¶
func (o *ShutdownParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ShutdownReader ¶
type ShutdownReader struct {
// contains filtered or unexported fields
}
ShutdownReader is a Reader for the Shutdown structure.
func (*ShutdownReader) ReadResponse ¶
func (o *ShutdownReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.