Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEngineNotFound = errors.New("object engine not found")
)
Functions ¶
func RegisterObjectEngine ¶
func RegisterObjectEngine(name string, newEngine ObjectEngineConstructor)
Types ¶
type Object ¶
type Object interface {
Exists() bool
Quarantine() error
Metadata() map[string]string
ContentLength() int64
CopyRange(io.Writer, int64, int64) (int64, error)
Copy(...io.Writer) (int64, error)
SetData(size int64) (io.Writer, error)
Commit(metadata map[string]string) error
CommitMeta(metadata map[string]string) error
Delete(metadata map[string]string) error
Close() error
Repr() string
}
type ObjectEngine ¶
type ObjectEngineConstructor ¶
type ObjectEngineConstructor func(conf.Config, *conf.Policy, *flag.FlagSet, *sync.WaitGroup) (ObjectEngine, error)
func FindEngine ¶
func FindEngine(name string) (ObjectEngineConstructor, error)
Click to show internal directories.
Click to hide internal directories.