client

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: PostgreSQL Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupDatabaseNodeControlPlanePath

func BackupDatabaseNodeControlPlanePath(databaseID string, nodeName string) string

BackupDatabaseNodeControlPlanePath returns the URL path to the control-plane service backup-database-node HTTP endpoint.

func BuildBackupDatabaseNodePayload

func BuildBackupDatabaseNodePayload(controlPlaneBackupDatabaseNodeBody string, controlPlaneBackupDatabaseNodeDatabaseID string, controlPlaneBackupDatabaseNodeNodeName string, controlPlaneBackupDatabaseNodeForce string) (*controlplane.BackupDatabaseNodePayload, error)

BuildBackupDatabaseNodePayload builds the payload for the control-plane backup-database-node endpoint from CLI flags.

func BuildCancelDatabaseTaskPayload

func BuildCancelDatabaseTaskPayload(controlPlaneCancelDatabaseTaskDatabaseID string, controlPlaneCancelDatabaseTaskTaskID string) (*controlplane.CancelDatabaseTaskPayload, error)

BuildCancelDatabaseTaskPayload builds the payload for the control-plane cancel-database-task endpoint from CLI flags.

func BuildCreateDatabasePayload

func BuildCreateDatabasePayload(controlPlaneCreateDatabaseBody string) (*controlplane.CreateDatabaseRequest, error)

BuildCreateDatabasePayload builds the payload for the control-plane create-database endpoint from CLI flags.

func BuildDeleteDatabasePayload

func BuildDeleteDatabasePayload(controlPlaneDeleteDatabaseDatabaseID string, controlPlaneDeleteDatabaseForce string) (*controlplane.DeleteDatabasePayload, error)

BuildDeleteDatabasePayload builds the payload for the control-plane delete-database endpoint from CLI flags.

func BuildFailoverDatabaseNodePayload

func BuildFailoverDatabaseNodePayload(controlPlaneFailoverDatabaseNodeBody string, controlPlaneFailoverDatabaseNodeDatabaseID string, controlPlaneFailoverDatabaseNodeNodeName string) (*controlplane.FailoverDatabaseNodeRequest, error)

BuildFailoverDatabaseNodePayload builds the payload for the control-plane failover-database-node endpoint from CLI flags.

func BuildGetDatabasePayload

func BuildGetDatabasePayload(controlPlaneGetDatabaseDatabaseID string) (*controlplane.GetDatabasePayload, error)

BuildGetDatabasePayload builds the payload for the control-plane get-database endpoint from CLI flags.

func BuildGetDatabaseTaskLogPayload

func BuildGetDatabaseTaskLogPayload(controlPlaneGetDatabaseTaskLogDatabaseID string, controlPlaneGetDatabaseTaskLogTaskID string, controlPlaneGetDatabaseTaskLogAfterEntryID string, controlPlaneGetDatabaseTaskLogLimit string) (*controlplane.GetDatabaseTaskLogPayload, error)

BuildGetDatabaseTaskLogPayload builds the payload for the control-plane get-database-task-log endpoint from CLI flags.

func BuildGetDatabaseTaskPayload

func BuildGetDatabaseTaskPayload(controlPlaneGetDatabaseTaskDatabaseID string, controlPlaneGetDatabaseTaskTaskID string) (*controlplane.GetDatabaseTaskPayload, error)

BuildGetDatabaseTaskPayload builds the payload for the control-plane get-database-task endpoint from CLI flags.

func BuildGetHostPayload

func BuildGetHostPayload(controlPlaneGetHostHostID string) (*controlplane.GetHostPayload, error)

BuildGetHostPayload builds the payload for the control-plane get-host endpoint from CLI flags.

func BuildGetJoinOptionsPayload

func BuildGetJoinOptionsPayload(controlPlaneGetJoinOptionsBody string) (*controlplane.ClusterJoinRequest, error)

BuildGetJoinOptionsPayload builds the payload for the control-plane get-join-options endpoint from CLI flags.

func BuildInitClusterPayload

func BuildInitClusterPayload(controlPlaneInitClusterClusterID string) (*controlplane.InitClusterRequest, error)

BuildInitClusterPayload builds the payload for the control-plane init-cluster endpoint from CLI flags.

func BuildJoinClusterPayload

func BuildJoinClusterPayload(controlPlaneJoinClusterBody string) (*controlplane.ClusterJoinToken, error)

BuildJoinClusterPayload builds the payload for the control-plane join-cluster endpoint from CLI flags.

func BuildListDatabaseTasksPayload

func BuildListDatabaseTasksPayload(controlPlaneListDatabaseTasksDatabaseID string, controlPlaneListDatabaseTasksAfterTaskID string, controlPlaneListDatabaseTasksLimit string, controlPlaneListDatabaseTasksSortOrder string) (*controlplane.ListDatabaseTasksPayload, error)

BuildListDatabaseTasksPayload builds the payload for the control-plane list-database-tasks endpoint from CLI flags.

func BuildRemoveHostPayload

func BuildRemoveHostPayload(controlPlaneRemoveHostHostID string, controlPlaneRemoveHostForce string) (*controlplane.RemoveHostPayload, error)

BuildRemoveHostPayload builds the payload for the control-plane remove-host endpoint from CLI flags.

func BuildRestartInstancePayload

func BuildRestartInstancePayload(controlPlaneRestartInstanceBody string, controlPlaneRestartInstanceDatabaseID string, controlPlaneRestartInstanceInstanceID string) (*controlplane.RestartInstancePayload, error)

BuildRestartInstancePayload builds the payload for the control-plane restart-instance endpoint from CLI flags.

func BuildRestoreDatabasePayload

func BuildRestoreDatabasePayload(controlPlaneRestoreDatabaseBody string, controlPlaneRestoreDatabaseDatabaseID string, controlPlaneRestoreDatabaseForce string) (*controlplane.RestoreDatabasePayload, error)

BuildRestoreDatabasePayload builds the payload for the control-plane restore-database endpoint from CLI flags.

func BuildStartInstancePayload

func BuildStartInstancePayload(controlPlaneStartInstanceDatabaseID string, controlPlaneStartInstanceInstanceID string, controlPlaneStartInstanceForce string) (*controlplane.StartInstancePayload, error)

BuildStartInstancePayload builds the payload for the control-plane start-instance endpoint from CLI flags.

func BuildStopInstancePayload

func BuildStopInstancePayload(controlPlaneStopInstanceDatabaseID string, controlPlaneStopInstanceInstanceID string, controlPlaneStopInstanceForce string) (*controlplane.StopInstancePayload, error)

BuildStopInstancePayload builds the payload for the control-plane stop-instance endpoint from CLI flags.

func BuildSwitchoverDatabaseNodePayload

func BuildSwitchoverDatabaseNodePayload(controlPlaneSwitchoverDatabaseNodeBody string, controlPlaneSwitchoverDatabaseNodeDatabaseID string, controlPlaneSwitchoverDatabaseNodeNodeName string) (*controlplane.SwitchoverDatabaseNodePayload, error)

BuildSwitchoverDatabaseNodePayload builds the payload for the control-plane switchover-database-node endpoint from CLI flags.

func BuildUpdateDatabasePayload

func BuildUpdateDatabasePayload(controlPlaneUpdateDatabaseBody string, controlPlaneUpdateDatabaseDatabaseID string, controlPlaneUpdateDatabaseForceUpdate string) (*controlplane.UpdateDatabasePayload, error)

BuildUpdateDatabasePayload builds the payload for the control-plane update-database endpoint from CLI flags.

func CancelDatabaseTaskControlPlanePath

func CancelDatabaseTaskControlPlanePath(databaseID string, taskID string) string

CancelDatabaseTaskControlPlanePath returns the URL path to the control-plane service cancel-database-task HTTP endpoint.

func CreateDatabaseControlPlanePath

func CreateDatabaseControlPlanePath() string

CreateDatabaseControlPlanePath returns the URL path to the control-plane service create-database HTTP endpoint.

func DecodeBackupDatabaseNodeResponse

func DecodeBackupDatabaseNodeResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeBackupDatabaseNodeResponse returns a decoder for responses returned by the control-plane backup-database-node endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeBackupDatabaseNodeResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "database_not_modifiable" (type *controlplane.APIError): http.StatusConflict
  • "operation_already_in_progress" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeCancelDatabaseTaskResponse

func DecodeCancelDatabaseTaskResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeCancelDatabaseTaskResponse returns a decoder for responses returned by the control-plane cancel-database-task endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCancelDatabaseTaskResponse may return the following errors:

  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeCreateDatabaseResponse

func DecodeCreateDatabaseResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeCreateDatabaseResponse returns a decoder for responses returned by the control-plane create-database endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCreateDatabaseResponse may return the following errors:

  • "database_already_exists" (type *controlplane.APIError): http.StatusConflict
  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "operation_already_in_progress" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeDeleteDatabaseResponse

func DecodeDeleteDatabaseResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeDeleteDatabaseResponse returns a decoder for responses returned by the control-plane delete-database endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDeleteDatabaseResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "database_not_modifiable" (type *controlplane.APIError): http.StatusConflict
  • "operation_already_in_progress" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeFailoverDatabaseNodeResponse

func DecodeFailoverDatabaseNodeResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeFailoverDatabaseNodeResponse returns a decoder for responses returned by the control-plane failover-database-node endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeFailoverDatabaseNodeResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "database_not_modifiable" (type *controlplane.APIError): http.StatusConflict
  • "operation_already_in_progress" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeGetClusterResponse

func DecodeGetClusterResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetClusterResponse returns a decoder for responses returned by the control-plane get-cluster endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetClusterResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeGetDatabaseResponse

func DecodeGetDatabaseResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetDatabaseResponse returns a decoder for responses returned by the control-plane get-database endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetDatabaseResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeGetDatabaseTaskLogResponse

func DecodeGetDatabaseTaskLogResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetDatabaseTaskLogResponse returns a decoder for responses returned by the control-plane get-database-task-log endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetDatabaseTaskLogResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeGetDatabaseTaskResponse

func DecodeGetDatabaseTaskResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetDatabaseTaskResponse returns a decoder for responses returned by the control-plane get-database-task endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetDatabaseTaskResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeGetHostResponse

func DecodeGetHostResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetHostResponse returns a decoder for responses returned by the control-plane get-host endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetHostResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeGetJoinOptionsResponse

func DecodeGetJoinOptionsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetJoinOptionsResponse returns a decoder for responses returned by the control-plane get-join-options endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetJoinOptionsResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_join_token" (type *controlplane.APIError): http.StatusUnauthorized
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeGetJoinTokenResponse

func DecodeGetJoinTokenResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetJoinTokenResponse returns a decoder for responses returned by the control-plane get-join-token endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetJoinTokenResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeGetVersionResponse

func DecodeGetVersionResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetVersionResponse returns a decoder for responses returned by the control-plane get-version endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetVersionResponse may return the following errors:

  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeInitClusterResponse

func DecodeInitClusterResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeInitClusterResponse returns a decoder for responses returned by the control-plane init-cluster endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeInitClusterResponse may return the following errors:

  • "cluster_already_initialized" (type *controlplane.APIError): http.StatusConflict
  • "operation_not_supported" (type *controlplane.APIError): http.StatusBadRequest
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeJoinClusterResponse

func DecodeJoinClusterResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeJoinClusterResponse returns a decoder for responses returned by the control-plane join-cluster endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeJoinClusterResponse may return the following errors:

  • "cluster_already_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_join_token" (type *controlplane.APIError): http.StatusUnauthorized
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeListDatabaseTasksResponse

func DecodeListDatabaseTasksResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeListDatabaseTasksResponse returns a decoder for responses returned by the control-plane list-database-tasks endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListDatabaseTasksResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeListDatabasesResponse

func DecodeListDatabasesResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeListDatabasesResponse returns a decoder for responses returned by the control-plane list-databases endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListDatabasesResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeListHostsResponse

func DecodeListHostsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeListHostsResponse returns a decoder for responses returned by the control-plane list-hosts endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListHostsResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeRemoveHostResponse

func DecodeRemoveHostResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeRemoveHostResponse returns a decoder for responses returned by the control-plane remove-host endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeRemoveHostResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeRestartInstanceResponse

func DecodeRestartInstanceResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeRestartInstanceResponse returns a decoder for responses returned by the control-plane restart-instance endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeRestartInstanceResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeRestoreDatabaseResponse

func DecodeRestoreDatabaseResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeRestoreDatabaseResponse returns a decoder for responses returned by the control-plane restore-database endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeRestoreDatabaseResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "database_not_modifiable" (type *controlplane.APIError): http.StatusConflict
  • "operation_already_in_progress" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeStartInstanceResponse

func DecodeStartInstanceResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeStartInstanceResponse returns a decoder for responses returned by the control-plane start-instance endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeStartInstanceResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeStopInstanceResponse

func DecodeStopInstanceResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeStopInstanceResponse returns a decoder for responses returned by the control-plane stop-instance endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeStopInstanceResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeSwitchoverDatabaseNodeResponse

func DecodeSwitchoverDatabaseNodeResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeSwitchoverDatabaseNodeResponse returns a decoder for responses returned by the control-plane switchover-database-node endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeSwitchoverDatabaseNodeResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "database_not_modifiable" (type *controlplane.APIError): http.StatusConflict
  • "operation_already_in_progress" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DecodeUpdateDatabaseResponse

func DecodeUpdateDatabaseResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeUpdateDatabaseResponse returns a decoder for responses returned by the control-plane update-database endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUpdateDatabaseResponse may return the following errors:

  • "cluster_not_initialized" (type *controlplane.APIError): http.StatusConflict
  • "database_not_modifiable" (type *controlplane.APIError): http.StatusConflict
  • "operation_already_in_progress" (type *controlplane.APIError): http.StatusConflict
  • "invalid_input" (type *controlplane.APIError): http.StatusBadRequest
  • "not_found" (type *controlplane.APIError): http.StatusNotFound
  • "server_error" (type *controlplane.APIError): http.StatusInternalServerError
  • error: internal error

func DeleteDatabaseControlPlanePath

func DeleteDatabaseControlPlanePath(databaseID string) string

DeleteDatabaseControlPlanePath returns the URL path to the control-plane service delete-database HTTP endpoint.

func EncodeBackupDatabaseNodeRequest

func EncodeBackupDatabaseNodeRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeBackupDatabaseNodeRequest returns an encoder for requests sent to the control-plane backup-database-node server.

func EncodeCreateDatabaseRequest

func EncodeCreateDatabaseRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeCreateDatabaseRequest returns an encoder for requests sent to the control-plane create-database server.

func EncodeDeleteDatabaseRequest

func EncodeDeleteDatabaseRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeDeleteDatabaseRequest returns an encoder for requests sent to the control-plane delete-database server.

func EncodeFailoverDatabaseNodeRequest

func EncodeFailoverDatabaseNodeRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeFailoverDatabaseNodeRequest returns an encoder for requests sent to the control-plane failover-database-node server.

func EncodeGetDatabaseTaskLogRequest

func EncodeGetDatabaseTaskLogRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeGetDatabaseTaskLogRequest returns an encoder for requests sent to the control-plane get-database-task-log server.

func EncodeGetJoinOptionsRequest

func EncodeGetJoinOptionsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeGetJoinOptionsRequest returns an encoder for requests sent to the control-plane get-join-options server.

func EncodeInitClusterRequest

func EncodeInitClusterRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeInitClusterRequest returns an encoder for requests sent to the control-plane init-cluster server.

func EncodeJoinClusterRequest

func EncodeJoinClusterRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeJoinClusterRequest returns an encoder for requests sent to the control-plane join-cluster server.

func EncodeListDatabaseTasksRequest

func EncodeListDatabaseTasksRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeListDatabaseTasksRequest returns an encoder for requests sent to the control-plane list-database-tasks server.

func EncodeRemoveHostRequest added in v0.6.0

func EncodeRemoveHostRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeRemoveHostRequest returns an encoder for requests sent to the control-plane remove-host server.

func EncodeRestartInstanceRequest

func EncodeRestartInstanceRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeRestartInstanceRequest returns an encoder for requests sent to the control-plane restart-instance server.

func EncodeRestoreDatabaseRequest

func EncodeRestoreDatabaseRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeRestoreDatabaseRequest returns an encoder for requests sent to the control-plane restore-database server.

func EncodeStartInstanceRequest

func EncodeStartInstanceRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeStartInstanceRequest returns an encoder for requests sent to the control-plane start-instance server.

func EncodeStopInstanceRequest

func EncodeStopInstanceRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeStopInstanceRequest returns an encoder for requests sent to the control-plane stop-instance server.

func EncodeSwitchoverDatabaseNodeRequest

func EncodeSwitchoverDatabaseNodeRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeSwitchoverDatabaseNodeRequest returns an encoder for requests sent to the control-plane switchover-database-node server.

func EncodeUpdateDatabaseRequest

func EncodeUpdateDatabaseRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeUpdateDatabaseRequest returns an encoder for requests sent to the control-plane update-database server.

func FailoverDatabaseNodeControlPlanePath

func FailoverDatabaseNodeControlPlanePath(databaseID string, nodeName string) string

FailoverDatabaseNodeControlPlanePath returns the URL path to the control-plane service failover-database-node HTTP endpoint.

func GetClusterControlPlanePath

func GetClusterControlPlanePath() string

GetClusterControlPlanePath returns the URL path to the control-plane service get-cluster HTTP endpoint.

func GetDatabaseControlPlanePath

func GetDatabaseControlPlanePath(databaseID string) string

GetDatabaseControlPlanePath returns the URL path to the control-plane service get-database HTTP endpoint.

func GetDatabaseTaskControlPlanePath

func GetDatabaseTaskControlPlanePath(databaseID string, taskID string) string

GetDatabaseTaskControlPlanePath returns the URL path to the control-plane service get-database-task HTTP endpoint.

func GetDatabaseTaskLogControlPlanePath

func GetDatabaseTaskLogControlPlanePath(databaseID string, taskID string) string

GetDatabaseTaskLogControlPlanePath returns the URL path to the control-plane service get-database-task-log HTTP endpoint.

func GetHostControlPlanePath

func GetHostControlPlanePath(hostID string) string

GetHostControlPlanePath returns the URL path to the control-plane service get-host HTTP endpoint.

func GetJoinOptionsControlPlanePath

func GetJoinOptionsControlPlanePath() string

GetJoinOptionsControlPlanePath returns the URL path to the control-plane service get-join-options HTTP endpoint.

func GetJoinTokenControlPlanePath

func GetJoinTokenControlPlanePath() string

GetJoinTokenControlPlanePath returns the URL path to the control-plane service get-join-token HTTP endpoint.

func GetVersionControlPlanePath

func GetVersionControlPlanePath() string

GetVersionControlPlanePath returns the URL path to the control-plane service get-version HTTP endpoint.

func InitClusterControlPlanePath

func InitClusterControlPlanePath() string

InitClusterControlPlanePath returns the URL path to the control-plane service init-cluster HTTP endpoint.

func JoinClusterControlPlanePath

func JoinClusterControlPlanePath() string

JoinClusterControlPlanePath returns the URL path to the control-plane service join-cluster HTTP endpoint.

func ListDatabaseTasksControlPlanePath

func ListDatabaseTasksControlPlanePath(databaseID string) string

ListDatabaseTasksControlPlanePath returns the URL path to the control-plane service list-database-tasks HTTP endpoint.

func ListDatabasesControlPlanePath

func ListDatabasesControlPlanePath() string

ListDatabasesControlPlanePath returns the URL path to the control-plane service list-databases HTTP endpoint.

func ListHostsControlPlanePath

func ListHostsControlPlanePath() string

ListHostsControlPlanePath returns the URL path to the control-plane service list-hosts HTTP endpoint.

func NewBackupDatabaseNodeClusterNotInitialized

func NewBackupDatabaseNodeClusterNotInitialized(body *BackupDatabaseNodeClusterNotInitializedResponseBody) *controlplane.APIError

NewBackupDatabaseNodeClusterNotInitialized builds a control-plane service backup-database-node endpoint cluster_not_initialized error.

func NewBackupDatabaseNodeDatabaseNotModifiable

func NewBackupDatabaseNodeDatabaseNotModifiable(body *BackupDatabaseNodeDatabaseNotModifiableResponseBody) *controlplane.APIError

NewBackupDatabaseNodeDatabaseNotModifiable builds a control-plane service backup-database-node endpoint database_not_modifiable error.

func NewBackupDatabaseNodeInvalidInput

func NewBackupDatabaseNodeInvalidInput(body *BackupDatabaseNodeInvalidInputResponseBody) *controlplane.APIError

NewBackupDatabaseNodeInvalidInput builds a control-plane service backup-database-node endpoint invalid_input error.

func NewBackupDatabaseNodeNotFound

func NewBackupDatabaseNodeNotFound(body *BackupDatabaseNodeNotFoundResponseBody) *controlplane.APIError

NewBackupDatabaseNodeNotFound builds a control-plane service backup-database-node endpoint not_found error.

func NewBackupDatabaseNodeOperationAlreadyInProgress

func NewBackupDatabaseNodeOperationAlreadyInProgress(body *BackupDatabaseNodeOperationAlreadyInProgressResponseBody) *controlplane.APIError

NewBackupDatabaseNodeOperationAlreadyInProgress builds a control-plane service backup-database-node endpoint operation_already_in_progress error.

func NewBackupDatabaseNodeResponseOK

func NewBackupDatabaseNodeResponseOK(body *BackupDatabaseNodeResponseBody) *controlplane.BackupDatabaseNodeResponse

NewBackupDatabaseNodeResponseOK builds a "control-plane" service "backup-database-node" endpoint result from a HTTP "OK" response.

func NewBackupDatabaseNodeServerError

func NewBackupDatabaseNodeServerError(body *BackupDatabaseNodeServerErrorResponseBody) *controlplane.APIError

NewBackupDatabaseNodeServerError builds a control-plane service backup-database-node endpoint server_error error.

func NewCancelDatabaseTaskInvalidInput

func NewCancelDatabaseTaskInvalidInput(body *CancelDatabaseTaskInvalidInputResponseBody) *controlplane.APIError

NewCancelDatabaseTaskInvalidInput builds a control-plane service cancel-database-task endpoint invalid_input error.

func NewCancelDatabaseTaskNotFound

func NewCancelDatabaseTaskNotFound(body *CancelDatabaseTaskNotFoundResponseBody) *controlplane.APIError

NewCancelDatabaseTaskNotFound builds a control-plane service cancel-database-task endpoint not_found error.

func NewCancelDatabaseTaskServerError

func NewCancelDatabaseTaskServerError(body *CancelDatabaseTaskServerErrorResponseBody) *controlplane.APIError

NewCancelDatabaseTaskServerError builds a control-plane service cancel-database-task endpoint server_error error.

func NewCancelDatabaseTaskTaskOK

func NewCancelDatabaseTaskTaskOK(body *CancelDatabaseTaskResponseBody) *controlplane.Task

NewCancelDatabaseTaskTaskOK builds a "control-plane" service "cancel-database-task" endpoint result from a HTTP "OK" response.

func NewCreateDatabaseClusterNotInitialized

func NewCreateDatabaseClusterNotInitialized(body *CreateDatabaseClusterNotInitializedResponseBody) *controlplane.APIError

NewCreateDatabaseClusterNotInitialized builds a control-plane service create-database endpoint cluster_not_initialized error.

func NewCreateDatabaseDatabaseAlreadyExists

func NewCreateDatabaseDatabaseAlreadyExists(body *CreateDatabaseDatabaseAlreadyExistsResponseBody) *controlplane.APIError

NewCreateDatabaseDatabaseAlreadyExists builds a control-plane service create-database endpoint database_already_exists error.

func NewCreateDatabaseInvalidInput

func NewCreateDatabaseInvalidInput(body *CreateDatabaseInvalidInputResponseBody) *controlplane.APIError

NewCreateDatabaseInvalidInput builds a control-plane service create-database endpoint invalid_input error.

func NewCreateDatabaseOperationAlreadyInProgress

func NewCreateDatabaseOperationAlreadyInProgress(body *CreateDatabaseOperationAlreadyInProgressResponseBody) *controlplane.APIError

NewCreateDatabaseOperationAlreadyInProgress builds a control-plane service create-database endpoint operation_already_in_progress error.

func NewCreateDatabaseResponseOK

func NewCreateDatabaseResponseOK(body *CreateDatabaseResponseBody) *controlplane.CreateDatabaseResponse

NewCreateDatabaseResponseOK builds a "control-plane" service "create-database" endpoint result from a HTTP "OK" response.

func NewCreateDatabaseServerError

func NewCreateDatabaseServerError(body *CreateDatabaseServerErrorResponseBody) *controlplane.APIError

NewCreateDatabaseServerError builds a control-plane service create-database endpoint server_error error.

func NewDeleteDatabaseClusterNotInitialized

func NewDeleteDatabaseClusterNotInitialized(body *DeleteDatabaseClusterNotInitializedResponseBody) *controlplane.APIError

NewDeleteDatabaseClusterNotInitialized builds a control-plane service delete-database endpoint cluster_not_initialized error.

func NewDeleteDatabaseDatabaseNotModifiable

func NewDeleteDatabaseDatabaseNotModifiable(body *DeleteDatabaseDatabaseNotModifiableResponseBody) *controlplane.APIError

NewDeleteDatabaseDatabaseNotModifiable builds a control-plane service delete-database endpoint database_not_modifiable error.

func NewDeleteDatabaseInvalidInput

func NewDeleteDatabaseInvalidInput(body *DeleteDatabaseInvalidInputResponseBody) *controlplane.APIError

NewDeleteDatabaseInvalidInput builds a control-plane service delete-database endpoint invalid_input error.

func NewDeleteDatabaseNotFound

func NewDeleteDatabaseNotFound(body *DeleteDatabaseNotFoundResponseBody) *controlplane.APIError

NewDeleteDatabaseNotFound builds a control-plane service delete-database endpoint not_found error.

func NewDeleteDatabaseOperationAlreadyInProgress

func NewDeleteDatabaseOperationAlreadyInProgress(body *DeleteDatabaseOperationAlreadyInProgressResponseBody) *controlplane.APIError

NewDeleteDatabaseOperationAlreadyInProgress builds a control-plane service delete-database endpoint operation_already_in_progress error.

func NewDeleteDatabaseResponseOK

func NewDeleteDatabaseResponseOK(body *DeleteDatabaseResponseBody) *controlplane.DeleteDatabaseResponse

NewDeleteDatabaseResponseOK builds a "control-plane" service "delete-database" endpoint result from a HTTP "OK" response.

func NewDeleteDatabaseServerError

func NewDeleteDatabaseServerError(body *DeleteDatabaseServerErrorResponseBody) *controlplane.APIError

NewDeleteDatabaseServerError builds a control-plane service delete-database endpoint server_error error.

func NewFailoverDatabaseNodeClusterNotInitialized

func NewFailoverDatabaseNodeClusterNotInitialized(body *FailoverDatabaseNodeClusterNotInitializedResponseBody) *controlplane.APIError

NewFailoverDatabaseNodeClusterNotInitialized builds a control-plane service failover-database-node endpoint cluster_not_initialized error.

func NewFailoverDatabaseNodeDatabaseNotModifiable

func NewFailoverDatabaseNodeDatabaseNotModifiable(body *FailoverDatabaseNodeDatabaseNotModifiableResponseBody) *controlplane.APIError

NewFailoverDatabaseNodeDatabaseNotModifiable builds a control-plane service failover-database-node endpoint database_not_modifiable error.

func NewFailoverDatabaseNodeInvalidInput

func NewFailoverDatabaseNodeInvalidInput(body *FailoverDatabaseNodeInvalidInputResponseBody) *controlplane.APIError

NewFailoverDatabaseNodeInvalidInput builds a control-plane service failover-database-node endpoint invalid_input error.

func NewFailoverDatabaseNodeNotFound

func NewFailoverDatabaseNodeNotFound(body *FailoverDatabaseNodeNotFoundResponseBody) *controlplane.APIError

NewFailoverDatabaseNodeNotFound builds a control-plane service failover-database-node endpoint not_found error.

func NewFailoverDatabaseNodeOperationAlreadyInProgress

func NewFailoverDatabaseNodeOperationAlreadyInProgress(body *FailoverDatabaseNodeOperationAlreadyInProgressResponseBody) *controlplane.APIError

NewFailoverDatabaseNodeOperationAlreadyInProgress builds a control-plane service failover-database-node endpoint operation_already_in_progress error.

func NewFailoverDatabaseNodeResponseOK

func NewFailoverDatabaseNodeResponseOK(body *FailoverDatabaseNodeResponseBody) *controlplane.FailoverDatabaseNodeResponse

NewFailoverDatabaseNodeResponseOK builds a "control-plane" service "failover-database-node" endpoint result from a HTTP "OK" response.

func NewFailoverDatabaseNodeServerError

func NewFailoverDatabaseNodeServerError(body *FailoverDatabaseNodeServerErrorResponseBody) *controlplane.APIError

NewFailoverDatabaseNodeServerError builds a control-plane service failover-database-node endpoint server_error error.

func NewGetClusterClusterNotInitialized

func NewGetClusterClusterNotInitialized(body *GetClusterClusterNotInitializedResponseBody) *controlplane.APIError

