diff options
| author | 2026-03-30 12:58:26 +0000 | |
|---|---|---|
| committer | 2026-03-30 12:58:26 +0000 | |
| commit | ce22af5eb8c94f2a817fca326efc6bea680e63cc (patch) | |
| tree | f1a58fa766425dc43290a769c203569ca2f7c4a3 /object/store/writer.go | |
| parent | object/store: ObjectWriter should support writers too. (diff) | |
| signature | No signature | |
object/store: Reorganize files
Diffstat (limited to 'object/store/writer.go')
| -rw-r--r-- | object/store/writer.go | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/object/store/writer.go b/object/store/writer.go deleted file mode 100644 index 75433ab3..00000000 --- a/object/store/writer.go +++ /dev/null @@ -1,32 +0,0 @@ -package objectstore - -import ( - "io" - - objectid "codeberg.org/lindenii/furgit/object/id" - objecttype "codeberg.org/lindenii/furgit/object/type" -) - -// ObjectWriter writes individual Git objects. -type ObjectWriter interface { - // WriteReaderContent writes one typed object content stream. - WriteReaderContent(ty objecttype.Type, size int64, src io.Reader) (objectid.ObjectID, error) - - // WriteReaderFull writes one full serialized object stream as "type size\0content". - WriteReaderFull(src io.Reader) (objectid.ObjectID, error) - - // WriteBytesContent writes one typed object content byte slice. - WriteBytesContent(ty objecttype.Type, content []byte) (objectid.ObjectID, error) - - // WriteBytesFull writes one full serialized object byte slice as "type size\0content". - WriteBytesFull(raw []byte) (objectid.ObjectID, error) -} - -// PackWriteOptions controls one pack write operation. -type PackWriteOptions struct{} - -// PackWriter writes Git pack streams. -type PackWriter interface { - // WritePack ingests one pack stream. - WritePack(src io.Reader, opts PackWriteOptions) error -} |
