cluster

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 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) (*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) (*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) (*GetClusterOK, error)

GetCluster returns cluster data

Returns cluster data

func (*Client) InitiateCertificateRefresh

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

InitiateCertificateRefresh initiates a certificate refresh

Initiates a certificate refresh

func (*Client) PostCluster

func (a *Client) PostCluster(params *PostClusterParams, authInfo runtime.ClientAuthInfoWriter) (*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 ClientService

type ClientService interface {
	DeleteCluster(params *DeleteClusterParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteClusterNoContent, error)

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

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

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

	PostCluster(params *PostClusterParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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

type DeleteClusterNoContent added in v0.0.8

type DeleteClusterNoContent struct {
}

DeleteClusterNoContent handles this case 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) Error added in v0.0.8

func (o *DeleteClusterNoContent) Error() 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 values initialized.

func NewDeleteClusterParamsWithContext added in v0.0.8

func NewDeleteClusterParamsWithContext(ctx context.Context) *DeleteClusterParams

NewDeleteClusterParamsWithContext creates a new DeleteClusterParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) 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

type EditClusterDefault added in v0.0.8

type EditClusterDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

EditClusterDefault handles this case 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

type EditClusterOK added in v0.0.8

type EditClusterOK struct {
	Payload *models.ClusterSettings
}

EditClusterOK handles this case 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) 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

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 values initialized.

func NewEditClusterParamsWithContext added in v0.0.8

func NewEditClusterParamsWithContext(ctx context.Context) *EditClusterParams

NewEditClusterParamsWithContext creates a new EditClusterParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type GetClusterOK added in v0.0.8

type GetClusterOK struct {
	Payload *models.ClusterSettings
}

GetClusterOK handles this case 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) 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

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 values initialized.

func NewGetClusterParamsWithContext added in v0.0.8

func NewGetClusterParamsWithContext(ctx context.Context) *GetClusterParams

NewGetClusterParamsWithContext creates a new GetClusterParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type InitiateCertificateRefreshForbidden

type InitiateCertificateRefreshForbidden struct {
}

InitiateCertificateRefreshForbidden handles this case with default header values.

refresh not possible

func NewInitiateCertificateRefreshForbidden

func NewInitiateCertificateRefreshForbidden() *InitiateCertificateRefreshForbidden

NewInitiateCertificateRefreshForbidden creates a InitiateCertificateRefreshForbidden with default headers values

func (*InitiateCertificateRefreshForbidden) Error

type InitiateCertificateRefreshOK

type InitiateCertificateRefreshOK struct {
}

InitiateCertificateRefreshOK handles this case with default header values.

refresh activated

func NewInitiateCertificateRefreshOK

func NewInitiateCertificateRefreshOK() *InitiateCertificateRefreshOK

NewInitiateCertificateRefreshOK creates a InitiateCertificateRefreshOK with default headers values

func (*InitiateCertificateRefreshOK) Error

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 values initialized.

func NewInitiateCertificateRefreshParamsWithContext

func NewInitiateCertificateRefreshParamsWithContext(ctx context.Context) *InitiateCertificateRefreshParams

NewInitiateCertificateRefreshParamsWithContext creates a new InitiateCertificateRefreshParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*InitiateCertificateRefreshParams) SetContext

SetContext adds the context to the initiate certificate refresh params

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) 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 handles this case with default header values.

Bad request

func NewPostClusterBadRequest

func NewPostClusterBadRequest() *PostClusterBadRequest

NewPostClusterBadRequest creates a PostClusterBadRequest with default headers values

func (*PostClusterBadRequest) Error

func (o *PostClusterBadRequest) Error() string

func (*PostClusterBadRequest) GetPayload

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

type PostClusterDefault

type PostClusterDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

PostClusterDefault handles this case 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

type PostClusterOK

type PostClusterOK struct {
	Payload *models.ClusterSettings
}

PostClusterOK handles this case with default header values.

Cluster settings changed

func NewPostClusterOK

func NewPostClusterOK() *PostClusterOK

NewPostClusterOK creates a PostClusterOK with default headers values

func (*PostClusterOK) Error

func (o *PostClusterOK) Error() string

func (*PostClusterOK) GetPayload

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

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 values initialized.

func NewPostClusterParamsWithContext

func NewPostClusterParamsWithContext(ctx context.Context) *PostClusterParams

NewPostClusterParamsWithContext creates a new PostClusterParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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