version

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 10 Imported by: 1

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 version API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new version API client.

func (*Client) Info

func (a *Client) Info(params *InfoParams, authInfo runtime.ClientAuthInfoWriter) (*InfoOK, error)

Info returns the current version information of this module

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type InfoOK

type InfoOK struct {
	Payload *models.RestVersion
}

InfoOK handles this case with default header values.

OK

func NewInfoOK

func NewInfoOK() *InfoOK

NewInfoOK creates a InfoOK with default headers values

func (*InfoOK) Error

func (o *InfoOK) Error() string

type InfoParams

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

InfoParams contains all the parameters to send to the API endpoint for the info operation typically these are written to a http.Request

func NewInfoParams

func NewInfoParams() *InfoParams

NewInfoParams creates a new InfoParams object with the default values initialized.

func NewInfoParamsWithContext

func NewInfoParamsWithContext(ctx context.Context) *InfoParams

NewInfoParamsWithContext creates a new InfoParams object with the default values initialized, and the ability to set a context for a request

func NewInfoParamsWithHTTPClient

func NewInfoParamsWithHTTPClient(client *http.Client) *InfoParams

NewInfoParamsWithHTTPClient creates a new InfoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewInfoParamsWithTimeout

func NewInfoParamsWithTimeout(timeout time.Duration) *InfoParams

NewInfoParamsWithTimeout creates a new InfoParams object with the default values initialized, and the ability to set a timeout on a request

func (*InfoParams) SetContext

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

SetContext adds the context to the info params

func (*InfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the info params

func (*InfoParams) SetTimeout

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

SetTimeout adds the timeout to the info params

func (*InfoParams) WithContext

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

WithContext adds the context to the info params

func (*InfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the info params

func (*InfoParams) WithTimeout

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

WithTimeout adds the timeout to the info params

func (*InfoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type InfoReader

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

InfoReader is a Reader for the Info structure.

func (*InfoReader) ReadResponse

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