storage

package
v0.0.0-...-9451de5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

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
	WebhookStorage                   event.WebhookStorage
	ClusterStorage                   provision.ClusterStorage
	ServiceBrokerStorage             service.ServiceBrokerStorage
	ServiceBrokerCatalogCacheStorage cache.CacheStorage
	PlatformImageStorage             image.PlatformImageStorage
}

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