NewGetClusterClusterNotInitialized builds a control-plane service get-cluster endpoint cluster_not_initialized error.

func NewGetClusterClusterOK

func NewGetClusterClusterOK(body *GetClusterResponseBody) *controlplane.Cluster

NewGetClusterClusterOK builds a "control-plane" service "get-cluster" endpoint result from a HTTP "OK" response.

func NewGetClusterServerError

func NewGetClusterServerError(body *GetClusterServerErrorResponseBody) *controlplane.APIError

NewGetClusterServerError builds a control-plane service get-cluster endpoint server_error error.

func NewGetDatabaseClusterNotInitialized

func NewGetDatabaseClusterNotInitialized(body *GetDatabaseClusterNotInitializedResponseBody) *controlplane.APIError

NewGetDatabaseClusterNotInitialized builds a control-plane service get-database endpoint cluster_not_initialized error.

func NewGetDatabaseDatabaseOK

func NewGetDatabaseDatabaseOK(body *GetDatabaseResponseBody) *controlplaneviews.DatabaseView

NewGetDatabaseDatabaseOK builds a "control-plane" service "get-database" endpoint result from a HTTP "OK" response.

func NewGetDatabaseInvalidInput

func NewGetDatabaseInvalidInput(body *GetDatabaseInvalidInputResponseBody) *controlplane.APIError

NewGetDatabaseInvalidInput builds a control-plane service get-database endpoint invalid_input error.

func NewGetDatabaseNotFound

func NewGetDatabaseNotFound(body *GetDatabaseNotFoundResponseBody) *controlplane.APIError

NewGetDatabaseNotFound builds a control-plane service get-database endpoint not_found error.

func NewGetDatabaseServerError

func NewGetDatabaseServerError(body *GetDatabaseServerErrorResponseBody) *controlplane.APIError

NewGetDatabaseServerError builds a control-plane service get-database endpoint server_error error.

func NewGetDatabaseTaskClusterNotInitialized

func NewGetDatabaseTaskClusterNotInitialized(body *GetDatabaseTaskClusterNotInitializedResponseBody) *controlplane.APIError

NewGetDatabaseTaskClusterNotInitialized builds a control-plane service get-database-task endpoint cluster_not_initialized error.

func NewGetDatabaseTaskInvalidInput

func NewGetDatabaseTaskInvalidInput(body *GetDatabaseTaskInvalidInputResponseBody) *controlplane.APIError

NewGetDatabaseTaskInvalidInput builds a control-plane service get-database-task endpoint invalid_input error.

func NewGetDatabaseTaskLogClusterNotInitialized

func NewGetDatabaseTaskLogClusterNotInitialized(body *GetDatabaseTaskLogClusterNotInitializedResponseBody) *controlplane.APIError

NewGetDatabaseTaskLogClusterNotInitialized builds a control-plane service get-database-task-log endpoint cluster_not_initialized error.

func NewGetDatabaseTaskLogInvalidInput

func NewGetDatabaseTaskLogInvalidInput(body *GetDatabaseTaskLogInvalidInputResponseBody) *controlplane.APIError

NewGetDatabaseTaskLogInvalidInput builds a control-plane service get-database-task-log endpoint invalid_input error.

func NewGetDatabaseTaskLogNotFound

func NewGetDatabaseTaskLogNotFound(body *GetDatabaseTaskLogNotFoundResponseBody) *controlplane.APIError

NewGetDatabaseTaskLogNotFound builds a control-plane service get-database-task-log endpoint not_found error.

func NewGetDatabaseTaskLogServerError

func NewGetDatabaseTaskLogServerError(body *GetDatabaseTaskLogServerErrorResponseBody) *controlplane.APIError

NewGetDatabaseTaskLogServerError builds a control-plane service get-database-task-log endpoint server_error error.

func NewGetDatabaseTaskLogTaskLogOK

func NewGetDatabaseTaskLogTaskLogOK(body *GetDatabaseTaskLogResponseBody) *controlplane.TaskLog

NewGetDatabaseTaskLogTaskLogOK builds a "control-plane" service "get-database-task-log" endpoint result from a HTTP "OK" response.

func NewGetDatabaseTaskNotFound

func NewGetDatabaseTaskNotFound(body *GetDatabaseTaskNotFoundResponseBody) *controlplane.APIError

NewGetDatabaseTaskNotFound builds a control-plane service get-database-task endpoint not_found error.

func NewGetDatabaseTaskServerError

func NewGetDatabaseTaskServerError(body *GetDatabaseTaskServerErrorResponseBody) *controlplane.APIError

NewGetDatabaseTaskServerError builds a control-plane service get-database-task endpoint server_error error.

func NewGetDatabaseTaskTaskOK

func NewGetDatabaseTaskTaskOK(body *GetDatabaseTaskResponseBody) *controlplane.Task

NewGetDatabaseTaskTaskOK builds a "control-plane" service "get-database-task" endpoint result from a HTTP "OK" response.

func NewGetHostClusterNotInitialized

func NewGetHostClusterNotInitialized(body *GetHostClusterNotInitializedResponseBody) *controlplane.APIError

NewGetHostClusterNotInitialized builds a control-plane service get-host endpoint cluster_not_initialized error.

func NewGetHostHostOK

func NewGetHostHostOK(body *GetHostResponseBody) *controlplane.Host

NewGetHostHostOK builds a "control-plane" service "get-host" endpoint result from a HTTP "OK" response.

func NewGetHostInvalidInput

func NewGetHostInvalidInput(body *GetHostInvalidInputResponseBody) *controlplane.APIError

NewGetHostInvalidInput builds a control-plane service get-host endpoint invalid_input error.

func NewGetHostNotFound

func NewGetHostNotFound(body *GetHostNotFoundResponseBody) *controlplane.APIError

NewGetHostNotFound builds a control-plane service get-host endpoint not_found error.

func NewGetHostServerError

func NewGetHostServerError(body *GetHostServerErrorResponseBody) *controlplane.APIError

NewGetHostServerError builds a control-plane service get-host endpoint server_error error.

func NewGetJoinOptionsClusterJoinOptionsOK

func NewGetJoinOptionsClusterJoinOptionsOK(body *GetJoinOptionsResponseBody) *controlplane.ClusterJoinOptions

NewGetJoinOptionsClusterJoinOptionsOK builds a "control-plane" service "get-join-options" endpoint result from a HTTP "OK" response.

func NewGetJoinOptionsClusterNotInitialized

func NewGetJoinOptionsClusterNotInitialized(body *GetJoinOptionsClusterNotInitializedResponseBody) *controlplane.APIError

NewGetJoinOptionsClusterNotInitialized builds a control-plane service get-join-options endpoint cluster_not_initialized error.

func NewGetJoinOptionsInvalidInput added in v0.6.0

func NewGetJoinOptionsInvalidInput(body *GetJoinOptionsInvalidInputResponseBody) *controlplane.APIError

NewGetJoinOptionsInvalidInput builds a control-plane service get-join-options endpoint invalid_input error.

func NewGetJoinOptionsInvalidJoinToken

func NewGetJoinOptionsInvalidJoinToken(body *GetJoinOptionsInvalidJoinTokenResponseBody) *controlplane.APIError

NewGetJoinOptionsInvalidJoinToken builds a control-plane service get-join-options endpoint invalid_join_token error.

func NewGetJoinOptionsServerError

func NewGetJoinOptionsServerError(body *GetJoinOptionsServerErrorResponseBody) *controlplane.APIError

NewGetJoinOptionsServerError builds a control-plane service get-join-options endpoint server_error error.

func NewGetJoinTokenClusterJoinTokenOK

func NewGetJoinTokenClusterJoinTokenOK(body *GetJoinTokenResponseBody) *controlplane.ClusterJoinToken

NewGetJoinTokenClusterJoinTokenOK builds a "control-plane" service "get-join-token" endpoint result from a HTTP "OK" response.

func NewGetJoinTokenClusterNotInitialized

func NewGetJoinTokenClusterNotInitialized(body *GetJoinTokenClusterNotInitializedResponseBody) *controlplane.APIError

NewGetJoinTokenClusterNotInitialized builds a control-plane service get-join-token endpoint cluster_not_initialized error.

func NewGetJoinTokenServerError

func NewGetJoinTokenServerError(body *GetJoinTokenServerErrorResponseBody) *controlplane.APIError

NewGetJoinTokenServerError builds a control-plane service get-join-token endpoint server_error error.

func NewGetVersionServerError

func NewGetVersionServerError(body *GetVersionServerErrorResponseBody) *controlplane.APIError

NewGetVersionServerError builds a control-plane service get-version endpoint server_error error.

func NewGetVersionVersionInfoOK

func NewGetVersionVersionInfoOK(body *GetVersionResponseBody) *controlplane.VersionInfo

NewGetVersionVersionInfoOK builds a "control-plane" service "get-version" endpoint result from a HTTP "OK" response.

func NewInitClusterClusterAlreadyInitialized

func NewInitClusterClusterAlreadyInitialized(body *InitClusterClusterAlreadyInitializedResponseBody) *controlplane.APIError

NewInitClusterClusterAlreadyInitialized builds a control-plane service init-cluster endpoint cluster_already_initialized error.

func NewInitClusterClusterJoinTokenOK

func NewInitClusterClusterJoinTokenOK(body *InitClusterResponseBody) *controlplane.ClusterJoinToken

NewInitClusterClusterJoinTokenOK builds a "control-plane" service "init-cluster" endpoint result from a HTTP "OK" response.

func NewInitClusterOperationNotSupported

func NewInitClusterOperationNotSupported(body *InitClusterOperationNotSupportedResponseBody) *controlplane.APIError

NewInitClusterOperationNotSupported builds a control-plane service init-cluster endpoint operation_not_supported error.

func NewInitClusterServerError

func NewInitClusterServerError(body *InitClusterServerErrorResponseBody) *controlplane.APIError

NewInitClusterServerError builds a control-plane service init-cluster endpoint server_error error.

func NewJoinClusterClusterAlreadyInitialized

func NewJoinClusterClusterAlreadyInitialized(body *JoinClusterClusterAlreadyInitializedResponseBody) *controlplane.APIError

NewJoinClusterClusterAlreadyInitialized builds a control-plane service join-cluster endpoint cluster_already_initialized error.

func NewJoinClusterInvalidInput added in v0.6.0

func NewJoinClusterInvalidInput(body *JoinClusterInvalidInputResponseBody) *controlplane.APIError

NewJoinClusterInvalidInput builds a control-plane service join-cluster endpoint invalid_input error.

func NewJoinClusterInvalidJoinToken

func NewJoinClusterInvalidJoinToken(body *JoinClusterInvalidJoinTokenResponseBody) *controlplane.APIError

NewJoinClusterInvalidJoinToken builds a control-plane service join-cluster endpoint invalid_join_token error.

func NewJoinClusterServerError

func NewJoinClusterServerError(body *JoinClusterServerErrorResponseBody) *controlplane.APIError

NewJoinClusterServerError builds a control-plane service join-cluster endpoint server_error error.

func NewListDatabaseTasksClusterNotInitialized

func NewListDatabaseTasksClusterNotInitialized(body *ListDatabaseTasksClusterNotInitializedResponseBody) *controlplane.APIError

NewListDatabaseTasksClusterNotInitialized builds a control-plane service list-database-tasks endpoint cluster_not_initialized error.

func NewListDatabaseTasksInvalidInput

func NewListDatabaseTasksInvalidInput(body *ListDatabaseTasksInvalidInputResponseBody) *controlplane.APIError

NewListDatabaseTasksInvalidInput builds a control-plane service list-database-tasks endpoint invalid_input error.

func NewListDatabaseTasksNotFound

func NewListDatabaseTasksNotFound(body *ListDatabaseTasksNotFoundResponseBody) *controlplane.APIError

NewListDatabaseTasksNotFound builds a control-plane service list-database-tasks endpoint not_found error.

func NewListDatabaseTasksResponseOK

func NewListDatabaseTasksResponseOK(body *ListDatabaseTasksResponseBody) *controlplane.ListDatabaseTasksResponse

NewListDatabaseTasksResponseOK builds a "control-plane" service "list-database-tasks" endpoint result from a HTTP "OK" response.

func NewListDatabaseTasksServerError

func NewListDatabaseTasksServerError(body *ListDatabaseTasksServerErrorResponseBody) *controlplane.APIError

NewListDatabaseTasksServerError builds a control-plane service list-database-tasks endpoint server_error error.

func NewListDatabasesClusterNotInitialized

func NewListDatabasesClusterNotInitialized(body *ListDatabasesClusterNotInitializedResponseBody) *controlplane.APIError

NewListDatabasesClusterNotInitialized builds a control-plane service list-databases endpoint cluster_not_initialized error.

func NewListDatabasesResponseViewOK

func NewListDatabasesResponseViewOK(body *ListDatabasesResponseBody) *controlplaneviews.ListDatabasesResponseView

NewListDatabasesResponseViewOK builds a "control-plane" service "list-databases" endpoint result from a HTTP "OK" response.

func NewListDatabasesServerError

func NewListDatabasesServerError(body *ListDatabasesServerErrorResponseBody) *controlplane.APIError

NewListDatabasesServerError builds a control-plane service list-databases endpoint server_error error.

func NewListHostsClusterNotInitialized

func NewListHostsClusterNotInitialized(body *ListHostsClusterNotInitializedResponseBody) *controlplane.APIError

NewListHostsClusterNotInitialized builds a control-plane service list-hosts endpoint cluster_not_initialized error.

func NewListHostsResponseOK

func NewListHostsResponseOK(body *ListHostsResponseBody) *controlplane.ListHostsResponse

NewListHostsResponseOK builds a "control-plane" service "list-hosts" endpoint result from a HTTP "OK" response.

func NewListHostsServerError

func NewListHostsServerError(body *ListHostsServerErrorResponseBody) *controlplane.APIError

NewListHostsServerError builds a control-plane service list-hosts endpoint server_error error.

func NewRemoveHostClusterNotInitialized

func NewRemoveHostClusterNotInitialized(body *RemoveHostClusterNotInitializedResponseBody) *controlplane.APIError

NewRemoveHostClusterNotInitialized builds a control-plane service remove-host endpoint cluster_not_initialized error.

func NewRemoveHostInvalidInput

func NewRemoveHostInvalidInput(body *RemoveHostInvalidInputResponseBody) *controlplane.APIError

NewRemoveHostInvalidInput builds a control-plane service remove-host endpoint invalid_input error.

func NewRemoveHostNotFound

func NewRemoveHostNotFound(body *RemoveHostNotFoundResponseBody) *controlplane.APIError

NewRemoveHostNotFound builds a control-plane service remove-host endpoint not_found error.

func NewRemoveHostResponseOK added in v0.6.0

func NewRemoveHostResponseOK(body *RemoveHostResponseBody) *controlplane.RemoveHostResponse

NewRemoveHostResponseOK builds a "control-plane" service "remove-host" endpoint result from a HTTP "OK" response.

func NewRemoveHostServerError

func NewRemoveHostServerError(body *RemoveHostServerErrorResponseBody) *controlplane.APIError

NewRemoveHostServerError builds a control-plane service remove-host endpoint server_error error.

func NewRestartInstanceClusterNotInitialized

func NewRestartInstanceClusterNotInitialized(body *RestartInstanceClusterNotInitializedResponseBody) *controlplane.APIError

NewRestartInstanceClusterNotInitialized builds a control-plane service restart-instance endpoint cluster_not_initialized error.

func NewRestartInstanceInvalidInput

func NewRestartInstanceInvalidInput(body *RestartInstanceInvalidInputResponseBody) *controlplane.APIError

NewRestartInstanceInvalidInput builds a control-plane service restart-instance endpoint invalid_input error.

func NewRestartInstanceNotFound

func NewRestartInstanceNotFound(body *RestartInstanceNotFoundResponseBody) *controlplane.APIError

NewRestartInstanceNotFound builds a control-plane service restart-instance endpoint not_found error.

func NewRestartInstanceResponseOK

func NewRestartInstanceResponseOK(body *RestartInstanceResponseBody) *controlplane.RestartInstanceResponse

NewRestartInstanceResponseOK builds a "control-plane" service "restart-instance" endpoint result from a HTTP "OK" response.

func NewRestartInstanceServerError

func NewRestartInstanceServerError(body *RestartInstanceServerErrorResponseBody) *controlplane.APIError

NewRestartInstanceServerError builds a control-plane service restart-instance endpoint server_error error.

func NewRestoreDatabaseClusterNotInitialized

func NewRestoreDatabaseClusterNotInitialized(body *RestoreDatabaseClusterNotInitializedResponseBody) *controlplane.APIError

NewRestoreDatabaseClusterNotInitialized builds a control-plane service restore-database endpoint cluster_not_initialized error.

func NewRestoreDatabaseDatabaseNotModifiable

func NewRestoreDatabaseDatabaseNotModifiable(body *RestoreDatabaseDatabaseNotModifiableResponseBody) *controlplane.APIError

NewRestoreDatabaseDatabaseNotModifiable builds a control-plane service restore-database endpoint database_not_modifiable error.

func NewRestoreDatabaseInvalidInput

func NewRestoreDatabaseInvalidInput(body *RestoreDatabaseInvalidInputResponseBody) *controlplane.APIError

NewRestoreDatabaseInvalidInput builds a control-plane service restore-database endpoint invalid_input error.

func NewRestoreDatabaseNotFound

func NewRestoreDatabaseNotFound(body *RestoreDatabaseNotFoundResponseBody) *controlplane.APIError

NewRestoreDatabaseNotFound builds a control-plane service restore-database endpoint not_found error.

func NewRestoreDatabaseOperationAlreadyInProgress

func NewRestoreDatabaseOperationAlreadyInProgress(body *RestoreDatabaseOperationAlreadyInProgressResponseBody) *controlplane.APIError

NewRestoreDatabaseOperationAlreadyInProgress builds a control-plane service restore-database endpoint operation_already_in_progress error.

func NewRestoreDatabaseResponseOK

func NewRestoreDatabaseResponseOK(body *RestoreDatabaseResponseBody) *controlplane.RestoreDatabaseResponse

NewRestoreDatabaseResponseOK builds a "control-plane" service "restore-database" endpoint result from a HTTP "OK" response.

func NewRestoreDatabaseServerError

func NewRestoreDatabaseServerError(body *RestoreDatabaseServerErrorResponseBody) *controlplane.APIError

NewRestoreDatabaseServerError builds a control-plane service restore-database endpoint server_error error.

func NewStartInstanceClusterNotInitialized

func NewStartInstanceClusterNotInitialized(body *StartInstanceClusterNotInitializedResponseBody) *controlplane.APIError

NewStartInstanceClusterNotInitialized builds a control-plane service start-instance endpoint cluster_not_initialized error.

func NewStartInstanceInvalidInput

func NewStartInstanceInvalidInput(body *StartInstanceInvalidInputResponseBody) *controlplane.APIError

NewStartInstanceInvalidInput builds a control-plane service start-instance endpoint invalid_input error.

func NewStartInstanceNotFound

func NewStartInstanceNotFound(body *StartInstanceNotFoundResponseBody) *controlplane.APIError

NewStartInstanceNotFound builds a control-plane service start-instance endpoint not_found error.

func NewStartInstanceResponseOK

func NewStartInstanceResponseOK(body *StartInstanceResponseBody) *controlplane.StartInstanceResponse

NewStartInstanceResponseOK builds a "control-plane" service "start-instance" endpoint result from a HTTP "OK" response.

func NewStartInstanceServerError

func NewStartInstanceServerError(body *StartInstanceServerErrorResponseBody) *controlplane.APIError

NewStartInstanceServerError builds a control-plane service start-instance endpoint server_error error.

func NewStopInstanceClusterNotInitialized

func NewStopInstanceClusterNotInitialized(body *StopInstanceClusterNotInitializedResponseBody) *controlplane.APIError

NewStopInstanceClusterNotInitialized builds a control-plane service stop-instance endpoint cluster_not_initialized error.

func NewStopInstanceInvalidInput

func NewStopInstanceInvalidInput(body *StopInstanceInvalidInputResponseBody) *controlplane.APIError

NewStopInstanceInvalidInput builds a control-plane service stop-instance endpoint invalid_input error.

func NewStopInstanceNotFound

func NewStopInstanceNotFound(body *StopInstanceNotFoundResponseBody) *controlplane.APIError

NewStopInstanceNotFound builds a control-plane service stop-instance endpoint not_found error.

func NewStopInstanceResponseOK

func NewStopInstanceResponseOK(body *StopInstanceResponseBody) *controlplane.StopInstanceResponse

NewStopInstanceResponseOK builds a "control-plane" service "stop-instance" endpoint result from a HTTP "OK" response.

func NewStopInstanceServerError

func NewStopInstanceServerError(body *StopInstanceServerErrorResponseBody) *controlplane.APIError

NewStopInstanceServerError builds a control-plane service stop-instance endpoint server_error error.

func NewSwitchoverDatabaseNodeClusterNotInitialized

func NewSwitchoverDatabaseNodeClusterNotInitialized(body *SwitchoverDatabaseNodeClusterNotInitializedResponseBody) *controlplane.APIError

NewSwitchoverDatabaseNodeClusterNotInitialized builds a control-plane service switchover-database-node endpoint cluster_not_initialized error.

func NewSwitchoverDatabaseNodeDatabaseNotModifiable

func NewSwitchoverDatabaseNodeDatabaseNotModifiable(body *SwitchoverDatabaseNodeDatabaseNotModifiableResponseBody) *controlplane.APIError

NewSwitchoverDatabaseNodeDatabaseNotModifiable builds a control-plane service switchover-database-node endpoint database_not_modifiable error.

func NewSwitchoverDatabaseNodeInvalidInput

func NewSwitchoverDatabaseNodeInvalidInput(body *SwitchoverDatabaseNodeInvalidInputResponseBody) *controlplane.APIError

NewSwitchoverDatabaseNodeInvalidInput builds a control-plane service switchover-database-node endpoint invalid_input error.

func NewSwitchoverDatabaseNodeNotFound

func NewSwitchoverDatabaseNodeNotFound(body *SwitchoverDatabaseNodeNotFoundResponseBody) *controlplane.APIError

NewSwitchoverDatabaseNodeNotFound builds a control-plane service switchover-database-node endpoint not_found error.

func NewSwitchoverDatabaseNodeOperationAlreadyInProgress

func NewSwitchoverDatabaseNodeOperationAlreadyInProgress(body *SwitchoverDatabaseNodeOperationAlreadyInProgressResponseBody) *controlplane.APIError

NewSwitchoverDatabaseNodeOperationAlreadyInProgress builds a control-plane service switchover-database-node endpoint operation_already_in_progress error.

func NewSwitchoverDatabaseNodeResponseOK

func NewSwitchoverDatabaseNodeResponseOK(body *SwitchoverDatabaseNodeResponseBody) *controlplane.SwitchoverDatabaseNodeResponse

NewSwitchoverDatabaseNodeResponseOK builds a "control-plane" service "switchover-database-node" endpoint result from a HTTP "OK" response.

func NewSwitchoverDatabaseNodeServerError

func NewSwitchoverDatabaseNodeServerError(body *SwitchoverDatabaseNodeServerErrorResponseBody) *controlplane.APIError

NewSwitchoverDatabaseNodeServerError builds a control-plane service switchover-database-node endpoint server_error error.

func NewUpdateDatabaseClusterNotInitialized

func NewUpdateDatabaseClusterNotInitialized(body *UpdateDatabaseClusterNotInitializedResponseBody) *controlplane.APIError

NewUpdateDatabaseClusterNotInitialized builds a control-plane service update-database endpoint cluster_not_initialized error.

func NewUpdateDatabaseDatabaseNotModifiable

func NewUpdateDatabaseDatabaseNotModifiable(body *UpdateDatabaseDatabaseNotModifiableResponseBody) *controlplane.APIError

NewUpdateDatabaseDatabaseNotModifiable builds a control-plane service update-database endpoint database_not_modifiable error.

func NewUpdateDatabaseInvalidInput

func NewUpdateDatabaseInvalidInput(body *UpdateDatabaseInvalidInputResponseBody) *controlplane.APIError

NewUpdateDatabaseInvalidInput builds a control-plane service update-database endpoint invalid_input error.

func NewUpdateDatabaseNotFound

func NewUpdateDatabaseNotFound(body *UpdateDatabaseNotFoundResponseBody) *controlplane.APIError

NewUpdateDatabaseNotFound builds a control-plane service update-database endpoint not_found error.

func NewUpdateDatabaseOperationAlreadyInProgress

func NewUpdateDatabaseOperationAlreadyInProgress(body *UpdateDatabaseOperationAlreadyInProgressResponseBody) *controlplane.APIError

NewUpdateDatabaseOperationAlreadyInProgress builds a control-plane service update-database endpoint operation_already_in_progress error.

func NewUpdateDatabaseResponseOK

func NewUpdateDatabaseResponseOK(body *UpdateDatabaseResponseBody) *controlplane.UpdateDatabaseResponse

NewUpdateDatabaseResponseOK builds a "control-plane" service "update-database" endpoint result from a HTTP "OK" response.

func NewUpdateDatabaseServerError

func NewUpdateDatabaseServerError(body *UpdateDatabaseServerErrorResponseBody) *controlplane.APIError

NewUpdateDatabaseServerError builds a control-plane service update-database endpoint server_error error.

func RemoveHostControlPlanePath

func RemoveHostControlPlanePath(hostID string) string

RemoveHostControlPlanePath returns the URL path to the control-plane service remove-host HTTP endpoint.

func RestartInstanceControlPlanePath

func RestartInstanceControlPlanePath(databaseID string, instanceID string) string

RestartInstanceControlPlanePath returns the URL path to the control-plane service restart-instance HTTP endpoint.

func RestoreDatabaseControlPlanePath

func RestoreDatabaseControlPlanePath(databaseID string) string

RestoreDatabaseControlPlanePath returns the URL path to the control-plane service restore-database HTTP endpoint.

func StartInstanceControlPlanePath

func StartInstanceControlPlanePath(databaseID string, instanceID string) string

StartInstanceControlPlanePath returns the URL path to the control-plane service start-instance HTTP endpoint.

func StopInstanceControlPlanePath

func StopInstanceControlPlanePath(databaseID string, instanceID string) string

StopInstanceControlPlanePath returns the URL path to the control-plane service stop-instance HTTP endpoint.

func SwitchoverDatabaseNodeControlPlanePath

func SwitchoverDatabaseNodeControlPlanePath(databaseID string, nodeName string) string

SwitchoverDatabaseNodeControlPlanePath returns the URL path to the control-plane service switchover-database-node HTTP endpoint.

func UpdateDatabaseControlPlanePath

func UpdateDatabaseControlPlanePath(databaseID string) string

UpdateDatabaseControlPlanePath returns the URL path to the control-plane service update-database HTTP endpoint.

func ValidateBackupConfigSpecRequestBody

func ValidateBackupConfigSpecRequestBody(body *BackupConfigSpecRequestBody) (err error)

ValidateBackupConfigSpecRequestBody runs the validations defined on BackupConfigSpecRequestBody

func ValidateBackupConfigSpecRequestBodyRequestBody

func ValidateBackupConfigSpecRequestBodyRequestBody(body *BackupConfigSpecRequestBodyRequestBody) (err error)

ValidateBackupConfigSpecRequestBodyRequestBody runs the validations defined on BackupConfigSpecRequestBodyRequestBody

func ValidateBackupConfigSpecResponseBody

func ValidateBackupConfigSpecResponseBody(body *BackupConfigSpecResponseBody) (err error)

ValidateBackupConfigSpecResponseBody runs the validations defined on BackupConfigSpecResponseBody

func ValidateBackupDatabaseNodeClusterNotInitializedResponseBody

func ValidateBackupDatabaseNodeClusterNotInitializedResponseBody(body *BackupDatabaseNodeClusterNotInitializedResponseBody) (err error)

ValidateBackupDatabaseNodeClusterNotInitializedResponseBody runs the validations defined on backup-database-node_cluster_not_initialized_response_body

func ValidateBackupDatabaseNodeDatabaseNotModifiableResponseBody

func ValidateBackupDatabaseNodeDatabaseNotModifiableResponseBody(body *BackupDatabaseNodeDatabaseNotModifiableResponseBody) (err error)

ValidateBackupDatabaseNodeDatabaseNotModifiableResponseBody runs the validations defined on backup-database-node_database_not_modifiable_response_body

func ValidateBackupDatabaseNodeInvalidInputResponseBody

func ValidateBackupDatabaseNodeInvalidInputResponseBody(body *BackupDatabaseNodeInvalidInputResponseBody) (err error)

ValidateBackupDatabaseNodeInvalidInputResponseBody runs the validations defined on backup-database-node_invalid_input_response_body

func ValidateBackupDatabaseNodeNotFoundResponseBody

func ValidateBackupDatabaseNodeNotFoundResponseBody(body *BackupDatabaseNodeNotFoundResponseBody) (err error)

ValidateBackupDatabaseNodeNotFoundResponseBody runs the validations defined on backup-database-node_not_found_response_body

func ValidateBackupDatabaseNodeOperationAlreadyInProgressResponseBody

func ValidateBackupDatabaseNodeOperationAlreadyInProgressResponseBody(body *BackupDatabaseNodeOperationAlreadyInProgressResponseBody) (err error)

ValidateBackupDatabaseNodeOperationAlreadyInProgressResponseBody runs the validations defined on backup-database-node_operation_already_in_progress_response_body

