forked from mtusi2026/mtusi2026lab6
17 lines
293 B
Go
17 lines
293 B
Go
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
|
|
}
|