provider

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 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 provider API

func New

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

New creates a new provider API client.

func (*Client) GetProvider

func (a *Client) GetProvider(params *GetProviderParams) (*GetProviderOK, error)

GetProvider gets infrastructure provider given by the user via cli

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetProviderBadRequest

type GetProviderBadRequest struct {
	Payload *models.Error
}

GetProviderBadRequest handles this case with default header values.

Bad request

func NewGetProviderBadRequest

func NewGetProviderBadRequest() *GetProviderBadRequest

NewGetProviderBadRequest creates a GetProviderBadRequest with default headers values

func (*GetProviderBadRequest) Error

func (o *GetProviderBadRequest) Error() string

func (*GetProviderBadRequest) GetPayload

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

type GetProviderInternalServerError

type GetProviderInternalServerError struct {
	Payload *models.Error
}

GetProviderInternalServerError handles this case with default header values.

Internal server error

func NewGetProviderInternalServerError

func NewGetProviderInternalServerError() *GetProviderInternalServerError

NewGetProviderInternalServerError creates a GetProviderInternalServerError with default headers values

func (*GetProviderInternalServerError) Error

func (*GetProviderInternalServerError) GetPayload

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

type GetProviderOK

type GetProviderOK struct {
	Payload *models.ProviderInfo
}

GetProviderOK handles this case with default header values.

Successful operation

func NewGetProviderOK

func NewGetProviderOK() *GetProviderOK

NewGetProviderOK creates a GetProviderOK with default headers values

func (*GetProviderOK) Error

func (o *GetProviderOK) Error() string

func (*GetProviderOK) GetPayload

func (o *GetProviderOK) GetPayload() *models.ProviderInfo

type GetProviderParams

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

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

func NewGetProviderParams

func NewGetProviderParams() *GetProviderParams

NewGetProviderParams creates a new GetProviderParams object with the default values initialized.

func NewGetProviderParamsWithContext

func NewGetProviderParamsWithContext(ctx context.Context) *GetProviderParams

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

func NewGetProviderParamsWithHTTPClient

func NewGetProviderParamsWithHTTPClient(client *http.Client) *GetProviderParams

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

func NewGetProviderParamsWithTimeout

func NewGetProviderParamsWithTimeout(timeout time.Duration) *GetProviderParams

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

func (*GetProviderParams) SetContext

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

SetContext adds the context to the get provider params

func (*GetProviderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get provider params

func (*GetProviderParams) SetTimeout

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

SetTimeout adds the timeout to the get provider params

func (*GetProviderParams) WithContext

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

WithContext adds the context to the get provider params

func (*GetProviderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get provider params

func (*GetProviderParams) WithTimeout

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

WithTimeout adds the timeout to the get provider params

func (*GetProviderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProviderReader

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

GetProviderReader is a Reader for the GetProvider structure.

func (*GetProviderReader) ReadResponse

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