func ValidateBackupDatabaseNodeResponseBody

func ValidateBackupDatabaseNodeResponseBody(body *BackupDatabaseNodeResponseBody) (err error)

ValidateBackupDatabaseNodeResponseBody runs the validations defined on Backup-Database-NodeResponseBody

func ValidateBackupDatabaseNodeServerErrorResponseBody

func ValidateBackupDatabaseNodeServerErrorResponseBody(body *BackupDatabaseNodeServerErrorResponseBody) (err error)

ValidateBackupDatabaseNodeServerErrorResponseBody runs the validations defined on backup-database-node_server_error_response_body

func ValidateBackupRepositorySpecRequestBody

func ValidateBackupRepositorySpecRequestBody(body *BackupRepositorySpecRequestBody) (err error)

ValidateBackupRepositorySpecRequestBody runs the validations defined on BackupRepositorySpecRequestBody

func ValidateBackupRepositorySpecRequestBodyRequestBody

func ValidateBackupRepositorySpecRequestBodyRequestBody(body *BackupRepositorySpecRequestBodyRequestBody) (err error)

ValidateBackupRepositorySpecRequestBodyRequestBody runs the validations defined on BackupRepositorySpecRequestBodyRequestBody

func ValidateBackupRepositorySpecResponseBody

func ValidateBackupRepositorySpecResponseBody(body *BackupRepositorySpecResponseBody) (err error)

ValidateBackupRepositorySpecResponseBody runs the validations defined on BackupRepositorySpecResponseBody

func ValidateBackupScheduleSpecRequestBody

func ValidateBackupScheduleSpecRequestBody(body *BackupScheduleSpecRequestBody) (err error)

ValidateBackupScheduleSpecRequestBody runs the validations defined on BackupScheduleSpecRequestBody

func ValidateBackupScheduleSpecRequestBodyRequestBody

func ValidateBackupScheduleSpecRequestBodyRequestBody(body *BackupScheduleSpecRequestBodyRequestBody) (err error)

ValidateBackupScheduleSpecRequestBodyRequestBody runs the validations defined on BackupScheduleSpecRequestBodyRequestBody

func ValidateBackupScheduleSpecResponseBody

func ValidateBackupScheduleSpecResponseBody(body *BackupScheduleSpecResponseBody) (err error)

ValidateBackupScheduleSpecResponseBody runs the validations defined on BackupScheduleSpecResponseBody

func ValidateCancelDatabaseTaskInvalidInputResponseBody

func ValidateCancelDatabaseTaskInvalidInputResponseBody(body *CancelDatabaseTaskInvalidInputResponseBody) (err error)

ValidateCancelDatabaseTaskInvalidInputResponseBody runs the validations defined on cancel-database-task_invalid_input_response_body

func ValidateCancelDatabaseTaskNotFoundResponseBody

func ValidateCancelDatabaseTaskNotFoundResponseBody(body *CancelDatabaseTaskNotFoundResponseBody) (err error)

ValidateCancelDatabaseTaskNotFoundResponseBody runs the validations defined on cancel-database-task_not_found_response_body

func ValidateCancelDatabaseTaskResponseBody

func ValidateCancelDatabaseTaskResponseBody(body *CancelDatabaseTaskResponseBody) (err error)

ValidateCancelDatabaseTaskResponseBody runs the validations defined on Cancel-Database-TaskResponseBody

func ValidateCancelDatabaseTaskServerErrorResponseBody

func ValidateCancelDatabaseTaskServerErrorResponseBody(body *CancelDatabaseTaskServerErrorResponseBody) (err error)

ValidateCancelDatabaseTaskServerErrorResponseBody runs the validations defined on cancel-database-task_server_error_response_body

func ValidateClusterCredentialsResponseBody

func ValidateClusterCredentialsResponseBody(body *ClusterCredentialsResponseBody) (err error)

ValidateClusterCredentialsResponseBody runs the validations defined on ClusterCredentialsResponseBody

func ValidateClusterStatusResponseBody

func ValidateClusterStatusResponseBody(body *ClusterStatusResponseBody) (err error)

ValidateClusterStatusResponseBody runs the validations defined on ClusterStatusResponseBody

func ValidateComponentStatusResponseBody

func ValidateComponentStatusResponseBody(body *ComponentStatusResponseBody) (err error)

ValidateComponentStatusResponseBody runs the validations defined on ComponentStatusResponseBody

func ValidateCreateDatabaseClusterNotInitializedResponseBody

func ValidateCreateDatabaseClusterNotInitializedResponseBody(body *CreateDatabaseClusterNotInitializedResponseBody) (err error)

ValidateCreateDatabaseClusterNotInitializedResponseBody runs the validations defined on create-database_cluster_not_initialized_response_body

func ValidateCreateDatabaseDatabaseAlreadyExistsResponseBody

func ValidateCreateDatabaseDatabaseAlreadyExistsResponseBody(body *CreateDatabaseDatabaseAlreadyExistsResponseBody) (err error)

ValidateCreateDatabaseDatabaseAlreadyExistsResponseBody runs the validations defined on create-database_database_already_exists_response_body

func ValidateCreateDatabaseInvalidInputResponseBody

func ValidateCreateDatabaseInvalidInputResponseBody(body *CreateDatabaseInvalidInputResponseBody) (err error)

ValidateCreateDatabaseInvalidInputResponseBody runs the validations defined on create-database_invalid_input_response_body

func ValidateCreateDatabaseOperationAlreadyInProgressResponseBody

func ValidateCreateDatabaseOperationAlreadyInProgressResponseBody(body *CreateDatabaseOperationAlreadyInProgressResponseBody) (err error)

ValidateCreateDatabaseOperationAlreadyInProgressResponseBody runs the validations defined on create-database_operation_already_in_progress_response_body

func ValidateCreateDatabaseResponseBody

func ValidateCreateDatabaseResponseBody(body *CreateDatabaseResponseBody) (err error)

ValidateCreateDatabaseResponseBody runs the validations defined on Create-DatabaseResponseBody

func ValidateCreateDatabaseServerErrorResponseBody

func ValidateCreateDatabaseServerErrorResponseBody(body *CreateDatabaseServerErrorResponseBody) (err error)

ValidateCreateDatabaseServerErrorResponseBody runs the validations defined on create-database_server_error_response_body

func ValidateDatabaseCollectionResponseBody

func ValidateDatabaseCollectionResponseBody(body DatabaseCollectionResponseBody) (err error)

ValidateDatabaseCollectionResponseBody runs the validations defined on DatabaseCollectionResponseBody

func ValidateDatabaseNodeSpecRequestBody

func ValidateDatabaseNodeSpecRequestBody(body *DatabaseNodeSpecRequestBody) (err error)

ValidateDatabaseNodeSpecRequestBody runs the validations defined on DatabaseNodeSpecRequestBody

func ValidateDatabaseNodeSpecRequestBodyRequestBody

func ValidateDatabaseNodeSpecRequestBodyRequestBody(body *DatabaseNodeSpecRequestBodyRequestBody) (err error)

ValidateDatabaseNodeSpecRequestBodyRequestBody runs the validations defined on DatabaseNodeSpecRequestBodyRequestBody

func ValidateDatabaseNodeSpecResponseBody

func ValidateDatabaseNodeSpecResponseBody(body *DatabaseNodeSpecResponseBody) (err error)

ValidateDatabaseNodeSpecResponseBody runs the validations defined on DatabaseNodeSpecResponseBody

func ValidateDatabaseResponseBody

func ValidateDatabaseResponseBody(body *DatabaseResponseBody) (err error)

ValidateDatabaseResponseBody runs the validations defined on DatabaseResponseBody

func ValidateDatabaseSpecRequestBody

func ValidateDatabaseSpecRequestBody(body *DatabaseSpecRequestBody) (err error)

ValidateDatabaseSpecRequestBody runs the validations defined on DatabaseSpecRequestBody

func ValidateDatabaseSpecRequestBodyRequestBody

func ValidateDatabaseSpecRequestBodyRequestBody(body *DatabaseSpecRequestBodyRequestBody) (err error)

ValidateDatabaseSpecRequestBodyRequestBody runs the validations defined on DatabaseSpecRequestBodyRequestBody

func ValidateDatabaseSpecResponseBody

func ValidateDatabaseSpecResponseBody(body *DatabaseSpecResponseBody) (err error)

ValidateDatabaseSpecResponseBody runs the validations defined on DatabaseSpecResponseBody

func ValidateDatabaseUserSpecRequestBody

func ValidateDatabaseUserSpecRequestBody(body *DatabaseUserSpecRequestBody) (err error)

ValidateDatabaseUserSpecRequestBody runs the validations defined on DatabaseUserSpecRequestBody

func ValidateDatabaseUserSpecRequestBodyRequestBody

func ValidateDatabaseUserSpecRequestBodyRequestBody(body *DatabaseUserSpecRequestBodyRequestBody) (err error)

ValidateDatabaseUserSpecRequestBodyRequestBody runs the validations defined on DatabaseUserSpecRequestBodyRequestBody

func ValidateDatabaseUserSpecResponseBody

func ValidateDatabaseUserSpecResponseBody(body *DatabaseUserSpecResponseBody) (err error)

ValidateDatabaseUserSpecResponseBody runs the validations defined on DatabaseUserSpecResponseBody

func ValidateDeleteDatabaseClusterNotInitializedResponseBody

func ValidateDeleteDatabaseClusterNotInitializedResponseBody(body *DeleteDatabaseClusterNotInitializedResponseBody) (err error)

ValidateDeleteDatabaseClusterNotInitializedResponseBody runs the validations defined on delete-database_cluster_not_initialized_response_body

func ValidateDeleteDatabaseDatabaseNotModifiableResponseBody

func ValidateDeleteDatabaseDatabaseNotModifiableResponseBody(body *DeleteDatabaseDatabaseNotModifiableResponseBody) (err error)

ValidateDeleteDatabaseDatabaseNotModifiableResponseBody runs the validations defined on delete-database_database_not_modifiable_response_body

func ValidateDeleteDatabaseInvalidInputResponseBody

func ValidateDeleteDatabaseInvalidInputResponseBody(body *DeleteDatabaseInvalidInputResponseBody) (err error)

ValidateDeleteDatabaseInvalidInputResponseBody runs the validations defined on delete-database_invalid_input_response_body

func ValidateDeleteDatabaseNotFoundResponseBody

func ValidateDeleteDatabaseNotFoundResponseBody(body *DeleteDatabaseNotFoundResponseBody) (err error)

ValidateDeleteDatabaseNotFoundResponseBody runs the validations defined on delete-database_not_found_response_body

func ValidateDeleteDatabaseOperationAlreadyInProgressResponseBody

func ValidateDeleteDatabaseOperationAlreadyInProgressResponseBody(body *DeleteDatabaseOperationAlreadyInProgressResponseBody) (err error)

ValidateDeleteDatabaseOperationAlreadyInProgressResponseBody runs the validations defined on delete-database_operation_already_in_progress_response_body

func ValidateDeleteDatabaseResponseBody

func ValidateDeleteDatabaseResponseBody(body *DeleteDatabaseResponseBody) (err error)

ValidateDeleteDatabaseResponseBody runs the validations defined on Delete-DatabaseResponseBody

func ValidateDeleteDatabaseServerErrorResponseBody

func ValidateDeleteDatabaseServerErrorResponseBody(body *DeleteDatabaseServerErrorResponseBody) (err error)

ValidateDeleteDatabaseServerErrorResponseBody runs the validations defined on delete-database_server_error_response_body

func ValidateEtcdClusterMemberResponseBody

func ValidateEtcdClusterMemberResponseBody(body *EtcdClusterMemberResponseBody) (err error)

ValidateEtcdClusterMemberResponseBody runs the validations defined on EtcdClusterMemberResponseBody

func ValidateExtraNetworkSpecRequestBody

func ValidateExtraNetworkSpecRequestBody(body *ExtraNetworkSpecRequestBody) (err error)

ValidateExtraNetworkSpecRequestBody runs the validations defined on ExtraNetworkSpecRequestBody

func ValidateExtraNetworkSpecRequestBodyRequestBody

func ValidateExtraNetworkSpecRequestBodyRequestBody(body *ExtraNetworkSpecRequestBodyRequestBody) (err error)

ValidateExtraNetworkSpecRequestBodyRequestBody runs the validations defined on ExtraNetworkSpecRequestBodyRequestBody

func ValidateExtraNetworkSpecResponseBody

func ValidateExtraNetworkSpecResponseBody(body *ExtraNetworkSpecResponseBody) (err error)

ValidateExtraNetworkSpecResponseBody runs the validations defined on ExtraNetworkSpecResponseBody

func ValidateExtraVolumesSpecRequestBody

func ValidateExtraVolumesSpecRequestBody(body *ExtraVolumesSpecRequestBody) (err error)

ValidateExtraVolumesSpecRequestBody runs the validations defined on ExtraVolumesSpecRequestBody

func ValidateExtraVolumesSpecRequestBodyRequestBody

func ValidateExtraVolumesSpecRequestBodyRequestBody(body *ExtraVolumesSpecRequestBodyRequestBody) (err error)

ValidateExtraVolumesSpecRequestBodyRequestBody runs the validations defined on ExtraVolumesSpecRequestBodyRequestBody

func ValidateExtraVolumesSpecResponseBody

func ValidateExtraVolumesSpecResponseBody(body *ExtraVolumesSpecResponseBody) (err error)

ValidateExtraVolumesSpecResponseBody runs the validations defined on ExtraVolumesSpecResponseBody

func ValidateFailoverDatabaseNodeClusterNotInitializedResponseBody

func ValidateFailoverDatabaseNodeClusterNotInitializedResponseBody(body *FailoverDatabaseNodeClusterNotInitializedResponseBody) (err error)

ValidateFailoverDatabaseNodeClusterNotInitializedResponseBody runs the validations defined on failover-database-node_cluster_not_initialized_response_body

func ValidateFailoverDatabaseNodeDatabaseNotModifiableResponseBody

func ValidateFailoverDatabaseNodeDatabaseNotModifiableResponseBody(body *FailoverDatabaseNodeDatabaseNotModifiableResponseBody) (err error)

ValidateFailoverDatabaseNodeDatabaseNotModifiableResponseBody runs the validations defined on failover-database-node_database_not_modifiable_response_body

func ValidateFailoverDatabaseNodeInvalidInputResponseBody

func ValidateFailoverDatabaseNodeInvalidInputResponseBody(body *FailoverDatabaseNodeInvalidInputResponseBody) (err error)

ValidateFailoverDatabaseNodeInvalidInputResponseBody runs the validations defined on failover-database-node_invalid_input_response_body

func ValidateFailoverDatabaseNodeNotFoundResponseBody

func ValidateFailoverDatabaseNodeNotFoundResponseBody(body *FailoverDatabaseNodeNotFoundResponseBody) (err error)

ValidateFailoverDatabaseNodeNotFoundResponseBody runs the validations defined on failover-database-node_not_found_response_body

func ValidateFailoverDatabaseNodeOperationAlreadyInProgressResponseBody

func ValidateFailoverDatabaseNodeOperationAlreadyInProgressResponseBody(body *FailoverDatabaseNodeOperationAlreadyInProgressResponseBody) (err error)

ValidateFailoverDatabaseNodeOperationAlreadyInProgressResponseBody runs the validations defined on failover-database-node_operation_already_in_progress_response_body

func ValidateFailoverDatabaseNodeResponseBody

func ValidateFailoverDatabaseNodeResponseBody(body *FailoverDatabaseNodeResponseBody) (err error)

ValidateFailoverDatabaseNodeResponseBody runs the validations defined on Failover-Database-NodeResponseBody

func ValidateFailoverDatabaseNodeServerErrorResponseBody

func ValidateFailoverDatabaseNodeServerErrorResponseBody(body *FailoverDatabaseNodeServerErrorResponseBody) (err error)

ValidateFailoverDatabaseNodeServerErrorResponseBody runs the validations defined on failover-database-node_server_error_response_body

func ValidateGetClusterClusterNotInitializedResponseBody

func ValidateGetClusterClusterNotInitializedResponseBody(body *GetClusterClusterNotInitializedResponseBody) (err error)

ValidateGetClusterClusterNotInitializedResponseBody runs the validations defined on get-cluster_cluster_not_initialized_response_body

func ValidateGetClusterResponseBody

func ValidateGetClusterResponseBody(body *GetClusterResponseBody) (err error)

ValidateGetClusterResponseBody runs the validations defined on Get-ClusterResponseBody

func ValidateGetClusterServerErrorResponseBody

func ValidateGetClusterServerErrorResponseBody(body *GetClusterServerErrorResponseBody) (err error)

ValidateGetClusterServerErrorResponseBody runs the validations defined on get-cluster_server_error_response_body

func ValidateGetDatabaseClusterNotInitializedResponseBody

func ValidateGetDatabaseClusterNotInitializedResponseBody(body *GetDatabaseClusterNotInitializedResponseBody) (err error)

ValidateGetDatabaseClusterNotInitializedResponseBody runs the validations defined on get-database_cluster_not_initialized_response_body

func ValidateGetDatabaseInvalidInputResponseBody

func ValidateGetDatabaseInvalidInputResponseBody(body *GetDatabaseInvalidInputResponseBody) (err error)

ValidateGetDatabaseInvalidInputResponseBody runs the validations defined on get-database_invalid_input_response_body

func ValidateGetDatabaseNotFoundResponseBody

func ValidateGetDatabaseNotFoundResponseBody(body *GetDatabaseNotFoundResponseBody) (err error)

ValidateGetDatabaseNotFoundResponseBody runs the validations defined on get-database_not_found_response_body

func ValidateGetDatabaseServerErrorResponseBody

func ValidateGetDatabaseServerErrorResponseBody(body *GetDatabaseServerErrorResponseBody) (err error)

ValidateGetDatabaseServerErrorResponseBody runs the validations defined on get-database_server_error_response_body

func ValidateGetDatabaseTaskClusterNotInitializedResponseBody

func ValidateGetDatabaseTaskClusterNotInitializedResponseBody(body *GetDatabaseTaskClusterNotInitializedResponseBody) (err error)

ValidateGetDatabaseTaskClusterNotInitializedResponseBody runs the validations defined on get-database-task_cluster_not_initialized_response_body

func ValidateGetDatabaseTaskInvalidInputResponseBody

func ValidateGetDatabaseTaskInvalidInputResponseBody(body *GetDatabaseTaskInvalidInputResponseBody) (err error)

ValidateGetDatabaseTaskInvalidInputResponseBody runs the validations defined on get-database-task_invalid_input_response_body

func ValidateGetDatabaseTaskLogClusterNotInitializedResponseBody

func ValidateGetDatabaseTaskLogClusterNotInitializedResponseBody(body *GetDatabaseTaskLogClusterNotInitializedResponseBody) (err error)

ValidateGetDatabaseTaskLogClusterNotInitializedResponseBody runs the validations defined on get-database-task-log_cluster_not_initialized_response_body

func ValidateGetDatabaseTaskLogInvalidInputResponseBody

func ValidateGetDatabaseTaskLogInvalidInputResponseBody(body *GetDatabaseTaskLogInvalidInputResponseBody) (err error)

ValidateGetDatabaseTaskLogInvalidInputResponseBody runs the validations defined on get-database-task-log_invalid_input_response_body

func ValidateGetDatabaseTaskLogNotFoundResponseBody

func ValidateGetDatabaseTaskLogNotFoundResponseBody(body *GetDatabaseTaskLogNotFoundResponseBody) (err error)

ValidateGetDatabaseTaskLogNotFoundResponseBody runs the validations defined on get-database-task-log_not_found_response_body

func ValidateGetDatabaseTaskLogResponseBody

func ValidateGetDatabaseTaskLogResponseBody(body *GetDatabaseTaskLogResponseBody) (err error)

ValidateGetDatabaseTaskLogResponseBody runs the validations defined on Get-Database-Task-LogResponseBody

func ValidateGetDatabaseTaskLogServerErrorResponseBody

func ValidateGetDatabaseTaskLogServerErrorResponseBody(body *GetDatabaseTaskLogServerErrorResponseBody) (err error)

ValidateGetDatabaseTaskLogServerErrorResponseBody runs the validations defined on get-database-task-log_server_error_response_body

func ValidateGetDatabaseTaskNotFoundResponseBody

func ValidateGetDatabaseTaskNotFoundResponseBody(body *GetDatabaseTaskNotFoundResponseBody) (err error)

ValidateGetDatabaseTaskNotFoundResponseBody runs the validations defined on get-database-task_not_found_response_body

func ValidateGetDatabaseTaskResponseBody

func ValidateGetDatabaseTaskResponseBody(body *GetDatabaseTaskResponseBody) (err error)

ValidateGetDatabaseTaskResponseBody runs the validations defined on Get-Database-TaskResponseBody

func ValidateGetDatabaseTaskServerErrorResponseBody

func ValidateGetDatabaseTaskServerErrorResponseBody(body *GetDatabaseTaskServerErrorResponseBody) (err error)

ValidateGetDatabaseTaskServerErrorResponseBody runs the validations defined on get-database-task_server_error_response_body

func ValidateGetHostClusterNotInitializedResponseBody

func ValidateGetHostClusterNotInitializedResponseBody(body *GetHostClusterNotInitializedResponseBody) (err error)

ValidateGetHostClusterNotInitializedResponseBody runs the validations defined on get-host_cluster_not_initialized_response_body

func ValidateGetHostInvalidInputResponseBody

func ValidateGetHostInvalidInputResponseBody(body *GetHostInvalidInputResponseBody) (err error)

ValidateGetHostInvalidInputResponseBody runs the validations defined on get-host_invalid_input_response_body

func ValidateGetHostNotFoundResponseBody

func ValidateGetHostNotFoundResponseBody(body *GetHostNotFoundResponseBody) (err error)

ValidateGetHostNotFoundResponseBody runs the validations defined on get-host_not_found_response_body

func ValidateGetHostResponseBody

func ValidateGetHostResponseBody(body *GetHostResponseBody) (err error)

ValidateGetHostResponseBody runs the validations defined on Get-HostResponseBody

func ValidateGetHostServerErrorResponseBody

func ValidateGetHostServerErrorResponseBody(body *GetHostServerErrorResponseBody) (err error)

ValidateGetHostServerErrorResponseBody runs the validations defined on get-host_server_error_response_body

func ValidateGetJoinOptionsClusterNotInitializedResponseBody

func ValidateGetJoinOptionsClusterNotInitializedResponseBody(body *GetJoinOptionsClusterNotInitializedResponseBody) (err error)

ValidateGetJoinOptionsClusterNotInitializedResponseBody runs the validations defined on get-join-options_cluster_not_initialized_response_body

func ValidateGetJoinOptionsInvalidInputResponseBody added in v0.6.0

func ValidateGetJoinOptionsInvalidInputResponseBody(body *GetJoinOptionsInvalidInputResponseBody) (err error)

ValidateGetJoinOptionsInvalidInputResponseBody runs the validations defined on get-join-options_invalid_input_response_body

func ValidateGetJoinOptionsInvalidJoinTokenResponseBody

func ValidateGetJoinOptionsInvalidJoinTokenResponseBody(body *GetJoinOptionsInvalidJoinTokenResponseBody) (err error)

ValidateGetJoinOptionsInvalidJoinTokenResponseBody runs the validations defined on get-join-options_invalid_join_token_response_body

func ValidateGetJoinOptionsResponseBody

func ValidateGetJoinOptionsResponseBody(body *GetJoinOptionsResponseBody) (err error)

ValidateGetJoinOptionsResponseBody runs the validations defined on Get-Join-OptionsResponseBody

func ValidateGetJoinOptionsServerErrorResponseBody

func ValidateGetJoinOptionsServerErrorResponseBody(body *GetJoinOptionsServerErrorResponseBody) (err error)

ValidateGetJoinOptionsServerErrorResponseBody runs the validations defined on get-join-options_server_error_response_body

func ValidateGetJoinTokenClusterNotInitializedResponseBody

func ValidateGetJoinTokenClusterNotInitializedResponseBody(body *GetJoinTokenClusterNotInitializedResponseBody) (err error)

ValidateGetJoinTokenClusterNotInitializedResponseBody runs the validations defined on get-join-token_cluster_not_initialized_response_body

func ValidateGetJoinTokenResponseBody

func ValidateGetJoinTokenResponseBody(body *GetJoinTokenResponseBody) (err error)

ValidateGetJoinTokenResponseBody runs the validations defined on Get-Join-TokenResponseBody

func ValidateGetJoinTokenServerErrorResponseBody

func ValidateGetJoinTokenServerErrorResponseBody(body *GetJoinTokenServerErrorResponseBody) (err error)

ValidateGetJoinTokenServerErrorResponseBody runs the validations defined on get-join-token_server_error_response_body

func ValidateGetVersionResponseBody

func ValidateGetVersionResponseBody(body *GetVersionResponseBody) (err error)

ValidateGetVersionResponseBody runs the validations defined on Get-VersionResponseBody

func ValidateGetVersionServerErrorResponseBody

func ValidateGetVersionServerErrorResponseBody(body *GetVersionServerErrorResponseBody) (err error)

ValidateGetVersionServerErrorResponseBody runs the validations defined on get-version_server_error_response_body

func ValidateHostCohortResponseBody

func ValidateHostCohortResponseBody(body *HostCohortResponseBody) (err error)

ValidateHostCohortResponseBody runs the validations defined on HostCohortResponseBody

func ValidateHostResponseBody

func ValidateHostResponseBody(body *HostResponseBody) (err error)

ValidateHostResponseBody runs the validations defined on HostResponseBody

func ValidateHostStatusResponseBody

func ValidateHostStatusResponseBody(body *HostStatusResponseBody) (err error)

ValidateHostStatusResponseBody runs the validations defined on HostStatusResponseBody

func ValidateInitClusterClusterAlreadyInitializedResponseBody

func ValidateInitClusterClusterAlreadyInitializedResponseBody(body *InitClusterClusterAlreadyInitializedResponseBody) (err error)

ValidateInitClusterClusterAlreadyInitializedResponseBody runs the validations defined on init-cluster_cluster_already_initialized_response_body

func ValidateInitClusterOperationNotSupportedResponseBody

func ValidateInitClusterOperationNotSupportedResponseBody(body *InitClusterOperationNotSupportedResponseBody) (err error)

ValidateInitClusterOperationNotSupportedResponseBody runs the validations defined on init-cluster_operation_not_supported_response_body

func ValidateInitClusterResponseBody

func ValidateInitClusterResponseBody(body *InitClusterResponseBody) (err error)

ValidateInitClusterResponseBody runs the validations defined on Init-ClusterResponseBody

func ValidateInitClusterServerErrorResponseBody

func ValidateInitClusterServerErrorResponseBody(body *InitClusterServerErrorResponseBody) (err error)

ValidateInitClusterServerErrorResponseBody runs the validations defined on init-cluster_server_error_response_body

func ValidateInstanceCollectionResponseBody

func ValidateInstanceCollectionResponseBody(body InstanceCollectionResponseBody) (err error)

ValidateInstanceCollectionResponseBody runs the validations defined on InstanceCollectionResponseBody

func ValidateInstanceConnectionInfoResponseBody

func ValidateInstanceConnectionInfoResponseBody(body *InstanceConnectionInfoResponseBody) (err error)

ValidateInstanceConnectionInfoResponseBody runs the validations defined on InstanceConnectionInfoResponseBody

func ValidateInstanceResponseBody

func ValidateInstanceResponseBody(body *InstanceResponseBody) (err error)

ValidateInstanceResponseBody runs the validations defined on InstanceResponseBody

func ValidateInstanceResponseBodyCollection

func ValidateInstanceResponseBodyCollection(body InstanceResponseBodyCollection) (err error)

ValidateInstanceResponseBodyCollection runs the validations defined on InstanceResponseBodyCollection

func ValidateInstanceSpockStatusResponseBody

func ValidateInstanceSpockStatusResponseBody(body *InstanceSpockStatusResponseBody) (err error)

ValidateInstanceSpockStatusResponseBody runs the validations defined on InstanceSpockStatusResponseBody

func ValidateInstanceSubscriptionResponseBody

func ValidateInstanceSubscriptionResponseBody(body *InstanceSubscriptionResponseBody) (err error)

ValidateInstanceSubscriptionResponseBody runs the validations defined on InstanceSubscriptionResponseBody

func ValidateJoinClusterClusterAlreadyInitializedResponseBody

func ValidateJoinClusterClusterAlreadyInitializedResponseBody(body *JoinClusterClusterAlreadyInitializedResponseBody) (err error)

ValidateJoinClusterClusterAlreadyInitializedResponseBody runs the validations defined on join-cluster_cluster_already_initialized_response_body

func ValidateJoinClusterInvalidInputResponseBody added in v0.6.0

func ValidateJoinClusterInvalidInputResponseBody(body *JoinClusterInvalidInputResponseBody) (err error)

ValidateJoinClusterInvalidInputResponseBody runs the validations defined on join-cluster_invalid_input_response_body

func ValidateJoinClusterInvalidJoinTokenResponseBody

func ValidateJoinClusterInvalidJoinTokenResponseBody(body *JoinClusterInvalidJoinTokenResponseBody) (err error)

ValidateJoinClusterInvalidJoinTokenResponseBody runs the validations defined on join-cluster_invalid_join_token_response_body

