status

package
v0.0.0-...-147c068 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 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 status API

func New

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

New creates a new status API client.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) StatusInspect

func (a *Client) StatusInspect(params *StatusInspectParams, authInfo runtime.ClientAuthInfoWriter) (*StatusInspectOK, error)

StatusInspect checks portainer status

Retrieve Portainer status. **Access policy**: public

type StatusInspectInternalServerError

type StatusInspectInternalServerError struct {
	Payload *models.GenericError
}

StatusInspectInternalServerError handles this case with default header values.

Server error

func NewStatusInspectInternalServerError

func NewStatusInspectInternalServerError() *StatusInspectInternalServerError

NewStatusInspectInternalServerError creates a StatusInspectInternalServerError with default headers values

func (*StatusInspectInternalServerError) Error

type StatusInspectOK

type StatusInspectOK struct {
	Payload *models.Status
}

StatusInspectOK handles this case with default header values.

Success

func NewStatusInspectOK

func NewStatusInspectOK() *StatusInspectOK

NewStatusInspectOK creates a StatusInspectOK with default headers values

func (*StatusInspectOK) Error

func (o *StatusInspectOK) Error() string

type StatusInspectParams

type StatusInspectParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

StatusInspectParams contains all the parameters to send to the API endpoint for the status inspect operation typically these are written to a http.Request

func NewStatusInspectParams

func NewStatusInspectParams() *StatusInspectParams

NewStatusInspectParams creates a new StatusInspectParams object with the default values initialized.

func NewStatusInspectParamsWithContext

func NewStatusInspectParamsWithContext(ctx context.Context) *StatusInspectParams

NewStatusInspectParamsWithContext creates a new StatusInspectParams object with the default values initialized, and the ability to set a context for a request

func NewStatusInspectParamsWithHTTPClient

func NewStatusInspectParamsWithHTTPClient(client *http.Client) *StatusInspectParams

NewStatusInspectParamsWithHTTPClient creates a new StatusInspectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewStatusInspectParamsWithTimeout

func NewStatusInspectParamsWithTimeout(timeout time.Duration) *StatusInspectParams

NewStatusInspectParamsWithTimeout creates a new StatusInspectParams object with the default values initialized, and the ability to set a timeout on a request

func (*StatusInspectParams) SetContext

func (o *StatusInspectParams) SetContext(ctx context.Context)

SetContext adds the context to the status inspect params

func (*StatusInspectParams) SetHTTPClient

func (o *StatusInspectParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the status inspect params

func (*StatusInspectParams) SetTimeout

func (o *StatusInspectParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the status inspect params

func (*StatusInspectParams) WithContext

WithContext adds the context to the status inspect params

func (*StatusInspectParams) WithHTTPClient

func (o *StatusInspectParams) WithHTTPClient(client *http.Client) *StatusInspectParams

WithHTTPClient adds the HTTPClient to the status inspect params

func (*StatusInspectParams) WithTimeout

func (o *StatusInspectParams) WithTimeout(timeout time.Duration) *StatusInspectParams

WithTimeout adds the timeout to the status inspect params

func (*StatusInspectParams) WriteToRequest

func (o *StatusInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type StatusInspectReader

type StatusInspectReader struct {
	// contains filtered or unexported fields
}

StatusInspectReader is a Reader for the StatusInspect structure.

func (*StatusInspectReader) ReadResponse

func (o *StatusInspectReader) 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