base

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: AGPL-3.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 base API

func New

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

New creates a new base API client.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Version

func (a *Client) Version(params *VersionParams) (*VersionOK, error)

Version version API

type VersionOK

type VersionOK struct {
	Payload *models.APIBaseVersionResponse
}

VersionOK handles this case with default header values.

(empty)

func NewVersionOK

func NewVersionOK() *VersionOK

NewVersionOK creates a VersionOK with default headers values

func (*VersionOK) Error

func (o *VersionOK) Error() string

type VersionParams

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

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

func NewVersionParams

func NewVersionParams() *VersionParams

NewVersionParams creates a new VersionParams object with the default values initialized.

func NewVersionParamsWithContext

func NewVersionParamsWithContext(ctx context.Context) *VersionParams

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

func NewVersionParamsWithHTTPClient

func NewVersionParamsWithHTTPClient(client *http.Client) *VersionParams

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

func NewVersionParamsWithTimeout

func NewVersionParamsWithTimeout(timeout time.Duration) *VersionParams

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

func (*VersionParams) SetContext

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

SetContext adds the context to the version params

func (*VersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the version params

func (*VersionParams) SetTimeout

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

SetTimeout adds the timeout to the version params

func (*VersionParams) WithContext

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

WithContext adds the context to the version params

func (*VersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the version params

func (*VersionParams) WithTimeout

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

WithTimeout adds the timeout to the version params

func (*VersionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type VersionReader

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

VersionReader is a Reader for the Version structure.

func (*VersionReader) ReadResponse

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