func ValidateJoinClusterServerErrorResponseBody

func ValidateJoinClusterServerErrorResponseBody(body *JoinClusterServerErrorResponseBody) (err error)

ValidateJoinClusterServerErrorResponseBody runs the validations defined on join-cluster_server_error_response_body

func ValidateListDatabaseTasksClusterNotInitializedResponseBody

func ValidateListDatabaseTasksClusterNotInitializedResponseBody(body *ListDatabaseTasksClusterNotInitializedResponseBody) (err error)

ValidateListDatabaseTasksClusterNotInitializedResponseBody runs the validations defined on list-database-tasks_cluster_not_initialized_response_body

func ValidateListDatabaseTasksInvalidInputResponseBody

func ValidateListDatabaseTasksInvalidInputResponseBody(body *ListDatabaseTasksInvalidInputResponseBody) (err error)

ValidateListDatabaseTasksInvalidInputResponseBody runs the validations defined on list-database-tasks_invalid_input_response_body

func ValidateListDatabaseTasksNotFoundResponseBody

func ValidateListDatabaseTasksNotFoundResponseBody(body *ListDatabaseTasksNotFoundResponseBody) (err error)

ValidateListDatabaseTasksNotFoundResponseBody runs the validations defined on list-database-tasks_not_found_response_body

func ValidateListDatabaseTasksResponseBody

func ValidateListDatabaseTasksResponseBody(body *ListDatabaseTasksResponseBody) (err error)

ValidateListDatabaseTasksResponseBody runs the validations defined on List-Database-TasksResponseBody

func ValidateListDatabaseTasksServerErrorResponseBody

func ValidateListDatabaseTasksServerErrorResponseBody(body *ListDatabaseTasksServerErrorResponseBody) (err error)

ValidateListDatabaseTasksServerErrorResponseBody runs the validations defined on list-database-tasks_server_error_response_body

func ValidateListDatabasesClusterNotInitializedResponseBody

func ValidateListDatabasesClusterNotInitializedResponseBody(body *ListDatabasesClusterNotInitializedResponseBody) (err error)

ValidateListDatabasesClusterNotInitializedResponseBody runs the validations defined on list-databases_cluster_not_initialized_response_body

func ValidateListDatabasesServerErrorResponseBody

func ValidateListDatabasesServerErrorResponseBody(body *ListDatabasesServerErrorResponseBody) (err error)

ValidateListDatabasesServerErrorResponseBody runs the validations defined on list-databases_server_error_response_body

func ValidateListHostsClusterNotInitializedResponseBody

func ValidateListHostsClusterNotInitializedResponseBody(body *ListHostsClusterNotInitializedResponseBody) (err error)

ValidateListHostsClusterNotInitializedResponseBody runs the validations defined on list-hosts_cluster_not_initialized_response_body

func ValidateListHostsResponseBody

func ValidateListHostsResponseBody(body *ListHostsResponseBody) (err error)

ValidateListHostsResponseBody runs the validations defined on List-HostsResponseBody

func ValidateListHostsServerErrorResponseBody

func ValidateListHostsServerErrorResponseBody(body *ListHostsServerErrorResponseBody) (err error)

ValidateListHostsServerErrorResponseBody runs the validations defined on list-hosts_server_error_response_body

func ValidateOrchestratorOptsRequestBody

func ValidateOrchestratorOptsRequestBody(body *OrchestratorOptsRequestBody) (err error)

ValidateOrchestratorOptsRequestBody runs the validations defined on OrchestratorOptsRequestBody

func ValidateOrchestratorOptsRequestBodyRequestBody

func ValidateOrchestratorOptsRequestBodyRequestBody(body *OrchestratorOptsRequestBodyRequestBody) (err error)

ValidateOrchestratorOptsRequestBodyRequestBody runs the validations defined on OrchestratorOptsRequestBodyRequestBody

func ValidateOrchestratorOptsResponseBody

func ValidateOrchestratorOptsResponseBody(body *OrchestratorOptsResponseBody) (err error)

ValidateOrchestratorOptsResponseBody runs the validations defined on OrchestratorOptsResponseBody

func ValidatePgEdgeVersionResponseBody

func ValidatePgEdgeVersionResponseBody(body *PgEdgeVersionResponseBody) (err error)

ValidatePgEdgeVersionResponseBody runs the validations defined on PgEdgeVersionResponseBody

func ValidateRemoveHostClusterNotInitializedResponseBody

func ValidateRemoveHostClusterNotInitializedResponseBody(body *RemoveHostClusterNotInitializedResponseBody) (err error)

ValidateRemoveHostClusterNotInitializedResponseBody runs the validations defined on remove-host_cluster_not_initialized_response_body

func ValidateRemoveHostInvalidInputResponseBody

func ValidateRemoveHostInvalidInputResponseBody(body *RemoveHostInvalidInputResponseBody) (err error)

ValidateRemoveHostInvalidInputResponseBody runs the validations defined on remove-host_invalid_input_response_body

func ValidateRemoveHostNotFoundResponseBody

func ValidateRemoveHostNotFoundResponseBody(body *RemoveHostNotFoundResponseBody) (err error)

ValidateRemoveHostNotFoundResponseBody runs the validations defined on remove-host_not_found_response_body

func ValidateRemoveHostResponseBody added in v0.6.0

func ValidateRemoveHostResponseBody(body *RemoveHostResponseBody) (err error)

ValidateRemoveHostResponseBody runs the validations defined on Remove-HostResponseBody

func ValidateRemoveHostServerErrorResponseBody

func ValidateRemoveHostServerErrorResponseBody(body *RemoveHostServerErrorResponseBody) (err error)

ValidateRemoveHostServerErrorResponseBody runs the validations defined on remove-host_server_error_response_body

func ValidateRestartInstanceClusterNotInitializedResponseBody

func ValidateRestartInstanceClusterNotInitializedResponseBody(body *RestartInstanceClusterNotInitializedResponseBody) (err error)

ValidateRestartInstanceClusterNotInitializedResponseBody runs the validations defined on restart-instance_cluster_not_initialized_response_body

func ValidateRestartInstanceInvalidInputResponseBody

func ValidateRestartInstanceInvalidInputResponseBody(body *RestartInstanceInvalidInputResponseBody) (err error)

ValidateRestartInstanceInvalidInputResponseBody runs the validations defined on restart-instance_invalid_input_response_body

func ValidateRestartInstanceNotFoundResponseBody

func ValidateRestartInstanceNotFoundResponseBody(body *RestartInstanceNotFoundResponseBody) (err error)

ValidateRestartInstanceNotFoundResponseBody runs the validations defined on restart-instance_not_found_response_body

func ValidateRestartInstanceResponseBody

func ValidateRestartInstanceResponseBody(body *RestartInstanceResponseBody) (err error)

ValidateRestartInstanceResponseBody runs the validations defined on Restart-InstanceResponseBody

func ValidateRestartInstanceServerErrorResponseBody

func ValidateRestartInstanceServerErrorResponseBody(body *RestartInstanceServerErrorResponseBody) (err error)

ValidateRestartInstanceServerErrorResponseBody runs the validations defined on restart-instance_server_error_response_body

func ValidateRestoreConfigSpecRequestBody

func ValidateRestoreConfigSpecRequestBody(body *RestoreConfigSpecRequestBody) (err error)

ValidateRestoreConfigSpecRequestBody runs the validations defined on RestoreConfigSpecRequestBody

func ValidateRestoreConfigSpecRequestBodyRequestBody

func ValidateRestoreConfigSpecRequestBodyRequestBody(body *RestoreConfigSpecRequestBodyRequestBody) (err error)

ValidateRestoreConfigSpecRequestBodyRequestBody runs the validations defined on RestoreConfigSpecRequestBodyRequestBody

func ValidateRestoreConfigSpecResponseBody

func ValidateRestoreConfigSpecResponseBody(body *RestoreConfigSpecResponseBody) (err error)

ValidateRestoreConfigSpecResponseBody runs the validations defined on RestoreConfigSpecResponseBody

func ValidateRestoreDatabaseClusterNotInitializedResponseBody

func ValidateRestoreDatabaseClusterNotInitializedResponseBody(body *RestoreDatabaseClusterNotInitializedResponseBody) (err error)

ValidateRestoreDatabaseClusterNotInitializedResponseBody runs the validations defined on restore-database_cluster_not_initialized_response_body

func ValidateRestoreDatabaseDatabaseNotModifiableResponseBody

func ValidateRestoreDatabaseDatabaseNotModifiableResponseBody(body *RestoreDatabaseDatabaseNotModifiableResponseBody) (err error)

ValidateRestoreDatabaseDatabaseNotModifiableResponseBody runs the validations defined on restore-database_database_not_modifiable_response_body

func ValidateRestoreDatabaseInvalidInputResponseBody

func ValidateRestoreDatabaseInvalidInputResponseBody(body *RestoreDatabaseInvalidInputResponseBody) (err error)

ValidateRestoreDatabaseInvalidInputResponseBody runs the validations defined on restore-database_invalid_input_response_body

func ValidateRestoreDatabaseNotFoundResponseBody

func ValidateRestoreDatabaseNotFoundResponseBody(body *RestoreDatabaseNotFoundResponseBody) (err error)

ValidateRestoreDatabaseNotFoundResponseBody runs the validations defined on restore-database_not_found_response_body

func ValidateRestoreDatabaseOperationAlreadyInProgressResponseBody

func ValidateRestoreDatabaseOperationAlreadyInProgressResponseBody(body *RestoreDatabaseOperationAlreadyInProgressResponseBody) (err error)

ValidateRestoreDatabaseOperationAlreadyInProgressResponseBody runs the validations defined on restore-database_operation_already_in_progress_response_body

func ValidateRestoreDatabaseResponseBody

func ValidateRestoreDatabaseResponseBody(body *RestoreDatabaseResponseBody) (err error)

ValidateRestoreDatabaseResponseBody runs the validations defined on Restore-DatabaseResponseBody

func ValidateRestoreDatabaseServerErrorResponseBody

func ValidateRestoreDatabaseServerErrorResponseBody(body *RestoreDatabaseServerErrorResponseBody) (err error)

ValidateRestoreDatabaseServerErrorResponseBody runs the validations defined on restore-database_server_error_response_body

func ValidateRestoreRepositorySpecRequestBody

func ValidateRestoreRepositorySpecRequestBody(body *RestoreRepositorySpecRequestBody) (err error)

ValidateRestoreRepositorySpecRequestBody runs the validations defined on RestoreRepositorySpecRequestBody

func ValidateRestoreRepositorySpecRequestBodyRequestBody

func ValidateRestoreRepositorySpecRequestBodyRequestBody(body *RestoreRepositorySpecRequestBodyRequestBody) (err error)

ValidateRestoreRepositorySpecRequestBodyRequestBody runs the validations defined on RestoreRepositorySpecRequestBodyRequestBody

func ValidateRestoreRepositorySpecResponseBody

func ValidateRestoreRepositorySpecResponseBody(body *RestoreRepositorySpecResponseBody) (err error)

ValidateRestoreRepositorySpecResponseBody runs the validations defined on RestoreRepositorySpecResponseBody

func ValidateStartInstanceClusterNotInitializedResponseBody

func ValidateStartInstanceClusterNotInitializedResponseBody(body *StartInstanceClusterNotInitializedResponseBody) (err error)

ValidateStartInstanceClusterNotInitializedResponseBody runs the validations defined on start-instance_cluster_not_initialized_response_body

func ValidateStartInstanceInvalidInputResponseBody

func ValidateStartInstanceInvalidInputResponseBody(body *StartInstanceInvalidInputResponseBody) (err error)

ValidateStartInstanceInvalidInputResponseBody runs the validations defined on start-instance_invalid_input_response_body

func ValidateStartInstanceNotFoundResponseBody

func ValidateStartInstanceNotFoundResponseBody(body *StartInstanceNotFoundResponseBody) (err error)

ValidateStartInstanceNotFoundResponseBody runs the validations defined on start-instance_not_found_response_body

func ValidateStartInstanceResponseBody

func ValidateStartInstanceResponseBody(body *StartInstanceResponseBody) (err error)

ValidateStartInstanceResponseBody runs the validations defined on Start-InstanceResponseBody

func ValidateStartInstanceServerErrorResponseBody

func ValidateStartInstanceServerErrorResponseBody(body *StartInstanceServerErrorResponseBody) (err error)

ValidateStartInstanceServerErrorResponseBody runs the validations defined on start-instance_server_error_response_body

func ValidateStopInstanceClusterNotInitializedResponseBody

func ValidateStopInstanceClusterNotInitializedResponseBody(body *StopInstanceClusterNotInitializedResponseBody) (err error)

ValidateStopInstanceClusterNotInitializedResponseBody runs the validations defined on stop-instance_cluster_not_initialized_response_body

func ValidateStopInstanceInvalidInputResponseBody

func ValidateStopInstanceInvalidInputResponseBody(body *StopInstanceInvalidInputResponseBody) (err error)

ValidateStopInstanceInvalidInputResponseBody runs the validations defined on stop-instance_invalid_input_response_body

func ValidateStopInstanceNotFoundResponseBody

func ValidateStopInstanceNotFoundResponseBody(body *StopInstanceNotFoundResponseBody) (err error)

ValidateStopInstanceNotFoundResponseBody runs the validations defined on stop-instance_not_found_response_body

func ValidateStopInstanceResponseBody

func ValidateStopInstanceResponseBody(body *StopInstanceResponseBody) (err error)

ValidateStopInstanceResponseBody runs the validations defined on Stop-InstanceResponseBody

func ValidateStopInstanceServerErrorResponseBody

func ValidateStopInstanceServerErrorResponseBody(body *StopInstanceServerErrorResponseBody) (err error)

ValidateStopInstanceServerErrorResponseBody runs the validations defined on stop-instance_server_error_response_body

func ValidateSwarmOptsRequestBody

func ValidateSwarmOptsRequestBody(body *SwarmOptsRequestBody) (err error)

ValidateSwarmOptsRequestBody runs the validations defined on SwarmOptsRequestBody

func ValidateSwarmOptsRequestBodyRequestBody

func ValidateSwarmOptsRequestBodyRequestBody(body *SwarmOptsRequestBodyRequestBody) (err error)

ValidateSwarmOptsRequestBodyRequestBody runs the validations defined on SwarmOptsRequestBodyRequestBody

func ValidateSwarmOptsResponseBody

func ValidateSwarmOptsResponseBody(body *SwarmOptsResponseBody) (err error)

ValidateSwarmOptsResponseBody runs the validations defined on SwarmOptsResponseBody

func ValidateSwitchoverDatabaseNodeClusterNotInitializedResponseBody

func ValidateSwitchoverDatabaseNodeClusterNotInitializedResponseBody(body *SwitchoverDatabaseNodeClusterNotInitializedResponseBody) (err error)

ValidateSwitchoverDatabaseNodeClusterNotInitializedResponseBody runs the validations defined on switchover-database-node_cluster_not_initialized_response_body

func ValidateSwitchoverDatabaseNodeDatabaseNotModifiableResponseBody

func ValidateSwitchoverDatabaseNodeDatabaseNotModifiableResponseBody(body *SwitchoverDatabaseNodeDatabaseNotModifiableResponseBody) (err error)

ValidateSwitchoverDatabaseNodeDatabaseNotModifiableResponseBody runs the validations defined on switchover-database-node_database_not_modifiable_response_body

func ValidateSwitchoverDatabaseNodeInvalidInputResponseBody

func ValidateSwitchoverDatabaseNodeInvalidInputResponseBody(body *SwitchoverDatabaseNodeInvalidInputResponseBody) (err error)

ValidateSwitchoverDatabaseNodeInvalidInputResponseBody runs the validations defined on switchover-database-node_invalid_input_response_body

func ValidateSwitchoverDatabaseNodeNotFoundResponseBody

func ValidateSwitchoverDatabaseNodeNotFoundResponseBody(body *SwitchoverDatabaseNodeNotFoundResponseBody) (err error)

ValidateSwitchoverDatabaseNodeNotFoundResponseBody runs the validations defined on switchover-database-node_not_found_response_body

func ValidateSwitchoverDatabaseNodeOperationAlreadyInProgressResponseBody

func ValidateSwitchoverDatabaseNodeOperationAlreadyInProgressResponseBody(body *SwitchoverDatabaseNodeOperationAlreadyInProgressResponseBody) (err error)

ValidateSwitchoverDatabaseNodeOperationAlreadyInProgressResponseBody runs the validations defined on switchover-database-node_operation_already_in_progress_response_body

func ValidateSwitchoverDatabaseNodeResponseBody

func ValidateSwitchoverDatabaseNodeResponseBody(body *SwitchoverDatabaseNodeResponseBody) (err error)

ValidateSwitchoverDatabaseNodeResponseBody runs the validations defined on Switchover-Database-NodeResponseBody

func ValidateSwitchoverDatabaseNodeServerErrorResponseBody

func ValidateSwitchoverDatabaseNodeServerErrorResponseBody(body *SwitchoverDatabaseNodeServerErrorResponseBody) (err error)

ValidateSwitchoverDatabaseNodeServerErrorResponseBody runs the validations defined on switchover-database-node_server_error_response_body

func ValidateTaskLogEntryResponseBody

func ValidateTaskLogEntryResponseBody(body *TaskLogEntryResponseBody) (err error)

ValidateTaskLogEntryResponseBody runs the validations defined on TaskLogEntryResponseBody

func ValidateTaskResponseBody

func ValidateTaskResponseBody(body *TaskResponseBody) (err error)

ValidateTaskResponseBody runs the validations defined on TaskResponseBody

func ValidateUpdateDatabaseClusterNotInitializedResponseBody

func ValidateUpdateDatabaseClusterNotInitializedResponseBody(body *UpdateDatabaseClusterNotInitializedResponseBody) (err error)

ValidateUpdateDatabaseClusterNotInitializedResponseBody runs the validations defined on update-database_cluster_not_initialized_response_body

func ValidateUpdateDatabaseDatabaseNotModifiableResponseBody

func ValidateUpdateDatabaseDatabaseNotModifiableResponseBody(body *UpdateDatabaseDatabaseNotModifiableResponseBody) (err error)

ValidateUpdateDatabaseDatabaseNotModifiableResponseBody runs the validations defined on update-database_database_not_modifiable_response_body

func ValidateUpdateDatabaseInvalidInputResponseBody

func ValidateUpdateDatabaseInvalidInputResponseBody(body *UpdateDatabaseInvalidInputResponseBody) (err error)

ValidateUpdateDatabaseInvalidInputResponseBody runs the validations defined on update-database_invalid_input_response_body

func ValidateUpdateDatabaseNotFoundResponseBody

func ValidateUpdateDatabaseNotFoundResponseBody(body *UpdateDatabaseNotFoundResponseBody) (err error)

ValidateUpdateDatabaseNotFoundResponseBody runs the validations defined on update-database_not_found_response_body

func ValidateUpdateDatabaseOperationAlreadyInProgressResponseBody

func ValidateUpdateDatabaseOperationAlreadyInProgressResponseBody(body *UpdateDatabaseOperationAlreadyInProgressResponseBody) (err error)

ValidateUpdateDatabaseOperationAlreadyInProgressResponseBody runs the validations defined on update-database_operation_already_in_progress_response_body

func ValidateUpdateDatabaseResponseBody

func ValidateUpdateDatabaseResponseBody(body *UpdateDatabaseResponseBody) (err error)

ValidateUpdateDatabaseResponseBody runs the validations defined on Update-DatabaseResponseBody

func ValidateUpdateDatabaseServerErrorResponseBody

func ValidateUpdateDatabaseServerErrorResponseBody(body *UpdateDatabaseServerErrorResponseBody) (err error)

ValidateUpdateDatabaseServerErrorResponseBody runs the validations defined on update-database_server_error_response_body

Types

type BackupConfigSpecRequestBody

type BackupConfigSpecRequestBody struct {
	// The repositories for this backup configuration.
	Repositories []*BackupRepositorySpecRequestBody `form:"repositories" json:"repositories" xml:"repositories"`
	// The schedules for this backup configuration.
	Schedules []*BackupScheduleSpecRequestBody `form:"schedules,omitempty" json:"schedules,omitempty" xml:"schedules,omitempty"`
}

BackupConfigSpecRequestBody is used to define fields on request body types.

type BackupConfigSpecRequestBodyRequestBody

type BackupConfigSpecRequestBodyRequestBody struct {
	// The repositories for this backup configuration.
	Repositories []*BackupRepositorySpecRequestBodyRequestBody `form:"repositories" json:"repositories" xml:"repositories"`
	// The schedules for this backup configuration.
	Schedules []*BackupScheduleSpecRequestBodyRequestBody `form:"schedules,omitempty" json:"schedules,omitempty" xml:"schedules,omitempty"`
}

BackupConfigSpecRequestBodyRequestBody is used to define fields on request body types.

type BackupConfigSpecResponseBody

type BackupConfigSpecResponseBody struct {
	// The repositories for this backup configuration.
	Repositories []*BackupRepositorySpecResponseBody `form:"repositories,omitempty" json:"repositories,omitempty" xml:"repositories,omitempty"`
	// The schedules for this backup configuration.
	Schedules []*BackupScheduleSpecResponseBody `form:"schedules,omitempty" json:"schedules,omitempty" xml:"schedules,omitempty"`
}

BackupConfigSpecResponseBody is used to define fields on response body types.

type BackupDatabaseNodeClusterNotInitializedResponseBody

type BackupDatabaseNodeClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

BackupDatabaseNodeClusterNotInitializedResponseBody is the type of the "control-plane" service "backup-database-node" endpoint HTTP response body for the "cluster_not_initialized" error.

type BackupDatabaseNodeDatabaseNotModifiableResponseBody

type BackupDatabaseNodeDatabaseNotModifiableResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

BackupDatabaseNodeDatabaseNotModifiableResponseBody is the type of the "control-plane" service "backup-database-node" endpoint HTTP response body for the "database_not_modifiable" error.

type BackupDatabaseNodeInvalidInputResponseBody

type BackupDatabaseNodeInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

BackupDatabaseNodeInvalidInputResponseBody is the type of the "control-plane" service "backup-database-node" endpoint HTTP response body for the "invalid_input" error.

type BackupDatabaseNodeNotFoundResponseBody

type BackupDatabaseNodeNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

BackupDatabaseNodeNotFoundResponseBody is the type of the "control-plane" service "backup-database-node" endpoint HTTP response body for the "not_found" error.

type BackupDatabaseNodeOperationAlreadyInProgressResponseBody

type BackupDatabaseNodeOperationAlreadyInProgressResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

BackupDatabaseNodeOperationAlreadyInProgressResponseBody is the type of the "control-plane" service "backup-database-node" endpoint HTTP response body for the "operation_already_in_progress" error.

type BackupDatabaseNodeRequestBody

type BackupDatabaseNodeRequestBody struct {
	// The type of backup.
	Type string `form:"type" json:"type" xml:"type"`
	// Annotations for the backup.
	Annotations map[string]string `form:"annotations,omitempty" json:"annotations,omitempty" xml:"annotations,omitempty"`
	// Options for the backup.
	BackupOptions map[string]string `form:"backup_options,omitempty" json:"backup_options,omitempty" xml:"backup_options,omitempty"`
}

BackupDatabaseNodeRequestBody is the type of the "control-plane" service "backup-database-node" endpoint HTTP request body.

func NewBackupDatabaseNodeRequestBody

func NewBackupDatabaseNodeRequestBody(p *controlplane.BackupDatabaseNodePayload) *BackupDatabaseNodeRequestBody

NewBackupDatabaseNodeRequestBody builds the HTTP request body from the payload of the "backup-database-node" endpoint of the "control-plane" service.

type BackupDatabaseNodeResponseBody

type BackupDatabaseNodeResponseBody struct {
	// The task that will backup this database node.
	Task *TaskResponseBody `form:"task,omitempty" json:"task,omitempty" xml:"task,omitempty"`
}

BackupDatabaseNodeResponseBody is the type of the "control-plane" service "backup-database-node" endpoint HTTP response body.

type BackupDatabaseNodeServerErrorResponseBody

type BackupDatabaseNodeServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

BackupDatabaseNodeServerErrorResponseBody is the type of the "control-plane" service "backup-database-node" endpoint HTTP response body for the "server_error" error.

type BackupRepositorySpecRequestBody

type BackupRepositorySpecRequestBody struct {
	// The unique identifier of this repository.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The type of this repository.
	Type string `form:"type" json:"type" xml:"type"`
	// The S3 bucket name for this repository. Only applies when type = 's3'.
	S3Bucket *string `form:"s3_bucket,omitempty" json:"s3_bucket,omitempty" xml:"s3_bucket,omitempty"`
	// The region of the S3 bucket for this repository. Only applies when type =
	// 's3'.
	S3Region *string `form:"s3_region,omitempty" json:"s3_region,omitempty" xml:"s3_region,omitempty"`
	// The optional S3 endpoint for this repository. Only applies when type = 's3'.
	S3Endpoint *string `form:"s3_endpoint,omitempty" json:"s3_endpoint,omitempty" xml:"s3_endpoint,omitempty"`
	// An optional AWS access key ID to use for this repository. If not provided,
	// pgbackrest will use the default credential provider chain. This field will
	// be excluded from the response of all endpoints. It can also be omitted from
	// update requests to keep the current value.
	S3Key *string `form:"s3_key,omitempty" json:"s3_key,omitempty" xml:"s3_key,omitempty"`
	// The corresponding secret for the AWS access key ID in s3_key. This field
	// will be excluded from the response of all endpoints. It can also be omitted
	// from update requests to keep the current value.
	S3KeySecret *string `form:"s3_key_secret,omitempty" json:"s3_key_secret,omitempty" xml:"s3_key_secret,omitempty"`
	// The GCS bucket name for this repository. Only applies when type = 'gcs'.
	GcsBucket *string `form:"gcs_bucket,omitempty" json:"gcs_bucket,omitempty" xml:"gcs_bucket,omitempty"`
	// The optional GCS endpoint for this repository. Only applies when type =
	// 'gcs'.
	GcsEndpoint *string `form:"gcs_endpoint,omitempty" json:"gcs_endpoint,omitempty" xml:"gcs_endpoint,omitempty"`
	// Optional base64-encoded private key data. If omitted, pgbackrest will use
	// the service account attached to the instance profile. This field will be
	// excluded from the response of all endpoints. It can also be omitted from
	// update requests to keep the current value.
	GcsKey *string `form:"gcs_key,omitempty" json:"gcs_key,omitempty" xml:"gcs_key,omitempty"`
	// The Azure account name for this repository. Only applies when type = 'azure'.
	AzureAccount *string `form:"azure_account,omitempty" json:"azure_account,omitempty" xml:"azure_account,omitempty"`
	// The Azure container name for this repository. Only applies when type =
	// 'azure'.
	AzureContainer *string `form:"azure_container,omitempty" json:"azure_container,omitempty" xml:"azure_container,omitempty"`
	// The optional Azure endpoint for this repository. Only applies when type =
	// 'azure'.
	AzureEndpoint *string `form:"azure_endpoint,omitempty" json:"azure_endpoint,omitempty" xml:"azure_endpoint,omitempty"`
	// The Azure storage account access key to use for this repository. This field
	// will be excluded from the response of all endpoints. It can also be omitted
	// from update requests to keep the current value.
	AzureKey *string `form:"azure_key,omitempty" json:"azure_key,omitempty" xml:"azure_key,omitempty"`
	// The count of full backups to retain or the time to retain full backups.
	RetentionFull *int `form:"retention_full,omitempty" json:"retention_full,omitempty" xml:"retention_full,omitempty"`
	// The type of measure used for retention_full.
	RetentionFullType *string `form:"retention_full_type,omitempty" json:"retention_full_type,omitempty" xml:"retention_full_type,omitempty"`
	// The base path within the repository to store backups. Required for type =
	// 'posix' and 'cifs'.
	BasePath *string `form:"base_path,omitempty" json:"base_path,omitempty" xml:"base_path,omitempty"`
	// Additional options to apply to this repository.
	CustomOptions map[string]string `form:"custom_options,omitempty" json:"custom_options,omitempty" xml:"custom_options,omitempty"`
}

BackupRepositorySpecRequestBody is used to define fields on request body types.

type BackupRepositorySpecRequestBodyRequestBody

