version_service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 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 version service API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) VersionServiceVersion

func (a *Client) VersionServiceVersion(params *VersionServiceVersionParams, opts ...ClientOption) (*VersionServiceVersionOK, error)

VersionServiceVersion versions returns version information of the API server

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	VersionServiceVersion(params *VersionServiceVersionParams, opts ...ClientOption) (*VersionServiceVersionOK, 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 version service API client.

type VersionServiceVersionDefault

type VersionServiceVersionDefault struct {
	Payload *models.RuntimeError
	// contains filtered or unexported fields
}
VersionServiceVersionDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewVersionServiceVersionDefault

func NewVersionServiceVersionDefault(code int) *VersionServiceVersionDefault

NewVersionServiceVersionDefault creates a VersionServiceVersionDefault with default headers values

func (*VersionServiceVersionDefault) Code

Code gets the status code for the version service version default response

func (*VersionServiceVersionDefault) Error

func (*VersionServiceVersionDefault) GetPayload

type VersionServiceVersionOK

type VersionServiceVersionOK struct {
	Payload *models.VersionVersionMessage
}
VersionServiceVersionOK describes a response with status code 200, with default header values.

A successful response.

func NewVersionServiceVersionOK

func NewVersionServiceVersionOK() *VersionServiceVersionOK

NewVersionServiceVersionOK creates a VersionServiceVersionOK with default headers values

func (*VersionServiceVersionOK) Error

func (o *VersionServiceVersionOK) Error() string

func (*VersionServiceVersionOK) GetPayload

type VersionServiceVersionParams

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

VersionServiceVersionParams contains all the parameters to send to the API endpoint

for the version service version operation.

Typically these are written to a http.Request.

func NewVersionServiceVersionParams

func NewVersionServiceVersionParams() *VersionServiceVersionParams

NewVersionServiceVersionParams creates a new VersionServiceVersionParams 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 NewVersionServiceVersionParamsWithContext

func NewVersionServiceVersionParamsWithContext(ctx context.Context) *VersionServiceVersionParams

NewVersionServiceVersionParamsWithContext creates a new VersionServiceVersionParams object with the ability to set a context for a request.

func NewVersionServiceVersionParamsWithHTTPClient

func NewVersionServiceVersionParamsWithHTTPClient(client *http.Client) *VersionServiceVersionParams

NewVersionServiceVersionParamsWithHTTPClient creates a new VersionServiceVersionParams object with the ability to set a custom HTTPClient for a request.

func NewVersionServiceVersionParamsWithTimeout

func NewVersionServiceVersionParamsWithTimeout(timeout time.Duration) *VersionServiceVersionParams

NewVersionServiceVersionParamsWithTimeout creates a new VersionServiceVersionParams object with the ability to set a timeout on a request.

func (*VersionServiceVersionParams) SetContext

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

SetContext adds the context to the version service version params

func (*VersionServiceVersionParams) SetDefaults

func (o *VersionServiceVersionParams) SetDefaults()

SetDefaults hydrates default values in the version service version params (not the query body).

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

func (*VersionServiceVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the version service version params

func (*VersionServiceVersionParams) SetTimeout

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

SetTimeout adds the timeout to the version service version params

func (*VersionServiceVersionParams) WithContext

WithContext adds the context to the version service version params

func (*VersionServiceVersionParams) WithDefaults

WithDefaults hydrates default values in the version service version params (not the query body).

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

func (*VersionServiceVersionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the version service version params

func (*VersionServiceVersionParams) WithTimeout

WithTimeout adds the timeout to the version service version params

func (*VersionServiceVersionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type VersionServiceVersionReader

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

VersionServiceVersionReader is a Reader for the VersionServiceVersion structure.

func (*VersionServiceVersionReader) ReadResponse

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