database

package
v0.80.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LocalDBDeployment = rc.NewSingleResourceIdent(ProvName, "local_db_deployment", &apps.Deployment{})

LocalDBDeployment is the ident referring to the local DB deployment object.

LocalDBPVC is the ident referring to the local DB PVC object.

View Source
var LocalDBSecret = rc.NewSingleResourceIdent(ProvName, "local_db_secret", &core.Secret{})

LocalDBSecret is the ident referring to the local DB secret object.

View Source
var LocalDBService = rc.NewSingleResourceIdent(ProvName, "local_db_service", &core.Service{})

LocalDBService is the ident referring to the local DB service object.

View Source
var ProvName = "database"

ProvName is the providers name ident.

View Source
var SharedDBAppSecret = rc.NewSingleResourceIdent(ProvName, "shared_db_app_secret", &core.Secret{})

SharedDBSecret is the ident referring to the local DB secret object.

View Source
var SharedDBDeployment = rc.NewMultiResourceIdent(ProvName, "shared_db_deployment", &apps.Deployment{})

SharedDBDeployment is the ident referring to the local DB deployment object.

View Source
var SharedDBPVC = rc.NewMultiResourceIdent(ProvName, "shared_db_pvc", &core.PersistentVolumeClaim{})

SharedDBPVC is the ident referring to the local DB PVC object.

View Source
var SharedDBSecret = rc.NewMultiResourceIdent(ProvName, "shared_db_secret", &core.Secret{})

SharedDBSecret is the ident referring to the local DB secret object.

View Source
var SharedDBService = rc.NewMultiResourceIdent(ProvName, "shared_db_service", &core.Service{})

SharedDBService is the ident referring to the local DB service object.

Functions

func GetDatabase

func GetDatabase(c *p.Provider) (p.ClowderProvider, error)

GetDatabase returns the correct database provider based on the environment.

func GetDbConfig added in v0.21.0

func GetDbConfig(
	ctx context.Context, pClient client.Client, namespace, searchAppName string, dbSpec crd.DatabaseSpec, rdsCaBundleURL string,
) (*config.DatabaseConfigContainer, error)

func NewAppInterfaceDBProvider

func NewAppInterfaceDBProvider(p *providers.Provider) (providers.ClowderProvider, error)

NewAppInterfaceDBProvider creates a new app-interface DB provider obejct.

func NewLocalDBProvider

func NewLocalDBProvider(p *providers.Provider) (providers.ClowderProvider, error)

NewLocalDBProvider returns a new local DB provider object.

func NewNoneDBProvider

func NewNoneDBProvider(p *providers.Provider) (providers.ClowderProvider, error)

NewNoneDBProvider returns a new none db provider object.

func NewSharedDBProvider added in v0.22.0

func NewSharedDBProvider(p *providers.Provider) (providers.ClowderProvider, error)

NewSharedDBProvider returns a new local DB provider object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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