controller_info

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 11 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 controller info API

func (*Client) ControllerInfo

func (a *Client) ControllerInfo(params *ControllerInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ControllerInfoOK, error)

ControllerInfo gets controller info

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ControllerInfo(params *ControllerInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ControllerInfoOK, 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 controller info API client.

type ControllerInfoConflict

type ControllerInfoConflict struct {
	Payload apiserver_params.APIErrorResponse
}

ControllerInfoConflict describes a response with status code 409, with default header values.

APIErrorResponse

func NewControllerInfoConflict

func NewControllerInfoConflict() *ControllerInfoConflict

NewControllerInfoConflict creates a ControllerInfoConflict with default headers values

func (*ControllerInfoConflict) Code

func (o *ControllerInfoConflict) Code() int

Code gets the status code for the controller info conflict response

func (*ControllerInfoConflict) Error

func (o *ControllerInfoConflict) Error() string

func (*ControllerInfoConflict) GetPayload

func (*ControllerInfoConflict) IsClientError

func (o *ControllerInfoConflict) IsClientError() bool

IsClientError returns true when this controller info conflict response has a 4xx status code

func (*ControllerInfoConflict) IsCode

func (o *ControllerInfoConflict) IsCode(code int) bool

IsCode returns true when this controller info conflict response a status code equal to that given

func (*ControllerInfoConflict) IsRedirect

func (o *ControllerInfoConflict) IsRedirect() bool

IsRedirect returns true when this controller info conflict response has a 3xx status code

func (*ControllerInfoConflict) IsServerError

func (o *ControllerInfoConflict) IsServerError() bool

IsServerError returns true when this controller info conflict response has a 5xx status code

func (*ControllerInfoConflict) IsSuccess

func (o *ControllerInfoConflict) IsSuccess() bool

IsSuccess returns true when this controller info conflict response has a 2xx status code

func (*ControllerInfoConflict) String

func (o *ControllerInfoConflict) String() string

type ControllerInfoOK

type ControllerInfoOK struct {
	Payload garm_params.ControllerInfo
}

ControllerInfoOK describes a response with status code 200, with default header values.

ControllerInfo

func NewControllerInfoOK

func NewControllerInfoOK() *ControllerInfoOK

NewControllerInfoOK creates a ControllerInfoOK with default headers values

func (*ControllerInfoOK) Code

func (o *ControllerInfoOK) Code() int

Code gets the status code for the controller info o k response

func (*ControllerInfoOK) Error

func (o *ControllerInfoOK) Error() string

func (*ControllerInfoOK) GetPayload

func (*ControllerInfoOK) IsClientError

func (o *ControllerInfoOK) IsClientError() bool

IsClientError returns true when this controller info o k response has a 4xx status code

func (*ControllerInfoOK) IsCode

func (o *ControllerInfoOK) IsCode(code int) bool

IsCode returns true when this controller info o k response a status code equal to that given

func (*ControllerInfoOK) IsRedirect

func (o *ControllerInfoOK) IsRedirect() bool

IsRedirect returns true when this controller info o k response has a 3xx status code

func (*ControllerInfoOK) IsServerError

func (o *ControllerInfoOK) IsServerError() bool

IsServerError returns true when this controller info o k response has a 5xx status code

func (*ControllerInfoOK) IsSuccess

func (o *ControllerInfoOK) IsSuccess() bool

IsSuccess returns true when this controller info o k response has a 2xx status code

func (*ControllerInfoOK) String

func (o *ControllerInfoOK) String() string

type ControllerInfoParams

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

ControllerInfoParams contains all the parameters to send to the API endpoint

for the controller info operation.

Typically these are written to a http.Request.

func NewControllerInfoParams

func NewControllerInfoParams() *ControllerInfoParams

NewControllerInfoParams creates a new ControllerInfoParams 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 NewControllerInfoParamsWithContext

func NewControllerInfoParamsWithContext(ctx context.Context) *ControllerInfoParams

NewControllerInfoParamsWithContext creates a new ControllerInfoParams object with the ability to set a context for a request.

func NewControllerInfoParamsWithHTTPClient

func NewControllerInfoParamsWithHTTPClient(client *http.Client) *ControllerInfoParams

NewControllerInfoParamsWithHTTPClient creates a new ControllerInfoParams object with the ability to set a custom HTTPClient for a request.

func NewControllerInfoParamsWithTimeout

func NewControllerInfoParamsWithTimeout(timeout time.Duration) *ControllerInfoParams

NewControllerInfoParamsWithTimeout creates a new ControllerInfoParams object with the ability to set a timeout on a request.

func (*ControllerInfoParams) SetContext

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

SetContext adds the context to the controller info params

func (*ControllerInfoParams) SetDefaults

func (o *ControllerInfoParams) SetDefaults()

SetDefaults hydrates default values in the controller info params (not the query body).

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

func (*ControllerInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the controller info params

func (*ControllerInfoParams) SetTimeout

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

SetTimeout adds the timeout to the controller info params

func (*ControllerInfoParams) WithContext

WithContext adds the context to the controller info params

func (*ControllerInfoParams) WithDefaults

func (o *ControllerInfoParams) WithDefaults() *ControllerInfoParams

WithDefaults hydrates default values in the controller info params (not the query body).

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

func (*ControllerInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the controller info params

func (*ControllerInfoParams) WithTimeout

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

WithTimeout adds the timeout to the controller info params

func (*ControllerInfoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ControllerInfoReader

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

ControllerInfoReader is a Reader for the ControllerInfo structure.

func (*ControllerInfoReader) ReadResponse

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