Documentation
¶
Index ¶
- Constants
- func Install(name string, optFns ...DeployOptionsFunc) InstallFunc
- func NewUniversalDeployment(cluster Cluster, name string) *universalDeployment
- type DeployOptionsFunc
- func WithDatabase(database string) DeployOptionsFunc
- func WithInitScript(initScript string) DeployOptionsFunc
- func WithK8sNamespace(namespace string) DeployOptionsFunc
- func WithPassword(password string) DeployOptionsFunc
- func WithPostgresPassword(postgresPassword string) DeployOptionsFunc
- func WithPrimaryName(primaryName string) DeployOptionsFunc
- func WithUsername(username string) DeployOptionsFunc
- type Postgres
- type PostgresDeployment
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 PostgresDeployment ¶
type PostgresDeployment interface {
Postgres
Deployment
}
func NewK8SDeployment ¶
func NewK8SDeployment(opts *deployOptions) PostgresDeployment
Click to show internal directories.
Click to hide internal directories.