Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypBlob = iota TypTree TypRef )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseStorage ¶
type BaseStorage struct {
// contains filtered or unexported fields
}
func NewBase ¶
func NewBase(hashFunc func() kfscrypto.Hash) BaseStorage
func (*BaseStorage) HashFunc ¶
func (s *BaseStorage) HashFunc() kfscrypto.Hash
type Storage ¶
type Storage interface { Read(typ int, key string, f func(reader io.Reader) error) error Write(typ int, reader io.Reader) (string, error) Exist(typ int, key string) (bool, error) //Commit(typ int, key string) error Delete(typ int, key string) error UpdateRef(name string, expect string, desire string) error GetRef(name string) (string, error) GetRefs() ([]string, error) Status() (Status, error) HashFunc() kfscrypto.Hash }
Click to show internal directories.
Click to hide internal directories.