Documentation
¶
Index ¶
- func CreatePreSign(obj *object.FileObject) *response.Response
- func Delete(obj *object.FileObject) *response.Response
- func Get(obj *object.FileObject) *response.Response
- func Head(obj *object.FileObject) *response.Response
- func List(obj *object.FileObject, maxKeys int, _ string, prefix string, marker string) *response.Response
- func Set(obj *object.FileObject, metaHeaders http.Header, contentLen int64, ...) *response.Response
- type RestoreCache
- type RestoreStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePreSign ¶ added in v0.22.0
func CreatePreSign(obj *object.FileObject) *response.Response
func Delete ¶ added in v0.4.1
func Delete(obj *object.FileObject) *response.Response
Delete remove object from given storage
func Get ¶
func Get(obj *object.FileObject) *response.Response
Get retrieve obj from given storage and returns its wrapped in response
func Head ¶
func Head(obj *object.FileObject) *response.Response
Head retrieve obj from given storage and returns its wrapped in response (but only headers, content of object is omitted)
Types ¶
type RestoreCache ¶ added in v0.36.0
type RestoreCache struct {
// contains filtered or unexported fields
}
RestoreCache handles GLACIER restore status tracking using generic cache
func GetRestoreCache ¶ added in v0.36.0
func GetRestoreCache(cacheCfg config.CacheCfg) *RestoreCache
GetRestoreCache returns the singleton restore cache instance
func NewRestoreCache ¶ added in v0.36.0
func NewRestoreCache(cacheCfg config.CacheCfg) *RestoreCache
NewRestoreCache creates a RestoreCache using the generic cache
func (*RestoreCache) GetRestoreStatus ¶ added in v0.36.0
func (r *RestoreCache) GetRestoreStatus(ctx context.Context, key string) (*RestoreStatus, error)
GetRestoreStatus checks if restore was already requested
func (*RestoreCache) MarkRestoreRequested ¶ added in v0.36.0
func (r *RestoreCache) MarkRestoreRequested(ctx context.Context, key string, expiresIn time.Duration) error
MarkRestoreRequested records that a restore was initiated
type RestoreStatus ¶ added in v0.36.0
type RestoreStatus struct {
Key string `msgpack:"key"`
RequestedAt time.Time `msgpack:"requestedAt"`
ExpiresAt time.Time `msgpack:"expiresAt"`
InProgress bool `msgpack:"inProgress"`
}
RestoreStatus represents the state of a GLACIER restore operation All fields are exported for msgpack serialization