status

package
v0.0.0-...-0b50d9d Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 9 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) (*StatusListOK, error)

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

type ClientService

type ClientService interface {
	StatusList(params *StatusListParams, authInfo runtime.ClientAuthInfoWriter) (*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 StatusListDefault

type StatusListDefault struct {
	Payload interface{}
	// contains filtered or unexported fields
}

StatusListDefault handles this case with default header values.

StatusListDefault status list default

func NewStatusListDefault

func NewStatusListDefault(code int) *StatusListDefault

NewStatusListDefault creates a StatusListDefault with default headers values

func (*StatusListDefault) Code

func (o *StatusListDefault) Code() int

Code gets the status code for the status list default response

func (*StatusListDefault) Error

func (o *StatusListDefault) Error() string

func (*StatusListDefault) GetPayload

func (o *StatusListDefault) GetPayload() interface{}

type StatusListOK

type StatusListOK struct {
	Payload interface{}
}

StatusListOK handles this case 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

func (*StatusListOK) GetPayload

func (o *StatusListOK) GetPayload() interface{}

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 values initialized.

func NewStatusListParamsWithContext

func NewStatusListParamsWithContext(ctx context.Context) *StatusListParams

NewStatusListParamsWithContext creates a new StatusListParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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