Documentation ¶
Index ¶
- func CopyObject(filename string, objectsGetter ObjectsGetter, hashVal hash.Hash) error
- func GetObject(objSrv ObjectsGetter, hashVal hash.Hash) (uint64, io.ReadCloser, error)
- func LinkObject(filename string, objectsGetter ObjectsGetter, hashVal hash.Hash) (bool, error)
- type AddCallback
- type AddCallbackSetter
- type FullObjectServer
- type FullObjectsReader
- type GarbageCollector
- type GarbageCollectorSetter
- type ObjectGetter
- type ObjectLinker
- type ObjectServer
- type ObjectsChecker
- type ObjectsGetter
- type ObjectsReader
- type StashingObjectServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyObject ¶
func CopyObject(filename string, objectsGetter ObjectsGetter, hashVal hash.Hash) error
func GetObject ¶
func GetObject(objSrv ObjectsGetter, hashVal hash.Hash) ( uint64, io.ReadCloser, error)
func LinkObject ¶
Types ¶
type AddCallbackSetter ¶
type AddCallbackSetter interface {
SetAddCallback(callback AddCallback)
}
type FullObjectServer ¶
type FullObjectsReader ¶
type FullObjectsReader interface { ObjectsReader ObjectSizes() []uint64 }
type GarbageCollector ¶
type GarbageCollectorSetter ¶
type GarbageCollectorSetter interface {
SetGarbageCollector(gc GarbageCollector)
}
type ObjectGetter ¶
type ObjectLinker ¶
type ObjectServer ¶
type ObjectServer interface { AddObject(reader io.Reader, length uint64, expectedHash *hash.Hash) ( hash.Hash, bool, error) ObjectGetter ObjectsChecker ObjectsGetter }
type ObjectsChecker ¶
type ObjectsGetter ¶
type ObjectsGetter interface {
GetObjects(hashes []hash.Hash) (ObjectsReader, error)
}
type ObjectsReader ¶
type ObjectsReader interface { Close() error NextObject() (uint64, io.ReadCloser, error) }
Click to show internal directories.
Click to hide internal directories.