Documentation ¶
Index ¶
- Variables
- func GetDatabase(c *p.Provider) (p.ClowderProvider, error)
- func GetDbConfig(ctx context.Context, pClient client.Client, namespace, searchAppName string, ...) (*config.DatabaseConfigContainer, error)
- func NewAppInterfaceDBProvider(p *providers.Provider) (providers.ClowderProvider, error)
- func NewLocalDBProvider(p *providers.Provider) (providers.ClowderProvider, error)
- func NewNoneDBProvider(p *providers.Provider) (providers.ClowderProvider, error)
- func NewSharedDBProvider(p *providers.Provider) (providers.ClowderProvider, error)
Constants ¶
This section is empty.
Variables ¶
var LocalDBDeployment = rc.NewSingleResourceIdent(ProvName, "local_db_deployment", &apps.Deployment{})
LocalDBDeployment is the ident referring to the local DB deployment object.
var LocalDBPVC = rc.NewSingleResourceIdent(ProvName, "local_db_pvc", &core.PersistentVolumeClaim{})
LocalDBPVC is the ident referring to the local DB PVC object.
var LocalDBSecret = rc.NewSingleResourceIdent(ProvName, "local_db_secret", &core.Secret{})
LocalDBSecret is the ident referring to the local DB secret object.
var LocalDBService = rc.NewSingleResourceIdent(ProvName, "local_db_service", &core.Service{})
LocalDBService is the ident referring to the local DB service object.
var ProvName = "database"
ProvName is the providers name ident.
SharedDBSecret is the ident referring to the local DB secret object.
SharedDBDeployment is the ident referring to the local DB deployment object.
SharedDBPVC is the ident referring to the local DB PVC object.
SharedDBSecret is the ident referring to the local DB secret object.
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 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.