Documentation ¶
Index ¶
- type Storage
- func (st *Storage) DeleteObject(obj *storage.Object) error
- func (st *Storage) GetObjectACL(obj *storage.Object) error
- func (st *Storage) GetObjectContent(obj *storage.Object) error
- func (st *Storage) GetObjectMeta(obj *storage.Object) error
- func (st *Storage) List(output chan<- *storage.Object) error
- func (st *Storage) PutObject(obj *storage.Object) error
- func (st *Storage) WithContext(ctx context.Context)
- func (st *Storage) WithRateLimit(limit int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage configuration.
func NewStorage ¶
func NewStorage(user, key, tenant, domain, authUrl string, bucketName, prefix string, retryCnt uint, retryDelay time.Duration, skipSSLVerify bool) (*Storage, error)
NewStorage return new configured S3 storage.
You should always create new storage with this constructor.
func (*Storage) DeleteObject ¶
DeleteObject remove object from S3.
func (*Storage) GetObjectACL ¶
GetObjectACL read object ACL from S3.
func (*Storage) GetObjectContent ¶
GetObjectContent read object content and metadata from S3.
func (*Storage) GetObjectMeta ¶
GetObjectMeta update object metadata from S3.
func (*Storage) PutObject ¶
PutObject saves object to S3. PutObject ignore VersionId, it always save object as latest version.
func (*Storage) WithContext ¶
WithContext add's context to storage.
func (*Storage) WithRateLimit ¶
WithRateLimit set rate limit (bytes/sec) for storage.
Click to show internal directories.
Click to hide internal directories.