Documentation
¶
Index ¶
- type Client
- func (a *Client) DeletePool(params *DeletePoolParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) GetPool(params *GetPoolParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPoolOK, error)
- func (a *Client) ListPools(params *ListPoolsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPoolsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePool(params *UpdatePoolParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdatePoolOK, error)
- type ClientOption
- type ClientService
- type DeletePoolDefault
- func (o *DeletePoolDefault) Code() int
- func (o *DeletePoolDefault) Error() string
- func (o *DeletePoolDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *DeletePoolDefault) IsClientError() bool
- func (o *DeletePoolDefault) IsCode(code int) bool
- func (o *DeletePoolDefault) IsRedirect() bool
- func (o *DeletePoolDefault) IsServerError() bool
- func (o *DeletePoolDefault) IsSuccess() bool
- func (o *DeletePoolDefault) String() string
- type DeletePoolParams
- func (o *DeletePoolParams) SetContext(ctx context.Context)
- func (o *DeletePoolParams) SetDefaults()
- func (o *DeletePoolParams) SetHTTPClient(client *http.Client)
- func (o *DeletePoolParams) SetPoolID(poolID string)
- func (o *DeletePoolParams) SetTimeout(timeout time.Duration)
- func (o *DeletePoolParams) WithContext(ctx context.Context) *DeletePoolParams
- func (o *DeletePoolParams) WithDefaults() *DeletePoolParams
- func (o *DeletePoolParams) WithHTTPClient(client *http.Client) *DeletePoolParams
- func (o *DeletePoolParams) WithPoolID(poolID string) *DeletePoolParams
- func (o *DeletePoolParams) WithTimeout(timeout time.Duration) *DeletePoolParams
- func (o *DeletePoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePoolReader
- type GetPoolDefault
- func (o *GetPoolDefault) Code() int
- func (o *GetPoolDefault) Error() string
- func (o *GetPoolDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *GetPoolDefault) IsClientError() bool
- func (o *GetPoolDefault) IsCode(code int) bool
- func (o *GetPoolDefault) IsRedirect() bool
- func (o *GetPoolDefault) IsServerError() bool
- func (o *GetPoolDefault) IsSuccess() bool
- func (o *GetPoolDefault) String() string
- type GetPoolOK
- func (o *GetPoolOK) Code() int
- func (o *GetPoolOK) Error() string
- func (o *GetPoolOK) GetPayload() garm_params.Pool
- func (o *GetPoolOK) IsClientError() bool
- func (o *GetPoolOK) IsCode(code int) bool
- func (o *GetPoolOK) IsRedirect() bool
- func (o *GetPoolOK) IsServerError() bool
- func (o *GetPoolOK) IsSuccess() bool
- func (o *GetPoolOK) String() string
- type GetPoolParams
- func (o *GetPoolParams) SetContext(ctx context.Context)
- func (o *GetPoolParams) SetDefaults()
- func (o *GetPoolParams) SetHTTPClient(client *http.Client)
- func (o *GetPoolParams) SetPoolID(poolID string)
- func (o *GetPoolParams) SetTimeout(timeout time.Duration)
- func (o *GetPoolParams) WithContext(ctx context.Context) *GetPoolParams
- func (o *GetPoolParams) WithDefaults() *GetPoolParams
- func (o *GetPoolParams) WithHTTPClient(client *http.Client) *GetPoolParams
- func (o *GetPoolParams) WithPoolID(poolID string) *GetPoolParams
- func (o *GetPoolParams) WithTimeout(timeout time.Duration) *GetPoolParams
- func (o *GetPoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPoolReader
- type ListPoolsDefault
- func (o *ListPoolsDefault) Code() int
- func (o *ListPoolsDefault) Error() string
- func (o *ListPoolsDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *ListPoolsDefault) IsClientError() bool
- func (o *ListPoolsDefault) IsCode(code int) bool
- func (o *ListPoolsDefault) IsRedirect() bool
- func (o *ListPoolsDefault) IsServerError() bool
- func (o *ListPoolsDefault) IsSuccess() bool
- func (o *ListPoolsDefault) String() string
- type ListPoolsOK
- func (o *ListPoolsOK) Code() int
- func (o *ListPoolsOK) Error() string
- func (o *ListPoolsOK) GetPayload() garm_params.Pools
- func (o *ListPoolsOK) IsClientError() bool
- func (o *ListPoolsOK) IsCode(code int) bool
- func (o *ListPoolsOK) IsRedirect() bool
- func (o *ListPoolsOK) IsServerError() bool
- func (o *ListPoolsOK) IsSuccess() bool
- func (o *ListPoolsOK) String() string
- type ListPoolsParams
- func (o *ListPoolsParams) SetContext(ctx context.Context)
- func (o *ListPoolsParams) SetDefaults()
- func (o *ListPoolsParams) SetHTTPClient(client *http.Client)
- func (o *ListPoolsParams) SetTimeout(timeout time.Duration)
- func (o *ListPoolsParams) WithContext(ctx context.Context) *ListPoolsParams
- func (o *ListPoolsParams) WithDefaults() *ListPoolsParams
- func (o *ListPoolsParams) WithHTTPClient(client *http.Client) *ListPoolsParams
- func (o *ListPoolsParams) WithTimeout(timeout time.Duration) *ListPoolsParams
- func (o *ListPoolsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPoolsReader
- type UpdatePoolDefault
- func (o *UpdatePoolDefault) Code() int
- func (o *UpdatePoolDefault) Error() string
- func (o *UpdatePoolDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *UpdatePoolDefault) IsClientError() bool
- func (o *UpdatePoolDefault) IsCode(code int) bool
- func (o *UpdatePoolDefault) IsRedirect() bool
- func (o *UpdatePoolDefault) IsServerError() bool
- func (o *UpdatePoolDefault) IsSuccess() bool
- func (o *UpdatePoolDefault) String() string
- type UpdatePoolOK
- func (o *UpdatePoolOK) Code() int
- func (o *UpdatePoolOK) Error() string
- func (o *UpdatePoolOK) GetPayload() garm_params.Pool
- func (o *UpdatePoolOK) IsClientError() bool
- func (o *UpdatePoolOK) IsCode(code int) bool
- func (o *UpdatePoolOK) IsRedirect() bool
- func (o *UpdatePoolOK) IsServerError() bool
- func (o *UpdatePoolOK) IsSuccess() bool
- func (o *UpdatePoolOK) String() string
- type UpdatePoolParams
- func (o *UpdatePoolParams) SetBody(body garm_params.UpdatePoolParams)
- func (o *UpdatePoolParams) SetContext(ctx context.Context)
- func (o *UpdatePoolParams) SetDefaults()
- func (o *UpdatePoolParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePoolParams) SetPoolID(poolID string)
- func (o *UpdatePoolParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePoolParams) WithBody(body garm_params.UpdatePoolParams) *UpdatePoolParams
- func (o *UpdatePoolParams) WithContext(ctx context.Context) *UpdatePoolParams
- func (o *UpdatePoolParams) WithDefaults() *UpdatePoolParams
- func (o *UpdatePoolParams) WithHTTPClient(client *http.Client) *UpdatePoolParams
- func (o *UpdatePoolParams) WithPoolID(poolID string) *UpdatePoolParams
- func (o *UpdatePoolParams) WithTimeout(timeout time.Duration) *UpdatePoolParams
- func (o *UpdatePoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePoolReader
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 pools API
func (*Client) DeletePool ¶
func (a *Client) DeletePool(params *DeletePoolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
DeletePool deletes pool by ID
func (*Client) GetPool ¶
func (a *Client) GetPool(params *GetPoolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPoolOK, error)
GetPool gets pool by ID
func (*Client) ListPools ¶
func (a *Client) ListPools(params *ListPoolsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoolsOK, error)
ListPools lists all pools
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePool ¶
func (a *Client) UpdatePool(params *UpdatePoolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePoolOK, error)
UpdatePool updates pool by ID
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { DeletePool(params *DeletePoolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error GetPool(params *GetPoolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPoolOK, error) ListPools(params *ListPoolsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoolsOK, error) UpdatePool(params *UpdatePoolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePoolOK, 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 pools API client.
type DeletePoolDefault ¶
type DeletePoolDefault struct { Payload apiserver_params.APIErrorResponse // contains filtered or unexported fields }
DeletePoolDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewDeletePoolDefault ¶
func NewDeletePoolDefault(code int) *DeletePoolDefault
NewDeletePoolDefault creates a DeletePoolDefault with default headers values
func (*DeletePoolDefault) Code ¶
func (o *DeletePoolDefault) Code() int
Code gets the status code for the delete pool default response
func (*DeletePoolDefault) Error ¶
func (o *DeletePoolDefault) Error() string
func (*DeletePoolDefault) GetPayload ¶
func (o *DeletePoolDefault) GetPayload() apiserver_params.APIErrorResponse
func (*DeletePoolDefault) IsClientError ¶
func (o *DeletePoolDefault) IsClientError() bool
IsClientError returns true when this delete pool default response has a 4xx status code
func (*DeletePoolDefault) IsCode ¶
func (o *DeletePoolDefault) IsCode(code int) bool
IsCode returns true when this delete pool default response a status code equal to that given
func (*DeletePoolDefault) IsRedirect ¶
func (o *DeletePoolDefault) IsRedirect() bool
IsRedirect returns true when this delete pool default response has a 3xx status code
func (*DeletePoolDefault) IsServerError ¶
func (o *DeletePoolDefault) IsServerError() bool
IsServerError returns true when this delete pool default response has a 5xx status code
func (*DeletePoolDefault) IsSuccess ¶
func (o *DeletePoolDefault) IsSuccess() bool
IsSuccess returns true when this delete pool default response has a 2xx status code
func (*DeletePoolDefault) String ¶
func (o *DeletePoolDefault) String() string
type DeletePoolParams ¶
type DeletePoolParams struct { /* PoolID. ID of the pool to delete. */ PoolID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePoolParams contains all the parameters to send to the API endpoint
for the delete pool operation. Typically these are written to a http.Request.
func NewDeletePoolParams ¶
func NewDeletePoolParams() *DeletePoolParams
NewDeletePoolParams creates a new DeletePoolParams 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 NewDeletePoolParamsWithContext ¶
func NewDeletePoolParamsWithContext(ctx context.Context) *DeletePoolParams
NewDeletePoolParamsWithContext creates a new DeletePoolParams object with the ability to set a context for a request.
func NewDeletePoolParamsWithHTTPClient ¶
func NewDeletePoolParamsWithHTTPClient(client *http.Client) *DeletePoolParams
NewDeletePoolParamsWithHTTPClient creates a new DeletePoolParams object with the ability to set a custom HTTPClient for a request.
func NewDeletePoolParamsWithTimeout ¶
func NewDeletePoolParamsWithTimeout(timeout time.Duration) *DeletePoolParams
NewDeletePoolParamsWithTimeout creates a new DeletePoolParams object with the ability to set a timeout on a request.
func (*DeletePoolParams) SetContext ¶
func (o *DeletePoolParams) SetContext(ctx context.Context)
SetContext adds the context to the delete pool params
func (*DeletePoolParams) SetDefaults ¶
func (o *DeletePoolParams) SetDefaults()
SetDefaults hydrates default values in the delete pool params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePoolParams) SetHTTPClient ¶
func (o *DeletePoolParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete pool params
func (*DeletePoolParams) SetPoolID ¶
func (o *DeletePoolParams) SetPoolID(poolID string)
SetPoolID adds the poolId to the delete pool params
func (*DeletePoolParams) SetTimeout ¶
func (o *DeletePoolParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete pool params
func (*DeletePoolParams) WithContext ¶
func (o *DeletePoolParams) WithContext(ctx context.Context) *DeletePoolParams
WithContext adds the context to the delete pool params
func (*DeletePoolParams) WithDefaults ¶
func (o *DeletePoolParams) WithDefaults() *DeletePoolParams
WithDefaults hydrates default values in the delete pool params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePoolParams) WithHTTPClient ¶
func (o *DeletePoolParams) WithHTTPClient(client *http.Client) *DeletePoolParams
WithHTTPClient adds the HTTPClient to the delete pool params
func (*DeletePoolParams) WithPoolID ¶
func (o *DeletePoolParams) WithPoolID(poolID string) *DeletePoolParams
WithPoolID adds the poolID to the delete pool params
func (*DeletePoolParams) WithTimeout ¶
func (o *DeletePoolParams) WithTimeout(timeout time.Duration) *DeletePoolParams
WithTimeout adds the timeout to the delete pool params
func (*DeletePoolParams) WriteToRequest ¶
func (o *DeletePoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePoolReader ¶
type DeletePoolReader struct {
// contains filtered or unexported fields
}
DeletePoolReader is a Reader for the DeletePool structure.
func (*DeletePoolReader) ReadResponse ¶
func (o *DeletePoolReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPoolDefault ¶
type GetPoolDefault struct { Payload apiserver_params.APIErrorResponse // contains filtered or unexported fields }
GetPoolDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewGetPoolDefault ¶
func NewGetPoolDefault(code int) *GetPoolDefault
NewGetPoolDefault creates a GetPoolDefault with default headers values
func (*GetPoolDefault) Code ¶
func (o *GetPoolDefault) Code() int
Code gets the status code for the get pool default response
func (*GetPoolDefault) Error ¶
func (o *GetPoolDefault) Error() string
func (*GetPoolDefault) GetPayload ¶
func (o *GetPoolDefault) GetPayload() apiserver_params.APIErrorResponse
func (*GetPoolDefault) IsClientError ¶
func (o *GetPoolDefault) IsClientError() bool
IsClientError returns true when this get pool default response has a 4xx status code
func (*GetPoolDefault) IsCode ¶
func (o *GetPoolDefault) IsCode(code int) bool
IsCode returns true when this get pool default response a status code equal to that given
func (*GetPoolDefault) IsRedirect ¶
func (o *GetPoolDefault) IsRedirect() bool
IsRedirect returns true when this get pool default response has a 3xx status code
func (*GetPoolDefault) IsServerError ¶
func (o *GetPoolDefault) IsServerError() bool
IsServerError returns true when this get pool default response has a 5xx status code
func (*GetPoolDefault) IsSuccess ¶
func (o *GetPoolDefault) IsSuccess() bool
IsSuccess returns true when this get pool default response has a 2xx status code
func (*GetPoolDefault) String ¶
func (o *GetPoolDefault) String() string
type GetPoolOK ¶
type GetPoolOK struct {
Payload garm_params.Pool
}
GetPoolOK describes a response with status code 200, with default header values.
Pool
func NewGetPoolOK ¶
func NewGetPoolOK() *GetPoolOK
NewGetPoolOK creates a GetPoolOK with default headers values
func (*GetPoolOK) GetPayload ¶
func (o *GetPoolOK) GetPayload() garm_params.Pool
func (*GetPoolOK) IsClientError ¶
IsClientError returns true when this get pool o k response has a 4xx status code
func (*GetPoolOK) IsCode ¶
IsCode returns true when this get pool o k response a status code equal to that given
func (*GetPoolOK) IsRedirect ¶
IsRedirect returns true when this get pool o k response has a 3xx status code
func (*GetPoolOK) IsServerError ¶
IsServerError returns true when this get pool o k response has a 5xx status code
type GetPoolParams ¶
type GetPoolParams struct { /* PoolID. ID of the pool to fetch. */ PoolID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPoolParams contains all the parameters to send to the API endpoint
for the get pool operation. Typically these are written to a http.Request.
func NewGetPoolParams ¶
func NewGetPoolParams() *GetPoolParams
NewGetPoolParams creates a new GetPoolParams 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 NewGetPoolParamsWithContext ¶
func NewGetPoolParamsWithContext(ctx context.Context) *GetPoolParams
NewGetPoolParamsWithContext creates a new GetPoolParams object with the ability to set a context for a request.
func NewGetPoolParamsWithHTTPClient ¶
func NewGetPoolParamsWithHTTPClient(client *http.Client) *GetPoolParams
NewGetPoolParamsWithHTTPClient creates a new GetPoolParams object with the ability to set a custom HTTPClient for a request.
func NewGetPoolParamsWithTimeout ¶
func NewGetPoolParamsWithTimeout(timeout time.Duration) *GetPoolParams
NewGetPoolParamsWithTimeout creates a new GetPoolParams object with the ability to set a timeout on a request.
func (*GetPoolParams) SetContext ¶
func (o *GetPoolParams) SetContext(ctx context.Context)
SetContext adds the context to the get pool params
func (*GetPoolParams) SetDefaults ¶
func (o *GetPoolParams) SetDefaults()
SetDefaults hydrates default values in the get pool params (not the query body).
All values with no default are reset to their zero value.
func (*GetPoolParams) SetHTTPClient ¶
func (o *GetPoolParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get pool params
func (*GetPoolParams) SetPoolID ¶
func (o *GetPoolParams) SetPoolID(poolID string)
SetPoolID adds the poolId to the get pool params
func (*GetPoolParams) SetTimeout ¶
func (o *GetPoolParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get pool params
func (*GetPoolParams) WithContext ¶
func (o *GetPoolParams) WithContext(ctx context.Context) *GetPoolParams
WithContext adds the context to the get pool params
func (*GetPoolParams) WithDefaults ¶
func (o *GetPoolParams) WithDefaults() *GetPoolParams
WithDefaults hydrates default values in the get pool params (not the query body).
All values with no default are reset to their zero value.
func (*GetPoolParams) WithHTTPClient ¶
func (o *GetPoolParams) WithHTTPClient(client *http.Client) *GetPoolParams
WithHTTPClient adds the HTTPClient to the get pool params
func (*GetPoolParams) WithPoolID ¶
func (o *GetPoolParams) WithPoolID(poolID string) *GetPoolParams
WithPoolID adds the poolID to the get pool params
func (*GetPoolParams) WithTimeout ¶
func (o *GetPoolParams) WithTimeout(timeout time.Duration) *GetPoolParams
WithTimeout adds the timeout to the get pool params
func (*GetPoolParams) WriteToRequest ¶
func (o *GetPoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPoolReader ¶
type GetPoolReader struct {
// contains filtered or unexported fields
}
GetPoolReader is a Reader for the GetPool structure.
func (*GetPoolReader) ReadResponse ¶
func (o *GetPoolReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListPoolsDefault ¶
type ListPoolsDefault struct { Payload apiserver_params.APIErrorResponse // contains filtered or unexported fields }
ListPoolsDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewListPoolsDefault ¶
func NewListPoolsDefault(code int) *ListPoolsDefault
NewListPoolsDefault creates a ListPoolsDefault with default headers values
func (*ListPoolsDefault) Code ¶
func (o *ListPoolsDefault) Code() int
Code gets the status code for the list pools default response
func (*ListPoolsDefault) Error ¶
func (o *ListPoolsDefault) Error() string
func (*ListPoolsDefault) GetPayload ¶
func (o *ListPoolsDefault) GetPayload() apiserver_params.APIErrorResponse
func (*ListPoolsDefault) IsClientError ¶
func (o *ListPoolsDefault) IsClientError() bool
IsClientError returns true when this list pools default response has a 4xx status code
func (*ListPoolsDefault) IsCode ¶
func (o *ListPoolsDefault) IsCode(code int) bool
IsCode returns true when this list pools default response a status code equal to that given
func (*ListPoolsDefault) IsRedirect ¶
func (o *ListPoolsDefault) IsRedirect() bool
IsRedirect returns true when this list pools default response has a 3xx status code
func (*ListPoolsDefault) IsServerError ¶
func (o *ListPoolsDefault) IsServerError() bool
IsServerError returns true when this list pools default response has a 5xx status code
func (*ListPoolsDefault) IsSuccess ¶
func (o *ListPoolsDefault) IsSuccess() bool
IsSuccess returns true when this list pools default response has a 2xx status code
func (*ListPoolsDefault) String ¶
func (o *ListPoolsDefault) String() string
type ListPoolsOK ¶
type ListPoolsOK struct {
Payload garm_params.Pools
}
ListPoolsOK describes a response with status code 200, with default header values.
Pools
func NewListPoolsOK ¶
func NewListPoolsOK() *ListPoolsOK
NewListPoolsOK creates a ListPoolsOK with default headers values
func (*ListPoolsOK) Code ¶
func (o *ListPoolsOK) Code() int
Code gets the status code for the list pools o k response
func (*ListPoolsOK) Error ¶
func (o *ListPoolsOK) Error() string
func (*ListPoolsOK) GetPayload ¶
func (o *ListPoolsOK) GetPayload() garm_params.Pools
func (*ListPoolsOK) IsClientError ¶
func (o *ListPoolsOK) IsClientError() bool
IsClientError returns true when this list pools o k response has a 4xx status code
func (*ListPoolsOK) IsCode ¶
func (o *ListPoolsOK) IsCode(code int) bool
IsCode returns true when this list pools o k response a status code equal to that given
func (*ListPoolsOK) IsRedirect ¶
func (o *ListPoolsOK) IsRedirect() bool
IsRedirect returns true when this list pools o k response has a 3xx status code
func (*ListPoolsOK) IsServerError ¶
func (o *ListPoolsOK) IsServerError() bool
IsServerError returns true when this list pools o k response has a 5xx status code
func (*ListPoolsOK) IsSuccess ¶
func (o *ListPoolsOK) IsSuccess() bool
IsSuccess returns true when this list pools o k response has a 2xx status code
func (*ListPoolsOK) String ¶
func (o *ListPoolsOK) String() string
type ListPoolsParams ¶
type ListPoolsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPoolsParams contains all the parameters to send to the API endpoint
for the list pools operation. Typically these are written to a http.Request.
func NewListPoolsParams ¶
func NewListPoolsParams() *ListPoolsParams
NewListPoolsParams creates a new ListPoolsParams 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 NewListPoolsParamsWithContext ¶
func NewListPoolsParamsWithContext(ctx context.Context) *ListPoolsParams
NewListPoolsParamsWithContext creates a new ListPoolsParams object with the ability to set a context for a request.
func NewListPoolsParamsWithHTTPClient ¶
func NewListPoolsParamsWithHTTPClient(client *http.Client) *ListPoolsParams
NewListPoolsParamsWithHTTPClient creates a new ListPoolsParams object with the ability to set a custom HTTPClient for a request.
func NewListPoolsParamsWithTimeout ¶
func NewListPoolsParamsWithTimeout(timeout time.Duration) *ListPoolsParams
NewListPoolsParamsWithTimeout creates a new ListPoolsParams object with the ability to set a timeout on a request.
func (*ListPoolsParams) SetContext ¶
func (o *ListPoolsParams) SetContext(ctx context.Context)
SetContext adds the context to the list pools params
func (*ListPoolsParams) SetDefaults ¶
func (o *ListPoolsParams) SetDefaults()
SetDefaults hydrates default values in the list pools params (not the query body).
All values with no default are reset to their zero value.
func (*ListPoolsParams) SetHTTPClient ¶
func (o *ListPoolsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list pools params
func (*ListPoolsParams) SetTimeout ¶
func (o *ListPoolsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list pools params
func (*ListPoolsParams) WithContext ¶
func (o *ListPoolsParams) WithContext(ctx context.Context) *ListPoolsParams
WithContext adds the context to the list pools params
func (*ListPoolsParams) WithDefaults ¶
func (o *ListPoolsParams) WithDefaults() *ListPoolsParams
WithDefaults hydrates default values in the list pools params (not the query body).
All values with no default are reset to their zero value.
func (*ListPoolsParams) WithHTTPClient ¶
func (o *ListPoolsParams) WithHTTPClient(client *http.Client) *ListPoolsParams
WithHTTPClient adds the HTTPClient to the list pools params
func (*ListPoolsParams) WithTimeout ¶
func (o *ListPoolsParams) WithTimeout(timeout time.Duration) *ListPoolsParams
WithTimeout adds the timeout to the list pools params
func (*ListPoolsParams) WriteToRequest ¶
func (o *ListPoolsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPoolsReader ¶
type ListPoolsReader struct {
// contains filtered or unexported fields
}
ListPoolsReader is a Reader for the ListPools structure.
func (*ListPoolsReader) ReadResponse ¶
func (o *ListPoolsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePoolDefault ¶
type UpdatePoolDefault struct { Payload apiserver_params.APIErrorResponse // contains filtered or unexported fields }
UpdatePoolDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewUpdatePoolDefault ¶
func NewUpdatePoolDefault(code int) *UpdatePoolDefault
NewUpdatePoolDefault creates a UpdatePoolDefault with default headers values
func (*UpdatePoolDefault) Code ¶
func (o *UpdatePoolDefault) Code() int
Code gets the status code for the update pool default response
func (*UpdatePoolDefault) Error ¶
func (o *UpdatePoolDefault) Error() string
func (*UpdatePoolDefault) GetPayload ¶
func (o *UpdatePoolDefault) GetPayload() apiserver_params.APIErrorResponse
func (*UpdatePoolDefault) IsClientError ¶
func (o *UpdatePoolDefault) IsClientError() bool
IsClientError returns true when this update pool default response has a 4xx status code
func (*UpdatePoolDefault) IsCode ¶
func (o *UpdatePoolDefault) IsCode(code int) bool
IsCode returns true when this update pool default response a status code equal to that given
func (*UpdatePoolDefault) IsRedirect ¶
func (o *UpdatePoolDefault) IsRedirect() bool
IsRedirect returns true when this update pool default response has a 3xx status code
func (*UpdatePoolDefault) IsServerError ¶
func (o *UpdatePoolDefault) IsServerError() bool
IsServerError returns true when this update pool default response has a 5xx status code
func (*UpdatePoolDefault) IsSuccess ¶
func (o *UpdatePoolDefault) IsSuccess() bool
IsSuccess returns true when this update pool default response has a 2xx status code
func (*UpdatePoolDefault) String ¶
func (o *UpdatePoolDefault) String() string
type UpdatePoolOK ¶
type UpdatePoolOK struct {
Payload garm_params.Pool
}
UpdatePoolOK describes a response with status code 200, with default header values.
Pool
func NewUpdatePoolOK ¶
func NewUpdatePoolOK() *UpdatePoolOK
NewUpdatePoolOK creates a UpdatePoolOK with default headers values
func (*UpdatePoolOK) Code ¶
func (o *UpdatePoolOK) Code() int
Code gets the status code for the update pool o k response
func (*UpdatePoolOK) Error ¶
func (o *UpdatePoolOK) Error() string
func (*UpdatePoolOK) GetPayload ¶
func (o *UpdatePoolOK) GetPayload() garm_params.Pool
func (*UpdatePoolOK) IsClientError ¶
func (o *UpdatePoolOK) IsClientError() bool
IsClientError returns true when this update pool o k response has a 4xx status code
func (*UpdatePoolOK) IsCode ¶
func (o *UpdatePoolOK) IsCode(code int) bool
IsCode returns true when this update pool o k response a status code equal to that given
func (*UpdatePoolOK) IsRedirect ¶
func (o *UpdatePoolOK) IsRedirect() bool
IsRedirect returns true when this update pool o k response has a 3xx status code
func (*UpdatePoolOK) IsServerError ¶
func (o *UpdatePoolOK) IsServerError() bool
IsServerError returns true when this update pool o k response has a 5xx status code
func (*UpdatePoolOK) IsSuccess ¶
func (o *UpdatePoolOK) IsSuccess() bool
IsSuccess returns true when this update pool o k response has a 2xx status code
func (*UpdatePoolOK) String ¶
func (o *UpdatePoolOK) String() string
type UpdatePoolParams ¶
type UpdatePoolParams struct { /* Body. Parameters to update the pool with. */ Body garm_params.UpdatePoolParams /* PoolID. ID of the pool to update. */ PoolID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdatePoolParams contains all the parameters to send to the API endpoint
for the update pool operation. Typically these are written to a http.Request.
func NewUpdatePoolParams ¶
func NewUpdatePoolParams() *UpdatePoolParams
NewUpdatePoolParams creates a new UpdatePoolParams 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 NewUpdatePoolParamsWithContext ¶
func NewUpdatePoolParamsWithContext(ctx context.Context) *UpdatePoolParams
NewUpdatePoolParamsWithContext creates a new UpdatePoolParams object with the ability to set a context for a request.
func NewUpdatePoolParamsWithHTTPClient ¶
func NewUpdatePoolParamsWithHTTPClient(client *http.Client) *UpdatePoolParams
NewUpdatePoolParamsWithHTTPClient creates a new UpdatePoolParams object with the ability to set a custom HTTPClient for a request.
func NewUpdatePoolParamsWithTimeout ¶
func NewUpdatePoolParamsWithTimeout(timeout time.Duration) *UpdatePoolParams
NewUpdatePoolParamsWithTimeout creates a new UpdatePoolParams object with the ability to set a timeout on a request.
func (*UpdatePoolParams) SetBody ¶
func (o *UpdatePoolParams) SetBody(body garm_params.UpdatePoolParams)
SetBody adds the body to the update pool params
func (*UpdatePoolParams) SetContext ¶
func (o *UpdatePoolParams) SetContext(ctx context.Context)
SetContext adds the context to the update pool params
func (*UpdatePoolParams) SetDefaults ¶
func (o *UpdatePoolParams) SetDefaults()
SetDefaults hydrates default values in the update pool params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePoolParams) SetHTTPClient ¶
func (o *UpdatePoolParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update pool params
func (*UpdatePoolParams) SetPoolID ¶
func (o *UpdatePoolParams) SetPoolID(poolID string)
SetPoolID adds the poolId to the update pool params
func (*UpdatePoolParams) SetTimeout ¶
func (o *UpdatePoolParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update pool params
func (*UpdatePoolParams) WithBody ¶
func (o *UpdatePoolParams) WithBody(body garm_params.UpdatePoolParams) *UpdatePoolParams
WithBody adds the body to the update pool params
func (*UpdatePoolParams) WithContext ¶
func (o *UpdatePoolParams) WithContext(ctx context.Context) *UpdatePoolParams
WithContext adds the context to the update pool params
func (*UpdatePoolParams) WithDefaults ¶
func (o *UpdatePoolParams) WithDefaults() *UpdatePoolParams
WithDefaults hydrates default values in the update pool params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePoolParams) WithHTTPClient ¶
func (o *UpdatePoolParams) WithHTTPClient(client *http.Client) *UpdatePoolParams
WithHTTPClient adds the HTTPClient to the update pool params
func (*UpdatePoolParams) WithPoolID ¶
func (o *UpdatePoolParams) WithPoolID(poolID string) *UpdatePoolParams
WithPoolID adds the poolID to the update pool params
func (*UpdatePoolParams) WithTimeout ¶
func (o *UpdatePoolParams) WithTimeout(timeout time.Duration) *UpdatePoolParams
WithTimeout adds the timeout to the update pool params
func (*UpdatePoolParams) WriteToRequest ¶
func (o *UpdatePoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdatePoolReader ¶
type UpdatePoolReader struct {
// contains filtered or unexported fields
}
UpdatePoolReader is a Reader for the UpdatePool structure.
func (*UpdatePoolReader) ReadResponse ¶
func (o *UpdatePoolReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.