-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathexport_test.go
More file actions
28 lines (22 loc) · 875 Bytes
/
export_test.go
File metadata and controls
28 lines (22 loc) · 875 Bytes
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
// Copyright 2014 Canonical Ltd.
// Licensed under the LGPLv3, see LICENCE file for details.
package blobstore
var (
NewResourceCatalog = newResourceCatalog
TxnRunner = &txnRunner
PutResourceTxn = &putResourceTxn
RequestExpiry = &requestExpiry
AfterFunc = &afterFunc
)
func GetResourceCatalog(ms ManagedStorage) ResourceCatalog {
return ms.(*managedStorage).resourceCatalog
}
func PutManagedResource(ms ManagedStorage, managedResource ManagedResource, id string) (string, error) {
return ms.(*managedStorage).putManagedResource(managedResource, id)
}
func ResourceStoragePath(ms ManagedStorage, bucketUUID, user, resourcePath string) (string, error) {
return ms.(*managedStorage).resourceStoragePath(bucketUUID, user, resourcePath)
}
func RequestQueueLength(ms ManagedStorage) int {
return len(ms.(*managedStorage).queuedRequests)
}