Documentation ¶
Index ¶
- Variables
- type StorageNameDiscover
- type StorageNameResolver
- type StorageNameResolverHandler
- type StorageNamesResolver
- type StoragesManager
- func (s *StoragesManager) Get(name string) oss.StorageInterface
- func (s *StoragesManager) GetOrDefault(name string) oss.StorageInterface
- func (s *StoragesManager) Register(name string, storage oss.StorageInterface)
- func (s *StoragesManager) ResolveName(context *core.Context, name string) oss.StorageInterface
- func (s *StoragesManager) ResolveNameOrDefault(context *core.Context, name string) oss.StorageInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var Storages = &StoragesManager{nil, nil, make(map[string]oss.StorageInterface), &StorageNamesResolver{}}
Functions ¶
This section is empty.
Types ¶
type StorageNameDiscover ¶
type StorageNameDiscover struct { Name string Context *core.Context CurrentResolver *StorageNameResolver Resolver *StorageNameResolver Parent *StorageNameDiscover }
func (*StorageNameDiscover) Next ¶
func (nd *StorageNameDiscover) Next()
func (*StorageNameDiscover) SetName ¶
func (nd *StorageNameDiscover) SetName(name string)
type StorageNameResolver ¶
type StorageNameResolver struct {
// contains filtered or unexported fields
}
type StorageNameResolverHandler ¶
type StorageNameResolverHandler func(name *StorageNameDiscover)
type StorageNamesResolver ¶
type StorageNamesResolver struct { FirstResolver *StorageNameResolver LastResolver *StorageNameResolver }
func (*StorageNamesResolver) Discovery ¶
func (r *StorageNamesResolver) Discovery(context *core.Context, name string) string
func (*StorageNamesResolver) RegisterResolver ¶
func (r *StorageNamesResolver) RegisterResolver(name string, handler StorageNameResolverHandler) (resolver *StorageNameResolver)
type StoragesManager ¶
type StoragesManager struct { Default oss.StorageInterface DefaultFS *filesystem.FileSystem NameResolvers *StorageNamesResolver // contains filtered or unexported fields }
func (*StoragesManager) Get ¶
func (s *StoragesManager) Get(name string) oss.StorageInterface
func (*StoragesManager) GetOrDefault ¶
func (s *StoragesManager) GetOrDefault(name string) oss.StorageInterface
func (*StoragesManager) Register ¶
func (s *StoragesManager) Register(name string, storage oss.StorageInterface)
func (*StoragesManager) ResolveName ¶
func (s *StoragesManager) ResolveName(context *core.Context, name string) oss.StorageInterface
func (*StoragesManager) ResolveNameOrDefault ¶
func (s *StoragesManager) ResolveNameOrDefault(context *core.Context, name string) oss.StorageInterface
Click to show internal directories.
Click to hide internal directories.