2021-03-15 10:53:08 +00:00
|
|
|
package container
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2024-10-28 15:10:07 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/util"
|
2024-11-07 14:32:10 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/container"
|
2021-03-15 10:53:08 +00:00
|
|
|
)
|
|
|
|
|
2023-02-05 15:59:38 +00:00
|
|
|
// Server is an interface of the FrostFS API Container service server.
|
2021-03-15 10:53:08 +00:00
|
|
|
type Server interface {
|
|
|
|
Put(context.Context, *container.PutRequest) (*container.PutResponse, error)
|
|
|
|
Get(context.Context, *container.GetRequest) (*container.GetResponse, error)
|
|
|
|
Delete(context.Context, *container.DeleteRequest) (*container.DeleteResponse, error)
|
|
|
|
List(context.Context, *container.ListRequest) (*container.ListResponse, error)
|
2024-10-28 15:10:07 +00:00
|
|
|
ListStream(*container.ListStreamRequest, ListStream) error
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListStream is an interface of FrostFS API v2 compatible search streamer.
|
|
|
|
type ListStream interface {
|
|
|
|
util.ServerStream
|
|
|
|
Send(*container.ListStreamResponse) error
|
2021-03-15 10:53:08 +00:00
|
|
|
}
|