Documentation
¶
Index ¶
- type Config
- type Store
- func (s *Store) Close() error
- func (s *Store) Delete(_ context.Context, bucket, key string) error
- func (s *Store) Get(_ context.Context, bucket, key string, opts object.GetOptions) (object.ObjectMeta, []byte, error)
- func (s *Store) Len() int
- func (s *Store) List(_ context.Context, bucket string, opts object.ListOptions) ([]object.ObjectMeta, error)
- func (s *Store) Put(_ context.Context, bucket, key string, body []byte, opts object.PutOptions) (object.ObjectMeta, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an in-process object.Store for tests and examples.
func NewResource ¶
NewResource builds an object.Resource over a memory store.
func (*Store) Get ¶
func (s *Store) Get(_ context.Context, bucket, key string, opts object.GetOptions) (object.ObjectMeta, []byte, error)
Get implements object.Store.
Click to show internal directories.
Click to hide internal directories.