Documentation
¶
Index ¶
- Variables
- type S3Store
- func (s *S3Store) Delete(ctx context.Context, key string) error
- func (s *S3Store) Exists(ctx context.Context, key string) bool
- func (s *S3Store) Filename(key string) string
- func (s *S3Store) List(ctx context.Context, prefix string, recursive bool) ([]string, error)
- func (s *S3Store) Load(ctx context.Context, key string) ([]byte, error)
- func (s *S3Store) Lock(ctx context.Context, key string) error
- func (s *S3Store) Stat(ctx context.Context, key string) (cm.KeyInfo, error)
- func (s *S3Store) Store(ctx context.Context, key string, value []byte) error
- func (s *S3Store) String() string
- func (s *S3Store) Unlock(ctx context.Context, key string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var StorageKeys cm.KeyBuilder
Functions ¶
This section is empty.
Types ¶
type S3Store ¶
type S3Store struct {
// contains filtered or unexported fields
}
func (*S3Store) Filename ¶
Filename returns the key as a path on the file system prefixed by S3Storage.Path.
func (*S3Store) List ¶
List returns all keys that match prefix. because s3 has no concept of directories, everything is an explicit path, there is really no such thing as recursive search. This is simply here to fulfill the interface requirements of the List function
func (*S3Store) Lock ¶
Lock obtains a lock named by the given key. It blocks until the lock can be obtained or an error is returned.
Click to show internal directories.
Click to hide internal directories.