forked from mtusi2026/mtusi2026lab5
ЛР 5 — асинхронная обработка и версии pipeline
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ObjectCleanup interface {
|
||||
ListPage(ctx context.Context, token *string, prefix string) ([]ObjectInfo, *string, error)
|
||||
Delete(ctx context.Context, key string) error
|
||||
}
|
||||
|
||||
type ObjectInfo struct {
|
||||
Key string
|
||||
LastModified time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user