system_stats

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: BSD-3-Clause Imports: 8 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 stats API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new system stats 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, authInfo runtime.ClientAuthInfoWriter) (*ShutdownOK, error)

Shutdown shutdowns this node gracefully

Attempts to process all buffered and cached messages before exiting, shuts down inputs first to make sure that no new messages are accepted.

type ShutdownOK

type ShutdownOK struct {
}

ShutdownOK handles this case with default header values.

No response was specified

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