Documentation ¶
Index ¶
- func CalculateHash(spec interface{}) (string, error)
- func CloseDatabaseSavedPoolsForName(instance *postgresqlv1alpha1.PostgresqlDatabase, database string) error
- func CreateNameKey(name, namespace, instanceNamespace string) string
- func CreateNameKeyForSavedPools(pgecName, pgecNamespace string) string
- func CreatePgInstance(reqLogger logr.Logger, secretData map[string][]byte, ...) postgres.PG
- func FindPgDatabaseFromLink(ctx context.Context, cl client.Client, link *common.CRLink, ...) (*postgresqlv1alpha1.PostgresqlDatabase, error)
- func FindPgEngineCfg(ctx context.Context, cl client.Client, ...) (*postgresqlv1alpha1.PostgresqlEngineConfiguration, error)
- func FindSecretPgEngineCfg(ctx context.Context, cl client.Client, ...) (*corev1.Secret, error)
- func GetRandomString(length int) string
- func GetSecret(ctx context.Context, cl client.Client, name, namespace string) (*corev1.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateHash ¶
func CloseDatabaseSavedPoolsForName ¶
func CloseDatabaseSavedPoolsForName(instance *postgresqlv1alpha1.PostgresqlDatabase, database string) error
func CreateNameKey ¶
func CreatePgInstance ¶
func CreatePgInstance( reqLogger logr.Logger, secretData map[string][]byte, pgec *postgresqlv1alpha1.PostgresqlEngineConfiguration, ) postgres.PG
func FindPgDatabaseFromLink ¶
func FindPgDatabaseFromLink( ctx context.Context, cl client.Client, link *common.CRLink, instanceNamespace string, ) (*postgresqlv1alpha1.PostgresqlDatabase, error)
func FindPgEngineCfg ¶
func FindPgEngineCfg( ctx context.Context, cl client.Client, instance *postgresqlv1alpha1.PostgresqlDatabase, ) (*postgresqlv1alpha1.PostgresqlEngineConfiguration, error)
func FindSecretPgEngineCfg ¶
func FindSecretPgEngineCfg( ctx context.Context, cl client.Client, instance *postgresqlv1alpha1.PostgresqlEngineConfiguration, ) (*corev1.Secret, error)
func GetRandomString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.