cluster

package
v0.0.0-...-6b4585b Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: BSD-3-Clause 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 cluster API

func New

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

New creates a new cluster API client.

func (*Client) GetAllClusters

func (a *Client) GetAllClusters(params *GetAllClustersParams) (*GetAllClustersOK, error)

GetAllClusters get all clusters API

func (*Client) RegisterCluster

func (a *Client) RegisterCluster(params *RegisterClusterParams) (*RegisterClusterOK, error)

RegisterCluster register cluster API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetAllClustersOK

type GetAllClustersOK struct {
	Payload []*models.Cluster
}

GetAllClustersOK handles this case with default header values.

returns all clusters

func NewGetAllClustersOK

func NewGetAllClustersOK() *GetAllClustersOK

NewGetAllClustersOK creates a GetAllClustersOK with default headers values

func (*GetAllClustersOK) Error

func (o *GetAllClustersOK) Error() string

type GetAllClustersParams

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

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

func NewGetAllClustersParams

func NewGetAllClustersParams() *GetAllClustersParams

NewGetAllClustersParams creates a new GetAllClustersParams object with the default values initialized.

func NewGetAllClustersParamsWithContext

func NewGetAllClustersParamsWithContext(ctx context.Context) *GetAllClustersParams

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

func NewGetAllClustersParamsWithHTTPClient

func NewGetAllClustersParamsWithHTTPClient(client *http.Client) *GetAllClustersParams

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

func NewGetAllClustersParamsWithTimeout

func NewGetAllClustersParamsWithTimeout(timeout time.Duration) *GetAllClustersParams

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

func (*GetAllClustersParams) SetContext

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

SetContext adds the context to the get all clusters params

func (*GetAllClustersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get all clusters params

func (*GetAllClustersParams) SetTimeout

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

SetTimeout adds the timeout to the get all clusters params

func (*GetAllClustersParams) WithContext

WithContext adds the context to the get all clusters params

func (*GetAllClustersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get all clusters params

func (*GetAllClustersParams) WithTimeout

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

WithTimeout adds the timeout to the get all clusters params

func (*GetAllClustersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAllClustersReader

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

GetAllClustersReader is a Reader for the GetAllClusters structure.

func (*GetAllClustersReader) ReadResponse

func (o *GetAllClustersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RegisterClusterOK

type RegisterClusterOK struct {
	Payload *models.Cluster
}

RegisterClusterOK handles this case with default header values.

registers a new cluster

func NewRegisterClusterOK

func NewRegisterClusterOK() *RegisterClusterOK

NewRegisterClusterOK creates a RegisterClusterOK with default headers values

func (*RegisterClusterOK) Error

func (o *RegisterClusterOK) Error() string

type RegisterClusterParams

type RegisterClusterParams struct {

	/*Body*/
	Body *models.Cluster

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RegisterClusterParams contains all the parameters to send to the API endpoint for the register cluster operation typically these are written to a http.Request

func NewRegisterClusterParams

func NewRegisterClusterParams() *RegisterClusterParams

NewRegisterClusterParams creates a new RegisterClusterParams object with the default values initialized.

func NewRegisterClusterParamsWithContext

func NewRegisterClusterParamsWithContext(ctx context.Context) *RegisterClusterParams

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

func NewRegisterClusterParamsWithHTTPClient

func NewRegisterClusterParamsWithHTTPClient(client *http.Client) *RegisterClusterParams

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

func NewRegisterClusterParamsWithTimeout

func NewRegisterClusterParamsWithTimeout(timeout time.Duration) *RegisterClusterParams

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

func (*RegisterClusterParams) SetBody

func (o *RegisterClusterParams) SetBody(body *models.Cluster)

SetBody adds the body to the register cluster params

func (*RegisterClusterParams) SetContext

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

SetContext adds the context to the register cluster params

func (*RegisterClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the register cluster params

func (*RegisterClusterParams) SetTimeout

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

SetTimeout adds the timeout to the register cluster params

func (*RegisterClusterParams) WithBody

WithBody adds the body to the register cluster params

func (*RegisterClusterParams) WithContext

WithContext adds the context to the register cluster params

func (*RegisterClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the register cluster params

func (*RegisterClusterParams) WithTimeout

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

WithTimeout adds the timeout to the register cluster params

func (*RegisterClusterParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RegisterClusterReader

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

RegisterClusterReader is a Reader for the RegisterCluster structure.

func (*RegisterClusterReader) ReadResponse

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