Help us shape the future of Go! Take the 2026 Go Developer Survey

cluster

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 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) 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 added in v0.2.0

type ClientService interface {
	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 InitiateCertificateRefreshDefault

type InitiateCertificateRefreshDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	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 added in v0.2.0

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 int64

	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 added in v0.2.0

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

type PostClusterDefault

type PostClusterDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	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 added in v0.2.0

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 added in v0.2.0

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

type PostClusterParams

type PostClusterParams struct {

	/*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) SetConfiguration added in v0.2.0

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) WithConfiguration added in v0.2.0

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