diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-05 07:59:20 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-05 07:59:20 +0200 |
commit | 65427f64599e9383ab926aed75fc02f2db32022d (patch) | |
tree | 5c81c00bc9dcfb54e0c6d0038ab2cbd8cddde389 /storage/filesystem/object.go | |
parent | 440cfd96cf88ffc9d04bbd32ec8a3b1afb42144c (diff) | |
download | go-git-65427f64599e9383ab926aed75fc02f2db32022d.tar.gz |
core: ObjectStorage.Begin and TxObjectStorage
Diffstat (limited to 'storage/filesystem/object.go')
-rw-r--r-- | storage/filesystem/object.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/storage/filesystem/object.go b/storage/filesystem/object.go index 3888fd8..0696c70 100644 --- a/storage/filesystem/object.go +++ b/storage/filesystem/object.go @@ -217,3 +217,20 @@ func buildIndexFromIdxfile(fs fs.FS, path string) (index.Index, error) { return index.NewFromIdx(f) } +func (o *ObjectStorage) Begin() core.TxObjectStorage { + return &TxObjectStorage{} +} + +type TxObjectStorage struct{} + +func (tx *TxObjectStorage) Set(obj core.Object) (core.Hash, error) { + return core.ZeroHash, fmt.Errorf("not implemented yet") +} + +func (tx *TxObjectStorage) Commit() error { + return fmt.Errorf("not implemented yet") +} + +func (tx *TxObjectStorage) Rollback() error { + return fmt.Errorf("not implemented yet") +} |