utils

package
v0.0.0-...-56c3f64 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateHash

func CalculateHash(spec interface{}) (string, error)

func CloseDatabaseSavedPoolsForName

func CloseDatabaseSavedPoolsForName(instance *postgresqlv1alpha1.PostgresqlDatabase, database string) error

func CreateNameKey

func CreateNameKey(name, namespace, instanceNamespace string) string

func CreateNameKeyForSavedPools

func CreateNameKeyForSavedPools(pgecName, pgecNamespace string) string

func CreatePgInstance

func CreatePgInstance(
	reqLogger logr.Logger,
	secretData map[string][]byte,
	pgec *postgresqlv1alpha1.PostgresqlEngineConfiguration,
) postgres.PG
func FindPgDatabaseFromLink(
	ctx context.Context,
	cl client.Client,
	link *common.CRLink,
	instanceNamespace string,
) (*postgresqlv1alpha1.PostgresqlDatabase, error)

func GetRandomString

func GetRandomString(length int) string

func GetSecret

func GetSecret(ctx context.Context, cl client.Client, name, namespace string) (*corev1.Secret, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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