status

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 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 status API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StatusList

func (a *Client) StatusList(params *StatusListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StatusListOK, error)

StatusList A lightweight read-only endpoint for conveying NetBox's current operational status.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	StatusList(params *StatusListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StatusListOK, 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 status API client.

type StatusListOK

type StatusListOK struct {
}
StatusListOK describes a response with status code 200, with default header values.

StatusListOK status list o k

func NewStatusListOK

func NewStatusListOK() *StatusListOK

NewStatusListOK creates a StatusListOK with default headers values

func (*StatusListOK) Error

func (o *StatusListOK) Error() string

type StatusListParams

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

StatusListParams contains all the parameters to send to the API endpoint

for the status list operation.

Typically these are written to a http.Request.

func NewStatusListParams

func NewStatusListParams() *StatusListParams

NewStatusListParams creates a new StatusListParams 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 NewStatusListParamsWithContext

func NewStatusListParamsWithContext(ctx context.Context) *StatusListParams

NewStatusListParamsWithContext creates a new StatusListParams object with the ability to set a context for a request.

func NewStatusListParamsWithHTTPClient

func NewStatusListParamsWithHTTPClient(client *http.Client) *StatusListParams

NewStatusListParamsWithHTTPClient creates a new StatusListParams object with the ability to set a custom HTTPClient for a request.

func NewStatusListParamsWithTimeout

func NewStatusListParamsWithTimeout(timeout time.Duration) *StatusListParams

NewStatusListParamsWithTimeout creates a new StatusListParams object with the ability to set a timeout on a request.

func (*StatusListParams) SetContext

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

SetContext adds the context to the status list params

func (*StatusListParams) SetDefaults

func (o *StatusListParams) SetDefaults()

SetDefaults hydrates default values in the status list params (not the query body).

All values with no default are reset to their zero value.

func (*StatusListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the status list params

func (*StatusListParams) SetTimeout

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

SetTimeout adds the timeout to the status list params

func (*StatusListParams) WithContext

func (o *StatusListParams) WithContext(ctx context.Context) *StatusListParams

WithContext adds the context to the status list params

func (*StatusListParams) WithDefaults

func (o *StatusListParams) WithDefaults() *StatusListParams

WithDefaults hydrates default values in the status list params (not the query body).

All values with no default are reset to their zero value.

func (*StatusListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the status list params

func (*StatusListParams) WithTimeout

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

WithTimeout adds the timeout to the status list params

func (*StatusListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StatusListReader

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

StatusListReader is a Reader for the StatusList structure.

func (*StatusListReader) ReadResponse

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