operations

package
v0.0.0-...-72ee208 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 9 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 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

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.

Jump to

Keyboard shortcuts

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