controller

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: Apache-2.0 Imports: 12 Imported by: 2

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 API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateController

func (a *Client) UpdateController(params *UpdateControllerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateControllerOK, error)

UpdateController updates controller

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	UpdateController(params *UpdateControllerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateControllerOK, 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 API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new controller API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new controller API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type UpdateControllerBadRequest

type UpdateControllerBadRequest struct {
	Payload apiserver_params.APIErrorResponse
}

UpdateControllerBadRequest describes a response with status code 400, with default header values.

APIErrorResponse

func NewUpdateControllerBadRequest

func NewUpdateControllerBadRequest() *UpdateControllerBadRequest

NewUpdateControllerBadRequest creates a UpdateControllerBadRequest with default headers values

func (*UpdateControllerBadRequest) Code

func (o *UpdateControllerBadRequest) Code() int

Code gets the status code for the update controller bad request response

func (*UpdateControllerBadRequest) Error

func (*UpdateControllerBadRequest) GetPayload

func (*UpdateControllerBadRequest) IsClientError

func (o *UpdateControllerBadRequest) IsClientError() bool

IsClientError returns true when this update controller bad request response has a 4xx status code

func (*UpdateControllerBadRequest) IsCode

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

IsCode returns true when this update controller bad request response a status code equal to that given

func (*UpdateControllerBadRequest) IsRedirect

func (o *UpdateControllerBadRequest) IsRedirect() bool

IsRedirect returns true when this update controller bad request response has a 3xx status code

func (*UpdateControllerBadRequest) IsServerError

func (o *UpdateControllerBadRequest) IsServerError() bool

IsServerError returns true when this update controller bad request response has a 5xx status code

func (*UpdateControllerBadRequest) IsSuccess

func (o *UpdateControllerBadRequest) IsSuccess() bool

IsSuccess returns true when this update controller bad request response has a 2xx status code

func (*UpdateControllerBadRequest) String

func (o *UpdateControllerBadRequest) String() string

type UpdateControllerOK

type UpdateControllerOK struct {
	Payload garm_params.ControllerInfo
}

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

ControllerInfo

func NewUpdateControllerOK

func NewUpdateControllerOK() *UpdateControllerOK

NewUpdateControllerOK creates a UpdateControllerOK with default headers values

func (*UpdateControllerOK) Code

func (o *UpdateControllerOK) Code() int

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

func (*UpdateControllerOK) Error

func (o *UpdateControllerOK) Error() string

func (*UpdateControllerOK) GetPayload

func (*UpdateControllerOK) IsClientError

func (o *UpdateControllerOK) IsClientError() bool

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

func (*UpdateControllerOK) IsCode

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

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

func (*UpdateControllerOK) IsRedirect

func (o *UpdateControllerOK) IsRedirect() bool

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

func (*UpdateControllerOK) IsServerError

func (o *UpdateControllerOK) IsServerError() bool

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

func (*UpdateControllerOK) IsSuccess

func (o *UpdateControllerOK) IsSuccess() bool

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

func (*UpdateControllerOK) String

func (o *UpdateControllerOK) String() string

type UpdateControllerParams

type UpdateControllerParams struct {

	/* Body.

	   Parameters used when updating the controller.
	*/
	Body garm_params.UpdateControllerParams

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateControllerParams contains all the parameters to send to the API endpoint

for the update controller operation.

Typically these are written to a http.Request.

func NewUpdateControllerParams

func NewUpdateControllerParams() *UpdateControllerParams

NewUpdateControllerParams creates a new UpdateControllerParams 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 NewUpdateControllerParamsWithContext

func NewUpdateControllerParamsWithContext(ctx context.Context) *UpdateControllerParams

NewUpdateControllerParamsWithContext creates a new UpdateControllerParams object with the ability to set a context for a request.

func NewUpdateControllerParamsWithHTTPClient

func NewUpdateControllerParamsWithHTTPClient(client *http.Client) *UpdateControllerParams

NewUpdateControllerParamsWithHTTPClient creates a new UpdateControllerParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateControllerParamsWithTimeout

func NewUpdateControllerParamsWithTimeout(timeout time.Duration) *UpdateControllerParams

NewUpdateControllerParamsWithTimeout creates a new UpdateControllerParams object with the ability to set a timeout on a request.

func (*UpdateControllerParams) SetBody

SetBody adds the body to the update controller params

func (*UpdateControllerParams) SetContext

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

SetContext adds the context to the update controller params

func (*UpdateControllerParams) SetDefaults

func (o *UpdateControllerParams) SetDefaults()

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

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

func (*UpdateControllerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update controller params

func (*UpdateControllerParams) SetTimeout

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

SetTimeout adds the timeout to the update controller params

func (*UpdateControllerParams) WithBody

WithBody adds the body to the update controller params

func (*UpdateControllerParams) WithContext

WithContext adds the context to the update controller params

func (*UpdateControllerParams) WithDefaults

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

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

func (*UpdateControllerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update controller params

func (*UpdateControllerParams) WithTimeout

WithTimeout adds the timeout to the update controller params

func (*UpdateControllerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateControllerReader

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

UpdateControllerReader is a Reader for the UpdateController structure.

func (*UpdateControllerReader) ReadResponse

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