postgres

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvStoreType             = "KUMA_STORE_TYPE"
	EnvStorePostgresHost     = "KUMA_STORE_POSTGRES_HOST"
	EnvStorePostgresPort     = "KUMA_STORE_POSTGRES_PORT"
	EnvStorePostgresUser     = "KUMA_STORE_POSTGRES_USER"
	EnvStorePostgresPassword = "KUMA_STORE_POSTGRES_PASSWORD" // #nosec G101 -- That's the env var not the pwd
	EnvStorePostgresDBName   = "KUMA_STORE_POSTGRES_DB_NAME"

	DefaultPostgresPort     = uint32(5432)
	DefaultPostgresUser     = "kuma"
	DefaultPostgresPassword = "kuma"
	DefaultPostgresDBName   = "kuma"

	PostgresImage = "postgres"

	PostgresEnvVarUser     = "POSTGRES_USER"
	PostgresEnvVarPassword = "POSTGRES_PASSWORD" // #nosec G101 -- Env var not actual password
	PostgresEnvVarDB       = "POSTGRES_DB"

	AppPostgres = "postgres"
)

Variables

This section is empty.

Functions

func Install

func Install(name string, optFns ...DeployOptionsFunc) InstallFunc

func NewUniversalDeployment

func NewUniversalDeployment(cluster Cluster, name string) *universalDeployment

Types

type DeployOptionsFunc

type DeployOptionsFunc func(*deployOptions)

func WithDatabase

func WithDatabase(database string) DeployOptionsFunc

func WithInitScript

func WithInitScript(initScript string) DeployOptionsFunc

func WithK8sNamespace

func WithK8sNamespace(namespace string) DeployOptionsFunc

func WithPassword

func WithPassword(password string) DeployOptionsFunc

func WithPostgresPassword

func WithPostgresPassword(postgresPassword string) DeployOptionsFunc

func WithPrimaryName

func WithPrimaryName(primaryName string) DeployOptionsFunc

func WithUsername

func WithUsername(username string) DeployOptionsFunc

type Postgres

type Postgres interface {
	GetEnvVars() map[string]string
}

func From

func From(cluster Cluster, name string) Postgres

type PostgresDeployment

type PostgresDeployment interface {
	Postgres
	Deployment
}

func NewK8SDeployment

func NewK8SDeployment(opts *deployOptions) PostgresDeployment

Jump to

Keyboard shortcuts

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