File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 8
8
"crypto/sha256"
9
9
"encoding/hex"
10
10
"errors"
11
- "fmt"
12
11
"hash"
13
12
"io"
14
13
"os"
24
23
ErrSizeMismatch = errors .New ("Content size does not match" )
25
24
)
26
25
27
- // ErrRangeNotSatisfiable represents an error which request range is not satisfiable.
28
- type ErrRangeNotSatisfiable struct {
29
- FromByte int64
30
- }
31
-
32
- // IsErrRangeNotSatisfiable returns true if the error is an ErrRangeNotSatisfiable
33
- func IsErrRangeNotSatisfiable (err error ) bool {
34
- _ , ok := err .(ErrRangeNotSatisfiable )
35
- return ok
36
- }
37
-
38
- func (err ErrRangeNotSatisfiable ) Error () string {
39
- return fmt .Sprintf ("Requested range %d is not satisfiable" , err .FromByte )
40
- }
41
-
42
26
// ContentStore provides a simple file system based storage.
43
27
type ContentStore struct {
44
28
storage.ObjectStorage
You can’t perform that action at this time.
0 commit comments