Help us shape the future of Go! Take the 2026 Go Developer Survey

specification

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 11 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 specification API

func (*Client) GetSpecification

func (a *Client) GetSpecification(params *GetSpecificationParams, authInfo runtime.ClientAuthInfoWriter) (*GetSpecificationOK, error)

GetSpecification data plane API specification

Return Data Plane API OpenAPI specification

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService added in v0.2.0

type ClientService interface {
	GetSpecification(params *GetSpecificationParams, authInfo runtime.ClientAuthInfoWriter) (*GetSpecificationOK, 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 specification API client.

type GetSpecificationDefault

type GetSpecificationDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

GetSpecificationDefault handles this case with default header values.

General Error

func NewGetSpecificationDefault

func NewGetSpecificationDefault(code int) *GetSpecificationDefault

NewGetSpecificationDefault creates a GetSpecificationDefault with default headers values

func (*GetSpecificationDefault) Code

func (o *GetSpecificationDefault) Code() int

Code gets the status code for the get specification default response

func (*GetSpecificationDefault) Error

func (o *GetSpecificationDefault) Error() string

func (*GetSpecificationDefault) GetPayload added in v0.2.0

func (o *GetSpecificationDefault) GetPayload() *models.Error

type GetSpecificationOK

type GetSpecificationOK struct {
	Payload interface{}
}

GetSpecificationOK handles this case with default header values.

Success

func NewGetSpecificationOK

func NewGetSpecificationOK() *GetSpecificationOK

NewGetSpecificationOK creates a GetSpecificationOK with default headers values

func (*GetSpecificationOK) Error

func (o *GetSpecificationOK) Error() string

func (*GetSpecificationOK) GetPayload added in v0.2.0

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

type GetSpecificationParams

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

GetSpecificationParams contains all the parameters to send to the API endpoint for the get specification operation typically these are written to a http.Request

func NewGetSpecificationParams

func NewGetSpecificationParams() *GetSpecificationParams

NewGetSpecificationParams creates a new GetSpecificationParams object with the default values initialized.

func NewGetSpecificationParamsWithContext

func NewGetSpecificationParamsWithContext(ctx context.Context) *GetSpecificationParams

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

func NewGetSpecificationParamsWithHTTPClient

func NewGetSpecificationParamsWithHTTPClient(client *http.Client) *GetSpecificationParams

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

func NewGetSpecificationParamsWithTimeout

func NewGetSpecificationParamsWithTimeout(timeout time.Duration) *GetSpecificationParams

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

func (*GetSpecificationParams) SetContext

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

SetContext adds the context to the get specification params

func (*GetSpecificationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get specification params

func (*GetSpecificationParams) SetTimeout

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

SetTimeout adds the timeout to the get specification params

func (*GetSpecificationParams) WithContext

WithContext adds the context to the get specification params

func (*GetSpecificationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get specification params

func (*GetSpecificationParams) WithTimeout

WithTimeout adds the timeout to the get specification params

func (*GetSpecificationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSpecificationReader

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

GetSpecificationReader is a Reader for the GetSpecification structure.

func (*GetSpecificationReader) ReadResponse

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