Documentation ¶
Index ¶
- Constants
- func NewS3Storage(opt OpenOption) (storage.Storage, error)
- type OpenOption
- type S3Client
- type S3Storage
- func (ms *S3Storage) Close() error
- func (ms *S3Storage) Create(fd storage.FileDesc) (storage.Writer, error)
- func (ms *S3Storage) GetMeta() (storage.FileDesc, error)
- func (ms *S3Storage) List(ft storage.FileType) ([]storage.FileDesc, error)
- func (ms *S3Storage) Lock() (storage.Locker, error)
- func (ms *S3Storage) Log(message string)
- func (ms *S3Storage) Open(fd storage.FileDesc) (storage.Reader, error)
- func (ms *S3Storage) Remove(fd storage.FileDesc) error
- func (ms *S3Storage) Rename(oldfd, newfd storage.FileDesc) error
- func (ms *S3Storage) SetMeta(fd storage.FileDesc) error
- type S3StorageLock
Constants ¶
View Source
const CacheSize = 500
Variables ¶
This section is empty.
Functions ¶
func NewS3Storage ¶
func NewS3Storage(opt OpenOption) (storage.Storage, error)
NewS3Storage returns a new s3-backed storage implementation.
Types ¶
type OpenOption ¶
type S3Client ¶
type S3Client struct {
// contains filtered or unexported fields
}
func GetS3Client ¶
func GetS3Client(opt OpenOption) (*S3Client, error)
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
S3Storage is a s3-backed storage.
type S3StorageLock ¶
type S3StorageLock struct {
// contains filtered or unexported fields
}
func (*S3StorageLock) Unlock ¶
func (lock *S3StorageLock) Unlock()
Click to show internal directories.
Click to hide internal directories.