Documentation ¶
Index ¶
- func New(m map[string]interface{}, ss *grpc.Server) (rgrpc.Service, error)
- type Caches
- func (c Caches) Close()
- func (c Caches) RemoveListStorageProviders(res *provider.ResourceId)
- func (c Caches) RemoveStat(user *userpb.User, res *provider.ResourceId)
- func (c Caches) StorageProviderClient(p provider.ProviderAPIClient) provider.ProviderAPIClient
- func (c Caches) StorageRegistryClient(p registry.RegistryAPIClient) registry.RegistryAPIClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Caches ¶
type Caches []*ttlcache.Cache
Caches holds all caches used by the gateway
func NewCaches ¶
NewCaches initializes the caches. Optionally takes ttls for all caches. len(ttlsSeconds) is expected to be either 0, 1 or len(allCaches). Panics if not.
func (Caches) Close ¶
func (c Caches) Close()
Close closes all caches - best to call it on teardown - ignores errors
func (Caches) RemoveListStorageProviders ¶
func (c Caches) RemoveListStorageProviders(res *provider.ResourceId)
RemoveListStorageProviders removes a reference from the listproviders cache
func (Caches) RemoveStat ¶
func (c Caches) RemoveStat(user *userpb.User, res *provider.ResourceId)
RemoveStat removes a reference from the stat cache
func (Caches) StorageProviderClient ¶
func (c Caches) StorageProviderClient(p provider.ProviderAPIClient) provider.ProviderAPIClient
StorageProviderClient returns a (cached) client pointing to the storageprovider
func (Caches) StorageRegistryClient ¶
func (c Caches) StorageRegistryClient(p registry.RegistryAPIClient) registry.RegistryAPIClient
StorageRegistryClient returns a (cached) client pointing to the storageregistry
Source Files ¶
- applicationauth.go
- appprovider.go
- appregistry.go
- authprovider.go
- authregistry.go
- datatx.go
- gateway.go
- groupprovider.go
- ocmcore.go
- ocminvitemanager.go
- ocmproviderauthorizer.go
- ocmshareprovider.go
- permissions.go
- preferences.go
- publicshareprovider.go
- storageprovider.go
- storageprovidercache.go
- userprovider.go
- usershareprovider.go
- webdavstorageprovider.go
Click to show internal directories.
Click to hide internal directories.