type BackupRepositorySpecRequestBodyRequestBody struct {
	// The unique identifier of this repository.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The type of this repository.
	Type string `form:"type" json:"type" xml:"type"`
	// The S3 bucket name for this repository. Only applies when type = 's3'.
	S3Bucket *string `form:"s3_bucket,omitempty" json:"s3_bucket,omitempty" xml:"s3_bucket,omitempty"`
	// The region of the S3 bucket for this repository. Only applies when type =
	// 's3'.
	S3Region *string `form:"s3_region,omitempty" json:"s3_region,omitempty" xml:"s3_region,omitempty"`
	// The optional S3 endpoint for this repository. Only applies when type = 's3'.
	S3Endpoint *string `form:"s3_endpoint,omitempty" json:"s3_endpoint,omitempty" xml:"s3_endpoint,omitempty"`
	// An optional AWS access key ID to use for this repository. If not provided,
	// pgbackrest will use the default credential provider chain. This field will
	// be excluded from the response of all endpoints. It can also be omitted from
	// update requests to keep the current value.
	S3Key *string `form:"s3_key,omitempty" json:"s3_key,omitempty" xml:"s3_key,omitempty"`
	// The corresponding secret for the AWS access key ID in s3_key. This field
	// will be excluded from the response of all endpoints. It can also be omitted
	// from update requests to keep the current value.
	S3KeySecret *string `form:"s3_key_secret,omitempty" json:"s3_key_secret,omitempty" xml:"s3_key_secret,omitempty"`
	// The GCS bucket name for this repository. Only applies when type = 'gcs'.
	GcsBucket *string `form:"gcs_bucket,omitempty" json:"gcs_bucket,omitempty" xml:"gcs_bucket,omitempty"`
	// The optional GCS endpoint for this repository. Only applies when type =
	// 'gcs'.
	GcsEndpoint *string `form:"gcs_endpoint,omitempty" json:"gcs_endpoint,omitempty" xml:"gcs_endpoint,omitempty"`
	// Optional base64-encoded private key data. If omitted, pgbackrest will use
	// the service account attached to the instance profile. This field will be
	// excluded from the response of all endpoints. It can also be omitted from
	// update requests to keep the current value.
	GcsKey *string `form:"gcs_key,omitempty" json:"gcs_key,omitempty" xml:"gcs_key,omitempty"`
	// The Azure account name for this repository. Only applies when type = 'azure'.
	AzureAccount *string `form:"azure_account,omitempty" json:"azure_account,omitempty" xml:"azure_account,omitempty"`
	// The Azure container name for this repository. Only applies when type =
	// 'azure'.
	AzureContainer *string `form:"azure_container,omitempty" json:"azure_container,omitempty" xml:"azure_container,omitempty"`
	// The optional Azure endpoint for this repository. Only applies when type =
	// 'azure'.
	AzureEndpoint *string `form:"azure_endpoint,omitempty" json:"azure_endpoint,omitempty" xml:"azure_endpoint,omitempty"`
	// The Azure storage account access key to use for this repository. This field
	// will be excluded from the response of all endpoints. It can also be omitted
	// from update requests to keep the current value.
	AzureKey *string `form:"azure_key,omitempty" json:"azure_key,omitempty" xml:"azure_key,omitempty"`
	// The count of full backups to retain or the time to retain full backups.
	RetentionFull *int `form:"retention_full,omitempty" json:"retention_full,omitempty" xml:"retention_full,omitempty"`
	// The type of measure used for retention_full.
	RetentionFullType *string `form:"retention_full_type,omitempty" json:"retention_full_type,omitempty" xml:"retention_full_type,omitempty"`
	// The base path within the repository to store backups. Required for type =
	// 'posix' and 'cifs'.
	BasePath *string `form:"base_path,omitempty" json:"base_path,omitempty" xml:"base_path,omitempty"`
	// Additional options to apply to this repository.
	CustomOptions map[string]string `form:"custom_options,omitempty" json:"custom_options,omitempty" xml:"custom_options,omitempty"`
}

BackupRepositorySpecRequestBodyRequestBody is used to define fields on request body types.

type BackupRepositorySpecResponseBody

type BackupRepositorySpecResponseBody struct {
	// The unique identifier of this repository.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The type of this repository.
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// The S3 bucket name for this repository. Only applies when type = 's3'.
	S3Bucket *string `form:"s3_bucket,omitempty" json:"s3_bucket,omitempty" xml:"s3_bucket,omitempty"`
	// The region of the S3 bucket for this repository. Only applies when type =
	// 's3'.
	S3Region *string `form:"s3_region,omitempty" json:"s3_region,omitempty" xml:"s3_region,omitempty"`
	// The optional S3 endpoint for this repository. Only applies when type = 's3'.
	S3Endpoint *string `form:"s3_endpoint,omitempty" json:"s3_endpoint,omitempty" xml:"s3_endpoint,omitempty"`
	// An optional AWS access key ID to use for this repository. If not provided,
	// pgbackrest will use the default credential provider chain. This field will
	// be excluded from the response of all endpoints. It can also be omitted from
	// update requests to keep the current value.
	S3Key *string `form:"s3_key,omitempty" json:"s3_key,omitempty" xml:"s3_key,omitempty"`
	// The corresponding secret for the AWS access key ID in s3_key. This field
	// will be excluded from the response of all endpoints. It can also be omitted
	// from update requests to keep the current value.
	S3KeySecret *string `form:"s3_key_secret,omitempty" json:"s3_key_secret,omitempty" xml:"s3_key_secret,omitempty"`
	// The GCS bucket name for this repository. Only applies when type = 'gcs'.
	GcsBucket *string `form:"gcs_bucket,omitempty" json:"gcs_bucket,omitempty" xml:"gcs_bucket,omitempty"`
	// The optional GCS endpoint for this repository. Only applies when type =
	// 'gcs'.
	GcsEndpoint *string `form:"gcs_endpoint,omitempty" json:"gcs_endpoint,omitempty" xml:"gcs_endpoint,omitempty"`
	// Optional base64-encoded private key data. If omitted, pgbackrest will use
	// the service account attached to the instance profile. This field will be
	// excluded from the response of all endpoints. It can also be omitted from
	// update requests to keep the current value.
	GcsKey *string `form:"gcs_key,omitempty" json:"gcs_key,omitempty" xml:"gcs_key,omitempty"`
	// The Azure account name for this repository. Only applies when type = 'azure'.
	AzureAccount *string `form:"azure_account,omitempty" json:"azure_account,omitempty" xml:"azure_account,omitempty"`
	// The Azure container name for this repository. Only applies when type =
	// 'azure'.
	AzureContainer *string `form:"azure_container,omitempty" json:"azure_container,omitempty" xml:"azure_container,omitempty"`
	// The optional Azure endpoint for this repository. Only applies when type =
	// 'azure'.
	AzureEndpoint *string `form:"azure_endpoint,omitempty" json:"azure_endpoint,omitempty" xml:"azure_endpoint,omitempty"`
	// The Azure storage account access key to use for this repository. This field
	// will be excluded from the response of all endpoints. It can also be omitted
	// from update requests to keep the current value.
	AzureKey *string `form:"azure_key,omitempty" json:"azure_key,omitempty" xml:"azure_key,omitempty"`
	// The count of full backups to retain or the time to retain full backups.
	RetentionFull *int `form:"retention_full,omitempty" json:"retention_full,omitempty" xml:"retention_full,omitempty"`
	// The type of measure used for retention_full.
	RetentionFullType *string `form:"retention_full_type,omitempty" json:"retention_full_type,omitempty" xml:"retention_full_type,omitempty"`
	// The base path within the repository to store backups. Required for type =
	// 'posix' and 'cifs'.
	BasePath *string `form:"base_path,omitempty" json:"base_path,omitempty" xml:"base_path,omitempty"`
	// Additional options to apply to this repository.
	CustomOptions map[string]string `form:"custom_options,omitempty" json:"custom_options,omitempty" xml:"custom_options,omitempty"`
}

BackupRepositorySpecResponseBody is used to define fields on response body types.

type BackupScheduleSpecRequestBody

type BackupScheduleSpecRequestBody struct {
	// The unique identifier for this backup schedule.
	ID string `form:"id" json:"id" xml:"id"`
	// The type of backup to take on this schedule.
	Type string `form:"type" json:"type" xml:"type"`
	// The cron expression for this schedule.
	CronExpression string `form:"cron_expression" json:"cron_expression" xml:"cron_expression"`
}

BackupScheduleSpecRequestBody is used to define fields on request body types.

type BackupScheduleSpecRequestBodyRequestBody

type BackupScheduleSpecRequestBodyRequestBody struct {
	// The unique identifier for this backup schedule.
	ID string `form:"id" json:"id" xml:"id"`
	// The type of backup to take on this schedule.
	Type string `form:"type" json:"type" xml:"type"`
	// The cron expression for this schedule.
	CronExpression string `form:"cron_expression" json:"cron_expression" xml:"cron_expression"`
}

BackupScheduleSpecRequestBodyRequestBody is used to define fields on request body types.

type BackupScheduleSpecResponseBody

type BackupScheduleSpecResponseBody struct {
	// The unique identifier for this backup schedule.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The type of backup to take on this schedule.
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// The cron expression for this schedule.
	CronExpression *string `form:"cron_expression,omitempty" json:"cron_expression,omitempty" xml:"cron_expression,omitempty"`
}

BackupScheduleSpecResponseBody is used to define fields on response body types.

type CancelDatabaseTaskInvalidInputResponseBody

type CancelDatabaseTaskInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CancelDatabaseTaskInvalidInputResponseBody is the type of the "control-plane" service "cancel-database-task" endpoint HTTP response body for the "invalid_input" error.

type CancelDatabaseTaskNotFoundResponseBody

type CancelDatabaseTaskNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CancelDatabaseTaskNotFoundResponseBody is the type of the "control-plane" service "cancel-database-task" endpoint HTTP response body for the "not_found" error.

type CancelDatabaseTaskResponseBody

type CancelDatabaseTaskResponseBody struct {
	// The parent task ID of the task.
	ParentID *string `form:"parent_id,omitempty" json:"parent_id,omitempty" xml:"parent_id,omitempty"`
	// The database ID of the task.
	DatabaseID *string `form:"database_id,omitempty" json:"database_id,omitempty" xml:"database_id,omitempty"`
	// The name of the node that the task is operating on.
	NodeName *string `form:"node_name,omitempty" json:"node_name,omitempty" xml:"node_name,omitempty"`
	// The ID of the instance that the task is operating on.
	InstanceID *string `form:"instance_id,omitempty" json:"instance_id,omitempty" xml:"instance_id,omitempty"`
	// The ID of the host that the task is running on.
	HostID *string `form:"host_id,omitempty" json:"host_id,omitempty" xml:"host_id,omitempty"`
	// The unique ID of the task.
	TaskID *string `form:"task_id,omitempty" json:"task_id,omitempty" xml:"task_id,omitempty"`
	// The time when the task was created.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// The time when the task was completed.
	CompletedAt *string `form:"completed_at,omitempty" json:"completed_at,omitempty" xml:"completed_at,omitempty"`
	// The type of the task.
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// The status of the task.
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// The error message if the task failed.
	Error *string `form:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"`
}

CancelDatabaseTaskResponseBody is the type of the "control-plane" service "cancel-database-task" endpoint HTTP response body.

type CancelDatabaseTaskServerErrorResponseBody

type CancelDatabaseTaskServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CancelDatabaseTaskServerErrorResponseBody is the type of the "control-plane" service "cancel-database-task" endpoint HTTP response body for the "server_error" error.

type Client

