storage

package
v0.0.0-...-47649f3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: BSD-3-Clause Imports: 14 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDbDriverName = "mongodb"
)

Functions

func RegisterDbDriver

func RegisterDbDriver(name string, driver DbDriver)

RegisterDbDriver registers a new DB driver

Types

type DbDriver

type DbDriver struct {
	TeamStorage                      auth.TeamStorage
	PlatformStorage                  app.PlatformStorage
	PlanStorage                      app.PlanStorage
	AppCacheStorage                  cache.CacheStorage
	TeamTokenStorage                 auth.TeamTokenStorage
	UserQuotaStorage                 quota.QuotaStorage
	AppQuotaStorage                  quota.QuotaStorage
	TeamQuotaStorage                 quota.QuotaStorage
	WebhookStorage                   event.WebhookStorage
	ClusterStorage                   provision.ClusterStorage
	ServiceBrokerStorage             service.ServiceBrokerStorage
	ServiceBrokerCatalogCacheStorage cache.CacheStorage
	PlatformImageStorage             image.PlatformImageStorage
	InstanceTrackerStorage           tracker.InstanceStorage
	AppVersionStorage                app.AppVersionStorage
	DynamicRouterStorage             router.DynamicRouterStorage
	AuthGroupStorage                 auth.GroupStorage
	PoolStorage                      provision.PoolStorage
	VolumeStorage                    volume.VolumeStorage
}

func GetCurrentDbDriver

func GetCurrentDbDriver() (*DbDriver, error)

GetCurrentDbDriver returns the DB driver specified in the configuration file. If this configuration was omitted, it returns the default DB driver

func GetDbDriver

func GetDbDriver(name string) (*DbDriver, error)

GetDbDriver returns the DB driver that was registered with a specific name

func GetDefaultDbDriver

func GetDefaultDbDriver() (*DbDriver, error)

GetDefaultDbDriver returns the default DB driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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