noauth

package
v0.0.0-...-d3fc958 Latest Latest
Warning

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

Go to latest
Published: May 2, 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 noauth API

func (*Client) GetV1NoauthPing

func (a *Client) GetV1NoauthPing(params *GetV1NoauthPingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1NoauthPingOK, error)

GetV1NoauthPing pings

Simple endpoint to verify your API connection is working

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 {
	GetV1NoauthPing(params *GetV1NoauthPingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1NoauthPingOK, 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 noauth API client.

type GetV1NoauthPingOK

type GetV1NoauthPingOK struct {
	Payload *models.PongEntity
}

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

Simple endpoint to verify your API connection is working

func NewGetV1NoauthPingOK

func NewGetV1NoauthPingOK() *GetV1NoauthPingOK

NewGetV1NoauthPingOK creates a GetV1NoauthPingOK with default headers values

func (*GetV1NoauthPingOK) Error

func (o *GetV1NoauthPingOK) Error() string

func (*GetV1NoauthPingOK) GetPayload

func (o *GetV1NoauthPingOK) GetPayload() *models.PongEntity

func (*GetV1NoauthPingOK) IsClientError

func (o *GetV1NoauthPingOK) IsClientError() bool

IsClientError returns true when this get v1 noauth ping o k response has a 4xx status code

func (*GetV1NoauthPingOK) IsCode

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

IsCode returns true when this get v1 noauth ping o k response a status code equal to that given

func (*GetV1NoauthPingOK) IsRedirect

func (o *GetV1NoauthPingOK) IsRedirect() bool

IsRedirect returns true when this get v1 noauth ping o k response has a 3xx status code

func (*GetV1NoauthPingOK) IsServerError

func (o *GetV1NoauthPingOK) IsServerError() bool

IsServerError returns true when this get v1 noauth ping o k response has a 5xx status code

func (*GetV1NoauthPingOK) IsSuccess

func (o *GetV1NoauthPingOK) IsSuccess() bool

IsSuccess returns true when this get v1 noauth ping o k response has a 2xx status code

func (*GetV1NoauthPingOK) String

func (o *GetV1NoauthPingOK) String() string

type GetV1NoauthPingParams

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

GetV1NoauthPingParams contains all the parameters to send to the API endpoint

for the get v1 noauth ping operation.

Typically these are written to a http.Request.

func NewGetV1NoauthPingParams

func NewGetV1NoauthPingParams() *GetV1NoauthPingParams

NewGetV1NoauthPingParams creates a new GetV1NoauthPingParams 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 NewGetV1NoauthPingParamsWithContext

func NewGetV1NoauthPingParamsWithContext(ctx context.Context) *GetV1NoauthPingParams

NewGetV1NoauthPingParamsWithContext creates a new GetV1NoauthPingParams object with the ability to set a context for a request.

func NewGetV1NoauthPingParamsWithHTTPClient

func NewGetV1NoauthPingParamsWithHTTPClient(client *http.Client) *GetV1NoauthPingParams

NewGetV1NoauthPingParamsWithHTTPClient creates a new GetV1NoauthPingParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1NoauthPingParamsWithTimeout

func NewGetV1NoauthPingParamsWithTimeout(timeout time.Duration) *GetV1NoauthPingParams

NewGetV1NoauthPingParamsWithTimeout creates a new GetV1NoauthPingParams object with the ability to set a timeout on a request.

func (*GetV1NoauthPingParams) SetContext

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

SetContext adds the context to the get v1 noauth ping params

func (*GetV1NoauthPingParams) SetDefaults

func (o *GetV1NoauthPingParams) SetDefaults()

SetDefaults hydrates default values in the get v1 noauth ping params (not the query body).

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

func (*GetV1NoauthPingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 noauth ping params

func (*GetV1NoauthPingParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 noauth ping params

func (*GetV1NoauthPingParams) WithContext

WithContext adds the context to the get v1 noauth ping params

func (*GetV1NoauthPingParams) WithDefaults

func (o *GetV1NoauthPingParams) WithDefaults() *GetV1NoauthPingParams

WithDefaults hydrates default values in the get v1 noauth ping params (not the query body).

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

func (*GetV1NoauthPingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 noauth ping params

func (*GetV1NoauthPingParams) WithTimeout

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

WithTimeout adds the timeout to the get v1 noauth ping params

func (*GetV1NoauthPingParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetV1NoauthPingReader

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

GetV1NoauthPingReader is a Reader for the GetV1NoauthPing structure.

func (*GetV1NoauthPingReader) ReadResponse

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