forked from TrueCloudLab/frostfs-s3-gw
19 lines
310 B
Go
19 lines
310 B
Go
|
package data
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
)
|
||
|
|
||
|
type VersionsStream interface {
|
||
|
Next(ctx context.Context) (*NodeVersion, error)
|
||
|
}
|
||
|
|
||
|
// todo consider thread safe
|
||
|
type ListSession struct {
|
||
|
Next *ObjectInfo
|
||
|
Stream VersionsStream
|
||
|
NamesMap map[string]struct{}
|
||
|
Context context.Context
|
||
|
Cancel context.CancelFunc
|
||
|
}
|