Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListProvidersBadRequest
- func (o *ListProvidersBadRequest) Code() int
- func (o *ListProvidersBadRequest) Error() string
- func (o *ListProvidersBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *ListProvidersBadRequest) IsClientError() bool
- func (o *ListProvidersBadRequest) IsCode(code int) bool
- func (o *ListProvidersBadRequest) IsRedirect() bool
- func (o *ListProvidersBadRequest) IsServerError() bool
- func (o *ListProvidersBadRequest) IsSuccess() bool
- func (o *ListProvidersBadRequest) String() string
- type ListProvidersOK
- func (o *ListProvidersOK) Code() int
- func (o *ListProvidersOK) Error() string
- func (o *ListProvidersOK) GetPayload() garm_params.Providers
- func (o *ListProvidersOK) IsClientError() bool
- func (o *ListProvidersOK) IsCode(code int) bool
- func (o *ListProvidersOK) IsRedirect() bool
- func (o *ListProvidersOK) IsServerError() bool
- func (o *ListProvidersOK) IsSuccess() bool
- func (o *ListProvidersOK) String() string
- type ListProvidersParams
- func (o *ListProvidersParams) SetContext(ctx context.Context)
- func (o *ListProvidersParams) SetDefaults()
- func (o *ListProvidersParams) SetHTTPClient(client *http.Client)
- func (o *ListProvidersParams) SetTimeout(timeout time.Duration)
- func (o *ListProvidersParams) WithContext(ctx context.Context) *ListProvidersParams
- func (o *ListProvidersParams) WithDefaults() *ListProvidersParams
- func (o *ListProvidersParams) WithHTTPClient(client *http.Client) *ListProvidersParams
- func (o *ListProvidersParams) WithTimeout(timeout time.Duration) *ListProvidersParams
- func (o *ListProvidersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListProvidersReader
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 providers API
func (*Client) ListProviders ¶
func (a *Client) ListProviders(params *ListProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProvidersOK, error)
ListProviders lists all providers
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ListProviders(params *ListProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProvidersOK, 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 providers API client.
type ListProvidersBadRequest ¶
type ListProvidersBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
ListProvidersBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewListProvidersBadRequest ¶
func NewListProvidersBadRequest() *ListProvidersBadRequest
NewListProvidersBadRequest creates a ListProvidersBadRequest with default headers values
func (*ListProvidersBadRequest) Code ¶
func (o *ListProvidersBadRequest) Code() int
Code gets the status code for the list providers bad request response
func (*ListProvidersBadRequest) Error ¶
func (o *ListProvidersBadRequest) Error() string
func (*ListProvidersBadRequest) GetPayload ¶
func (o *ListProvidersBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*ListProvidersBadRequest) IsClientError ¶
func (o *ListProvidersBadRequest) IsClientError() bool
IsClientError returns true when this list providers bad request response has a 4xx status code
func (*ListProvidersBadRequest) IsCode ¶
func (o *ListProvidersBadRequest) IsCode(code int) bool
IsCode returns true when this list providers bad request response a status code equal to that given
func (*ListProvidersBadRequest) IsRedirect ¶
func (o *ListProvidersBadRequest) IsRedirect() bool
IsRedirect returns true when this list providers bad request response has a 3xx status code
func (*ListProvidersBadRequest) IsServerError ¶
func (o *ListProvidersBadRequest) IsServerError() bool
IsServerError returns true when this list providers bad request response has a 5xx status code
func (*ListProvidersBadRequest) IsSuccess ¶
func (o *ListProvidersBadRequest) IsSuccess() bool
IsSuccess returns true when this list providers bad request response has a 2xx status code
func (*ListProvidersBadRequest) String ¶
func (o *ListProvidersBadRequest) String() string
type ListProvidersOK ¶
type ListProvidersOK struct {
Payload garm_params.Providers
}
ListProvidersOK describes a response with status code 200, with default header values.
Providers
func NewListProvidersOK ¶
func NewListProvidersOK() *ListProvidersOK
NewListProvidersOK creates a ListProvidersOK with default headers values
func (*ListProvidersOK) Code ¶
func (o *ListProvidersOK) Code() int
Code gets the status code for the list providers o k response
func (*ListProvidersOK) Error ¶
func (o *ListProvidersOK) Error() string
func (*ListProvidersOK) GetPayload ¶
func (o *ListProvidersOK) GetPayload() garm_params.Providers
func (*ListProvidersOK) IsClientError ¶
func (o *ListProvidersOK) IsClientError() bool
IsClientError returns true when this list providers o k response has a 4xx status code
func (*ListProvidersOK) IsCode ¶
func (o *ListProvidersOK) IsCode(code int) bool
IsCode returns true when this list providers o k response a status code equal to that given
func (*ListProvidersOK) IsRedirect ¶
func (o *ListProvidersOK) IsRedirect() bool
IsRedirect returns true when this list providers o k response has a 3xx status code
func (*ListProvidersOK) IsServerError ¶
func (o *ListProvidersOK) IsServerError() bool
IsServerError returns true when this list providers o k response has a 5xx status code
func (*ListProvidersOK) IsSuccess ¶
func (o *ListProvidersOK) IsSuccess() bool
IsSuccess returns true when this list providers o k response has a 2xx status code
func (*ListProvidersOK) String ¶
func (o *ListProvidersOK) String() string
type ListProvidersParams ¶
type ListProvidersParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListProvidersParams contains all the parameters to send to the API endpoint
for the list providers operation. Typically these are written to a http.Request.
func NewListProvidersParams ¶
func NewListProvidersParams() *ListProvidersParams
NewListProvidersParams creates a new ListProvidersParams 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 NewListProvidersParamsWithContext ¶
func NewListProvidersParamsWithContext(ctx context.Context) *ListProvidersParams
NewListProvidersParamsWithContext creates a new ListProvidersParams object with the ability to set a context for a request.
func NewListProvidersParamsWithHTTPClient ¶
func NewListProvidersParamsWithHTTPClient(client *http.Client) *ListProvidersParams
NewListProvidersParamsWithHTTPClient creates a new ListProvidersParams object with the ability to set a custom HTTPClient for a request.
func NewListProvidersParamsWithTimeout ¶
func NewListProvidersParamsWithTimeout(timeout time.Duration) *ListProvidersParams
NewListProvidersParamsWithTimeout creates a new ListProvidersParams object with the ability to set a timeout on a request.
func (*ListProvidersParams) SetContext ¶
func (o *ListProvidersParams) SetContext(ctx context.Context)
SetContext adds the context to the list providers params
func (*ListProvidersParams) SetDefaults ¶
func (o *ListProvidersParams) SetDefaults()
SetDefaults hydrates default values in the list providers params (not the query body).
All values with no default are reset to their zero value.
func (*ListProvidersParams) SetHTTPClient ¶
func (o *ListProvidersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list providers params
func (*ListProvidersParams) SetTimeout ¶
func (o *ListProvidersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list providers params
func (*ListProvidersParams) WithContext ¶
func (o *ListProvidersParams) WithContext(ctx context.Context) *ListProvidersParams
WithContext adds the context to the list providers params
func (*ListProvidersParams) WithDefaults ¶
func (o *ListProvidersParams) WithDefaults() *ListProvidersParams
WithDefaults hydrates default values in the list providers params (not the query body).
All values with no default are reset to their zero value.
func (*ListProvidersParams) WithHTTPClient ¶
func (o *ListProvidersParams) WithHTTPClient(client *http.Client) *ListProvidersParams
WithHTTPClient adds the HTTPClient to the list providers params
func (*ListProvidersParams) WithTimeout ¶
func (o *ListProvidersParams) WithTimeout(timeout time.Duration) *ListProvidersParams
WithTimeout adds the timeout to the list providers params
func (*ListProvidersParams) WriteToRequest ¶
func (o *ListProvidersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListProvidersReader ¶
type ListProvidersReader struct {
// contains filtered or unexported fields
}
ListProvidersReader is a Reader for the ListProviders structure.
func (*ListProvidersReader) ReadResponse ¶
func (o *ListProvidersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.