discovery

package
v0.0.0-...-eff1da9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 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 discovery API

func (*Client) Discovery

func (a *Client) Discovery(params *DiscoveryParams) (*DiscoveryOK, error)

Discovery List all of the API endpoints available in the swagger API format.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	Discovery(params *DiscoveryParams) (*DiscoveryOK, 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 discovery API client.

type DiscoveryBadRequest

type DiscoveryBadRequest struct {
	Payload *models.APIError
}

DiscoveryBadRequest handles this case with default header values.

Bad Request

func NewDiscoveryBadRequest

func NewDiscoveryBadRequest() *DiscoveryBadRequest

NewDiscoveryBadRequest creates a DiscoveryBadRequest with default headers values

func (*DiscoveryBadRequest) Error

func (o *DiscoveryBadRequest) Error() string

func (*DiscoveryBadRequest) GetPayload

func (o *DiscoveryBadRequest) GetPayload() *models.APIError

type DiscoveryForbidden

type DiscoveryForbidden struct {
	Payload *models.APIError
}

DiscoveryForbidden handles this case with default header values.

Unauthorized access

func NewDiscoveryForbidden

func NewDiscoveryForbidden() *DiscoveryForbidden

NewDiscoveryForbidden creates a DiscoveryForbidden with default headers values

func (*DiscoveryForbidden) Error

func (o *DiscoveryForbidden) Error() string

func (*DiscoveryForbidden) GetPayload

func (o *DiscoveryForbidden) GetPayload() *models.APIError

type DiscoveryNotFound

type DiscoveryNotFound struct {
	Payload *models.APIError
}

DiscoveryNotFound handles this case with default header values.

Not found

func NewDiscoveryNotFound

func NewDiscoveryNotFound() *DiscoveryNotFound

NewDiscoveryNotFound creates a DiscoveryNotFound with default headers values

func (*DiscoveryNotFound) Error

func (o *DiscoveryNotFound) Error() string

func (*DiscoveryNotFound) GetPayload

func (o *DiscoveryNotFound) GetPayload() *models.APIError

type DiscoveryOK

type DiscoveryOK struct {
}

DiscoveryOK handles this case with default header values.

Successful invocation

func NewDiscoveryOK

func NewDiscoveryOK() *DiscoveryOK

NewDiscoveryOK creates a DiscoveryOK with default headers values

func (*DiscoveryOK) Error

func (o *DiscoveryOK) Error() string

type DiscoveryParams

type DiscoveryParams struct {

	/*Internal
	  Whether to include internal APIs.

	*/
	Internal *bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewDiscoveryParams

func NewDiscoveryParams() *DiscoveryParams

NewDiscoveryParams creates a new DiscoveryParams object with the default values initialized.

func NewDiscoveryParamsWithContext

func NewDiscoveryParamsWithContext(ctx context.Context) *DiscoveryParams

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

func NewDiscoveryParamsWithHTTPClient

func NewDiscoveryParamsWithHTTPClient(client *http.Client) *DiscoveryParams

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

func NewDiscoveryParamsWithTimeout

func NewDiscoveryParamsWithTimeout(timeout time.Duration) *DiscoveryParams

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

func (*DiscoveryParams) SetContext

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

SetContext adds the context to the discovery params

func (*DiscoveryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the discovery params

func (*DiscoveryParams) SetInternal

func (o *DiscoveryParams) SetInternal(internal *bool)

SetInternal adds the internal to the discovery params

func (*DiscoveryParams) SetTimeout

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

SetTimeout adds the timeout to the discovery params

func (*DiscoveryParams) WithContext

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

WithContext adds the context to the discovery params

func (*DiscoveryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the discovery params

func (*DiscoveryParams) WithInternal

func (o *DiscoveryParams) WithInternal(internal *bool) *DiscoveryParams

WithInternal adds the internal to the discovery params

func (*DiscoveryParams) WithTimeout

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

WithTimeout adds the timeout to the discovery params

func (*DiscoveryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DiscoveryReader

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

DiscoveryReader is a Reader for the Discovery structure.

func (*DiscoveryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DiscoveryUnauthorized

type DiscoveryUnauthorized struct {
	Payload *models.APIError
}

DiscoveryUnauthorized handles this case with default header values.

Session required

func NewDiscoveryUnauthorized

func NewDiscoveryUnauthorized() *DiscoveryUnauthorized

NewDiscoveryUnauthorized creates a DiscoveryUnauthorized with default headers values

func (*DiscoveryUnauthorized) Error

func (o *DiscoveryUnauthorized) Error() string

func (*DiscoveryUnauthorized) GetPayload

func (o *DiscoveryUnauthorized) GetPayload() *models.APIError

Jump to

Keyboard shortcuts

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