diff options
| author | 2026-03-08 12:03:26 +0800 | |
|---|---|---|
| committer | 2026-03-08 12:03:26 +0800 | |
| commit | ae5c818674e2c9ca950ca7a9bf93f1283e7411b7 (patch) | |
| tree | 25d1702260993a8066690c93b3da81adea6d4258 /format/pack/ingest/errors.go | |
| parent | receivepack: Trivial caps (diff) | |
| signature | No signature | |
receivepack, format/pack/ingest: Two-stage ingestion
Diffstat (limited to 'format/pack/ingest/errors.go')
| -rw-r--r-- | format/pack/ingest/errors.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/format/pack/ingest/errors.go b/format/pack/ingest/errors.go index 82b662b5..d5e6d703 100644 --- a/format/pack/ingest/errors.go +++ b/format/pack/ingest/errors.go @@ -66,3 +66,12 @@ func (err *DestinationWriteError) Error() string { } var errExternalThinBase = errors.New("format/pack/ingest: external thin base required") + +var ( + // ErrAlreadyFinalized indicates Continue/Discard already called. + ErrAlreadyFinalized = errors.New("format/pack/ingest: operation already finalized") + // ErrZeroObjectContinue indicates Continue was called for a zero-object pack. + ErrZeroObjectContinue = errors.New("format/pack/ingest: cannot continue zero-object pack") + // ErrNonZeroDiscard indicates Discard was called for a non-zero-object pack. + ErrNonZeroDiscard = errors.New("format/pack/ingest: cannot discard non-zero pack") +) |
