Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutor ¶
func NewExecutor(rdr Reader, wrt Writer) containerSvc.ServiceExecutor
Types ¶
type Reader ¶
type Reader interface {
containercore.Source
// ContainersOf returns a list of container identifiers belonging
// to the specified user of FrostFS system. Returns the identifiers
// of all FrostFS containers if pointer to owner identifier is nil.
ContainersOf(context.Context, *user.ID) ([]cid.ID, error)
IterateContainersOf(context.Context, *user.ID, func(cid.ID) error) error
}
Reader is an interface of read-only container storage.
type Writer ¶
type Writer interface {
// Put stores specified container in the side chain.
Put(context.Context, containercore.Container) (*cid.ID, error)
// Delete removes specified container from the side chain.
Delete(context.Context, containercore.RemovalWitness) error
}
Writer is an interface of container storage updater.
Click to show internal directories.
Click to hide internal directories.