Documentation
¶
Index ¶
- type Client
- type ClientService
- type CreateClusterBadRequest
- type CreateClusterOK
- type CreateClusterParams
- func (o *CreateClusterParams) SetContext(ctx context.Context)
- func (o *CreateClusterParams) SetHTTPClient(client *http.Client)
- func (o *CreateClusterParams) SetTimeout(timeout time.Duration)
- func (o *CreateClusterParams) WithContext(ctx context.Context) *CreateClusterParams
- func (o *CreateClusterParams) WithHTTPClient(client *http.Client) *CreateClusterParams
- func (o *CreateClusterParams) WithTimeout(timeout time.Duration) *CreateClusterParams
- func (o *CreateClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateClusterReader
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 operations API
func (*Client) CreateCluster ¶
func (a *Client) CreateCluster(params *CreateClusterParams) (*CreateClusterOK, error)
CreateCluster creates a cluster resource
TODO Some test description that should be expanded on someday.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
CreateCluster(params *CreateClusterParams) (*CreateClusterOK, 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 operations API client.
type CreateClusterBadRequest ¶
type CreateClusterBadRequest struct {
ResponseCode int64
}
CreateClusterBadRequest handles this case with default header values.
BadRequest indicates that there was an error in the HTTP request.
func NewCreateClusterBadRequest ¶
func NewCreateClusterBadRequest() *CreateClusterBadRequest
NewCreateClusterBadRequest creates a CreateClusterBadRequest with default headers values
func (*CreateClusterBadRequest) Error ¶
func (o *CreateClusterBadRequest) Error() string
type CreateClusterOK ¶
type CreateClusterOK struct {
ResponseCode int64
}
CreateClusterOK handles this case with default header values.
OK indicates that the HTTP request was successful.
func NewCreateClusterOK ¶
func NewCreateClusterOK() *CreateClusterOK
NewCreateClusterOK creates a CreateClusterOK with default headers values
func (*CreateClusterOK) Error ¶
func (o *CreateClusterOK) Error() string
type CreateClusterParams ¶
type CreateClusterParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateClusterParams contains all the parameters to send to the API endpoint for the create cluster operation typically these are written to a http.Request
func NewCreateClusterParams ¶
func NewCreateClusterParams() *CreateClusterParams
NewCreateClusterParams creates a new CreateClusterParams object with the default values initialized.
func NewCreateClusterParamsWithContext ¶
func NewCreateClusterParamsWithContext(ctx context.Context) *CreateClusterParams
NewCreateClusterParamsWithContext creates a new CreateClusterParams object with the default values initialized, and the ability to set a context for a request
func NewCreateClusterParamsWithHTTPClient ¶
func NewCreateClusterParamsWithHTTPClient(client *http.Client) *CreateClusterParams
NewCreateClusterParamsWithHTTPClient creates a new CreateClusterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateClusterParamsWithTimeout ¶
func NewCreateClusterParamsWithTimeout(timeout time.Duration) *CreateClusterParams
NewCreateClusterParamsWithTimeout creates a new CreateClusterParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateClusterParams) SetContext ¶
func (o *CreateClusterParams) SetContext(ctx context.Context)
SetContext adds the context to the create cluster params
func (*CreateClusterParams) SetHTTPClient ¶
func (o *CreateClusterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create cluster params
func (*CreateClusterParams) SetTimeout ¶
func (o *CreateClusterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create cluster params
func (*CreateClusterParams) WithContext ¶
func (o *CreateClusterParams) WithContext(ctx context.Context) *CreateClusterParams
WithContext adds the context to the create cluster params
func (*CreateClusterParams) WithHTTPClient ¶
func (o *CreateClusterParams) WithHTTPClient(client *http.Client) *CreateClusterParams
WithHTTPClient adds the HTTPClient to the create cluster params
func (*CreateClusterParams) WithTimeout ¶
func (o *CreateClusterParams) WithTimeout(timeout time.Duration) *CreateClusterParams
WithTimeout adds the timeout to the create cluster params
func (*CreateClusterParams) WriteToRequest ¶
func (o *CreateClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateClusterReader ¶
type CreateClusterReader struct {
// contains filtered or unexported fields
}
CreateClusterReader is a Reader for the CreateCluster structure.
func (*CreateClusterReader) ReadResponse ¶
func (o *CreateClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.