system

package
v0.0.0-...-13dad8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

type ShutdownDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

type ShutdownOK struct {
	Payload *models.Shutdown
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL