swagger

package
v0.0.0-...-3e1e694 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 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 swagger API

func (*Client) GetSwaggerJSON

func (a *Client) GetSwaggerJSON(params *GetSwaggerJSONParams, opts ...ClientOption) (*GetSwaggerJSONOK, error)

GetSwaggerJSON gets swagger json

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 {
	GetSwaggerJSON(params *GetSwaggerJSONParams, opts ...ClientOption) (*GetSwaggerJSONOK, 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 swagger API client.

type GetSwaggerJSONInternalServerError

type GetSwaggerJSONInternalServerError struct {
	Payload *models.ErrorResponse
}
GetSwaggerJSONInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSwaggerJSONInternalServerError

func NewGetSwaggerJSONInternalServerError() *GetSwaggerJSONInternalServerError

NewGetSwaggerJSONInternalServerError creates a GetSwaggerJSONInternalServerError with default headers values

func (*GetSwaggerJSONInternalServerError) Error

func (*GetSwaggerJSONInternalServerError) GetPayload

type GetSwaggerJSONOK

type GetSwaggerJSONOK struct {
	Payload interface{}
}
GetSwaggerJSONOK describes a response with status code 200, with default header values.

OK

func NewGetSwaggerJSONOK

func NewGetSwaggerJSONOK() *GetSwaggerJSONOK

NewGetSwaggerJSONOK creates a GetSwaggerJSONOK with default headers values

func (*GetSwaggerJSONOK) Error

func (o *GetSwaggerJSONOK) Error() string

func (*GetSwaggerJSONOK) GetPayload

func (o *GetSwaggerJSONOK) GetPayload() interface{}

type GetSwaggerJSONParams

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

GetSwaggerJSONParams contains all the parameters to send to the API endpoint

for the get swagger JSON operation.

Typically these are written to a http.Request.

func NewGetSwaggerJSONParams

func NewGetSwaggerJSONParams() *GetSwaggerJSONParams

NewGetSwaggerJSONParams creates a new GetSwaggerJSONParams 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 NewGetSwaggerJSONParamsWithContext

func NewGetSwaggerJSONParamsWithContext(ctx context.Context) *GetSwaggerJSONParams

NewGetSwaggerJSONParamsWithContext creates a new GetSwaggerJSONParams object with the ability to set a context for a request.

func NewGetSwaggerJSONParamsWithHTTPClient

func NewGetSwaggerJSONParamsWithHTTPClient(client *http.Client) *GetSwaggerJSONParams

NewGetSwaggerJSONParamsWithHTTPClient creates a new GetSwaggerJSONParams object with the ability to set a custom HTTPClient for a request.

func NewGetSwaggerJSONParamsWithTimeout

func NewGetSwaggerJSONParamsWithTimeout(timeout time.Duration) *GetSwaggerJSONParams

NewGetSwaggerJSONParamsWithTimeout creates a new GetSwaggerJSONParams object with the ability to set a timeout on a request.

func (*GetSwaggerJSONParams) SetContext

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

SetContext adds the context to the get swagger JSON params

func (*GetSwaggerJSONParams) SetDefaults

func (o *GetSwaggerJSONParams) SetDefaults()

SetDefaults hydrates default values in the get swagger JSON params (not the query body).

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

func (*GetSwaggerJSONParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get swagger JSON params

func (*GetSwaggerJSONParams) SetTimeout

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

SetTimeout adds the timeout to the get swagger JSON params

func (*GetSwaggerJSONParams) WithContext

WithContext adds the context to the get swagger JSON params

func (*GetSwaggerJSONParams) WithDefaults

func (o *GetSwaggerJSONParams) WithDefaults() *GetSwaggerJSONParams

WithDefaults hydrates default values in the get swagger JSON params (not the query body).

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

func (*GetSwaggerJSONParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get swagger JSON params

func (*GetSwaggerJSONParams) WithTimeout

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

WithTimeout adds the timeout to the get swagger JSON params

func (*GetSwaggerJSONParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSwaggerJSONReader

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

GetSwaggerJSONReader is a Reader for the GetSwaggerJSON structure.

func (*GetSwaggerJSONReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSwaggerJSONTooManyRequests

type GetSwaggerJSONTooManyRequests struct {
	Payload *models.ErrorResponse
}
GetSwaggerJSONTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetSwaggerJSONTooManyRequests

func NewGetSwaggerJSONTooManyRequests() *GetSwaggerJSONTooManyRequests

NewGetSwaggerJSONTooManyRequests creates a GetSwaggerJSONTooManyRequests with default headers values

func (*GetSwaggerJSONTooManyRequests) Error

func (*GetSwaggerJSONTooManyRequests) GetPayload

type GetSwaggerJSONUnauthorized

type GetSwaggerJSONUnauthorized struct {
	Payload *models.ErrorResponse
}
GetSwaggerJSONUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetSwaggerJSONUnauthorized

func NewGetSwaggerJSONUnauthorized() *GetSwaggerJSONUnauthorized

NewGetSwaggerJSONUnauthorized creates a GetSwaggerJSONUnauthorized with default headers values

func (*GetSwaggerJSONUnauthorized) Error

func (*GetSwaggerJSONUnauthorized) GetPayload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL