kiosk

package
v0.0.0-...-9e5aecc Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: GPL-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 kiosk API

func (*Client) GetAPIKiosks

func (a *Client) GetAPIKiosks(params *GetAPIKiosksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKiosksOK, error)

GetAPIKiosks returns a collection of user auth codes objects

func (*Client) GetAPIKiosksID

func (a *Client) GetAPIKiosksID(params *GetAPIKiosksIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKiosksIDOK, error)

GetAPIKiosksID returns one user auth codes entity

Creates the code for the configured default type (if not yet existing).

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 {
	GetAPIKiosks(params *GetAPIKiosksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKiosksOK, error)

	GetAPIKiosksID(params *GetAPIKiosksIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKiosksIDOK, 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 kiosk API client.

type GetAPIKiosksIDOK

type GetAPIKiosksIDOK struct {
	Payload *models.UserAuthCodes
}

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

Returns one UserAuthCodes entity

func NewGetAPIKiosksIDOK

func NewGetAPIKiosksIDOK() *GetAPIKiosksIDOK

NewGetAPIKiosksIDOK creates a GetAPIKiosksIDOK with default headers values

func (*GetAPIKiosksIDOK) Error

func (o *GetAPIKiosksIDOK) Error() string

func (*GetAPIKiosksIDOK) GetPayload

func (o *GetAPIKiosksIDOK) GetPayload() *models.UserAuthCodes

func (*GetAPIKiosksIDOK) IsClientError

func (o *GetAPIKiosksIDOK) IsClientError() bool

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

func (*GetAPIKiosksIDOK) IsCode

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

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

func (*GetAPIKiosksIDOK) IsRedirect

func (o *GetAPIKiosksIDOK) IsRedirect() bool

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

func (*GetAPIKiosksIDOK) IsServerError

func (o *GetAPIKiosksIDOK) IsServerError() bool

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

func (*GetAPIKiosksIDOK) IsSuccess

func (o *GetAPIKiosksIDOK) IsSuccess() bool

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

func (*GetAPIKiosksIDOK) String

func (o *GetAPIKiosksIDOK) String() string

type GetAPIKiosksIDParams

type GetAPIKiosksIDParams struct {

	/* ID.

	   User ID to fetch
	*/
	ID int64

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

GetAPIKiosksIDParams contains all the parameters to send to the API endpoint

for the get API kiosks ID operation.

Typically these are written to a http.Request.

func NewGetAPIKiosksIDParams

func NewGetAPIKiosksIDParams() *GetAPIKiosksIDParams

NewGetAPIKiosksIDParams creates a new GetAPIKiosksIDParams 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 NewGetAPIKiosksIDParamsWithContext

func NewGetAPIKiosksIDParamsWithContext(ctx context.Context) *GetAPIKiosksIDParams

NewGetAPIKiosksIDParamsWithContext creates a new GetAPIKiosksIDParams object with the ability to set a context for a request.

func NewGetAPIKiosksIDParamsWithHTTPClient

func NewGetAPIKiosksIDParamsWithHTTPClient(client *http.Client) *GetAPIKiosksIDParams

NewGetAPIKiosksIDParamsWithHTTPClient creates a new GetAPIKiosksIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIKiosksIDParamsWithTimeout

func NewGetAPIKiosksIDParamsWithTimeout(timeout time.Duration) *GetAPIKiosksIDParams

NewGetAPIKiosksIDParamsWithTimeout creates a new GetAPIKiosksIDParams object with the ability to set a timeout on a request.

func (*GetAPIKiosksIDParams) SetContext

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

SetContext adds the context to the get API kiosks ID params

func (*GetAPIKiosksIDParams) SetDefaults

func (o *GetAPIKiosksIDParams) SetDefaults()

SetDefaults hydrates default values in the get API kiosks ID params (not the query body).

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

func (*GetAPIKiosksIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API kiosks ID params

func (*GetAPIKiosksIDParams) SetID

func (o *GetAPIKiosksIDParams) SetID(id int64)

SetID adds the id to the get API kiosks ID params

func (*GetAPIKiosksIDParams) SetTimeout

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

SetTimeout adds the timeout to the get API kiosks ID params

func (*GetAPIKiosksIDParams) WithContext

WithContext adds the context to the get API kiosks ID params

func (*GetAPIKiosksIDParams) WithDefaults

func (o *GetAPIKiosksIDParams) WithDefaults() *GetAPIKiosksIDParams

WithDefaults hydrates default values in the get API kiosks ID params (not the query body).

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

func (*GetAPIKiosksIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API kiosks ID params

func (*GetAPIKiosksIDParams) WithID

WithID adds the id to the get API kiosks ID params

func (*GetAPIKiosksIDParams) WithTimeout

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

WithTimeout adds the timeout to the get API kiosks ID params

func (*GetAPIKiosksIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAPIKiosksIDReader

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

GetAPIKiosksIDReader is a Reader for the GetAPIKiosksID structure.

func (*GetAPIKiosksIDReader) ReadResponse

func (o *GetAPIKiosksIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAPIKiosksOK

type GetAPIKiosksOK struct {
	Payload []*models.UserAuthCodes
}

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

Returns a collection of UserAuthCodes

func NewGetAPIKiosksOK

func NewGetAPIKiosksOK() *GetAPIKiosksOK

NewGetAPIKiosksOK creates a GetAPIKiosksOK with default headers values

func (*GetAPIKiosksOK) Error

func (o *GetAPIKiosksOK) Error() string

func (*GetAPIKiosksOK) GetPayload

func (o *GetAPIKiosksOK) GetPayload() []*models.UserAuthCodes

func (*GetAPIKiosksOK) IsClientError

func (o *GetAPIKiosksOK) IsClientError() bool

IsClientError returns true when this get Api kiosks o k response has a 4xx status code

func (*GetAPIKiosksOK) IsCode

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

IsCode returns true when this get Api kiosks o k response a status code equal to that given

func (*GetAPIKiosksOK) IsRedirect

func (o *GetAPIKiosksOK) IsRedirect() bool

IsRedirect returns true when this get Api kiosks o k response has a 3xx status code

func (*GetAPIKiosksOK) IsServerError

func (o *GetAPIKiosksOK) IsServerError() bool

IsServerError returns true when this get Api kiosks o k response has a 5xx status code

func (*GetAPIKiosksOK) IsSuccess

func (o *GetAPIKiosksOK) IsSuccess() bool

IsSuccess returns true when this get Api kiosks o k response has a 2xx status code

func (*GetAPIKiosksOK) String

func (o *GetAPIKiosksOK) String() string

type GetAPIKiosksParams

type GetAPIKiosksParams struct {

	/* Order.

	   The result order. Allowed values: ASC, DESC (default: DESC)
	*/
	Order string

	/* OrderBy.

	   The field by which results will be ordered. Allowed values: id, user, type, code (default: id)
	*/
	OrderBy string

	/* Page.

	   The page to display, renders a 404 if not found (default: 1)
	*/
	Page string

	/* Size.

	   The amount of entries for each page (default: 50)
	*/
	Size string

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

GetAPIKiosksParams contains all the parameters to send to the API endpoint

for the get API kiosks operation.

Typically these are written to a http.Request.

func NewGetAPIKiosksParams

func NewGetAPIKiosksParams() *GetAPIKiosksParams

NewGetAPIKiosksParams creates a new GetAPIKiosksParams 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 NewGetAPIKiosksParamsWithContext

func NewGetAPIKiosksParamsWithContext(ctx context.Context) *GetAPIKiosksParams

NewGetAPIKiosksParamsWithContext creates a new GetAPIKiosksParams object with the ability to set a context for a request.

func NewGetAPIKiosksParamsWithHTTPClient

func NewGetAPIKiosksParamsWithHTTPClient(client *http.Client) *GetAPIKiosksParams

NewGetAPIKiosksParamsWithHTTPClient creates a new GetAPIKiosksParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIKiosksParamsWithTimeout

func NewGetAPIKiosksParamsWithTimeout(timeout time.Duration) *GetAPIKiosksParams

NewGetAPIKiosksParamsWithTimeout creates a new GetAPIKiosksParams object with the ability to set a timeout on a request.

func (*GetAPIKiosksParams) SetContext

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

SetContext adds the context to the get API kiosks params

func (*GetAPIKiosksParams) SetDefaults

func (o *GetAPIKiosksParams) SetDefaults()

SetDefaults hydrates default values in the get API kiosks params (not the query body).

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

func (*GetAPIKiosksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API kiosks params

func (*GetAPIKiosksParams) SetOrder

func (o *GetAPIKiosksParams) SetOrder(order string)

SetOrder adds the order to the get API kiosks params

func (*GetAPIKiosksParams) SetOrderBy

func (o *GetAPIKiosksParams) SetOrderBy(orderBy string)

SetOrderBy adds the orderBy to the get API kiosks params

func (*GetAPIKiosksParams) SetPage

func (o *GetAPIKiosksParams) SetPage(page string)

SetPage adds the page to the get API kiosks params

func (*GetAPIKiosksParams) SetSize

func (o *GetAPIKiosksParams) SetSize(size string)

SetSize adds the size to the get API kiosks params

func (*GetAPIKiosksParams) SetTimeout

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

SetTimeout adds the timeout to the get API kiosks params

func (*GetAPIKiosksParams) WithContext

WithContext adds the context to the get API kiosks params

func (*GetAPIKiosksParams) WithDefaults

func (o *GetAPIKiosksParams) WithDefaults() *GetAPIKiosksParams

WithDefaults hydrates default values in the get API kiosks params (not the query body).

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

func (*GetAPIKiosksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API kiosks params

func (*GetAPIKiosksParams) WithOrder

func (o *GetAPIKiosksParams) WithOrder(order string) *GetAPIKiosksParams

WithOrder adds the order to the get API kiosks params

func (*GetAPIKiosksParams) WithOrderBy

func (o *GetAPIKiosksParams) WithOrderBy(orderBy string) *GetAPIKiosksParams

WithOrderBy adds the orderBy to the get API kiosks params

func (*GetAPIKiosksParams) WithPage

func (o *GetAPIKiosksParams) WithPage(page string) *GetAPIKiosksParams

WithPage adds the page to the get API kiosks params

func (*GetAPIKiosksParams) WithSize

func (o *GetAPIKiosksParams) WithSize(size string) *GetAPIKiosksParams

WithSize adds the size to the get API kiosks params

func (*GetAPIKiosksParams) WithTimeout

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

WithTimeout adds the timeout to the get API kiosks params

func (*GetAPIKiosksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAPIKiosksReader

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

GetAPIKiosksReader is a Reader for the GetAPIKiosks structure.

func (*GetAPIKiosksReader) ReadResponse

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