File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 88"crypto/sha256"
99"encoding/hex"
1010"errors"
11- "fmt"
1211"hash"
1312"io"
1413"os"
2423ErrSizeMismatch = errors .New ("Content size does not match" )
2524)
2625
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-
4226// ContentStore provides a simple file system based storage.
4327type ContentStore struct {
4428storage.ObjectStorage
You can’t perform that action at this time.
0 commit comments