oss

package
v0.0.0-...-8411d4f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL