Documentation
¶
Overview ¶
Package storagekit holds the few helpers every storage.Store implementation shares, so the adapters (storage/local, storage/s3 and storagetest's memory store) cannot drift apart on them. It is internal: an adapter written elsewhere writes its own, and the conformance suite holds it to the same contract.
Index ¶
Constants ¶
const KeyAttempts = 3
KeyAttempts is how many generated keys a write tries before it reports a collision as storage.ErrExists.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check is the preamble every call that names a key shares: the context, then the key's form.
func Range ¶
Range resolves an Open request against an object of size bytes: it returns the end of the range starting at offset. A negative length, or one that reaches or exceeds the remaining bytes (math.MaxInt64 included), reads to the end. An offset that is negative or beyond the end is storage.ErrInvalidRange. It never overflows, whatever length is.