Documentation
¶
Index ¶
- type Client
- func (a *Client) InitiateCertificateRefresh(params *InitiateCertificateRefreshParams, ...) (*InitiateCertificateRefreshOK, error)
- func (a *Client) PostCluster(params *PostClusterParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostClusterOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type InitiateCertificateRefreshDefault
- type InitiateCertificateRefreshForbidden
- type InitiateCertificateRefreshOK
- type InitiateCertificateRefreshParams
- func NewInitiateCertificateRefreshParams() *InitiateCertificateRefreshParams
- func NewInitiateCertificateRefreshParamsWithContext(ctx context.Context) *InitiateCertificateRefreshParams
- func NewInitiateCertificateRefreshParamsWithHTTPClient(client *http.Client) *InitiateCertificateRefreshParams
- func NewInitiateCertificateRefreshParamsWithTimeout(timeout time.Duration) *InitiateCertificateRefreshParams
- func (o *InitiateCertificateRefreshParams) SetContext(ctx context.Context)
- func (o *InitiateCertificateRefreshParams) SetDefaults()
- func (o *InitiateCertificateRefreshParams) SetHTTPClient(client *http.Client)
- func (o *InitiateCertificateRefreshParams) SetTimeout(timeout time.Duration)
- func (o *InitiateCertificateRefreshParams) WithContext(ctx context.Context) *InitiateCertificateRefreshParams
- func (o *InitiateCertificateRefreshParams) WithDefaults() *InitiateCertificateRefreshParams
- func (o *InitiateCertificateRefreshParams) WithHTTPClient(client *http.Client) *InitiateCertificateRefreshParams
- func (o *InitiateCertificateRefreshParams) WithTimeout(timeout time.Duration) *InitiateCertificateRefreshParams
- func (o *InitiateCertificateRefreshParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InitiateCertificateRefreshReader
- type PostClusterBadRequest
- type PostClusterDefault
- type PostClusterOK
- type PostClusterParams
- func (o *PostClusterParams) SetAdvertisedAddress(advertisedAddress *string)
- func (o *PostClusterParams) SetAdvertisedPort(advertisedPort *int64)
- func (o *PostClusterParams) SetConfiguration(configuration *string)
- func (o *PostClusterParams) SetContext(ctx context.Context)
- func (o *PostClusterParams) SetData(data *models.ClusterSettings)
- func (o *PostClusterParams) SetDefaults()
- func (o *PostClusterParams) SetHTTPClient(client *http.Client)
- func (o *PostClusterParams) SetTimeout(timeout time.Duration)
- func (o *PostClusterParams) SetVersion(version *int64)
- func (o *PostClusterParams) WithAdvertisedAddress(advertisedAddress *string) *PostClusterParams
- func (o *PostClusterParams) WithAdvertisedPort(advertisedPort *int64) *PostClusterParams
- func (o *PostClusterParams) WithConfiguration(configuration *string) *PostClusterParams
- func (o *PostClusterParams) WithContext(ctx context.Context) *PostClusterParams
- func (o *PostClusterParams) WithData(data *models.ClusterSettings) *PostClusterParams
- func (o *PostClusterParams) WithDefaults() *PostClusterParams
- func (o *PostClusterParams) WithHTTPClient(client *http.Client) *PostClusterParams
- func (o *PostClusterParams) WithTimeout(timeout time.Duration) *PostClusterParams
- func (o *PostClusterParams) WithVersion(version *int64) *PostClusterParams
- func (o *PostClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostClusterReader
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, 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 { 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 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 ¶
func (o *InitiateCertificateRefreshDefault) Code() int
Code gets the status code for the initiate certificate refresh default response
func (*InitiateCertificateRefreshDefault) Error ¶
func (o *InitiateCertificateRefreshDefault) Error() string
func (*InitiateCertificateRefreshDefault) GetPayload ¶
func (o *InitiateCertificateRefreshDefault) GetPayload() *models.Error
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) Error ¶
func (o *InitiateCertificateRefreshForbidden) Error() string
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) Error ¶
func (o *InitiateCertificateRefreshOK) Error() string
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 ¶
func (o *InitiateCertificateRefreshParams) SetContext(ctx context.Context)
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 ¶
func (o *InitiateCertificateRefreshParams) WithContext(ctx context.Context) *InitiateCertificateRefreshParams
WithContext adds the context to the initiate certificate refresh params
func (*InitiateCertificateRefreshParams) WithDefaults ¶
func (o *InitiateCertificateRefreshParams) WithDefaults() *InitiateCertificateRefreshParams
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 ¶
func (o *InitiateCertificateRefreshParams) WithHTTPClient(client *http.Client) *InitiateCertificateRefreshParams
WithHTTPClient adds the HTTPClient to the initiate certificate refresh params
func (*InitiateCertificateRefreshParams) WithTimeout ¶
func (o *InitiateCertificateRefreshParams) WithTimeout(timeout time.Duration) *InitiateCertificateRefreshParams
WithTimeout adds the timeout to the initiate certificate refresh params
func (*InitiateCertificateRefreshParams) WriteToRequest ¶
func (o *InitiateCertificateRefreshParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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) 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 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
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) 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 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 ¶
func (o *PostClusterParams) WithData(data *models.ClusterSettings) *PostClusterParams
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.