type Client struct {
	// InitCluster Doer is the HTTP client used to make requests to the
	// init-cluster endpoint.
	InitClusterDoer goahttp.Doer

	// JoinCluster Doer is the HTTP client used to make requests to the
	// join-cluster endpoint.
	JoinClusterDoer goahttp.Doer

	// GetJoinToken Doer is the HTTP client used to make requests to the
	// get-join-token endpoint.
	GetJoinTokenDoer goahttp.Doer

	// GetJoinOptions Doer is the HTTP client used to make requests to the
	// get-join-options endpoint.
	GetJoinOptionsDoer goahttp.Doer

	// GetCluster Doer is the HTTP client used to make requests to the get-cluster
	// endpoint.
	GetClusterDoer goahttp.Doer

	// ListHosts Doer is the HTTP client used to make requests to the list-hosts
	// endpoint.
	ListHostsDoer goahttp.Doer

	// GetHost Doer is the HTTP client used to make requests to the get-host
	// endpoint.
	GetHostDoer goahttp.Doer

	// RemoveHost Doer is the HTTP client used to make requests to the remove-host
	// endpoint.
	RemoveHostDoer goahttp.Doer

	// ListDatabases Doer is the HTTP client used to make requests to the
	// list-databases endpoint.
	ListDatabasesDoer goahttp.Doer

	// CreateDatabase Doer is the HTTP client used to make requests to the
	// create-database endpoint.
	CreateDatabaseDoer goahttp.Doer

	// GetDatabase Doer is the HTTP client used to make requests to the
	// get-database endpoint.
	GetDatabaseDoer goahttp.Doer

	// UpdateDatabase Doer is the HTTP client used to make requests to the
	// update-database endpoint.
	UpdateDatabaseDoer goahttp.Doer

	// DeleteDatabase Doer is the HTTP client used to make requests to the
	// delete-database endpoint.
	DeleteDatabaseDoer goahttp.Doer

	// BackupDatabaseNode Doer is the HTTP client used to make requests to the
	// backup-database-node endpoint.
	BackupDatabaseNodeDoer goahttp.Doer

	// SwitchoverDatabaseNode Doer is the HTTP client used to make requests to the
	// switchover-database-node endpoint.
	SwitchoverDatabaseNodeDoer goahttp.Doer

	// FailoverDatabaseNode Doer is the HTTP client used to make requests to the
	// failover-database-node endpoint.
	FailoverDatabaseNodeDoer goahttp.Doer

	// ListDatabaseTasks Doer is the HTTP client used to make requests to the
	// list-database-tasks endpoint.
	ListDatabaseTasksDoer goahttp.Doer

	// GetDatabaseTask Doer is the HTTP client used to make requests to the
	// get-database-task endpoint.
	GetDatabaseTaskDoer goahttp.Doer

	// GetDatabaseTaskLog Doer is the HTTP client used to make requests to the
	// get-database-task-log endpoint.
	GetDatabaseTaskLogDoer goahttp.Doer

	// RestoreDatabase Doer is the HTTP client used to make requests to the
	// restore-database endpoint.
	RestoreDatabaseDoer goahttp.Doer

	// GetVersion Doer is the HTTP client used to make requests to the get-version
	// endpoint.
	GetVersionDoer goahttp.Doer

	// RestartInstance Doer is the HTTP client used to make requests to the
	// restart-instance endpoint.
	RestartInstanceDoer goahttp.Doer

	// StopInstance Doer is the HTTP client used to make requests to the
	// stop-instance endpoint.
	StopInstanceDoer goahttp.Doer

	// StartInstance Doer is the HTTP client used to make requests to the
	// start-instance endpoint.
	StartInstanceDoer goahttp.Doer

	// CancelDatabaseTask Doer is the HTTP client used to make requests to the
	// cancel-database-task endpoint.
	CancelDatabaseTaskDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the control-plane service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the control-plane service servers.

func (*Client) BackupDatabaseNode

func (c *Client) BackupDatabaseNode() goa.Endpoint

BackupDatabaseNode returns an endpoint that makes HTTP requests to the control-plane service backup-database-node server.

func (*Client) BuildBackupDatabaseNodeRequest

func (c *Client) BuildBackupDatabaseNodeRequest(ctx context.Context, v any) (*http.Request, error)

BuildBackupDatabaseNodeRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "backup-database-node" endpoint

func (*Client) BuildCancelDatabaseTaskRequest

func (c *Client) BuildCancelDatabaseTaskRequest(ctx context.Context, v any) (*http.Request, error)

BuildCancelDatabaseTaskRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "cancel-database-task" endpoint

func (*Client) BuildCreateDatabaseRequest

func (c *Client) BuildCreateDatabaseRequest(ctx context.Context, v any) (*http.Request, error)

BuildCreateDatabaseRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "create-database" endpoint

func (*Client) BuildDeleteDatabaseRequest

func (c *Client) BuildDeleteDatabaseRequest(ctx context.Context, v any) (*http.Request, error)

BuildDeleteDatabaseRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "delete-database" endpoint

func (*Client) BuildFailoverDatabaseNodeRequest

func (c *Client) BuildFailoverDatabaseNodeRequest(ctx context.Context, v any) (*http.Request, error)

BuildFailoverDatabaseNodeRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "failover-database-node" endpoint

func (*Client) BuildGetClusterRequest

func (c *Client) BuildGetClusterRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetClusterRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "get-cluster" endpoint

func (*Client) BuildGetDatabaseRequest

func (c *Client) BuildGetDatabaseRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetDatabaseRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "get-database" endpoint

func (*Client) BuildGetDatabaseTaskLogRequest

func (c *Client) BuildGetDatabaseTaskLogRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetDatabaseTaskLogRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "get-database-task-log" endpoint

func (*Client) BuildGetDatabaseTaskRequest

func (c *Client) BuildGetDatabaseTaskRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetDatabaseTaskRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "get-database-task" endpoint

func (*Client) BuildGetHostRequest

func (c *Client) BuildGetHostRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetHostRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "get-host" endpoint

func (*Client) BuildGetJoinOptionsRequest

func (c *Client) BuildGetJoinOptionsRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetJoinOptionsRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "get-join-options" endpoint

func (*Client) BuildGetJoinTokenRequest

func (c *Client) BuildGetJoinTokenRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetJoinTokenRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "get-join-token" endpoint

func (*Client) BuildGetVersionRequest

func (c *Client) BuildGetVersionRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetVersionRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "get-version" endpoint

func (*Client) BuildInitClusterRequest

func (c *Client) BuildInitClusterRequest(ctx context.Context, v any) (*http.Request, error)

BuildInitClusterRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "init-cluster" endpoint

func (*Client) BuildJoinClusterRequest

func (c *Client) BuildJoinClusterRequest(ctx context.Context, v any) (*http.Request, error)

BuildJoinClusterRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "join-cluster" endpoint

func (*Client) BuildListDatabaseTasksRequest

func (c *Client) BuildListDatabaseTasksRequest(ctx context.Context, v any) (*http.Request, error)

BuildListDatabaseTasksRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "list-database-tasks" endpoint

func (*Client) BuildListDatabasesRequest

func (c *Client) BuildListDatabasesRequest(ctx context.Context, v any) (*http.Request, error)

BuildListDatabasesRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "list-databases" endpoint

func (*Client) BuildListHostsRequest

func (c *Client) BuildListHostsRequest(ctx context.Context, v any) (*http.Request, error)

BuildListHostsRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "list-hosts" endpoint

func (*Client) BuildRemoveHostRequest

func (c *Client) BuildRemoveHostRequest(ctx context.Context, v any) (*http.Request, error)

BuildRemoveHostRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "remove-host" endpoint

func (*Client) BuildRestartInstanceRequest

func (c *Client) BuildRestartInstanceRequest(ctx context.Context, v any) (*http.Request, error)

BuildRestartInstanceRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "restart-instance" endpoint

func (*Client) BuildRestoreDatabaseRequest

func (c *Client) BuildRestoreDatabaseRequest(ctx context.Context, v any) (*http.Request, error)

BuildRestoreDatabaseRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "restore-database" endpoint

func (*Client) BuildStartInstanceRequest

func (c *Client) BuildStartInstanceRequest(ctx context.Context, v any) (*http.Request, error)

BuildStartInstanceRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "start-instance" endpoint

func (*Client) BuildStopInstanceRequest

func (c *Client) BuildStopInstanceRequest(ctx context.Context, v any) (*http.Request, error)

BuildStopInstanceRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "stop-instance" endpoint

func (*Client) BuildSwitchoverDatabaseNodeRequest

func (c *Client) BuildSwitchoverDatabaseNodeRequest(ctx context.Context, v any) (*http.Request, error)

BuildSwitchoverDatabaseNodeRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "switchover-database-node" endpoint

func (*Client) BuildUpdateDatabaseRequest

func (c *Client) BuildUpdateDatabaseRequest(ctx context.Context, v any) (*http.Request, error)

BuildUpdateDatabaseRequest instantiates a HTTP request object with method and path set to call the "control-plane" service "update-database" endpoint

func (*Client) CancelDatabaseTask

func (c *Client) CancelDatabaseTask() goa.Endpoint

CancelDatabaseTask returns an endpoint that makes HTTP requests to the control-plane service cancel-database-task server.

func (*Client) CreateDatabase

func (c *Client) CreateDatabase() goa.Endpoint

CreateDatabase returns an endpoint that makes HTTP requests to the control-plane service create-database server.

func (*Client) DeleteDatabase

func (c *Client) DeleteDatabase() goa.Endpoint

DeleteDatabase returns an endpoint that makes HTTP requests to the control-plane service delete-database server.

func (*Client) FailoverDatabaseNode

func (c *Client) FailoverDatabaseNode() goa.Endpoint

FailoverDatabaseNode returns an endpoint that makes HTTP requests to the control-plane service failover-database-node server.

func (*Client) GetCluster

func (c *Client) GetCluster() goa.Endpoint

GetCluster returns an endpoint that makes HTTP requests to the control-plane service get-cluster server.

func (*Client) GetDatabase

func (c *Client) GetDatabase() goa.Endpoint

GetDatabase returns an endpoint that makes HTTP requests to the control-plane service get-database server.

func (*Client) GetDatabaseTask

func (c *Client) GetDatabaseTask() goa.Endpoint

GetDatabaseTask returns an endpoint that makes HTTP requests to the control-plane service get-database-task server.

func (*Client) GetDatabaseTaskLog

func (c *Client) GetDatabaseTaskLog() goa.Endpoint

GetDatabaseTaskLog returns an endpoint that makes HTTP requests to the control-plane service get-database-task-log server.

func (*Client) GetHost

func (c *Client) GetHost() goa.Endpoint

GetHost returns an endpoint that makes HTTP requests to the control-plane service get-host server.

func (*Client) GetJoinOptions

func (c *Client) GetJoinOptions() goa.Endpoint

GetJoinOptions returns an endpoint that makes HTTP requests to the control-plane service get-join-options server.

func (*Client) GetJoinToken

func (c *Client) GetJoinToken() goa.Endpoint

GetJoinToken returns an endpoint that makes HTTP requests to the control-plane service get-join-token server.

func (*Client) GetVersion

func (c *Client) GetVersion() goa.Endpoint

GetVersion returns an endpoint that makes HTTP requests to the control-plane service get-version server.

func (*Client) InitCluster

func (c *Client) InitCluster() goa.Endpoint

InitCluster returns an endpoint that makes HTTP requests to the control-plane service init-cluster server.

func (*Client) JoinCluster

func (c *Client) JoinCluster() goa.Endpoint

JoinCluster returns an endpoint that makes HTTP requests to the control-plane service join-cluster server.

func (*Client) ListDatabaseTasks

func (c *Client) ListDatabaseTasks() goa.Endpoint

ListDatabaseTasks returns an endpoint that makes HTTP requests to the control-plane service list-database-tasks server.

func (*Client) ListDatabases

func (c *Client) ListDatabases() goa.Endpoint

ListDatabases returns an endpoint that makes HTTP requests to the control-plane service list-databases server.

func (*Client) ListHosts

func (c *Client) ListHosts() goa.Endpoint

ListHosts returns an endpoint that makes HTTP requests to the control-plane service list-hosts server.

func (*Client) RemoveHost

func (c *Client) RemoveHost() goa.Endpoint

RemoveHost returns an endpoint that makes HTTP requests to the control-plane service remove-host server.

func (*Client) RestartInstance

func (c *Client) RestartInstance() goa.Endpoint

RestartInstance returns an endpoint that makes HTTP requests to the control-plane service restart-instance server.

func (*Client) RestoreDatabase

func (c *Client) RestoreDatabase() goa.Endpoint

RestoreDatabase returns an endpoint that makes HTTP requests to the control-plane service restore-database server.

func (*Client) StartInstance

func (c *Client) StartInstance() goa.Endpoint

StartInstance returns an endpoint that makes HTTP requests to the control-plane service start-instance server.

func (*Client) StopInstance

func (c *Client) StopInstance() goa.Endpoint

StopInstance returns an endpoint that makes HTTP requests to the control-plane service stop-instance server.

func (*Client) SwitchoverDatabaseNode

func (c *Client) SwitchoverDatabaseNode() goa.Endpoint

SwitchoverDatabaseNode returns an endpoint that makes HTTP requests to the control-plane service switchover-database-node server.

func (*Client) UpdateDatabase

func (c *Client) UpdateDatabase() goa.Endpoint

UpdateDatabase returns an endpoint that makes HTTP requests to the control-plane service update-database server.

type ClusterCredentialsResponseBody

type ClusterCredentialsResponseBody struct {
	// The Etcd username for the new host.
	Username *string `form:"username,omitempty" json:"username,omitempty" xml:"username,omitempty"`
	// The Etcd password for the new host.
	Password *string `form:"password,omitempty" json:"password,omitempty" xml:"password,omitempty"`
	// The base64-encoded CA certificate for the cluster.
	CaCert *string `form:"ca_cert,omitempty" json:"ca_cert,omitempty" xml:"ca_cert,omitempty"`
	// The base64-encoded etcd client certificate for the new cluster member.
	ClientCert *string `form:"client_cert,omitempty" json:"client_cert,omitempty" xml:"client_cert,omitempty"`
	// The base64-encoded etcd client key for the new cluster member.
	ClientKey *string `form:"client_key,omitempty" json:"client_key,omitempty" xml:"client_key,omitempty"`
	// The base64-encoded etcd server certificate for the new cluster member.
	ServerCert *string `form:"server_cert,omitempty" json:"server_cert,omitempty" xml:"server_cert,omitempty"`
	// The base64-encoded etcd server key for the new cluster member.
	ServerKey *string `form:"server_key,omitempty" json:"server_key,omitempty" xml:"server_key,omitempty"`
}

ClusterCredentialsResponseBody is used to define fields on response body types.

type ClusterStatusResponseBody

type ClusterStatusResponseBody struct {
	// The current state of the cluster.
	State *string `form:"state,omitempty" json:"state,omitempty" xml:"state,omitempty"`
}

ClusterStatusResponseBody is used to define fields on response body types.

type ComponentStatusResponseBody

type ComponentStatusResponseBody struct {
	// Indicates if the component is healthy.
	Healthy *bool `form:"healthy,omitempty" json:"healthy,omitempty" xml:"healthy,omitempty"`
	// Error message from any errors that occurred during the health check.
	Error *string `form:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"`
	// Additional details about the component.
	Details map[string]any `form:"details,omitempty" json:"details,omitempty" xml:"details,omitempty"`
}

ComponentStatusResponseBody is used to define fields on response body types.

type CreateDatabaseClusterNotInitializedResponseBody

type CreateDatabaseClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CreateDatabaseClusterNotInitializedResponseBody is the type of the "control-plane" service "create-database" endpoint HTTP response body for the "cluster_not_initialized" error.

type CreateDatabaseDatabaseAlreadyExistsResponseBody

type CreateDatabaseDatabaseAlreadyExistsResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CreateDatabaseDatabaseAlreadyExistsResponseBody is the type of the "control-plane" service "create-database" endpoint HTTP response body for the "database_already_exists" error.

type CreateDatabaseInvalidInputResponseBody

type CreateDatabaseInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CreateDatabaseInvalidInputResponseBody is the type of the "control-plane" service "create-database" endpoint HTTP response body for the "invalid_input" error.

type CreateDatabaseOperationAlreadyInProgressResponseBody

type CreateDatabaseOperationAlreadyInProgressResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CreateDatabaseOperationAlreadyInProgressResponseBody is the type of the "control-plane" service "create-database" endpoint HTTP response body for the "operation_already_in_progress" error.

type CreateDatabaseRequestBody

type CreateDatabaseRequestBody struct {
	// Unique identifier for the database.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Unique identifier for the databases's owner.
	TenantID *string `form:"tenant_id,omitempty" json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	// The specification for the database.
	Spec *DatabaseSpecRequestBody `form:"spec" json:"spec" xml:"spec"`
}

CreateDatabaseRequestBody is the type of the "control-plane" service "create-database" endpoint HTTP request body.

func NewCreateDatabaseRequestBody

func NewCreateDatabaseRequestBody(p *controlplane.CreateDatabaseRequest) *CreateDatabaseRequestBody

NewCreateDatabaseRequestBody builds the HTTP request body from the payload of the "create-database" endpoint of the "control-plane" service.

type CreateDatabaseResponseBody

type CreateDatabaseResponseBody struct {
	// The task that will create this database.
	Task *TaskResponseBody `form:"task,omitempty" json:"task,omitempty" xml:"task,omitempty"`
	// The database being created.
	Database *DatabaseResponseBody `form:"database,omitempty" json:"database,omitempty" xml:"database,omitempty"`
}

CreateDatabaseResponseBody is the type of the "control-plane" service "create-database" endpoint HTTP response body.

type CreateDatabaseServerErrorResponseBody

type CreateDatabaseServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CreateDatabaseServerErrorResponseBody is the type of the "control-plane" service "create-database" endpoint HTTP response body for the "server_error" error.

type DatabaseCollectionResponseBody

type DatabaseCollectionResponseBody []*DatabaseResponseBody

DatabaseCollectionResponseBody is used to define fields on response body types.

type DatabaseNodeSpecRequestBody

type DatabaseNodeSpecRequestBody struct {
	// The name of the database node.
	Name string `form:"name" json:"name" xml:"name"`
	// The IDs of the hosts that should run this node. When multiple hosts are
	// specified, one host will chosen as a primary, and the others will be read
	// replicas.
	HostIds []string `form:"host_ids" json:"host_ids" xml:"host_ids"`
	// The Postgres version for this node in 'major.minor' format. Overrides the
	// Postgres version set in the DatabaseSpec.
	PostgresVersion *string `form:"postgres_version,omitempty" json:"postgres_version,omitempty" xml:"postgres_version,omitempty"`
	// The port used by the Postgres database for this node. Overrides the Postgres
	// port set in the DatabaseSpec.
	Port *int `form:"port,omitempty" json:"port,omitempty" xml:"port,omitempty"`
	// The number of CPUs to allocate for the database on this node and to use for
	// tuning Postgres. It can include the SI suffix 'm', e.g. '500m' for 500
	// millicpus. Cannot allocate units smaller than 1m. Defaults to the number of
	// available CPUs on the host if 0 or unspecified. Cannot allocate more CPUs
	// than are available on the host. Whether this limit is enforced depends on
	// the orchestrator.
	Cpus *string `form:"cpus,omitempty" json:"cpus,omitempty" xml:"cpus,omitempty"`
	// The amount of memory in SI or IEC notation to allocate for the database on
	// this node and to use for tuning Postgres. Defaults to the total available
	// memory on the host. Whether this limit is enforced depends on the
	// orchestrator.
	Memory *string `form:"memory,omitempty" json:"memory,omitempty" xml:"memory,omitempty"`
	// Additional postgresql.conf settings for this particular node. Will be merged
	// with the settings provided by control-plane.
	PostgresqlConf map[string]any `form:"postgresql_conf,omitempty" json:"postgresql_conf,omitempty" xml:"postgresql_conf,omitempty"`
	// The backup configuration for this node. Overrides the backup configuration
	// set in the DatabaseSpec.
	BackupConfig *BackupConfigSpecRequestBody `form:"backup_config,omitempty" json:"backup_config,omitempty" xml:"backup_config,omitempty"`
	// The restore configuration for this node. Overrides the restore configuration
	// set in the DatabaseSpec.
	RestoreConfig *RestoreConfigSpecRequestBody `form:"restore_config,omitempty" json:"restore_config,omitempty" xml:"restore_config,omitempty"`
	// Orchestrator-specific configuration options.
	OrchestratorOpts *OrchestratorOptsRequestBody `form:"orchestrator_opts,omitempty" json:"orchestrator_opts,omitempty" xml:"orchestrator_opts,omitempty"`
	// The name of the source node to use for sync. This is typically the node
	// (like 'n1') from which the data will be copied to initialize this new node.
	SourceNode *string `form:"source_node,omitempty" json:"source_node,omitempty" xml:"source_node,omitempty"`
}

DatabaseNodeSpecRequestBody is used to define fields on request body types.

type DatabaseNodeSpecRequestBodyRequestBody

type DatabaseNodeSpecRequestBodyRequestBody struct {
	// The name of the database node.
	Name string `form:"name" json:"name" xml:"name"`
	// The IDs of the hosts that should run this node. When multiple hosts are
	// specified, one host will chosen as a primary, and the others will be read
	// replicas.
	HostIds []string `form:"host_ids" json:"host_ids" xml:"host_ids"`
	// The Postgres version for this node in 'major.minor' format. Overrides the
	// Postgres version set in the DatabaseSpec.
	PostgresVersion *string `form:"postgres_version,omitempty" json:"postgres_version,omitempty" xml:"postgres_version,omitempty"`
	// The port used by the Postgres database for this node. Overrides the Postgres
	// port set in the DatabaseSpec.
	Port *int `form:"port,omitempty" json:"port,omitempty" xml:"port,omitempty"`
	// The number of CPUs to allocate for the database on this node and to use for
	// tuning Postgres. It can include the SI suffix 'm', e.g. '500m' for 500
	// millicpus. Cannot allocate units smaller than 1m. Defaults to the number of
	// available CPUs on the host if 0 or unspecified. Cannot allocate more CPUs
	// than are available on the host. Whether this limit is enforced depends on
	// the orchestrator.
	Cpus *string `form:"cpus,omitempty" json:"cpus,omitempty" xml:"cpus,omitempty"`
	// The amount of memory in SI or IEC notation to allocate for the database on
	// this node and to use for tuning Postgres. Defaults to the total available
	// memory on the host. Whether this limit is enforced depends on the
	// orchestrator.
	Memory *string `form:"memory,omitempty" json:"memory,omitempty" xml:"memory,omitempty"`
	// Additional postgresql.conf settings for this particular node. Will be merged
	// with the settings provided by control-plane.
	PostgresqlConf map[string]any `form:"postgresql_conf,omitempty" json:"postgresql_conf,omitempty" xml:"postgresql_conf,omitempty"`
	// The backup configuration for this node. Overrides the backup configuration
	// set in the DatabaseSpec.
	BackupConfig *BackupConfigSpecRequestBodyRequestBody `form:"backup_config,omitempty" json:"backup_config,omitempty" xml:"backup_config,omitempty"`
	// The restore configuration for this node. Overrides the restore configuration
	// set in the DatabaseSpec.
	RestoreConfig *RestoreConfigSpecRequestBodyRequestBody `form:"restore_config,omitempty" json:"restore_config,omitempty" xml:"restore_config,omitempty"`
	// Orchestrator-specific configuration options.
	OrchestratorOpts *OrchestratorOptsRequestBodyRequestBody `form:"orchestrator_opts,omitempty" json:"orchestrator_opts,omitempty" xml:"orchestrator_opts,omitempty"`
	// The name of the source node to use for sync. This is typically the node
	// (like 'n1') from which the data will be copied to initialize this new node.
	SourceNode *string `form:"source_node,omitempty" json:"source_node,omitempty" xml:"source_node,omitempty"`
}

DatabaseNodeSpecRequestBodyRequestBody is used to define fields on request body types.

type DatabaseNodeSpecResponseBody

type DatabaseNodeSpecResponseBody struct {
	// The name of the database node.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The IDs of the hosts that should run this node. When multiple hosts are
	// specified, one host will chosen as a primary, and the others will be read
	// replicas.
	HostIds []string `form:"host_ids,omitempty" json:"host_ids,omitempty" xml:"host_ids,omitempty"`
	// The Postgres version for this node in 'major.minor' format. Overrides the
	// Postgres version set in the DatabaseSpec.
	PostgresVersion *string `form:"postgres_version,omitempty" json:"postgres_version,omitempty" xml:"postgres_version,omitempty"`
	// The port used by the Postgres database for this node. Overrides the Postgres
	// port set in the DatabaseSpec.
	Port *int `form:"port,omitempty" json:"port,omitempty" xml:"port,omitempty"`
	// The number of CPUs to allocate for the database on this node and to use for
	// tuning Postgres. It can include the SI suffix 'm', e.g. '500m' for 500
	// millicpus. Cannot allocate units smaller than 1m. Defaults to the number of
	// available CPUs on the host if 0 or unspecified. Cannot allocate more CPUs
	// than are available on the host. Whether this limit is enforced depends on
	// the orchestrator.
	Cpus *string `form:"cpus,omitempty" json:"cpus,omitempty" xml:"cpus,omitempty"`
	// The amount of memory in SI or IEC notation to allocate for the database on
	// this node and to use for tuning Postgres. Defaults to the total available
	// memory on the host. Whether this limit is enforced depends on the
	// orchestrator.
	Memory *string `form:"memory,omitempty" json:"memory,omitempty" xml:"memory,omitempty"`
	// Additional postgresql.conf settings for this particular node. Will be merged
	// with the settings provided by control-plane.
	PostgresqlConf map[string]any `form:"postgresql_conf,omitempty" json:"postgresql_conf,omitempty" xml:"postgresql_conf,omitempty"`
	// The backup configuration for this node. Overrides the backup configuration
	// set in the DatabaseSpec.
	BackupConfig *BackupConfigSpecResponseBody `form:"backup_config,omitempty" json:"backup_config,omitempty" xml:"backup_config,omitempty"`
	// The restore configuration for this node. Overrides the restore configuration
	// set in the DatabaseSpec.
	RestoreConfig *RestoreConfigSpecResponseBody `form:"restore_config,omitempty" json:"restore_config,omitempty" xml:"restore_config,omitempty"`
	// Orchestrator-specific configuration options.
	OrchestratorOpts *OrchestratorOptsResponseBody `form:"orchestrator_opts,omitempty" json:"orchestrator_opts,omitempty" xml:"orchestrator_opts,omitempty"`
	// The name of the source node to use for sync. This is typically the node
	// (like 'n1') from which the data will be copied to initialize this new node.
	SourceNode *string `form:"source_node,omitempty" json:"source_node,omitempty" xml:"source_node,omitempty"`
}

DatabaseNodeSpecResponseBody is used to define fields on response body types.

type DatabaseResponseBody

type DatabaseResponseBody struct {
	// Unique identifier for the database.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Unique identifier for the databases's owner.
	TenantID *string `form:"tenant_id,omitempty" json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	// The time that the database was created.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// The time that the database was last updated.
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// Current state of the database.
	State *string `form:"state,omitempty" json:"state,omitempty" xml:"state,omitempty"`
	// All of the instances in the database.
	Instances InstanceCollectionResponseBody `form:"instances,omitempty" json:"instances,omitempty" xml:"instances,omitempty"`
	// The user-provided specification for the database.
	Spec *DatabaseSpecResponseBody `form:"spec,omitempty" json:"spec,omitempty" xml:"spec,omitempty"`
}

DatabaseResponseBody is used to define fields on response body types.

type DatabaseSpecRequestBody

type DatabaseSpecRequestBody struct {
	// The name of the Postgres database.
	DatabaseName string `form:"database_name" json:"database_name" xml:"database_name"`
	// The Postgres version in 'major.minor' format.
	PostgresVersion *string `form:"postgres_version,omitempty" json:"postgres_version,omitempty" xml:"postgres_version,omitempty"`
	// The major version of the Spock extension.
	SpockVersion *string `form:"spock_version,omitempty" json:"spock_version,omitempty" xml:"spock_version,omitempty"`
	// The port used by the Postgres database. If the port is 0, each instance will
	// be assigned a random port. If the port is unspecified, the database will not
	// be exposed on any port, dependent on orchestrator support for that feature.
	Port *int `form:"port,omitempty" json:"port,omitempty" xml:"port,omitempty"`
	// The number of CPUs to allocate for the database and to use for tuning
	// Postgres. Defaults to the number of available CPUs on the host. Can include
	// an SI suffix, e.g. '500m' for 500 millicpus. Whether this limit is enforced
	// depends on the orchestrator.
	Cpus *string `form:"cpus,omitempty" json:"cpus,omitempty" xml:"cpus,omitempty"`
	// The amount of memory in SI or IEC notation to allocate for the database and
	// to use for tuning Postgres. Defaults to the total available memory on the
	// host. Whether this limit is enforced depends on the orchestrator.
	Memory *string `form:"memory,omitempty" json:"memory,omitempty" xml:"memory,omitempty"`
	// The Spock nodes for this database.
	Nodes []*DatabaseNodeSpecRequestBody `form:"nodes" json:"nodes" xml:"nodes"`
	// The users to create for this database.
	DatabaseUsers []*DatabaseUserSpecRequestBody `form:"database_users,omitempty" json:"database_users,omitempty" xml:"database_users,omitempty"`
	// The backup configuration for this database.
	BackupConfig *BackupConfigSpecRequestBody `form:"backup_config,omitempty" json:"backup_config,omitempty" xml:"backup_config,omitempty"`
	// The restore configuration for this database.
	RestoreConfig *RestoreConfigSpecRequestBody `form:"restore_config,omitempty" json:"restore_config,omitempty" xml:"restore_config,omitempty"`
	// Additional postgresql.conf settings. Will be merged with the settings
	// provided by control-plane.
	PostgresqlConf map[string]any `form:"postgresql_conf,omitempty" json:"postgresql_conf,omitempty" xml:"postgresql_conf,omitempty"`
	// Orchestrator-specific configuration options.
	OrchestratorOpts *OrchestratorOptsRequestBody `form:"orchestrator_opts,omitempty" json:"orchestrator_opts,omitempty" xml:"orchestrator_opts,omitempty"`
}

DatabaseSpecRequestBody is used to define fields on request body types.

type DatabaseSpecRequestBodyRequestBody

type DatabaseSpecRequestBodyRequestBody struct {
	// The name of the Postgres database.
	DatabaseName string `form:"database_name" json:"database_name" xml:"database_name"`
	// The Postgres version in 'major.minor' format.
	PostgresVersion *string `form:"postgres_version,omitempty" json:"postgres_version,omitempty" xml:"postgres_version,omitempty"`
	// The major version of the Spock extension.
	SpockVersion *string `form:"spock_version,omitempty" json:"spock_version,omitempty" xml:"spock_version,omitempty"`
	// The port used by the Postgres database. If the port is 0, each instance will
	// be assigned a random port. If the port is unspecified, the database will not
	// be exposed on any port, dependent on orchestrator support for that feature.
	Port *int `form:"port,omitempty" json:"port,omitempty" xml:"port,omitempty"`
	// The number of CPUs to allocate for the database and to use for tuning
	// Postgres. Defaults to the number of available CPUs on the host. Can include
	// an SI suffix, e.g. '500m' for 500 millicpus. Whether this limit is enforced
	// depends on the orchestrator.
	Cpus *string `form:"cpus,omitempty" json:"cpus,omitempty" xml:"cpus,omitempty"`
	// The amount of memory in SI or IEC notation to allocate for the database and
	// to use for tuning Postgres. Defaults to the total available memory on the
	// host. Whether this limit is enforced depends on the orchestrator.
	Memory *string `form:"memory,omitempty" json:"memory,omitempty" xml:"memory,omitempty"`
	// The Spock nodes for this database.
	Nodes []*DatabaseNodeSpecRequestBodyRequestBody `form:"nodes" json:"nodes" xml:"nodes"`
	// The users to create for this database.
	DatabaseUsers []*DatabaseUserSpecRequestBodyRequestBody `form:"database_users,omitempty" json:"database_users,omitempty" xml:"database_users,omitempty"`
	// The backup configuration for this database.
	BackupConfig *BackupConfigSpecRequestBodyRequestBody `form:"backup_config,omitempty" json:"backup_config,omitempty" xml:"backup_config,omitempty"`
	// The restore configuration for this database.
	RestoreConfig *RestoreConfigSpecRequestBodyRequestBody `form:"restore_config,omitempty" json:"restore_config,omitempty" xml:"restore_config,omitempty"`
	// Additional postgresql.conf settings. Will be merged with the settings
	// provided by control-plane.
	PostgresqlConf map[string]any `form:"postgresql_conf,omitempty" json:"postgresql_conf,omitempty" xml:"postgresql_conf,omitempty"`
	// Orchestrator-specific configuration options.
	OrchestratorOpts *OrchestratorOptsRequestBodyRequestBody `form:"orchestrator_opts,omitempty" json:"orchestrator_opts,omitempty" xml:"orchestrator_opts,omitempty"`
}

DatabaseSpecRequestBodyRequestBody is used to define fields on request body types.

type DatabaseSpecResponseBody

type DatabaseSpecResponseBody struct {
	// The name of the Postgres database.
	DatabaseName *string `form:"database_name,omitempty" json:"database_name,omitempty" xml:"database_name,omitempty"`
	// The Postgres version in 'major.minor' format.
	PostgresVersion *string `form:"postgres_version,omitempty" json:"postgres_version,omitempty" xml:"postgres_version,omitempty"`
	// The major version of the Spock extension.
	SpockVersion *string `form:"spock_version,omitempty" json:"spock_version,omitempty" xml:"spock_version,omitempty"`
	// The port used by the Postgres database. If the port is 0, each instance will
	// be assigned a random port. If the port is unspecified, the database will not
	// be exposed on any port, dependent on orchestrator support for that feature.
	Port *int `form:"port,omitempty" json:"port,omitempty" xml:"port,omitempty"`
	// The number of CPUs to allocate for the database and to use for tuning
	// Postgres. Defaults to the number of available CPUs on the host. Can include
	// an SI suffix, e.g. '500m' for 500 millicpus. Whether this limit is enforced
	// depends on the orchestrator.
	Cpus *string `form:"cpus,omitempty" json:"cpus,omitempty" xml:"cpus,omitempty"`
	// The amount of memory in SI or IEC notation to allocate for the database and
	// to use for tuning Postgres. Defaults to the total available memory on the
	// host. Whether this limit is enforced depends on the orchestrator.
	Memory *string `form:"memory,omitempty" json:"memory,omitempty" xml:"memory,omitempty"`
	// The Spock nodes for this database.
	Nodes []*DatabaseNodeSpecResponseBody `form:"nodes,omitempty" json:"nodes,omitempty" xml:"nodes,omitempty"`
	// The users to create for this database.
	DatabaseUsers []*DatabaseUserSpecResponseBody `form:"database_users,omitempty" json:"database_users,omitempty" xml:"database_users,omitempty"`
	// The backup configuration for this database.
	BackupConfig *BackupConfigSpecResponseBody `form:"backup_config,omitempty" json:"backup_config,omitempty" xml:"backup_config,omitempty"`
	// The restore configuration for this database.
	RestoreConfig *RestoreConfigSpecResponseBody `form:"restore_config,omitempty" json:"restore_config,omitempty" xml:"restore_config,omitempty"`
	// Additional postgresql.conf settings. Will be merged with the settings
	// provided by control-plane.
	PostgresqlConf map[string]any `form:"postgresql_conf,omitempty" json:"postgresql_conf,omitempty" xml:"postgresql_conf,omitempty"`
	// Orchestrator-specific configuration options.
	OrchestratorOpts *OrchestratorOptsResponseBody `form:"orchestrator_opts,omitempty" json:"orchestrator_opts,omitempty" xml:"orchestrator_opts,omitempty"`
}

DatabaseSpecResponseBody is used to define fields on response body types.

type DatabaseUserSpecRequestBody

type DatabaseUserSpecRequestBody struct {
	// The username for this database user.
	Username string `form:"username" json:"username" xml:"username"`
	// The password for this database user. This field will be excluded from the
	// response of all endpoints. It can also be omitted from update requests to
	// keep the current value.
	Password *string `form:"password,omitempty" json:"password,omitempty" xml:"password,omitempty"`
	// If true, this user will be granted database ownership.
	DbOwner *bool `form:"db_owner,omitempty" json:"db_owner,omitempty" xml:"db_owner,omitempty"`
	// The attributes to assign to this database user.
	Attributes []string `form:"attributes,omitempty" json:"attributes,omitempty" xml:"attributes,omitempty"`
	// The roles to assign to this database user.
	Roles []string `form:"roles,omitempty" json:"roles,omitempty" xml:"roles,omitempty"`
}

DatabaseUserSpecRequestBody is used to define fields on request body types.

type DatabaseUserSpecRequestBodyRequestBody

type DatabaseUserSpecRequestBodyRequestBody struct {
	// The username for this database user.
	Username string `form:"username" json:"username" xml:"username"`
	// The password for this database user. This field will be excluded from the
	// response of all endpoints. It can also be omitted from update requests to
	// keep the current value.
	Password *string `form:"password,omitempty" json:"password,omitempty" xml:"password,omitempty"`
	// If true, this user will be granted database ownership.
	DbOwner *bool `form:"db_owner,omitempty" json:"db_owner,omitempty" xml:"db_owner,omitempty"`
	// The attributes to assign to this database user.
	Attributes []string `form:"attributes,omitempty" json:"attributes,omitempty" xml:"attributes,omitempty"`
	// The roles to assign to this database user.
	Roles []string `form:"roles,omitempty" json:"roles,omitempty" xml:"roles,omitempty"`
}

DatabaseUserSpecRequestBodyRequestBody is used to define fields on request body types.

type DatabaseUserSpecResponseBody

type DatabaseUserSpecResponseBody struct {
	// The username for this database user.
	Username *string `form:"username,omitempty" json:"username,omitempty" xml:"username,omitempty"`
	// The password for this database user. This field will be excluded from the
	// response of all endpoints. It can also be omitted from update requests to
	// keep the current value.
	Password *string `form:"password,omitempty" json:"password,omitempty" xml:"password,omitempty"`
	// If true, this user will be granted database ownership.
	DbOwner *bool `form:"db_owner,omitempty" json:"db_owner,omitempty" xml:"db_owner,omitempty"`
	// The attributes to assign to this database user.
	Attributes []string `form:"attributes,omitempty" json:"attributes,omitempty" xml:"attributes,omitempty"`
	// The roles to assign to this database user.
	Roles []string `form:"roles,omitempty" json:"roles,omitempty" xml:"roles,omitempty"`
}

DatabaseUserSpecResponseBody is used to define fields on response body types.

type DeleteDatabaseClusterNotInitializedResponseBody

type DeleteDatabaseClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

DeleteDatabaseClusterNotInitializedResponseBody is the type of the "control-plane" service "delete-database" endpoint HTTP response body for the "cluster_not_initialized" error.

type DeleteDatabaseDatabaseNotModifiableResponseBody

type DeleteDatabaseDatabaseNotModifiableResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

DeleteDatabaseDatabaseNotModifiableResponseBody is the type of the "control-plane" service "delete-database" endpoint HTTP response body for the "database_not_modifiable" error.

type DeleteDatabaseInvalidInputResponseBody

type DeleteDatabaseInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

DeleteDatabaseInvalidInputResponseBody is the type of the "control-plane" service "delete-database" endpoint HTTP response body for the "invalid_input" error.

type DeleteDatabaseNotFoundResponseBody

type DeleteDatabaseNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

DeleteDatabaseNotFoundResponseBody is the type of the "control-plane" service "delete-database" endpoint HTTP response body for the "not_found" error.

type DeleteDatabaseOperationAlreadyInProgressResponseBody

type DeleteDatabaseOperationAlreadyInProgressResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

DeleteDatabaseOperationAlreadyInProgressResponseBody is the type of the "control-plane" service "delete-database" endpoint HTTP response body for the "operation_already_in_progress" error.

type DeleteDatabaseResponseBody

type DeleteDatabaseResponseBody struct {
	// The task that will delete this database.
	Task *TaskResponseBody `form:"task,omitempty" json:"task,omitempty" xml:"task,omitempty"`
}

DeleteDatabaseResponseBody is the type of the "control-plane" service "delete-database" endpoint HTTP response body.

type DeleteDatabaseServerErrorResponseBody

type DeleteDatabaseServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

DeleteDatabaseServerErrorResponseBody is the type of the "control-plane" service "delete-database" endpoint HTTP response body for the "server_error" error.

type EtcdClusterMemberResponseBody

type EtcdClusterMemberResponseBody struct {
	// The name of the Etcd cluster member.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The Etcd peer endpoint for this cluster member.
	PeerUrls []string `form:"peer_urls,omitempty" json:"peer_urls,omitempty" xml:"peer_urls,omitempty"`
	// The Etcd client endpoint for this cluster member.
	ClientUrls []string `form:"client_urls,omitempty" json:"client_urls,omitempty" xml:"client_urls,omitempty"`
}

EtcdClusterMemberResponseBody is used to define fields on response body types.

type ExtraNetworkSpecRequestBody

type ExtraNetworkSpecRequestBody struct {
	// The name or ID of the network to connect to.
	ID string `form:"id" json:"id" xml:"id"`
	// Optional network-scoped aliases for the container.
	Aliases []string `form:"aliases,omitempty" json:"aliases,omitempty" xml:"aliases,omitempty"`
	// Optional driver options for the network connection.
	DriverOpts map[string]string `form:"driver_opts,omitempty" json:"driver_opts,omitempty" xml:"driver_opts,omitempty"`
}

ExtraNetworkSpecRequestBody is used to define fields on request body types.

type ExtraNetworkSpecRequestBodyRequestBody

type ExtraNetworkSpecRequestBodyRequestBody struct {
	// The name or ID of the network to connect to.
	ID string `form:"id" json:"id" xml:"id"`
	// Optional network-scoped aliases for the container.
	Aliases []string `form:"aliases,omitempty" json:"aliases,omitempty" xml:"aliases,omitempty"`
	// Optional driver options for the network connection.
	DriverOpts map[string]string `form:"driver_opts,omitempty" json:"driver_opts,omitempty" xml:"driver_opts,omitempty"`
}

ExtraNetworkSpecRequestBodyRequestBody is used to define fields on request body types.

type ExtraNetworkSpecResponseBody

type ExtraNetworkSpecResponseBody struct {
	// The name or ID of the network to connect to.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Optional network-scoped aliases for the container.
	Aliases []string `form:"aliases,omitempty" json:"aliases,omitempty" xml:"aliases,omitempty"`
	// Optional driver options for the network connection.
	DriverOpts map[string]string `form:"driver_opts,omitempty" json:"driver_opts,omitempty" xml:"driver_opts,omitempty"`
}

ExtraNetworkSpecResponseBody is used to define fields on response body types.

type ExtraVolumesSpecRequestBody

type ExtraVolumesSpecRequestBody struct {
	// The host path for the volume.
	HostPath string `form:"host_path" json:"host_path" xml:"host_path"`
	// The path inside the container where the volume will be mounted.
	DestinationPath string `form:"destination_path" json:"destination_path" xml:"destination_path"`
}

ExtraVolumesSpecRequestBody is used to define fields on request body types.

type ExtraVolumesSpecRequestBodyRequestBody

type ExtraVolumesSpecRequestBodyRequestBody struct {
	// The host path for the volume.
	HostPath string `form:"host_path" json:"host_path" xml:"host_path"`
	// The path inside the container where the volume will be mounted.
	DestinationPath string `form:"destination_path" json:"destination_path" xml:"destination_path"`
}

ExtraVolumesSpecRequestBodyRequestBody is used to define fields on request body types.

type ExtraVolumesSpecResponseBody

type ExtraVolumesSpecResponseBody struct {
	// The host path for the volume.
	HostPath *string `form:"host_path,omitempty" json:"host_path,omitempty" xml:"host_path,omitempty"`
	// The path inside the container where the volume will be mounted.
	DestinationPath *string `form:"destination_path,omitempty" json:"destination_path,omitempty" xml:"destination_path,omitempty"`
}

ExtraVolumesSpecResponseBody is used to define fields on response body types.

type FailoverDatabaseNodeClusterNotInitializedResponseBody

type FailoverDatabaseNodeClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

FailoverDatabaseNodeClusterNotInitializedResponseBody is the type of the "control-plane" service "failover-database-node" endpoint HTTP response body for the "cluster_not_initialized" error.

type FailoverDatabaseNodeDatabaseNotModifiableResponseBody

type FailoverDatabaseNodeDatabaseNotModifiableResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

FailoverDatabaseNodeDatabaseNotModifiableResponseBody is the type of the "control-plane" service "failover-database-node" endpoint HTTP response body for the "database_not_modifiable" error.

type FailoverDatabaseNodeInvalidInputResponseBody

type FailoverDatabaseNodeInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

FailoverDatabaseNodeInvalidInputResponseBody is the type of the "control-plane" service "failover-database-node" endpoint HTTP response body for the "invalid_input" error.

type FailoverDatabaseNodeNotFoundResponseBody

type FailoverDatabaseNodeNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

FailoverDatabaseNodeNotFoundResponseBody is the type of the "control-plane" service "failover-database-node" endpoint HTTP response body for the "not_found" error.

type FailoverDatabaseNodeOperationAlreadyInProgressResponseBody

type FailoverDatabaseNodeOperationAlreadyInProgressResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

FailoverDatabaseNodeOperationAlreadyInProgressResponseBody is the type of the "control-plane" service "failover-database-node" endpoint HTTP response body for the "operation_already_in_progress" error.

type FailoverDatabaseNodeRequestBody

type FailoverDatabaseNodeRequestBody struct {
	// Optional instance_id of the replica to promote. If omitted, a candidate will
	// be selected.
	CandidateInstanceID *string `form:"candidate_instance_id,omitempty" json:"candidate_instance_id,omitempty" xml:"candidate_instance_id,omitempty"`
	// If true, skip the health validations that prevent running failover on a
	// healthy cluster.
	SkipValidation bool `form:"skip_validation" json:"skip_validation" xml:"skip_validation"`
}

FailoverDatabaseNodeRequestBody is the type of the "control-plane" service "failover-database-node" endpoint HTTP request body.

func NewFailoverDatabaseNodeRequestBody

func NewFailoverDatabaseNodeRequestBody(p *controlplane.FailoverDatabaseNodeRequest) *FailoverDatabaseNodeRequestBody

NewFailoverDatabaseNodeRequestBody builds the HTTP request body from the payload of the "failover-database-node" endpoint of the "control-plane" service.

type FailoverDatabaseNodeResponseBody

type FailoverDatabaseNodeResponseBody struct {
	// The task that will perform the failover.
	Task *TaskResponseBody `form:"task,omitempty" json:"task,omitempty" xml:"task,omitempty"`
}

FailoverDatabaseNodeResponseBody is the type of the "control-plane" service "failover-database-node" endpoint HTTP response body.

type FailoverDatabaseNodeServerErrorResponseBody

type FailoverDatabaseNodeServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

FailoverDatabaseNodeServerErrorResponseBody is the type of the "control-plane" service "failover-database-node" endpoint HTTP response body for the "server_error" error.

type GetClusterClusterNotInitializedResponseBody

type GetClusterClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetClusterClusterNotInitializedResponseBody is the type of the "control-plane" service "get-cluster" endpoint HTTP response body for the "cluster_not_initialized" error.

type GetClusterResponseBody

type GetClusterResponseBody struct {
	// Unique identifier for the cluster.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Current status of the cluster.
	Status *ClusterStatusResponseBody `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// All of the hosts in the cluster.
	Hosts []*HostResponseBody `form:"hosts,omitempty" json:"hosts,omitempty" xml:"hosts,omitempty"`
}

GetClusterResponseBody is the type of the "control-plane" service "get-cluster" endpoint HTTP response body.

type GetClusterServerErrorResponseBody

type GetClusterServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetClusterServerErrorResponseBody is the type of the "control-plane" service "get-cluster" endpoint HTTP response body for the "server_error" error.

type GetDatabaseClusterNotInitializedResponseBody

type GetDatabaseClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseClusterNotInitializedResponseBody is the type of the "control-plane" service "get-database" endpoint HTTP response body for the "cluster_not_initialized" error.

type GetDatabaseInvalidInputResponseBody

type GetDatabaseInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseInvalidInputResponseBody is the type of the "control-plane" service "get-database" endpoint HTTP response body for the "invalid_input" error.

type GetDatabaseNotFoundResponseBody

type GetDatabaseNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseNotFoundResponseBody is the type of the "control-plane" service "get-database" endpoint HTTP response body for the "not_found" error.

type GetDatabaseResponseBody

type GetDatabaseResponseBody struct {
	// Unique identifier for the database.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Unique identifier for the database.
	TenantID *string `form:"tenant_id,omitempty" json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	// The time that the database was created.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// The time that the database was last updated.
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// Current state of the database.
	State *string `form:"state,omitempty" json:"state,omitempty" xml:"state,omitempty"`
	// All of the instances in the database.
	Instances InstanceResponseBodyCollection `form:"instances,omitempty" json:"instances,omitempty" xml:"instances,omitempty"`
	// The user-provided specification for the database.
	Spec *DatabaseSpecResponseBody `form:"spec,omitempty" json:"spec,omitempty" xml:"spec,omitempty"`
}

GetDatabaseResponseBody is the type of the "control-plane" service "get-database" endpoint HTTP response body.

type GetDatabaseServerErrorResponseBody

type GetDatabaseServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseServerErrorResponseBody is the type of the "control-plane" service "get-database" endpoint HTTP response body for the "server_error" error.

type GetDatabaseTaskClusterNotInitializedResponseBody

type GetDatabaseTaskClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseTaskClusterNotInitializedResponseBody is the type of the "control-plane" service "get-database-task" endpoint HTTP response body for the "cluster_not_initialized" error.

type GetDatabaseTaskInvalidInputResponseBody

type GetDatabaseTaskInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseTaskInvalidInputResponseBody is the type of the "control-plane" service "get-database-task" endpoint HTTP response body for the "invalid_input" error.

type GetDatabaseTaskLogClusterNotInitializedResponseBody

type GetDatabaseTaskLogClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseTaskLogClusterNotInitializedResponseBody is the type of the "control-plane" service "get-database-task-log" endpoint HTTP response body for the "cluster_not_initialized" error.

type GetDatabaseTaskLogInvalidInputResponseBody

type GetDatabaseTaskLogInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseTaskLogInvalidInputResponseBody is the type of the "control-plane" service "get-database-task-log" endpoint HTTP response body for the "invalid_input" error.

type GetDatabaseTaskLogNotFoundResponseBody

type GetDatabaseTaskLogNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseTaskLogNotFoundResponseBody is the type of the "control-plane" service "get-database-task-log" endpoint HTTP response body for the "not_found" error.

type GetDatabaseTaskLogResponseBody

type GetDatabaseTaskLogResponseBody struct {
	// The database ID of the task log.
	DatabaseID *string `form:"database_id,omitempty" json:"database_id,omitempty" xml:"database_id,omitempty"`
	// The unique ID of the task log.
	TaskID *string `form:"task_id,omitempty" json:"task_id,omitempty" xml:"task_id,omitempty"`
	// The status of the task.
	TaskStatus *string `form:"task_status,omitempty" json:"task_status,omitempty" xml:"task_status,omitempty"`
	// The ID of the last entry in the task log.
	LastEntryID *string `form:"last_entry_id,omitempty" json:"last_entry_id,omitempty" xml:"last_entry_id,omitempty"`
	// Entries in the task log.
	Entries []*TaskLogEntryResponseBody `form:"entries,omitempty" json:"entries,omitempty" xml:"entries,omitempty"`
}

GetDatabaseTaskLogResponseBody is the type of the "control-plane" service "get-database-task-log" endpoint HTTP response body.

type GetDatabaseTaskLogServerErrorResponseBody

type GetDatabaseTaskLogServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseTaskLogServerErrorResponseBody is the type of the "control-plane" service "get-database-task-log" endpoint HTTP response body for the "server_error" error.

type GetDatabaseTaskNotFoundResponseBody

type GetDatabaseTaskNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseTaskNotFoundResponseBody is the type of the "control-plane" service "get-database-task" endpoint HTTP response body for the "not_found" error.

type GetDatabaseTaskResponseBody

type GetDatabaseTaskResponseBody struct {
	// The parent task ID of the task.
	ParentID *string `form:"parent_id,omitempty" json:"parent_id,omitempty" xml:"parent_id,omitempty"`
	// The database ID of the task.
	DatabaseID *string `form:"database_id,omitempty" json:"database_id,omitempty" xml:"database_id,omitempty"`
	// The name of the node that the task is operating on.
	NodeName *string `form:"node_name,omitempty" json:"node_name,omitempty" xml:"node_name,omitempty"`
	// The ID of the instance that the task is operating on.
	InstanceID *string `form:"instance_id,omitempty" json:"instance_id,omitempty" xml:"instance_id,omitempty"`
	// The ID of the host that the task is running on.
	HostID *string `form:"host_id,omitempty" json:"host_id,omitempty" xml:"host_id,omitempty"`
	// The unique ID of the task.
	TaskID *string `form:"task_id,omitempty" json:"task_id,omitempty" xml:"task_id,omitempty"`
	// The time when the task was created.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// The time when the task was completed.
	CompletedAt *string `form:"completed_at,omitempty" json:"completed_at,omitempty" xml:"completed_at,omitempty"`
	// The type of the task.
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// The status of the task.
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// The error message if the task failed.
	Error *string `form:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"`
}

GetDatabaseTaskResponseBody is the type of the "control-plane" service "get-database-task" endpoint HTTP response body.

type GetDatabaseTaskServerErrorResponseBody

type GetDatabaseTaskServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetDatabaseTaskServerErrorResponseBody is the type of the "control-plane" service "get-database-task" endpoint HTTP response body for the "server_error" error.

type GetHostClusterNotInitializedResponseBody

type GetHostClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetHostClusterNotInitializedResponseBody is the type of the "control-plane" service "get-host" endpoint HTTP response body for the "cluster_not_initialized" error.

type GetHostInvalidInputResponseBody

type GetHostInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetHostInvalidInputResponseBody is the type of the "control-plane" service "get-host" endpoint HTTP response body for the "invalid_input" error.

type GetHostNotFoundResponseBody

type GetHostNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetHostNotFoundResponseBody is the type of the "control-plane" service "get-host" endpoint HTTP response body for the "not_found" error.

type GetHostResponseBody

type GetHostResponseBody struct {
	// Unique identifier for the host.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The orchestrator used by this host.
	Orchestrator *string `form:"orchestrator,omitempty" json:"orchestrator,omitempty" xml:"orchestrator,omitempty"`
	// The data directory for the host.
	DataDir *string `form:"data_dir,omitempty" json:"data_dir,omitempty" xml:"data_dir,omitempty"`
	// The cohort that this host belongs to.
	Cohort *HostCohortResponseBody `form:"cohort,omitempty" json:"cohort,omitempty" xml:"cohort,omitempty"`
	// The hostname of this host.
	Hostname *string `form:"hostname,omitempty" json:"hostname,omitempty" xml:"hostname,omitempty"`
	// The IPv4 address of this host.
	Ipv4Address *string `form:"ipv4_address,omitempty" json:"ipv4_address,omitempty" xml:"ipv4_address,omitempty"`
	// The number of CPUs on this host.
	Cpus *int `form:"cpus,omitempty" json:"cpus,omitempty" xml:"cpus,omitempty"`
	// The amount of memory available on this host.
	Memory *string `form:"memory,omitempty" json:"memory,omitempty" xml:"memory,omitempty"`
	// Current status of the host.
	Status *HostStatusResponseBody `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// The default PgEdge version for this host.
	DefaultPgedgeVersion *PgEdgeVersionResponseBody `form:"default_pgedge_version,omitempty" json:"default_pgedge_version,omitempty" xml:"default_pgedge_version,omitempty"`
	// The PgEdge versions supported by this host.
	SupportedPgedgeVersions []*PgEdgeVersionResponseBody `` /* 127-byte string literal not displayed */
}

GetHostResponseBody is the type of the "control-plane" service "get-host" endpoint HTTP response body.

type GetHostServerErrorResponseBody

type GetHostServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetHostServerErrorResponseBody is the type of the "control-plane" service "get-host" endpoint HTTP response body for the "server_error" error.

type GetJoinOptionsClusterNotInitializedResponseBody

type GetJoinOptionsClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetJoinOptionsClusterNotInitializedResponseBody is the type of the "control-plane" service "get-join-options" endpoint HTTP response body for the "cluster_not_initialized" error.

type GetJoinOptionsInvalidInputResponseBody added in v0.6.0

type GetJoinOptionsInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetJoinOptionsInvalidInputResponseBody is the type of the "control-plane" service "get-join-options" endpoint HTTP response body for the "invalid_input" error.

type GetJoinOptionsInvalidJoinTokenResponseBody

type GetJoinOptionsInvalidJoinTokenResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetJoinOptionsInvalidJoinTokenResponseBody is the type of the "control-plane" service "get-join-options" endpoint HTTP response body for the "invalid_join_token" error.

type GetJoinOptionsRequestBody

type GetJoinOptionsRequestBody struct {
	// Token to join the cluster.
	Token string `form:"token" json:"token" xml:"token"`
	// The unique identifier for the host that's joining the cluster.
	HostID string `form:"host_id" json:"host_id" xml:"host_id"`
	// The hostname of the host that's joining the cluster.
	Hostname string `form:"hostname" json:"hostname" xml:"hostname"`
	// The IPv4 address of the host that's joining the cluster.
	Ipv4Address string `form:"ipv4_address" json:"ipv4_address" xml:"ipv4_address"`
	// True if the joining member is configured to run an embedded an etcd server.
	EmbeddedEtcdEnabled bool `form:"embedded_etcd_enabled" json:"embedded_etcd_enabled" xml:"embedded_etcd_enabled"`
}

GetJoinOptionsRequestBody is the type of the "control-plane" service "get-join-options" endpoint HTTP request body.

func NewGetJoinOptionsRequestBody

func NewGetJoinOptionsRequestBody(p *controlplane.ClusterJoinRequest) *GetJoinOptionsRequestBody

NewGetJoinOptionsRequestBody builds the HTTP request body from the payload of the "get-join-options" endpoint of the "control-plane" service.

type GetJoinOptionsResponseBody

type GetJoinOptionsResponseBody struct {
	// Connection information for the etcd cluster leader
	Leader *EtcdClusterMemberResponseBody `form:"leader,omitempty" json:"leader,omitempty" xml:"leader,omitempty"`
	// Credentials for the new host joining the cluster.
	Credentials *ClusterCredentialsResponseBody `form:"credentials,omitempty" json:"credentials,omitempty" xml:"credentials,omitempty"`
}

GetJoinOptionsResponseBody is the type of the "control-plane" service "get-join-options" endpoint HTTP response body.

type GetJoinOptionsServerErrorResponseBody

type GetJoinOptionsServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetJoinOptionsServerErrorResponseBody is the type of the "control-plane" service "get-join-options" endpoint HTTP response body for the "server_error" error.

type GetJoinTokenClusterNotInitializedResponseBody

type GetJoinTokenClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetJoinTokenClusterNotInitializedResponseBody is the type of the "control-plane" service "get-join-token" endpoint HTTP response body for the "cluster_not_initialized" error.

type GetJoinTokenResponseBody

type GetJoinTokenResponseBody struct {
	// Token to join an existing cluster.
	Token *string `form:"token,omitempty" json:"token,omitempty" xml:"token,omitempty"`
	// Existing server to join
	ServerURL *string `form:"server_url,omitempty" json:"server_url,omitempty" xml:"server_url,omitempty"`
}

GetJoinTokenResponseBody is the type of the "control-plane" service "get-join-token" endpoint HTTP response body.

type GetJoinTokenServerErrorResponseBody

type GetJoinTokenServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetJoinTokenServerErrorResponseBody is the type of the "control-plane" service "get-join-token" endpoint HTTP response body for the "server_error" error.

type GetVersionResponseBody

type GetVersionResponseBody struct {
	// The version of the API server.
	Version *string `form:"version,omitempty" json:"version,omitempty" xml:"version,omitempty"`
	// The VCS revision of the API server.
	Revision *string `form:"revision,omitempty" json:"revision,omitempty" xml:"revision,omitempty"`
	// The timestamp associated with the revision.
	RevisionTime *string `form:"revision_time,omitempty" json:"revision_time,omitempty" xml:"revision_time,omitempty"`
	// The CPU architecture of the API server.
	Arch *string `form:"arch,omitempty" json:"arch,omitempty" xml:"arch,omitempty"`
}

GetVersionResponseBody is the type of the "control-plane" service "get-version" endpoint HTTP response body.

type GetVersionServerErrorResponseBody

type GetVersionServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

GetVersionServerErrorResponseBody is the type of the "control-plane" service "get-version" endpoint HTTP response body for the "server_error" error.

type HostCohortResponseBody

type HostCohortResponseBody struct {
	// The type of cohort that the host belongs to.
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// The member ID of the host within the cohort.
	MemberID *string `form:"member_id,omitempty" json:"member_id,omitempty" xml:"member_id,omitempty"`
	// Indicates if the host is a control node in the cohort.
	ControlAvailable *bool `form:"control_available,omitempty" json:"control_available,omitempty" xml:"control_available,omitempty"`
}

HostCohortResponseBody is used to define fields on response body types.

type HostResponseBody

type HostResponseBody struct {
	// Unique identifier for the host.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The orchestrator used by this host.
	Orchestrator *string `form:"orchestrator,omitempty" json:"orchestrator,omitempty" xml:"orchestrator,omitempty"`
	// The data directory for the host.
	DataDir *string `form:"data_dir,omitempty" json:"data_dir,omitempty" xml:"data_dir,omitempty"`
	// The cohort that this host belongs to.
	Cohort *HostCohortResponseBody `form:"cohort,omitempty" json:"cohort,omitempty" xml:"cohort,omitempty"`
	// The hostname of this host.
	Hostname *string `form:"hostname,omitempty" json:"hostname,omitempty" xml:"hostname,omitempty"`
	// The IPv4 address of this host.
	Ipv4Address *string `form:"ipv4_address,omitempty" json:"ipv4_address,omitempty" xml:"ipv4_address,omitempty"`
	// The number of CPUs on this host.
	Cpus *int `form:"cpus,omitempty" json:"cpus,omitempty" xml:"cpus,omitempty"`
	// The amount of memory available on this host.
	Memory *string `form:"memory,omitempty" json:"memory,omitempty" xml:"memory,omitempty"`
	// Current status of the host.
	Status *HostStatusResponseBody `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// The default PgEdge version for this host.
	DefaultPgedgeVersion *PgEdgeVersionResponseBody `form:"default_pgedge_version,omitempty" json:"default_pgedge_version,omitempty" xml:"default_pgedge_version,omitempty"`
	// The PgEdge versions supported by this host.
	SupportedPgedgeVersions []*PgEdgeVersionResponseBody `` /* 127-byte string literal not displayed */
}

HostResponseBody is used to define fields on response body types.

type HostStatusResponseBody

type HostStatusResponseBody struct {
	State *string `form:"state,omitempty" json:"state,omitempty" xml:"state,omitempty"`
	// The last time the host status was updated.
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// The status of each component of the host.
	Components map[string]*ComponentStatusResponseBody `form:"components,omitempty" json:"components,omitempty" xml:"components,omitempty"`
}

HostStatusResponseBody is used to define fields on response body types.

type InitClusterClusterAlreadyInitializedResponseBody

type InitClusterClusterAlreadyInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

InitClusterClusterAlreadyInitializedResponseBody is the type of the "control-plane" service "init-cluster" endpoint HTTP response body for the "cluster_already_initialized" error.

type InitClusterOperationNotSupportedResponseBody

type InitClusterOperationNotSupportedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

InitClusterOperationNotSupportedResponseBody is the type of the "control-plane" service "init-cluster" endpoint HTTP response body for the "operation_not_supported" error.

type InitClusterResponseBody

type InitClusterResponseBody struct {
	// Token to join an existing cluster.
	Token *string `form:"token,omitempty" json:"token,omitempty" xml:"token,omitempty"`
	// Existing server to join
	ServerURL *string `form:"server_url,omitempty" json:"server_url,omitempty" xml:"server_url,omitempty"`
}

InitClusterResponseBody is the type of the "control-plane" service "init-cluster" endpoint HTTP response body.

type InitClusterServerErrorResponseBody

type InitClusterServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

InitClusterServerErrorResponseBody is the type of the "control-plane" service "init-cluster" endpoint HTTP response body for the "server_error" error.

type InstanceCollectionResponseBody

type InstanceCollectionResponseBody []*InstanceResponseBody

InstanceCollectionResponseBody is used to define fields on response body types.

type InstanceConnectionInfoResponseBody

type InstanceConnectionInfoResponseBody struct {
	// The hostname of the host that's running this instance.
	Hostname *string `form:"hostname,omitempty" json:"hostname,omitempty" xml:"hostname,omitempty"`
	// The IPv4 address of the host that's running this instance.
	Ipv4Address *string `form:"ipv4_address,omitempty" json:"ipv4_address,omitempty" xml:"ipv4_address,omitempty"`
	// The host port that Postgres is listening on for this instance.
	Port *int `form:"port,omitempty" json:"port,omitempty" xml:"port,omitempty"`
}

InstanceConnectionInfoResponseBody is used to define fields on response body types.

type InstancePostgresStatusResponseBody

type InstancePostgresStatusResponseBody struct {
	// The version of Postgres for this instance.
	Version      *string `form:"version,omitempty" json:"version,omitempty" xml:"version,omitempty"`
	PatroniState *string `form:"patroni_state,omitempty" json:"patroni_state,omitempty" xml:"patroni_state,omitempty"`
	Role         *string `form:"role,omitempty" json:"role,omitempty" xml:"role,omitempty"`
	// True if this instance has a pending restart from a configuration change.
	PendingRestart *bool `form:"pending_restart,omitempty" json:"pending_restart,omitempty" xml:"pending_restart,omitempty"`
	// True if Patroni is paused for this instance.
	PatroniPaused *bool `form:"patroni_paused,omitempty" json:"patroni_paused,omitempty" xml:"patroni_paused,omitempty"`
}

InstancePostgresStatusResponseBody is used to define fields on response body types.

type InstanceResponseBody

type InstanceResponseBody struct {
	// Unique identifier for the instance.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The ID of the host this instance is running on.
	HostID *string `form:"host_id,omitempty" json:"host_id,omitempty" xml:"host_id,omitempty"`
	// The Spock node name for this instance.
	NodeName *string `form:"node_name,omitempty" json:"node_name,omitempty" xml:"node_name,omitempty"`
	// The time that the instance was created.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// The time that the instance was last modified.
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// The time that the instance status information was last updated.
	StatusUpdatedAt *string `form:"status_updated_at,omitempty" json:"status_updated_at,omitempty" xml:"status_updated_at,omitempty"`
	State           *string `form:"state,omitempty" json:"state,omitempty" xml:"state,omitempty"`
	// Connection information for the instance.
	ConnectionInfo *InstanceConnectionInfoResponseBody `form:"connection_info,omitempty" json:"connection_info,omitempty" xml:"connection_info,omitempty"`
	// Postgres status information for the instance.
	Postgres *InstancePostgresStatusResponseBody `form:"postgres,omitempty" json:"postgres,omitempty" xml:"postgres,omitempty"`
	// Spock status information for the instance.
	Spock *InstanceSpockStatusResponseBody `form:"spock,omitempty" json:"spock,omitempty" xml:"spock,omitempty"`
	// An error message if the instance is in an error state.
	Error *string `form:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"`
}

InstanceResponseBody is used to define fields on response body types.

type InstanceResponseBodyCollection

type InstanceResponseBodyCollection []*InstanceResponseBody

InstanceResponseBodyCollection is used to define fields on response body types.

type InstanceSpockStatusResponseBody

type InstanceSpockStatusResponseBody struct {
	// The current spock.readonly setting.
	ReadOnly *string `form:"read_only,omitempty" json:"read_only,omitempty" xml:"read_only,omitempty"`
	// The version of Spock for this instance.
	Version *string `form:"version,omitempty" json:"version,omitempty" xml:"version,omitempty"`
	// Status information for this instance's Spock subscriptions.
	Subscriptions []*InstanceSubscriptionResponseBody `form:"subscriptions,omitempty" json:"subscriptions,omitempty" xml:"subscriptions,omitempty"`
}

InstanceSpockStatusResponseBody is used to define fields on response body types.

type InstanceSubscriptionResponseBody

type InstanceSubscriptionResponseBody struct {
	// The Spock node name of the provider for this subscription.
	ProviderNode *string `form:"provider_node,omitempty" json:"provider_node,omitempty" xml:"provider_node,omitempty"`
	// The name of the subscription.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The current status of the subscription.
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
}

InstanceSubscriptionResponseBody is used to define fields on response body types.

type JoinClusterClusterAlreadyInitializedResponseBody

type JoinClusterClusterAlreadyInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JoinClusterClusterAlreadyInitializedResponseBody is the type of the "control-plane" service "join-cluster" endpoint HTTP response body for the "cluster_already_initialized" error.

type JoinClusterInvalidInputResponseBody added in v0.6.0

type JoinClusterInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JoinClusterInvalidInputResponseBody is the type of the "control-plane" service "join-cluster" endpoint HTTP response body for the "invalid_input" error.

type JoinClusterInvalidJoinTokenResponseBody

type JoinClusterInvalidJoinTokenResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JoinClusterInvalidJoinTokenResponseBody is the type of the "control-plane" service "join-cluster" endpoint HTTP response body for the "invalid_join_token" error.

type JoinClusterRequestBody

type JoinClusterRequestBody struct {
	// Token to join an existing cluster.
	Token string `form:"token" json:"token" xml:"token"`
	// Existing server to join
	ServerURL string `form:"server_url" json:"server_url" xml:"server_url"`
}

JoinClusterRequestBody is the type of the "control-plane" service "join-cluster" endpoint HTTP request body.

func NewJoinClusterRequestBody

func NewJoinClusterRequestBody(p *controlplane.ClusterJoinToken) *JoinClusterRequestBody

NewJoinClusterRequestBody builds the HTTP request body from the payload of the "join-cluster" endpoint of the "control-plane" service.

type JoinClusterServerErrorResponseBody

type JoinClusterServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JoinClusterServerErrorResponseBody is the type of the "control-plane" service "join-cluster" endpoint HTTP response body for the "server_error" error.

type ListDatabaseTasksClusterNotInitializedResponseBody

type ListDatabaseTasksClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListDatabaseTasksClusterNotInitializedResponseBody is the type of the "control-plane" service "list-database-tasks" endpoint HTTP response body for the "cluster_not_initialized" error.

type ListDatabaseTasksInvalidInputResponseBody

type ListDatabaseTasksInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListDatabaseTasksInvalidInputResponseBody is the type of the "control-plane" service "list-database-tasks" endpoint HTTP response body for the "invalid_input" error.

type ListDatabaseTasksNotFoundResponseBody

type ListDatabaseTasksNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListDatabaseTasksNotFoundResponseBody is the type of the "control-plane" service "list-database-tasks" endpoint HTTP response body for the "not_found" error.

type ListDatabaseTasksResponseBody

type ListDatabaseTasksResponseBody struct {
	Tasks []*TaskResponseBody `form:"tasks,omitempty" json:"tasks,omitempty" xml:"tasks,omitempty"`
}

ListDatabaseTasksResponseBody is the type of the "control-plane" service "list-database-tasks" endpoint HTTP response body.

type ListDatabaseTasksServerErrorResponseBody

type ListDatabaseTasksServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListDatabaseTasksServerErrorResponseBody is the type of the "control-plane" service "list-database-tasks" endpoint HTTP response body for the "server_error" error.

type ListDatabasesClusterNotInitializedResponseBody

type ListDatabasesClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListDatabasesClusterNotInitializedResponseBody is the type of the "control-plane" service "list-databases" endpoint HTTP response body for the "cluster_not_initialized" error.

type ListDatabasesResponseBody

type ListDatabasesResponseBody struct {
	Databases DatabaseCollectionResponseBody `form:"databases,omitempty" json:"databases,omitempty" xml:"databases,omitempty"`
}

ListDatabasesResponseBody is the type of the "control-plane" service "list-databases" endpoint HTTP response body.

type ListDatabasesServerErrorResponseBody

type ListDatabasesServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListDatabasesServerErrorResponseBody is the type of the "control-plane" service "list-databases" endpoint HTTP response body for the "server_error" error.

type ListHostsClusterNotInitializedResponseBody

type ListHostsClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListHostsClusterNotInitializedResponseBody is the type of the "control-plane" service "list-hosts" endpoint HTTP response body for the "cluster_not_initialized" error.

type ListHostsResponseBody

type ListHostsResponseBody struct {
	// List of hosts in the cluster
	Hosts []*HostResponseBody `form:"hosts,omitempty" json:"hosts,omitempty" xml:"hosts,omitempty"`
}

ListHostsResponseBody is the type of the "control-plane" service "list-hosts" endpoint HTTP response body.

type ListHostsServerErrorResponseBody

type ListHostsServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListHostsServerErrorResponseBody is the type of the "control-plane" service "list-hosts" endpoint HTTP response body for the "server_error" error.

type OrchestratorOptsRequestBody

type OrchestratorOptsRequestBody struct {
	// Swarm-specific configuration.
	Swarm *SwarmOptsRequestBody `form:"swarm,omitempty" json:"swarm,omitempty" xml:"swarm,omitempty"`
}

OrchestratorOptsRequestBody is used to define fields on request body types.

type OrchestratorOptsRequestBodyRequestBody

type OrchestratorOptsRequestBodyRequestBody struct {
	// Swarm-specific configuration.
	Swarm *SwarmOptsRequestBodyRequestBody `form:"swarm,omitempty" json:"swarm,omitempty" xml:"swarm,omitempty"`
}

OrchestratorOptsRequestBodyRequestBody is used to define fields on request body types.

type OrchestratorOptsResponseBody

type OrchestratorOptsResponseBody struct {
	// Swarm-specific configuration.
	Swarm *SwarmOptsResponseBody `form:"swarm,omitempty" json:"swarm,omitempty" xml:"swarm,omitempty"`
}

OrchestratorOptsResponseBody is used to define fields on response body types.

type PgEdgeVersionResponseBody

type PgEdgeVersionResponseBody struct {
	// The Postgres major and minor version.
	PostgresVersion *string `form:"postgres_version,omitempty" json:"postgres_version,omitempty" xml:"postgres_version,omitempty"`
	// The Spock major version.
	SpockVersion *string `form:"spock_version,omitempty" json:"spock_version,omitempty" xml:"spock_version,omitempty"`
}

PgEdgeVersionResponseBody is used to define fields on response body types.

type RemoveHostClusterNotInitializedResponseBody

type RemoveHostClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RemoveHostClusterNotInitializedResponseBody is the type of the "control-plane" service "remove-host" endpoint HTTP response body for the "cluster_not_initialized" error.

type RemoveHostInvalidInputResponseBody

type RemoveHostInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RemoveHostInvalidInputResponseBody is the type of the "control-plane" service "remove-host" endpoint HTTP response body for the "invalid_input" error.

type RemoveHostNotFoundResponseBody

type RemoveHostNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RemoveHostNotFoundResponseBody is the type of the "control-plane" service "remove-host" endpoint HTTP response body for the "not_found" error.

type RemoveHostResponseBody added in v0.6.0

type RemoveHostResponseBody struct {
	// The tasks that will update databases affected by the host removal.
	UpdateDatabaseTasks []*TaskResponseBody `form:"update_database_tasks,omitempty" json:"update_database_tasks,omitempty" xml:"update_database_tasks,omitempty"`
}

RemoveHostResponseBody is the type of the "control-plane" service "remove-host" endpoint HTTP response body.

type RemoveHostServerErrorResponseBody

type RemoveHostServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RemoveHostServerErrorResponseBody is the type of the "control-plane" service "remove-host" endpoint HTTP response body for the "server_error" error.

type RestartInstanceClusterNotInitializedResponseBody

type RestartInstanceClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RestartInstanceClusterNotInitializedResponseBody is the type of the "control-plane" service "restart-instance" endpoint HTTP response body for the "cluster_not_initialized" error.

type RestartInstanceInvalidInputResponseBody

type RestartInstanceInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RestartInstanceInvalidInputResponseBody is the type of the "control-plane" service "restart-instance" endpoint HTTP response body for the "invalid_input" error.

type RestartInstanceNotFoundResponseBody

type RestartInstanceNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RestartInstanceNotFoundResponseBody is the type of the "control-plane" service "restart-instance" endpoint HTTP response body for the "not_found" error.

type RestartInstanceResponseBody

type RestartInstanceResponseBody struct {
	// Task representing the restart operation
	Task *TaskResponseBody `form:"task,omitempty" json:"task,omitempty" xml:"task,omitempty"`
}

RestartInstanceResponseBody is the type of the "control-plane" service "restart-instance" endpoint HTTP response body.

type RestartInstanceServerErrorResponseBody

type RestartInstanceServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RestartInstanceServerErrorResponseBody is the type of the "control-plane" service "restart-instance" endpoint HTTP response body for the "server_error" error.

type RestoreConfigSpecRequestBody

type RestoreConfigSpecRequestBody struct {
	// The ID of the database to restore this database from.
	SourceDatabaseID string `form:"source_database_id" json:"source_database_id" xml:"source_database_id"`
	// The name of the node to restore this database from.
	SourceNodeName string `form:"source_node_name" json:"source_node_name" xml:"source_node_name"`
	// The name of the database in this repository. The database will be renamed to
	// the database_name in the DatabaseSpec after it's restored.
	SourceDatabaseName string `form:"source_database_name" json:"source_database_name" xml:"source_database_name"`
	// The repository to restore this database from.
	Repository *RestoreRepositorySpecRequestBody `form:"repository" json:"repository" xml:"repository"`
	// Additional options to use when restoring this database. If omitted, the
	// database will be restored to the latest point in the given repository.
	RestoreOptions map[string]string `form:"restore_options,omitempty" json:"restore_options,omitempty" xml:"restore_options,omitempty"`
}

RestoreConfigSpecRequestBody is used to define fields on request body types.

type RestoreConfigSpecRequestBodyRequestBody

type RestoreConfigSpecRequestBodyRequestBody struct {
	// The ID of the database to restore this database from.
	SourceDatabaseID string `form:"source_database_id" json:"source_database_id" xml:"source_database_id"`
	// The name of the node to restore this database from.
	SourceNodeName string `form:"source_node_name" json:"source_node_name" xml:"source_node_name"`
	// The name of the database in this repository. The database will be renamed to
	// the database_name in the DatabaseSpec after it's restored.
	SourceDatabaseName string `form:"source_database_name" json:"source_database_name" xml:"source_database_name"`
	// The repository to restore this database from.
	Repository *RestoreRepositorySpecRequestBodyRequestBody `form:"repository" json:"repository" xml:"repository"`
	// Additional options to use when restoring this database. If omitted, the
	// database will be restored to the latest point in the given repository.
	RestoreOptions map[string]string `form:"restore_options,omitempty" json:"restore_options,omitempty" xml:"restore_options,omitempty"`
}

RestoreConfigSpecRequestBodyRequestBody is used to define fields on request body types.

type RestoreConfigSpecResponseBody

type RestoreConfigSpecResponseBody struct {
	// The ID of the database to restore this database from.
	SourceDatabaseID *string `form:"source_database_id,omitempty" json:"source_database_id,omitempty" xml:"source_database_id,omitempty"`
	// The name of the node to restore this database from.
	SourceNodeName *string `form:"source_node_name,omitempty" json:"source_node_name,omitempty" xml:"source_node_name,omitempty"`
	// The name of the database in this repository. The database will be renamed to
	// the database_name in the DatabaseSpec after it's restored.
	SourceDatabaseName *string `form:"source_database_name,omitempty" json:"source_database_name,omitempty" xml:"source_database_name,omitempty"`
	// The repository to restore this database from.
	Repository *RestoreRepositorySpecResponseBody `form:"repository,omitempty" json:"repository,omitempty" xml:"repository,omitempty"`
	// Additional options to use when restoring this database. If omitted, the
	// database will be restored to the latest point in the given repository.
	RestoreOptions map[string]string `form:"restore_options,omitempty" json:"restore_options,omitempty" xml:"restore_options,omitempty"`
}

RestoreConfigSpecResponseBody is used to define fields on response body types.

type RestoreDatabaseClusterNotInitializedResponseBody

type RestoreDatabaseClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RestoreDatabaseClusterNotInitializedResponseBody is the type of the "control-plane" service "restore-database" endpoint HTTP response body for the "cluster_not_initialized" error.

type RestoreDatabaseDatabaseNotModifiableResponseBody

type RestoreDatabaseDatabaseNotModifiableResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RestoreDatabaseDatabaseNotModifiableResponseBody is the type of the "control-plane" service "restore-database" endpoint HTTP response body for the "database_not_modifiable" error.

type RestoreDatabaseInvalidInputResponseBody

type RestoreDatabaseInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RestoreDatabaseInvalidInputResponseBody is the type of the "control-plane" service "restore-database" endpoint HTTP response body for the "invalid_input" error.

type RestoreDatabaseNotFoundResponseBody

type RestoreDatabaseNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RestoreDatabaseNotFoundResponseBody is the type of the "control-plane" service "restore-database" endpoint HTTP response body for the "not_found" error.

type RestoreDatabaseOperationAlreadyInProgressResponseBody

type RestoreDatabaseOperationAlreadyInProgressResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RestoreDatabaseOperationAlreadyInProgressResponseBody is the type of the "control-plane" service "restore-database" endpoint HTTP response body for the "operation_already_in_progress" error.

type RestoreDatabaseRequestBody

type RestoreDatabaseRequestBody struct {
	// Configuration for the restore process.
	RestoreConfig *RestoreConfigSpecRequestBodyRequestBody `form:"restore_config" json:"restore_config" xml:"restore_config"`
	// The nodes to restore. Defaults to all nodes if empty or unspecified.
	TargetNodes []string `form:"target_nodes,omitempty" json:"target_nodes,omitempty" xml:"target_nodes,omitempty"`
}

RestoreDatabaseRequestBody is the type of the "control-plane" service "restore-database" endpoint HTTP request body.

func NewRestoreDatabaseRequestBody

func NewRestoreDatabaseRequestBody(p *controlplane.RestoreDatabasePayload) *RestoreDatabaseRequestBody

NewRestoreDatabaseRequestBody builds the HTTP request body from the payload of the "restore-database" endpoint of the "control-plane" service.

type RestoreDatabaseResponseBody

type RestoreDatabaseResponseBody struct {
	// The task that will restore this database.
	Task *TaskResponseBody `form:"task,omitempty" json:"task,omitempty" xml:"task,omitempty"`
	// The tasks that will restore each database node.
	NodeTasks []*TaskResponseBody `form:"node_tasks,omitempty" json:"node_tasks,omitempty" xml:"node_tasks,omitempty"`
	// The database being restored.
	Database *DatabaseResponseBody `form:"database,omitempty" json:"database,omitempty" xml:"database,omitempty"`
}

RestoreDatabaseResponseBody is the type of the "control-plane" service "restore-database" endpoint HTTP response body.

type RestoreDatabaseServerErrorResponseBody

type RestoreDatabaseServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RestoreDatabaseServerErrorResponseBody is the type of the "control-plane" service "restore-database" endpoint HTTP response body for the "server_error" error.

type RestoreRepositorySpecRequestBody

type RestoreRepositorySpecRequestBody struct {
	// The unique identifier of this repository.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The type of this repository.
	Type string `form:"type" json:"type" xml:"type"`
	// The S3 bucket name for this repository. Only applies when type = 's3'.
	S3Bucket *string `form:"s3_bucket,omitempty" json:"s3_bucket,omitempty" xml:"s3_bucket,omitempty"`
	// The region of the S3 bucket for this repository. Only applies when type =
	// 's3'.
	S3Region *string `form:"s3_region,omitempty" json:"s3_region,omitempty" xml:"s3_region,omitempty"`
	// The optional S3 endpoint for this repository. Only applies when type = 's3'.
	S3Endpoint *string `form:"s3_endpoint,omitempty" json:"s3_endpoint,omitempty" xml:"s3_endpoint,omitempty"`
	// An optional AWS access key ID to use for this repository. If not provided,
	// pgbackrest will use the default credential provider chain.
	S3Key *string `form:"s3_key,omitempty" json:"s3_key,omitempty" xml:"s3_key,omitempty"`
	// The corresponding secret for the AWS access key ID in s3_key.
	S3KeySecret *string `form:"s3_key_secret,omitempty" json:"s3_key_secret,omitempty" xml:"s3_key_secret,omitempty"`
	// The GCS bucket name for this repository. Only applies when type = 'gcs'.
	GcsBucket *string `form:"gcs_bucket,omitempty" json:"gcs_bucket,omitempty" xml:"gcs_bucket,omitempty"`
	// The optional GCS endpoint for this repository. Only applies when type =
	// 'gcs'.
	GcsEndpoint *string `form:"gcs_endpoint,omitempty" json:"gcs_endpoint,omitempty" xml:"gcs_endpoint,omitempty"`
	// Optional base64-encoded private key data. If omitted, pgbackrest will use
	// the service account attached to the instance profile.
	GcsKey *string `form:"gcs_key,omitempty" json:"gcs_key,omitempty" xml:"gcs_key,omitempty"`
	// The Azure account name for this repository. Only applies when type = 'azure'.
	AzureAccount *string `form:"azure_account,omitempty" json:"azure_account,omitempty" xml:"azure_account,omitempty"`
	// The Azure container name for this repository. Only applies when type =
	// 'azure'.
	AzureContainer *string `form:"azure_container,omitempty" json:"azure_container,omitempty" xml:"azure_container,omitempty"`
	// The optional Azure endpoint for this repository. Only applies when type =
	// 'azure'.
	AzureEndpoint *string `form:"azure_endpoint,omitempty" json:"azure_endpoint,omitempty" xml:"azure_endpoint,omitempty"`
	// An optional Azure storage account access key to use for this repository. If
	// not provided, pgbackrest will use the VM's managed identity.
	AzureKey *string `form:"azure_key,omitempty" json:"azure_key,omitempty" xml:"azure_key,omitempty"`
	// The base path within the repository to store backups. Required for type =
	// 'posix' and 'cifs'.
	BasePath *string `form:"base_path,omitempty" json:"base_path,omitempty" xml:"base_path,omitempty"`
	// Additional options to apply to this repository.
	CustomOptions map[string]string `form:"custom_options,omitempty" json:"custom_options,omitempty" xml:"custom_options,omitempty"`
}

RestoreRepositorySpecRequestBody is used to define fields on request body types.

type RestoreRepositorySpecRequestBodyRequestBody

type RestoreRepositorySpecRequestBodyRequestBody struct {
	// The unique identifier of this repository.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The type of this repository.
	Type string `form:"type" json:"type" xml:"type"`
	// The S3 bucket name for this repository. Only applies when type = 's3'.
	S3Bucket *string `form:"s3_bucket,omitempty" json:"s3_bucket,omitempty" xml:"s3_bucket,omitempty"`
	// The region of the S3 bucket for this repository. Only applies when type =
	// 's3'.
	S3Region *string `form:"s3_region,omitempty" json:"s3_region,omitempty" xml:"s3_region,omitempty"`
	// The optional S3 endpoint for this repository. Only applies when type = 's3'.
	S3Endpoint *string `form:"s3_endpoint,omitempty" json:"s3_endpoint,omitempty" xml:"s3_endpoint,omitempty"`
	// An optional AWS access key ID to use for this repository. If not provided,
	// pgbackrest will use the default credential provider chain.
	S3Key *string `form:"s3_key,omitempty" json:"s3_key,omitempty" xml:"s3_key,omitempty"`
	// The corresponding secret for the AWS access key ID in s3_key.
	S3KeySecret *string `form:"s3_key_secret,omitempty" json:"s3_key_secret,omitempty" xml:"s3_key_secret,omitempty"`
	// The GCS bucket name for this repository. Only applies when type = 'gcs'.
	GcsBucket *string `form:"gcs_bucket,omitempty" json:"gcs_bucket,omitempty" xml:"gcs_bucket,omitempty"`
	// The optional GCS endpoint for this repository. Only applies when type =
	// 'gcs'.
	GcsEndpoint *string `form:"gcs_endpoint,omitempty" json:"gcs_endpoint,omitempty" xml:"gcs_endpoint,omitempty"`
	// Optional base64-encoded private key data. If omitted, pgbackrest will use
	// the service account attached to the instance profile.
	GcsKey *string `form:"gcs_key,omitempty" json:"gcs_key,omitempty" xml:"gcs_key,omitempty"`
	// The Azure account name for this repository. Only applies when type = 'azure'.
	AzureAccount *string `form:"azure_account,omitempty" json:"azure_account,omitempty" xml:"azure_account,omitempty"`
	// The Azure container name for this repository. Only applies when type =
	// 'azure'.
	AzureContainer *string `form:"azure_container,omitempty" json:"azure_container,omitempty" xml:"azure_container,omitempty"`
	// The optional Azure endpoint for this repository. Only applies when type =
	// 'azure'.
	AzureEndpoint *string `form:"azure_endpoint,omitempty" json:"azure_endpoint,omitempty" xml:"azure_endpoint,omitempty"`
	// An optional Azure storage account access key to use for this repository. If
	// not provided, pgbackrest will use the VM's managed identity.
	AzureKey *string `form:"azure_key,omitempty" json:"azure_key,omitempty" xml:"azure_key,omitempty"`
	// The base path within the repository to store backups. Required for type =
	// 'posix' and 'cifs'.
	BasePath *string `form:"base_path,omitempty" json:"base_path,omitempty" xml:"base_path,omitempty"`
	// Additional options to apply to this repository.
	CustomOptions map[string]string `form:"custom_options,omitempty" json:"custom_options,omitempty" xml:"custom_options,omitempty"`
}

RestoreRepositorySpecRequestBodyRequestBody is used to define fields on request body types.

type RestoreRepositorySpecResponseBody

type RestoreRepositorySpecResponseBody struct {
	// The unique identifier of this repository.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The type of this repository.
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// The S3 bucket name for this repository. Only applies when type = 's3'.
	S3Bucket *string `form:"s3_bucket,omitempty" json:"s3_bucket,omitempty" xml:"s3_bucket,omitempty"`
	// The region of the S3 bucket for this repository. Only applies when type =
	// 's3'.
	S3Region *string `form:"s3_region,omitempty" json:"s3_region,omitempty" xml:"s3_region,omitempty"`
	// The optional S3 endpoint for this repository. Only applies when type = 's3'.
	S3Endpoint *string `form:"s3_endpoint,omitempty" json:"s3_endpoint,omitempty" xml:"s3_endpoint,omitempty"`
	// An optional AWS access key ID to use for this repository. If not provided,
	// pgbackrest will use the default credential provider chain.
	S3Key *string `form:"s3_key,omitempty" json:"s3_key,omitempty" xml:"s3_key,omitempty"`
	// The corresponding secret for the AWS access key ID in s3_key.
	S3KeySecret *string `form:"s3_key_secret,omitempty" json:"s3_key_secret,omitempty" xml:"s3_key_secret,omitempty"`
	// The GCS bucket name for this repository. Only applies when type = 'gcs'.
	GcsBucket *string `form:"gcs_bucket,omitempty" json:"gcs_bucket,omitempty" xml:"gcs_bucket,omitempty"`
	// The optional GCS endpoint for this repository. Only applies when type =
	// 'gcs'.
	GcsEndpoint *string `form:"gcs_endpoint,omitempty" json:"gcs_endpoint,omitempty" xml:"gcs_endpoint,omitempty"`
	// Optional base64-encoded private key data. If omitted, pgbackrest will use
	// the service account attached to the instance profile.
	GcsKey *string `form:"gcs_key,omitempty" json:"gcs_key,omitempty" xml:"gcs_key,omitempty"`
	// The Azure account name for this repository. Only applies when type = 'azure'.
	AzureAccount *string `form:"azure_account,omitempty" json:"azure_account,omitempty" xml:"azure_account,omitempty"`
	// The Azure container name for this repository. Only applies when type =
	// 'azure'.
	AzureContainer *string `form:"azure_container,omitempty" json:"azure_container,omitempty" xml:"azure_container,omitempty"`
	// The optional Azure endpoint for this repository. Only applies when type =
	// 'azure'.
	AzureEndpoint *string `form:"azure_endpoint,omitempty" json:"azure_endpoint,omitempty" xml:"azure_endpoint,omitempty"`
	// An optional Azure storage account access key to use for this repository. If
	// not provided, pgbackrest will use the VM's managed identity.
	AzureKey *string `form:"azure_key,omitempty" json:"azure_key,omitempty" xml:"azure_key,omitempty"`
	// The base path within the repository to store backups. Required for type =
	// 'posix' and 'cifs'.
	BasePath *string `form:"base_path,omitempty" json:"base_path,omitempty" xml:"base_path,omitempty"`
	// Additional options to apply to this repository.
	CustomOptions map[string]string `form:"custom_options,omitempty" json:"custom_options,omitempty" xml:"custom_options,omitempty"`
}

RestoreRepositorySpecResponseBody is used to define fields on response body types.

type StartInstanceClusterNotInitializedResponseBody

type StartInstanceClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

StartInstanceClusterNotInitializedResponseBody is the type of the "control-plane" service "start-instance" endpoint HTTP response body for the "cluster_not_initialized" error.

type StartInstanceInvalidInputResponseBody

type StartInstanceInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

StartInstanceInvalidInputResponseBody is the type of the "control-plane" service "start-instance" endpoint HTTP response body for the "invalid_input" error.

type StartInstanceNotFoundResponseBody

type StartInstanceNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

StartInstanceNotFoundResponseBody is the type of the "control-plane" service "start-instance" endpoint HTTP response body for the "not_found" error.

type StartInstanceResponseBody

type StartInstanceResponseBody struct {
	// Task representing the start operation
	Task *TaskResponseBody `form:"task,omitempty" json:"task,omitempty" xml:"task,omitempty"`
}

StartInstanceResponseBody is the type of the "control-plane" service "start-instance" endpoint HTTP response body.

type StartInstanceServerErrorResponseBody

type StartInstanceServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

StartInstanceServerErrorResponseBody is the type of the "control-plane" service "start-instance" endpoint HTTP response body for the "server_error" error.

type StopInstanceClusterNotInitializedResponseBody

type StopInstanceClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

StopInstanceClusterNotInitializedResponseBody is the type of the "control-plane" service "stop-instance" endpoint HTTP response body for the "cluster_not_initialized" error.

type StopInstanceInvalidInputResponseBody

type StopInstanceInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

StopInstanceInvalidInputResponseBody is the type of the "control-plane" service "stop-instance" endpoint HTTP response body for the "invalid_input" error.

type StopInstanceNotFoundResponseBody

type StopInstanceNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

StopInstanceNotFoundResponseBody is the type of the "control-plane" service "stop-instance" endpoint HTTP response body for the "not_found" error.

type StopInstanceResponseBody

type StopInstanceResponseBody struct {
	// Task representing the stop operation
	Task *TaskResponseBody `form:"task,omitempty" json:"task,omitempty" xml:"task,omitempty"`
}

StopInstanceResponseBody is the type of the "control-plane" service "stop-instance" endpoint HTTP response body.

type StopInstanceServerErrorResponseBody

type StopInstanceServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

StopInstanceServerErrorResponseBody is the type of the "control-plane" service "stop-instance" endpoint HTTP response body for the "server_error" error.

type SwarmOptsRequestBody

type SwarmOptsRequestBody struct {
	// A list of extra volumes to mount. Each entry defines a host and container
	// path.
	ExtraVolumes []*ExtraVolumesSpecRequestBody `form:"extra_volumes,omitempty" json:"extra_volumes,omitempty" xml:"extra_volumes,omitempty"`
	// A list of additional Docker Swarm networks to attach containers in this
	// database to.
	ExtraNetworks []*ExtraNetworkSpecRequestBody `form:"extra_networks,omitempty" json:"extra_networks,omitempty" xml:"extra_networks,omitempty"`
	// Arbitrary labels to apply to the Docker Swarm service
	ExtraLabels map[string]string `form:"extra_labels,omitempty" json:"extra_labels,omitempty" xml:"extra_labels,omitempty"`
}

SwarmOptsRequestBody is used to define fields on request body types.

type SwarmOptsRequestBodyRequestBody

type SwarmOptsRequestBodyRequestBody struct {
	// A list of extra volumes to mount. Each entry defines a host and container
	// path.
	ExtraVolumes []*ExtraVolumesSpecRequestBodyRequestBody `form:"extra_volumes,omitempty" json:"extra_volumes,omitempty" xml:"extra_volumes,omitempty"`
	// A list of additional Docker Swarm networks to attach containers in this
	// database to.
	ExtraNetworks []*ExtraNetworkSpecRequestBodyRequestBody `form:"extra_networks,omitempty" json:"extra_networks,omitempty" xml:"extra_networks,omitempty"`
	// Arbitrary labels to apply to the Docker Swarm service
	ExtraLabels map[string]string `form:"extra_labels,omitempty" json:"extra_labels,omitempty" xml:"extra_labels,omitempty"`
}

SwarmOptsRequestBodyRequestBody is used to define fields on request body types.

type SwarmOptsResponseBody

type SwarmOptsResponseBody struct {
	// A list of extra volumes to mount. Each entry defines a host and container
	// path.
	ExtraVolumes []*ExtraVolumesSpecResponseBody `form:"extra_volumes,omitempty" json:"extra_volumes,omitempty" xml:"extra_volumes,omitempty"`
	// A list of additional Docker Swarm networks to attach containers in this
	// database to.
	ExtraNetworks []*ExtraNetworkSpecResponseBody `form:"extra_networks,omitempty" json:"extra_networks,omitempty" xml:"extra_networks,omitempty"`
	// Arbitrary labels to apply to the Docker Swarm service
	ExtraLabels map[string]string `form:"extra_labels,omitempty" json:"extra_labels,omitempty" xml:"extra_labels,omitempty"`
}

SwarmOptsResponseBody is used to define fields on response body types.

type SwitchoverDatabaseNodeClusterNotInitializedResponseBody

type SwitchoverDatabaseNodeClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

SwitchoverDatabaseNodeClusterNotInitializedResponseBody is the type of the "control-plane" service "switchover-database-node" endpoint HTTP response body for the "cluster_not_initialized" error.

type SwitchoverDatabaseNodeDatabaseNotModifiableResponseBody

type SwitchoverDatabaseNodeDatabaseNotModifiableResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

SwitchoverDatabaseNodeDatabaseNotModifiableResponseBody is the type of the "control-plane" service "switchover-database-node" endpoint HTTP response body for the "database_not_modifiable" error.

type SwitchoverDatabaseNodeInvalidInputResponseBody

type SwitchoverDatabaseNodeInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

SwitchoverDatabaseNodeInvalidInputResponseBody is the type of the "control-plane" service "switchover-database-node" endpoint HTTP response body for the "invalid_input" error.

type SwitchoverDatabaseNodeNotFoundResponseBody

type SwitchoverDatabaseNodeNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

SwitchoverDatabaseNodeNotFoundResponseBody is the type of the "control-plane" service "switchover-database-node" endpoint HTTP response body for the "not_found" error.

type SwitchoverDatabaseNodeOperationAlreadyInProgressResponseBody

type SwitchoverDatabaseNodeOperationAlreadyInProgressResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

SwitchoverDatabaseNodeOperationAlreadyInProgressResponseBody is the type of the "control-plane" service "switchover-database-node" endpoint HTTP response body for the "operation_already_in_progress" error.

type SwitchoverDatabaseNodeRequestBody

type SwitchoverDatabaseNodeRequestBody struct {
	// Optional instance_id for the replica candidate.
	CandidateInstanceID *string `form:"candidate_instance_id,omitempty" json:"candidate_instance_id,omitempty" xml:"candidate_instance_id,omitempty"`
	// Optional scheduled time (ISO8601) for the switchover. If absent switchover
	// happens immediately.
	ScheduledAt *string `form:"scheduled_at,omitempty" json:"scheduled_at,omitempty" xml:"scheduled_at,omitempty"`
}

SwitchoverDatabaseNodeRequestBody is the type of the "control-plane" service "switchover-database-node" endpoint HTTP request body.

func NewSwitchoverDatabaseNodeRequestBody

func NewSwitchoverDatabaseNodeRequestBody(p *controlplane.SwitchoverDatabaseNodePayload) *SwitchoverDatabaseNodeRequestBody

NewSwitchoverDatabaseNodeRequestBody builds the HTTP request body from the payload of the "switchover-database-node" endpoint of the "control-plane" service.

type SwitchoverDatabaseNodeResponseBody

type SwitchoverDatabaseNodeResponseBody struct {
	// The task that will perform the switchover.
	Task *TaskResponseBody `form:"task,omitempty" json:"task,omitempty" xml:"task,omitempty"`
}

SwitchoverDatabaseNodeResponseBody is the type of the "control-plane" service "switchover-database-node" endpoint HTTP response body.

type SwitchoverDatabaseNodeServerErrorResponseBody

type SwitchoverDatabaseNodeServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

SwitchoverDatabaseNodeServerErrorResponseBody is the type of the "control-plane" service "switchover-database-node" endpoint HTTP response body for the "server_error" error.

type TaskLogEntryResponseBody

type TaskLogEntryResponseBody struct {
	// The timestamp of the log entry.
	Timestamp *string `form:"timestamp,omitempty" json:"timestamp,omitempty" xml:"timestamp,omitempty"`
	// The log message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Additional fields for the log entry.
	Fields map[string]any `form:"fields,omitempty" json:"fields,omitempty" xml:"fields,omitempty"`
}

TaskLogEntryResponseBody is used to define fields on response body types.

type TaskResponseBody

type TaskResponseBody struct {
	// The parent task ID of the task.
	ParentID *string `form:"parent_id,omitempty" json:"parent_id,omitempty" xml:"parent_id,omitempty"`
	// The database ID of the task.
	DatabaseID *string `form:"database_id,omitempty" json:"database_id,omitempty" xml:"database_id,omitempty"`
	// The name of the node that the task is operating on.
	NodeName *string `form:"node_name,omitempty" json:"node_name,omitempty" xml:"node_name,omitempty"`
	// The ID of the instance that the task is operating on.
	InstanceID *string `form:"instance_id,omitempty" json:"instance_id,omitempty" xml:"instance_id,omitempty"`
	// The ID of the host that the task is running on.
	HostID *string `form:"host_id,omitempty" json:"host_id,omitempty" xml:"host_id,omitempty"`
	// The unique ID of the task.
	TaskID *string `form:"task_id,omitempty" json:"task_id,omitempty" xml:"task_id,omitempty"`
	// The time when the task was created.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// The time when the task was completed.
	CompletedAt *string `form:"completed_at,omitempty" json:"completed_at,omitempty" xml:"completed_at,omitempty"`
	// The type of the task.
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// The status of the task.
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// The error message if the task failed.
	Error *string `form:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"`
}

TaskResponseBody is used to define fields on response body types.

type UpdateDatabaseClusterNotInitializedResponseBody

type UpdateDatabaseClusterNotInitializedResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

UpdateDatabaseClusterNotInitializedResponseBody is the type of the "control-plane" service "update-database" endpoint HTTP response body for the "cluster_not_initialized" error.

type UpdateDatabaseDatabaseNotModifiableResponseBody

type UpdateDatabaseDatabaseNotModifiableResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

UpdateDatabaseDatabaseNotModifiableResponseBody is the type of the "control-plane" service "update-database" endpoint HTTP response body for the "database_not_modifiable" error.

type UpdateDatabaseInvalidInputResponseBody

type UpdateDatabaseInvalidInputResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

UpdateDatabaseInvalidInputResponseBody is the type of the "control-plane" service "update-database" endpoint HTTP response body for the "invalid_input" error.

type UpdateDatabaseNotFoundResponseBody

type UpdateDatabaseNotFoundResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

UpdateDatabaseNotFoundResponseBody is the type of the "control-plane" service "update-database" endpoint HTTP response body for the "not_found" error.

type UpdateDatabaseOperationAlreadyInProgressResponseBody

type UpdateDatabaseOperationAlreadyInProgressResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

UpdateDatabaseOperationAlreadyInProgressResponseBody is the type of the "control-plane" service "update-database" endpoint HTTP response body for the "operation_already_in_progress" error.

type UpdateDatabaseRequestBody

type UpdateDatabaseRequestBody struct {
	// Unique identifier for the databases's owner.
	TenantID *string `form:"tenant_id,omitempty" json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	// The specification for the database.
	Spec *DatabaseSpecRequestBodyRequestBody `form:"spec" json:"spec" xml:"spec"`
}

UpdateDatabaseRequestBody is the type of the "control-plane" service "update-database" endpoint HTTP request body.

func NewUpdateDatabaseRequestBody

func NewUpdateDatabaseRequestBody(p *controlplane.UpdateDatabasePayload) *UpdateDatabaseRequestBody

NewUpdateDatabaseRequestBody builds the HTTP request body from the payload of the "update-database" endpoint of the "control-plane" service.

type UpdateDatabaseResponseBody

type UpdateDatabaseResponseBody struct {
	// The task that will update this database.
	Task *TaskResponseBody `form:"task,omitempty" json:"task,omitempty" xml:"task,omitempty"`
	// The database being updated.
	Database *DatabaseResponseBody `form:"database,omitempty" json:"database,omitempty" xml:"database,omitempty"`
}

UpdateDatabaseResponseBody is the type of the "control-plane" service "update-database" endpoint HTTP response body.

type UpdateDatabaseServerErrorResponseBody

type UpdateDatabaseServerErrorResponseBody struct {
	// The name of the error.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// The error message.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

UpdateDatabaseServerErrorResponseBody is the type of the "control-plane" service "update-database" endpoint HTTP response body for the "server_error" error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL