Documentation
¶
Overview ¶
Package importdb contains the functions to import a database
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportDatabaseMicroservice ¶
func ImportDatabaseMicroservice( ctx context.Context, crudClient client.Client, namespace, sourceClusterName, importedClusterName, imageName, databaseName string, ) (*apiv1.Cluster, error)
ImportDatabaseMicroservice creates a cluster, starting from an external cluster using microservice approach NOTE: the application user on the source Cluster needs to be granted with REPLICATION permissions, which are not set by default
func ImportDatabasesMonolith ¶
func ImportDatabasesMonolith( ctx context.Context, crudClient client.Client, namespace, sourceClusterName, importedClusterName, imageName string, databaseNames []string, roles []string, ) (*apiv1.Cluster, error)
ImportDatabasesMonolith creates a new cluster spec importing from a sourceCluster using the Monolith approach. Imports all the specified `databaseNames` and `roles` from the source cluster NOTE: enableSuperuserAccess needs to be enabled
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.