cluster

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 11 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 (*Client) DeleteCluster added in v0.0.8

func (a *Client) DeleteCluster(params *DeleteClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteClusterNoContent, error)

DeleteCluster deletes cluster settings

Delete cluster settings and move the node back to single mode

func (*Client) EditCluster added in v0.0.8

func (a *Client) EditCluster(params *EditClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EditClusterOK, error)

EditCluster edits cluster settings

Edit cluster settings

func (*Client) GetCluster added in v0.0.8

func (a *Client) GetCluster(params *GetClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClusterOK, error)

GetCluster returns cluster data

Returns cluster data

func (*Client) InitiateCertificateRefresh

func (a *Client) InitiateCertificateRefresh(params *InitiateCertificateRefreshParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitiateCertificateRefreshOK, error)

InitiateCertificateRefresh initiates a certificate refresh

Initiates a certificate refresh

func (*Client) PostCluster

func (a *Client) PostCluster(params *PostClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClusterOK, error)

PostCluster posts cluster settings

Post cluster settings

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 {
	DeleteCluster(params *DeleteClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteClusterNoContent, error)

	EditCluster(params *EditClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EditClusterOK, error)

	GetCluster(params *GetClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClusterOK, error)

	InitiateCertificateRefresh(params *InitiateCertificateRefreshParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitiateCertificateRefreshOK, error)

	PostCluster(params *PostClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClusterOK, 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 cluster API client.

type DeleteClusterDefault added in v0.0.8

type DeleteClusterDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteClusterDefault describes a response with status code -1, with default header values.

General Error

func NewDeleteClusterDefault added in v0.0.8

func NewDeleteClusterDefault(code int) *DeleteClusterDefault

NewDeleteClusterDefault creates a DeleteClusterDefault with default headers values

func (*DeleteClusterDefault) Code added in v0.0.8

func (o *DeleteClusterDefault) Code() int

Code gets the status code for the delete cluster default response

func (*DeleteClusterDefault) Error added in v0.0.8

func (o *DeleteClusterDefault) Error() string

func (*DeleteClusterDefault) GetPayload added in v0.0.8

func (o *DeleteClusterDefault) GetPayload() *models.Error

func (*DeleteClusterDefault) IsClientError added in v1.1.0

func (o *DeleteClusterDefault) IsClientError() bool

IsClientError returns true when this delete cluster default response has a 4xx status code

func (*DeleteClusterDefault) IsCode added in v1.1.0

func (o *DeleteClusterDefault) IsCode(code int) bool

IsCode returns true when this delete cluster default response a status code equal to that given

func (*DeleteClusterDefault) IsRedirect added in v1.1.0

func (o *DeleteClusterDefault) IsRedirect() bool

IsRedirect returns true when this delete cluster default response has a 3xx status code

func (*DeleteClusterDefault) IsServerError added in v1.1.0

func (o *DeleteClusterDefault) IsServerError() bool

IsServerError returns true when this delete cluster default response has a 5xx status code

func (*DeleteClusterDefault) IsSuccess added in v1.1.0

func (o *DeleteClusterDefault) IsSuccess() bool

IsSuccess returns true when this delete cluster default response has a 2xx status code

func (*DeleteClusterDefault) String added in v1.1.0

func (o *DeleteClusterDefault) String() string

type DeleteClusterNoContent added in v0.0.8

type DeleteClusterNoContent struct {
}

DeleteClusterNoContent describes a response with status code 204, with default header values.

Cluster settings deleted and node moved to single mode

func NewDeleteClusterNoContent added in v0.0.8

func NewDeleteClusterNoContent() *DeleteClusterNoContent

NewDeleteClusterNoContent creates a DeleteClusterNoContent with default headers values

func (*DeleteClusterNoContent) Code added in v1.1.5

func (o *DeleteClusterNoContent) Code() int

Code gets the status code for the delete cluster no content response

func (*DeleteClusterNoContent) Error added in v0.0.8

func (o *DeleteClusterNoContent) Error() string

func (*DeleteClusterNoContent) IsClientError added in v1.1.0

func (o *DeleteClusterNoContent) IsClientError() bool

IsClientError returns true when this delete cluster no content response has a 4xx status code

func (*DeleteClusterNoContent) IsCode added in v1.1.0

func (o *DeleteClusterNoContent) IsCode(code int) bool

IsCode returns true when this delete cluster no content response a status code equal to that given

func (*DeleteClusterNoContent) IsRedirect added in v1.1.0

func (o *DeleteClusterNoContent) IsRedirect() bool

IsRedirect returns true when this delete cluster no content response has a 3xx status code

func (*DeleteClusterNoContent) IsServerError added in v1.1.0

func (o *DeleteClusterNoContent) IsServerError() bool

IsServerError returns true when this delete cluster no content response has a 5xx status code

func (*DeleteClusterNoContent) IsSuccess added in v1.1.0

func (o *DeleteClusterNoContent) IsSuccess() bool

IsSuccess returns true when this delete cluster no content response has a 2xx status code

func (*DeleteClusterNoContent) String added in v1.1.0

func (o *DeleteClusterNoContent) String() string

type DeleteClusterParams added in v0.0.8

type DeleteClusterParams struct {

	/* Configuration.

	   In case of moving to single mode do we keep or clean configuration
	*/
	Configuration *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

DeleteClusterParams contains all the parameters to send to the API endpoint

for the delete cluster operation.

Typically these are written to a http.Request.

func NewDeleteClusterParams added in v0.0.8

func NewDeleteClusterParams() *DeleteClusterParams

NewDeleteClusterParams creates a new DeleteClusterParams 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 NewDeleteClusterParamsWithContext added in v0.0.8

func NewDeleteClusterParamsWithContext(ctx context.Context) *DeleteClusterParams

NewDeleteClusterParamsWithContext creates a new DeleteClusterParams object with the ability to set a context for a request.

func NewDeleteClusterParamsWithHTTPClient added in v0.0.8

func NewDeleteClusterParamsWithHTTPClient(client *http.Client) *DeleteClusterParams

NewDeleteClusterParamsWithHTTPClient creates a new DeleteClusterParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteClusterParamsWithTimeout added in v0.0.8

func NewDeleteClusterParamsWithTimeout(timeout time.Duration) *DeleteClusterParams

NewDeleteClusterParamsWithTimeout creates a new DeleteClusterParams object with the ability to set a timeout on a request.

func (*DeleteClusterParams) SetConfiguration added in v0.0.8

func (o *DeleteClusterParams) SetConfiguration(configuration *string)

SetConfiguration adds the configuration to the delete cluster params

func (*DeleteClusterParams) SetContext added in v0.0.8

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

SetContext adds the context to the delete cluster params

func (*DeleteClusterParams) SetDefaults added in v0.0.8

func (o *DeleteClusterParams) SetDefaults()

SetDefaults hydrates default values in the delete cluster params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteClusterParams) SetHTTPClient added in v0.0.8

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

SetHTTPClient adds the HTTPClient to the delete cluster params

func (*DeleteClusterParams) SetTimeout added in v0.0.8

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

SetTimeout adds the timeout to the delete cluster params

func (*DeleteClusterParams) SetVersion added in v0.0.8

func (o *DeleteClusterParams) SetVersion(version *int64)

SetVersion adds the version to the delete cluster params

func (*DeleteClusterParams) WithConfiguration added in v0.0.8

func (o *DeleteClusterParams) WithConfiguration(configuration *string) *DeleteClusterParams

WithConfiguration adds the configuration to the delete cluster params

func (*DeleteClusterParams) WithContext added in v0.0.8

WithContext adds the context to the delete cluster params

func (*DeleteClusterParams) WithDefaults added in v0.0.8

func (o *DeleteClusterParams) WithDefaults() *DeleteClusterParams

WithDefaults hydrates default values in the delete cluster params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteClusterParams) WithHTTPClient added in v0.0.8

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

WithHTTPClient adds the HTTPClient to the delete cluster params

func (*DeleteClusterParams) WithTimeout added in v0.0.8

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

WithTimeout adds the timeout to the delete cluster params

func (*DeleteClusterParams) WithVersion added in v0.0.8

func (o *DeleteClusterParams) WithVersion(version *int64) *DeleteClusterParams

WithVersion adds the version to the delete cluster params

func (*DeleteClusterParams) WriteToRequest added in v0.0.8

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

WriteToRequest writes these params to a swagger request

type DeleteClusterReader added in v0.0.8

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

DeleteClusterReader is a Reader for the DeleteCluster structure.

func (*DeleteClusterReader) ReadResponse added in v0.0.8

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

ReadResponse reads a server response into the received o.

type EditClusterBadRequest added in v0.0.8

type EditClusterBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

EditClusterBadRequest describes a response with status code 400, with default header values.

Bad request

func NewEditClusterBadRequest added in v0.0.8

func NewEditClusterBadRequest() *EditClusterBadRequest

NewEditClusterBadRequest creates a EditClusterBadRequest with default headers values

func (*EditClusterBadRequest) Code added in v1.1.5

func (o *EditClusterBadRequest) Code() int

Code gets the status code for the edit cluster bad request response

func (*EditClusterBadRequest) Error added in v0.0.8

func (o *EditClusterBadRequest) Error() string

func (*EditClusterBadRequest) GetPayload added in v0.0.8

func (o *EditClusterBadRequest) GetPayload() *models.Error

func (*EditClusterBadRequest) IsClientError added in v1.1.0

func (o *EditClusterBadRequest) IsClientError() bool

IsClientError returns true when this edit cluster bad request response has a 4xx status code

func (*EditClusterBadRequest) IsCode added in v1.1.0

func (o *EditClusterBadRequest) IsCode(code int) bool

IsCode returns true when this edit cluster bad request response a status code equal to that given

func (*EditClusterBadRequest) IsRedirect added in v1.1.0

func (o *EditClusterBadRequest) IsRedirect() bool

IsRedirect returns true when this edit cluster bad request response has a 3xx status code

func (*EditClusterBadRequest) IsServerError added in v1.1.0

func (o *EditClusterBadRequest) IsServerError() bool

IsServerError returns true when this edit cluster bad request response has a 5xx status code

func (*EditClusterBadRequest) IsSuccess added in v1.1.0

func (o *EditClusterBadRequest) IsSuccess() bool

IsSuccess returns true when this edit cluster bad request response has a 2xx status code

func (*EditClusterBadRequest) String added in v1.1.0

func (o *EditClusterBadRequest) String() string

type EditClusterDefault added in v0.0.8

type EditClusterDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

EditClusterDefault describes a response with status code -1, with default header values.

General Error

func NewEditClusterDefault added in v0.0.8

func NewEditClusterDefault(code int) *EditClusterDefault

NewEditClusterDefault creates a EditClusterDefault with default headers values

func (*EditClusterDefault) Code added in v0.0.8

func (o *EditClusterDefault) Code() int

Code gets the status code for the edit cluster default response

func (*EditClusterDefault) Error added in v0.0.8

func (o *EditClusterDefault) Error() string

func (*EditClusterDefault) GetPayload added in v0.0.8

func (o *EditClusterDefault) GetPayload() *models.Error

func (*EditClusterDefault) IsClientError added in v1.1.0

func (o *EditClusterDefault) IsClientError() bool

IsClientError returns true when this edit cluster default response has a 4xx status code

func (*EditClusterDefault) IsCode added in v1.1.0

func (o *EditClusterDefault) IsCode(code int) bool

IsCode returns true when this edit cluster default response a status code equal to that given

func (*EditClusterDefault) IsRedirect added in v1.1.0

func (o *EditClusterDefault) IsRedirect() bool

IsRedirect returns true when this edit cluster default response has a 3xx status code

func (*EditClusterDefault) IsServerError added in v1.1.0

func (o *EditClusterDefault) IsServerError() bool

IsServerError returns true when this edit cluster default response has a 5xx status code

func (*EditClusterDefault) IsSuccess added in v1.1.0

func (o *EditClusterDefault) IsSuccess() bool

IsSuccess returns true when this edit cluster default response has a 2xx status code

func (*EditClusterDefault) String added in v1.1.0

func (o *EditClusterDefault) String() string

type EditClusterOK added in v0.0.8

type EditClusterOK struct {
	Payload *models.ClusterSettings
}

EditClusterOK describes a response with status code 200, with default header values.

Cluster settings changed

func NewEditClusterOK added in v0.0.8

func NewEditClusterOK() *EditClusterOK

NewEditClusterOK creates a EditClusterOK with default headers values

func (*EditClusterOK) Code added in v1.1.5

func (o *EditClusterOK) Code() int

Code gets the status code for the edit cluster o k response

func (*EditClusterOK) Error added in v0.0.8

func (o *EditClusterOK) Error() string

func (*EditClusterOK) GetPayload added in v0.0.8

func (o *EditClusterOK) GetPayload() *models.ClusterSettings

func (*EditClusterOK) IsClientError added in v1.1.0

func (o *EditClusterOK) IsClientError() bool

IsClientError returns true when this edit cluster o k response has a 4xx status code

func (*EditClusterOK) IsCode added in v1.1.0

func (o *EditClusterOK) IsCode(code int) bool

IsCode returns true when this edit cluster o k response a status code equal to that given

func (*EditClusterOK) IsRedirect added in v1.1.0

func (o *EditClusterOK) IsRedirect() bool

IsRedirect returns true when this edit cluster o k response has a 3xx status code

func (*EditClusterOK) IsServerError added in v1.1.0

func (o *EditClusterOK) IsServerError() bool

IsServerError returns true when this edit cluster o k response has a 5xx status code

func (*EditClusterOK) IsSuccess added in v1.1.0

func (o *EditClusterOK) IsSuccess() bool

IsSuccess returns true when this edit cluster o k response has a 2xx status code

func (*EditClusterOK) String added in v1.1.0

func (o *EditClusterOK) String() string

type EditClusterParams added in v0.0.8

type EditClusterParams struct {

	// Data.
	Data *models.ClusterSettings

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

EditClusterParams contains all the parameters to send to the API endpoint

for the edit cluster operation.

Typically these are written to a http.Request.

func NewEditClusterParams added in v0.0.8

func NewEditClusterParams() *EditClusterParams

NewEditClusterParams creates a new EditClusterParams 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 NewEditClusterParamsWithContext added in v0.0.8

func NewEditClusterParamsWithContext(ctx context.Context) *EditClusterParams

NewEditClusterParamsWithContext creates a new EditClusterParams object with the ability to set a context for a request.

func NewEditClusterParamsWithHTTPClient added in v0.0.8

func NewEditClusterParamsWithHTTPClient(client *http.Client) *EditClusterParams

NewEditClusterParamsWithHTTPClient creates a new EditClusterParams object with the ability to set a custom HTTPClient for a request.

func NewEditClusterParamsWithTimeout added in v0.0.8

func NewEditClusterParamsWithTimeout(timeout time.Duration) *EditClusterParams

NewEditClusterParamsWithTimeout creates a new EditClusterParams object with the ability to set a timeout on a request.

func (*EditClusterParams) SetContext added in v0.0.8

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

SetContext adds the context to the edit cluster params

func (*EditClusterParams) SetData added in v0.0.8

func (o *EditClusterParams) SetData(data *models.ClusterSettings)

SetData adds the data to the edit cluster params

func (*EditClusterParams) SetDefaults added in v0.0.8

func (o *EditClusterParams) SetDefaults()

SetDefaults hydrates default values in the edit cluster params (not the query body).

All values with no default are reset to their zero value.

func (*EditClusterParams) SetHTTPClient added in v0.0.8

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

SetHTTPClient adds the HTTPClient to the edit cluster params

func (*EditClusterParams) SetTimeout added in v0.0.8

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

SetTimeout adds the timeout to the edit cluster params

func (*EditClusterParams) SetVersion added in v0.0.8

func (o *EditClusterParams) SetVersion(version *int64)

SetVersion adds the version to the edit cluster params

func (*EditClusterParams) WithContext added in v0.0.8

func (o *EditClusterParams) WithContext(ctx context.Context) *EditClusterParams

WithContext adds the context to the edit cluster params

func (*EditClusterParams) WithData added in v0.0.8

WithData adds the data to the edit cluster params

func (*EditClusterParams) WithDefaults added in v0.0.8

func (o *EditClusterParams) WithDefaults() *EditClusterParams

WithDefaults hydrates default values in the edit cluster params (not the query body).

All values with no default are reset to their zero value.

func (*EditClusterParams) WithHTTPClient added in v0.0.8

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

WithHTTPClient adds the HTTPClient to the edit cluster params

func (*EditClusterParams) WithTimeout added in v0.0.8

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

WithTimeout adds the timeout to the edit cluster params

func (*EditClusterParams) WithVersion added in v0.0.8

func (o *EditClusterParams) WithVersion(version *int64) *EditClusterParams

WithVersion adds the version to the edit cluster params

func (*EditClusterParams) WriteToRequest added in v0.0.8

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

WriteToRequest writes these params to a swagger request

type EditClusterReader added in v0.0.8

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

EditClusterReader is a Reader for the EditCluster structure.

func (*EditClusterReader) ReadResponse added in v0.0.8

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

ReadResponse reads a server response into the received o.

type GetClusterDefault added in v0.0.8

type GetClusterDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetClusterDefault describes a response with status code -1, with default header values.

General Error

func NewGetClusterDefault added in v0.0.8

func NewGetClusterDefault(code int) *GetClusterDefault

NewGetClusterDefault creates a GetClusterDefault with default headers values

func (*GetClusterDefault) Code added in v0.0.8

func (o *GetClusterDefault) Code() int

Code gets the status code for the get cluster default response

func (*GetClusterDefault) Error added in v0.0.8

func (o *GetClusterDefault) Error() string

func (*GetClusterDefault) GetPayload added in v0.0.8

func (o *GetClusterDefault) GetPayload() *models.Error

func (*GetClusterDefault) IsClientError added in v1.1.0

func (o *GetClusterDefault) IsClientError() bool

IsClientError returns true when this get cluster default response has a 4xx status code

func (*GetClusterDefault) IsCode added in v1.1.0

func (o *GetClusterDefault) IsCode(code int) bool

IsCode returns true when this get cluster default response a status code equal to that given

func (*GetClusterDefault) IsRedirect added in v1.1.0

func (o *GetClusterDefault) IsRedirect() bool

IsRedirect returns true when this get cluster default response has a 3xx status code

func (*GetClusterDefault) IsServerError added in v1.1.0

func (o *GetClusterDefault) IsServerError() bool

IsServerError returns true when this get cluster default response has a 5xx status code

func (*GetClusterDefault) IsSuccess added in v1.1.0

func (o *GetClusterDefault) IsSuccess() bool

IsSuccess returns true when this get cluster default response has a 2xx status code

func (*GetClusterDefault) String added in v1.1.0

func (o *GetClusterDefault) String() string

type GetClusterOK added in v0.0.8

type GetClusterOK struct {
	Payload *models.ClusterSettings
}

GetClusterOK describes a response with status code 200, with default header values.

Success

func NewGetClusterOK added in v0.0.8

func NewGetClusterOK() *GetClusterOK

NewGetClusterOK creates a GetClusterOK with default headers values

func (*GetClusterOK) Code added in v1.1.5

func (o *GetClusterOK) Code() int

Code gets the status code for the get cluster o k response

func (*GetClusterOK) Error added in v0.0.8

func (o *GetClusterOK) Error() string

func (*GetClusterOK) GetPayload added in v0.0.8

func (o *GetClusterOK) GetPayload() *models.ClusterSettings

func (*GetClusterOK) IsClientError added in v1.1.0

func (o *GetClusterOK) IsClientError() bool

IsClientError returns true when this get cluster o k response has a 4xx status code

func (*GetClusterOK) IsCode added in v1.1.0

func (o *GetClusterOK) IsCode(code int) bool

IsCode returns true when this get cluster o k response a status code equal to that given

func (*GetClusterOK) IsRedirect added in v1.1.0

func (o *GetClusterOK) IsRedirect() bool

IsRedirect returns true when this get cluster o k response has a 3xx status code

func (*GetClusterOK) IsServerError added in v1.1.0

func (o *GetClusterOK) IsServerError() bool

IsServerError returns true when this get cluster o k response has a 5xx status code

func (*GetClusterOK) IsSuccess added in v1.1.0

func (o *GetClusterOK) IsSuccess() bool

IsSuccess returns true when this get cluster o k response has a 2xx status code

func (*GetClusterOK) String added in v1.1.0

func (o *GetClusterOK) String() string

type GetClusterParams added in v0.0.8

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

GetClusterParams contains all the parameters to send to the API endpoint

for the get cluster operation.

Typically these are written to a http.Request.

func NewGetClusterParams added in v0.0.8

func NewGetClusterParams() *GetClusterParams

NewGetClusterParams creates a new GetClusterParams 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 NewGetClusterParamsWithContext added in v0.0.8

func NewGetClusterParamsWithContext(ctx context.Context) *GetClusterParams

NewGetClusterParamsWithContext creates a new GetClusterParams object with the ability to set a context for a request.

func NewGetClusterParamsWithHTTPClient added in v0.0.8

func NewGetClusterParamsWithHTTPClient(client *http.Client) *GetClusterParams

NewGetClusterParamsWithHTTPClient creates a new GetClusterParams object with the ability to set a custom HTTPClient for a request.

func NewGetClusterParamsWithTimeout added in v0.0.8

func NewGetClusterParamsWithTimeout(timeout time.Duration) *GetClusterParams

NewGetClusterParamsWithTimeout creates a new GetClusterParams object with the ability to set a timeout on a request.

func (*GetClusterParams) SetContext added in v0.0.8

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

SetContext adds the context to the get cluster params

func (*GetClusterParams) SetDefaults added in v0.0.8

func (o *GetClusterParams) SetDefaults()

SetDefaults hydrates default values in the get cluster params (not the query body).

All values with no default are reset to their zero value.

func (*GetClusterParams) SetHTTPClient added in v0.0.8

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

SetHTTPClient adds the HTTPClient to the get cluster params

func (*GetClusterParams) SetTimeout added in v0.0.8

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

SetTimeout adds the timeout to the get cluster params

func (*GetClusterParams) WithContext added in v0.0.8

func (o *GetClusterParams) WithContext(ctx context.Context) *GetClusterParams

WithContext adds the context to the get cluster params

func (*GetClusterParams) WithDefaults added in v0.0.8

func (o *GetClusterParams) WithDefaults() *GetClusterParams

WithDefaults hydrates default values in the get cluster params (not the query body).

All values with no default are reset to their zero value.

func (*GetClusterParams) WithHTTPClient added in v0.0.8

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

WithHTTPClient adds the HTTPClient to the get cluster params

func (*GetClusterParams) WithTimeout added in v0.0.8

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

WithTimeout adds the timeout to the get cluster params

func (*GetClusterParams) WriteToRequest added in v0.0.8

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

WriteToRequest writes these params to a swagger request

type GetClusterReader added in v0.0.8

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

GetClusterReader is a Reader for the GetCluster structure.

func (*GetClusterReader) ReadResponse added in v0.0.8

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

ReadResponse reads a server response into the received o.

type InitiateCertificateRefreshDefault

type InitiateCertificateRefreshDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

InitiateCertificateRefreshDefault describes a response with status code -1, with default header values.

General Error

func NewInitiateCertificateRefreshDefault

func NewInitiateCertificateRefreshDefault(code int) *InitiateCertificateRefreshDefault

NewInitiateCertificateRefreshDefault creates a InitiateCertificateRefreshDefault with default headers values

func (*InitiateCertificateRefreshDefault) Code

Code gets the status code for the initiate certificate refresh default response

func (*InitiateCertificateRefreshDefault) Error

func (*InitiateCertificateRefreshDefault) GetPayload

func (*InitiateCertificateRefreshDefault) IsClientError added in v1.1.0

func (o *InitiateCertificateRefreshDefault) IsClientError() bool

IsClientError returns true when this initiate certificate refresh default response has a 4xx status code

func (*InitiateCertificateRefreshDefault) IsCode added in v1.1.0

func (o *InitiateCertificateRefreshDefault) IsCode(code int) bool

IsCode returns true when this initiate certificate refresh default response a status code equal to that given

func (*InitiateCertificateRefreshDefault) IsRedirect added in v1.1.0

func (o *InitiateCertificateRefreshDefault) IsRedirect() bool

IsRedirect returns true when this initiate certificate refresh default response has a 3xx status code

func (*InitiateCertificateRefreshDefault) IsServerError added in v1.1.0

func (o *InitiateCertificateRefreshDefault) IsServerError() bool

IsServerError returns true when this initiate certificate refresh default response has a 5xx status code

func (*InitiateCertificateRefreshDefault) IsSuccess added in v1.1.0

func (o *InitiateCertificateRefreshDefault) IsSuccess() bool

IsSuccess returns true when this initiate certificate refresh default response has a 2xx status code

func (*InitiateCertificateRefreshDefault) String added in v1.1.0

type InitiateCertificateRefreshForbidden

type InitiateCertificateRefreshForbidden struct {
}

InitiateCertificateRefreshForbidden describes a response with status code 403, with default header values.

refresh not possible

func NewInitiateCertificateRefreshForbidden

func NewInitiateCertificateRefreshForbidden() *InitiateCertificateRefreshForbidden

NewInitiateCertificateRefreshForbidden creates a InitiateCertificateRefreshForbidden with default headers values

func (*InitiateCertificateRefreshForbidden) Code added in v1.1.5

Code gets the status code for the initiate certificate refresh forbidden response

func (*InitiateCertificateRefreshForbidden) Error

func (*InitiateCertificateRefreshForbidden) IsClientError added in v1.1.0

func (o *InitiateCertificateRefreshForbidden) IsClientError() bool

IsClientError returns true when this initiate certificate refresh forbidden response has a 4xx status code

func (*InitiateCertificateRefreshForbidden) IsCode added in v1.1.0

IsCode returns true when this initiate certificate refresh forbidden response a status code equal to that given

func (*InitiateCertificateRefreshForbidden) IsRedirect added in v1.1.0

func (o *InitiateCertificateRefreshForbidden) IsRedirect() bool

IsRedirect returns true when this initiate certificate refresh forbidden response has a 3xx status code

func (*InitiateCertificateRefreshForbidden) IsServerError added in v1.1.0

func (o *InitiateCertificateRefreshForbidden) IsServerError() bool

IsServerError returns true when this initiate certificate refresh forbidden response has a 5xx status code

func (*InitiateCertificateRefreshForbidden) IsSuccess added in v1.1.0

IsSuccess returns true when this initiate certificate refresh forbidden response has a 2xx status code

func (*InitiateCertificateRefreshForbidden) String added in v1.1.0

type InitiateCertificateRefreshOK

type InitiateCertificateRefreshOK struct {
}

InitiateCertificateRefreshOK describes a response with status code 200, with default header values.

refresh activated

func NewInitiateCertificateRefreshOK

func NewInitiateCertificateRefreshOK() *InitiateCertificateRefreshOK

NewInitiateCertificateRefreshOK creates a InitiateCertificateRefreshOK with default headers values

func (*InitiateCertificateRefreshOK) Code added in v1.1.5

Code gets the status code for the initiate certificate refresh o k response

func (*InitiateCertificateRefreshOK) Error

func (*InitiateCertificateRefreshOK) IsClientError added in v1.1.0

func (o *InitiateCertificateRefreshOK) IsClientError() bool

IsClientError returns true when this initiate certificate refresh o k response has a 4xx status code

func (*InitiateCertificateRefreshOK) IsCode added in v1.1.0

func (o *InitiateCertificateRefreshOK) IsCode(code int) bool

IsCode returns true when this initiate certificate refresh o k response a status code equal to that given

func (*InitiateCertificateRefreshOK) IsRedirect added in v1.1.0

func (o *InitiateCertificateRefreshOK) IsRedirect() bool

IsRedirect returns true when this initiate certificate refresh o k response has a 3xx status code

func (*InitiateCertificateRefreshOK) IsServerError added in v1.1.0

func (o *InitiateCertificateRefreshOK) IsServerError() bool

IsServerError returns true when this initiate certificate refresh o k response has a 5xx status code

func (*InitiateCertificateRefreshOK) IsSuccess added in v1.1.0

func (o *InitiateCertificateRefreshOK) IsSuccess() bool

IsSuccess returns true when this initiate certificate refresh o k response has a 2xx status code

func (*InitiateCertificateRefreshOK) String added in v1.1.0

type InitiateCertificateRefreshParams

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

InitiateCertificateRefreshParams contains all the parameters to send to the API endpoint

for the initiate certificate refresh operation.

Typically these are written to a http.Request.

func NewInitiateCertificateRefreshParams

func NewInitiateCertificateRefreshParams() *InitiateCertificateRefreshParams

NewInitiateCertificateRefreshParams creates a new InitiateCertificateRefreshParams 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 NewInitiateCertificateRefreshParamsWithContext

func NewInitiateCertificateRefreshParamsWithContext(ctx context.Context) *InitiateCertificateRefreshParams

NewInitiateCertificateRefreshParamsWithContext creates a new InitiateCertificateRefreshParams object with the ability to set a context for a request.

func NewInitiateCertificateRefreshParamsWithHTTPClient

func NewInitiateCertificateRefreshParamsWithHTTPClient(client *http.Client) *InitiateCertificateRefreshParams

NewInitiateCertificateRefreshParamsWithHTTPClient creates a new InitiateCertificateRefreshParams object with the ability to set a custom HTTPClient for a request.

func NewInitiateCertificateRefreshParamsWithTimeout

func NewInitiateCertificateRefreshParamsWithTimeout(timeout time.Duration) *InitiateCertificateRefreshParams

NewInitiateCertificateRefreshParamsWithTimeout creates a new InitiateCertificateRefreshParams object with the ability to set a timeout on a request.

func (*InitiateCertificateRefreshParams) SetContext

SetContext adds the context to the initiate certificate refresh params

func (*InitiateCertificateRefreshParams) SetDefaults

func (o *InitiateCertificateRefreshParams) SetDefaults()

SetDefaults hydrates default values in the initiate certificate refresh params (not the query body).

All values with no default are reset to their zero value.

func (*InitiateCertificateRefreshParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the initiate certificate refresh params

func (*InitiateCertificateRefreshParams) SetTimeout

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

SetTimeout adds the timeout to the initiate certificate refresh params

func (*InitiateCertificateRefreshParams) WithContext

WithContext adds the context to the initiate certificate refresh params

func (*InitiateCertificateRefreshParams) WithDefaults

WithDefaults hydrates default values in the initiate certificate refresh params (not the query body).

All values with no default are reset to their zero value.

func (*InitiateCertificateRefreshParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the initiate certificate refresh params

func (*InitiateCertificateRefreshParams) WithTimeout

WithTimeout adds the timeout to the initiate certificate refresh params

func (*InitiateCertificateRefreshParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InitiateCertificateRefreshReader

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

InitiateCertificateRefreshReader is a Reader for the InitiateCertificateRefresh structure.

func (*InitiateCertificateRefreshReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostClusterBadRequest

type PostClusterBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

PostClusterBadRequest describes a response with status code 400, with default header values.

Bad request

func NewPostClusterBadRequest

func NewPostClusterBadRequest() *PostClusterBadRequest

NewPostClusterBadRequest creates a PostClusterBadRequest with default headers values

func (*PostClusterBadRequest) Code added in v1.1.5

func (o *PostClusterBadRequest) Code() int

Code gets the status code for the post cluster bad request response

func (*PostClusterBadRequest) Error

func (o *PostClusterBadRequest) Error() string

func (*PostClusterBadRequest) GetPayload

func (o *PostClusterBadRequest) GetPayload() *models.Error

func (*PostClusterBadRequest) IsClientError added in v1.1.0

func (o *PostClusterBadRequest) IsClientError() bool

IsClientError returns true when this post cluster bad request response has a 4xx status code

func (*PostClusterBadRequest) IsCode added in v1.1.0

func (o *PostClusterBadRequest) IsCode(code int) bool

IsCode returns true when this post cluster bad request response a status code equal to that given

func (*PostClusterBadRequest) IsRedirect added in v1.1.0

func (o *PostClusterBadRequest) IsRedirect() bool

IsRedirect returns true when this post cluster bad request response has a 3xx status code

func (*PostClusterBadRequest) IsServerError added in v1.1.0

func (o *PostClusterBadRequest) IsServerError() bool

IsServerError returns true when this post cluster bad request response has a 5xx status code

func (*PostClusterBadRequest) IsSuccess added in v1.1.0

func (o *PostClusterBadRequest) IsSuccess() bool

IsSuccess returns true when this post cluster bad request response has a 2xx status code

func (*PostClusterBadRequest) String added in v1.1.0

func (o *PostClusterBadRequest) String() string

type PostClusterDefault

type PostClusterDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

PostClusterDefault describes a response with status code -1, with default header values.

General Error

func NewPostClusterDefault

func NewPostClusterDefault(code int) *PostClusterDefault

NewPostClusterDefault creates a PostClusterDefault with default headers values

func (*PostClusterDefault) Code

func (o *PostClusterDefault) Code() int

Code gets the status code for the post cluster default response

func (*PostClusterDefault) Error

func (o *PostClusterDefault) Error() string

func (*PostClusterDefault) GetPayload

func (o *PostClusterDefault) GetPayload() *models.Error

func (*PostClusterDefault) IsClientError added in v1.1.0

func (o *PostClusterDefault) IsClientError() bool

IsClientError returns true when this post cluster default response has a 4xx status code

func (*PostClusterDefault) IsCode added in v1.1.0

func (o *PostClusterDefault) IsCode(code int) bool

IsCode returns true when this post cluster default response a status code equal to that given

func (*PostClusterDefault) IsRedirect added in v1.1.0

func (o *PostClusterDefault) IsRedirect() bool

IsRedirect returns true when this post cluster default response has a 3xx status code

func (*PostClusterDefault) IsServerError added in v1.1.0

func (o *PostClusterDefault) IsServerError() bool

IsServerError returns true when this post cluster default response has a 5xx status code

func (*PostClusterDefault) IsSuccess added in v1.1.0

func (o *PostClusterDefault) IsSuccess() bool

IsSuccess returns true when this post cluster default response has a 2xx status code

func (*PostClusterDefault) String added in v1.1.0

func (o *PostClusterDefault) String() string

type PostClusterOK

type PostClusterOK struct {
	Payload *models.ClusterSettings
}

PostClusterOK describes a response with status code 200, with default header values.

Cluster settings changed

func NewPostClusterOK

func NewPostClusterOK() *PostClusterOK

NewPostClusterOK creates a PostClusterOK with default headers values

func (*PostClusterOK) Code added in v1.1.5

func (o *PostClusterOK) Code() int

Code gets the status code for the post cluster o k response

func (*PostClusterOK) Error

func (o *PostClusterOK) Error() string

func (*PostClusterOK) GetPayload

func (o *PostClusterOK) GetPayload() *models.ClusterSettings

func (*PostClusterOK) IsClientError added in v1.1.0

func (o *PostClusterOK) IsClientError() bool

IsClientError returns true when this post cluster o k response has a 4xx status code

func (*PostClusterOK) IsCode added in v1.1.0

func (o *PostClusterOK) IsCode(code int) bool

IsCode returns true when this post cluster o k response a status code equal to that given

func (*PostClusterOK) IsRedirect added in v1.1.0

func (o *PostClusterOK) IsRedirect() bool

IsRedirect returns true when this post cluster o k response has a 3xx status code

func (*PostClusterOK) IsServerError added in v1.1.0

func (o *PostClusterOK) IsServerError() bool

IsServerError returns true when this post cluster o k response has a 5xx status code

func (*PostClusterOK) IsSuccess added in v1.1.0

func (o *PostClusterOK) IsSuccess() bool

IsSuccess returns true when this post cluster o k response has a 2xx status code

func (*PostClusterOK) String added in v1.1.0

func (o *PostClusterOK) String() string

type PostClusterParams

type PostClusterParams struct {

	/* AdvertisedAddress.

	   Force the advertised address when joining a cluster
	*/
	AdvertisedAddress *string

	/* AdvertisedPort.

	   Force the advertised port when joining a cluster
	*/
	AdvertisedPort *int64

	/* Configuration.

	   In case of moving to single mode do we keep or clean configuration
	*/
	Configuration *string

	// Data.
	Data *models.ClusterSettings

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

PostClusterParams contains all the parameters to send to the API endpoint

for the post cluster operation.

Typically these are written to a http.Request.

func NewPostClusterParams

func NewPostClusterParams() *PostClusterParams

NewPostClusterParams creates a new PostClusterParams 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 NewPostClusterParamsWithContext

func NewPostClusterParamsWithContext(ctx context.Context) *PostClusterParams

NewPostClusterParamsWithContext creates a new PostClusterParams object with the ability to set a context for a request.

func NewPostClusterParamsWithHTTPClient

func NewPostClusterParamsWithHTTPClient(client *http.Client) *PostClusterParams

NewPostClusterParamsWithHTTPClient creates a new PostClusterParams object with the ability to set a custom HTTPClient for a request.

func NewPostClusterParamsWithTimeout

func NewPostClusterParamsWithTimeout(timeout time.Duration) *PostClusterParams

NewPostClusterParamsWithTimeout creates a new PostClusterParams object with the ability to set a timeout on a request.

func (*PostClusterParams) SetAdvertisedAddress added in v0.0.2

func (o *PostClusterParams) SetAdvertisedAddress(advertisedAddress *string)

SetAdvertisedAddress adds the advertisedAddress to the post cluster params

func (*PostClusterParams) SetAdvertisedPort added in v0.0.2

func (o *PostClusterParams) SetAdvertisedPort(advertisedPort *int64)

SetAdvertisedPort adds the advertisedPort to the post cluster params

func (*PostClusterParams) SetConfiguration

func (o *PostClusterParams) SetConfiguration(configuration *string)

SetConfiguration adds the configuration to the post cluster params

func (*PostClusterParams) SetContext

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

SetContext adds the context to the post cluster params

func (*PostClusterParams) SetData

func (o *PostClusterParams) SetData(data *models.ClusterSettings)

SetData adds the data to the post cluster params

func (*PostClusterParams) SetDefaults

func (o *PostClusterParams) SetDefaults()

SetDefaults hydrates default values in the post cluster params (not the query body).

All values with no default are reset to their zero value.

func (*PostClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post cluster params

func (*PostClusterParams) SetTimeout

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

SetTimeout adds the timeout to the post cluster params

func (*PostClusterParams) SetVersion

func (o *PostClusterParams) SetVersion(version *int64)

SetVersion adds the version to the post cluster params

func (*PostClusterParams) WithAdvertisedAddress added in v0.0.2

func (o *PostClusterParams) WithAdvertisedAddress(advertisedAddress *string) *PostClusterParams

WithAdvertisedAddress adds the advertisedAddress to the post cluster params

func (*PostClusterParams) WithAdvertisedPort added in v0.0.2

func (o *PostClusterParams) WithAdvertisedPort(advertisedPort *int64) *PostClusterParams

WithAdvertisedPort adds the advertisedPort to the post cluster params

func (*PostClusterParams) WithConfiguration

func (o *PostClusterParams) WithConfiguration(configuration *string) *PostClusterParams

WithConfiguration adds the configuration to the post cluster params

func (*PostClusterParams) WithContext

func (o *PostClusterParams) WithContext(ctx context.Context) *PostClusterParams

WithContext adds the context to the post cluster params

func (*PostClusterParams) WithData

WithData adds the data to the post cluster params

func (*PostClusterParams) WithDefaults

func (o *PostClusterParams) WithDefaults() *PostClusterParams

WithDefaults hydrates default values in the post cluster params (not the query body).

All values with no default are reset to their zero value.

func (*PostClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post cluster params

func (*PostClusterParams) WithTimeout

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

WithTimeout adds the timeout to the post cluster params

func (*PostClusterParams) WithVersion

func (o *PostClusterParams) WithVersion(version *int64) *PostClusterParams

WithVersion adds the version to the post cluster params

func (*PostClusterParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostClusterReader

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

PostClusterReader is a Reader for the PostCluster structure.

func (*PostClusterReader) ReadResponse

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