Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type File
- type Metadata
- type Store
- func (s *Store) Close() error
- func (s *Store) Delete(id string) (bool, error)
- func (s *Store) Limits() (maxBlobBytes, maxTotalBytes int64)
- func (s *Store) Metadata(id string) (Metadata, error)
- func (s *Store) ObjectLimits() (maxBlobs, maxNameBytes int)
- func (s *Store) Open(id string) (*File, Metadata, error)
- func (s *Store) Put(ctx context.Context, name string, reader io.Reader) (Metadata, error)
Constants ¶
View Source
const ( DefaultMaxBlobBytes int64 = 4 << 30 DefaultMaxTotalBytes int64 = 16 << 30 DefaultMaxBlobs = 4096 DefaultMaxNameBytes = 255 DefaultTTL = 30 * time.Minute )
Variables ¶
View Source
var ( // ErrResourceExhausted identifies a store quota failure to transport layers. ErrResourceExhausted = errors.New("blob store resource limit exceeded") ErrInvalidArgument = errors.New("invalid blob argument") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.