/
mongodb.go
34 lines (31 loc) · 1.38 KB
/
mongodb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2017 tsuru authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package mongodb
import (
"github.com/tsuru/tsuru/storage"
)
func init() {
mongodbDriver := storage.DbDriver{
TeamStorage: &TeamStorage{},
PlatformStorage: &PlatformStorage{},
PlatformImageStorage: &PlatformImageStorage{},
PlanStorage: &PlanStorage{},
AppCacheStorage: appCacheStorage(),
TeamTokenStorage: &teamTokenStorage{},
UserQuotaStorage: authQuotaStorage(),
AppQuotaStorage: appQuotaStorage(),
TeamQuotaStorage: teamQuotaStorage(),
WebhookStorage: &webhookStorage{},
ClusterStorage: &clusterStorage{},
ServiceBrokerStorage: &serviceBrokerStorage{},
ServiceBrokerCatalogCacheStorage: serviceBrokerCatalogCacheStorage(),
InstanceTrackerStorage: &instanceTrackerStorage{},
AppVersionStorage: &appVersionStorage{},
DynamicRouterStorage: &dynamicRouterStorage{},
AuthGroupStorage: &authGroupStorage{},
PoolStorage: &PoolStorage{},
VolumeStorage: &volumeStorage{},
}
storage.RegisterDbDriver("mongodb", mongodbDriver)
}