databases

package
v3.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceVersion = "formance.com/module-version"

Variables

This section is empty.

Functions

func Create

func Create(ctx core.Context, stack *v1beta1.Stack, owner interface {
	v1beta1.Object
	IsDebug() bool
}) (*v1beta1.Database, error)

func Delete

func Delete(ctx core.Context, database *v1beta1.Database) error

func GetPostgresEnvVars

func GetPostgresEnvVars(ctx core.Context, stack *v1beta1.Stack, database *v1beta1.Database) ([]corev1.EnvVar, error)

func GetSavedModuleVersion

func GetSavedModuleVersion(database *v1beta1.Database) string

func Migrate

func Migrate(
	ctx core.Context,
	stack *v1beta1.Stack,
	owner v1beta1.Dependent,
	imageConfiguration *registries.ImageConfiguration,
	database *v1beta1.Database,
	options ...jobs.HandleJobOption,
) error

func Reconcile

func Reconcile(ctx core.Context, stack *v1beta1.Stack, database *v1beta1.Database) error

func SaveModuleVersion

func SaveModuleVersion(ctx core.Context, database *v1beta1.Database, version string) error

func Watch

func Watch[T client.Object]() core.ReconcilerOption[T]

Types

This section is empty.

Jump to

Keyboard shortcuts

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