Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidContext = errors.New("session token does not contain container context")
ErrInvalidContext is thrown by morph ServiceExecutor when provided session token does not contain expected container context.
Functions ¶
func NewExecutor ¶
func NewExecutor(rdr Reader, wrt Writer) containerSvc.ServiceExecutor
Types ¶
type Reader ¶ added in v0.24.0
type Reader interface { containercore.Source eacl.Source // List returns a list of container identifiers belonging // to the specified owner of NeoFS system. Returns the identifiers // of all NeoFS containers if pointer to owner identifier is nil. List(*owner.ID) ([]*cid.ID, error) }
Reader is an interface of read-only container storage.
type Writer ¶ added in v0.25.0
type Writer interface { // Put stores specified container in the side chain. Put(*containerSDK.Container) (*cid.ID, error) // Delete removes specified container from the side chain. Delete(containercore.RemovalWitness) error // PutEACL updates extended ACL table of specified container in the side chain. PutEACL(*eaclSDK.Table) error }
Writer is an interface of container storage updater.
Click to show internal directories.
Click to hide internal directories.