gears

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT 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 gears API

func (*Client) GetGearByID

func (a *Client) GetGearByID(params *GetGearByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGearByIDOK, error)

GetGearByID gets equipment

Returns an equipment using its identifier.

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 {
	GetGearByID(params *GetGearByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGearByIDOK, 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 gears API client.

type GetGearByIDDefault

type GetGearByIDDefault struct {
	Payload *models.Fault
	// contains filtered or unexported fields
}

GetGearByIDDefault describes a response with status code -1, with default header values.

Unexpected error.

func NewGetGearByIDDefault

func NewGetGearByIDDefault(code int) *GetGearByIDDefault

NewGetGearByIDDefault creates a GetGearByIDDefault with default headers values

func (*GetGearByIDDefault) Code

func (o *GetGearByIDDefault) Code() int

Code gets the status code for the get gear by Id default response

func (*GetGearByIDDefault) Error

func (o *GetGearByIDDefault) Error() string

func (*GetGearByIDDefault) GetPayload

func (o *GetGearByIDDefault) GetPayload() *models.Fault

func (*GetGearByIDDefault) IsClientError added in v0.0.5

func (o *GetGearByIDDefault) IsClientError() bool

IsClientError returns true when this get gear by Id default response has a 4xx status code

func (*GetGearByIDDefault) IsCode added in v0.0.5

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

IsCode returns true when this get gear by Id default response a status code equal to that given

func (*GetGearByIDDefault) IsRedirect added in v0.0.5

func (o *GetGearByIDDefault) IsRedirect() bool

IsRedirect returns true when this get gear by Id default response has a 3xx status code

func (*GetGearByIDDefault) IsServerError added in v0.0.5

func (o *GetGearByIDDefault) IsServerError() bool

IsServerError returns true when this get gear by Id default response has a 5xx status code

func (*GetGearByIDDefault) IsSuccess added in v0.0.5

func (o *GetGearByIDDefault) IsSuccess() bool

IsSuccess returns true when this get gear by Id default response has a 2xx status code

func (*GetGearByIDDefault) String added in v0.0.5

func (o *GetGearByIDDefault) String() string

type GetGearByIDOK

type GetGearByIDOK struct {
	Payload *models.DetailedGear
}

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

A representation of the gear.

func NewGetGearByIDOK

func NewGetGearByIDOK() *GetGearByIDOK

NewGetGearByIDOK creates a GetGearByIDOK with default headers values

func (*GetGearByIDOK) Code added in v0.0.7

func (o *GetGearByIDOK) Code() int

Code gets the status code for the get gear by Id o k response

func (*GetGearByIDOK) Error

func (o *GetGearByIDOK) Error() string

func (*GetGearByIDOK) GetPayload

func (o *GetGearByIDOK) GetPayload() *models.DetailedGear

func (*GetGearByIDOK) IsClientError added in v0.0.5

func (o *GetGearByIDOK) IsClientError() bool

IsClientError returns true when this get gear by Id o k response has a 4xx status code

func (*GetGearByIDOK) IsCode added in v0.0.5

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

IsCode returns true when this get gear by Id o k response a status code equal to that given

func (*GetGearByIDOK) IsRedirect added in v0.0.5

func (o *GetGearByIDOK) IsRedirect() bool

IsRedirect returns true when this get gear by Id o k response has a 3xx status code

func (*GetGearByIDOK) IsServerError added in v0.0.5

func (o *GetGearByIDOK) IsServerError() bool

IsServerError returns true when this get gear by Id o k response has a 5xx status code

func (*GetGearByIDOK) IsSuccess added in v0.0.5

func (o *GetGearByIDOK) IsSuccess() bool

IsSuccess returns true when this get gear by Id o k response has a 2xx status code

func (*GetGearByIDOK) String added in v0.0.5

func (o *GetGearByIDOK) String() string

type GetGearByIDParams

type GetGearByIDParams struct {

	/* ID.

	   The identifier of the gear.
	*/
	ID string

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

GetGearByIDParams contains all the parameters to send to the API endpoint

for the get gear by Id operation.

Typically these are written to a http.Request.

func NewGetGearByIDParams

func NewGetGearByIDParams() *GetGearByIDParams

NewGetGearByIDParams creates a new GetGearByIDParams 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 NewGetGearByIDParamsWithContext

func NewGetGearByIDParamsWithContext(ctx context.Context) *GetGearByIDParams

NewGetGearByIDParamsWithContext creates a new GetGearByIDParams object with the ability to set a context for a request.

func NewGetGearByIDParamsWithHTTPClient

func NewGetGearByIDParamsWithHTTPClient(client *http.Client) *GetGearByIDParams

NewGetGearByIDParamsWithHTTPClient creates a new GetGearByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetGearByIDParamsWithTimeout

func NewGetGearByIDParamsWithTimeout(timeout time.Duration) *GetGearByIDParams

NewGetGearByIDParamsWithTimeout creates a new GetGearByIDParams object with the ability to set a timeout on a request.

func (*GetGearByIDParams) SetContext

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

SetContext adds the context to the get gear by Id params

func (*GetGearByIDParams) SetDefaults

func (o *GetGearByIDParams) SetDefaults()

SetDefaults hydrates default values in the get gear by Id params (not the query body).

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

func (*GetGearByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get gear by Id params

func (*GetGearByIDParams) SetID

func (o *GetGearByIDParams) SetID(id string)

SetID adds the id to the get gear by Id params

func (*GetGearByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get gear by Id params

func (*GetGearByIDParams) WithContext

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

WithContext adds the context to the get gear by Id params

func (*GetGearByIDParams) WithDefaults

func (o *GetGearByIDParams) WithDefaults() *GetGearByIDParams

WithDefaults hydrates default values in the get gear by Id params (not the query body).

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

func (*GetGearByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get gear by Id params

func (*GetGearByIDParams) WithID

WithID adds the id to the get gear by Id params

func (*GetGearByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get gear by Id params

func (*GetGearByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGearByIDReader

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

GetGearByIDReader is a Reader for the GetGearByID structure.

func (*GetGearByIDReader) ReadResponse

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