container

package
v0.44.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor(rdr Reader, wrt Writer, epocher netmap.State) containerSvc.ServiceExecutor

Types

type Reader added in v0.24.0

type Reader interface {
	containercore.Source
	containercore.EACLSource

	// List returns a list of container identifiers belonging
	// to the specified user of NeoFS system. Returns the identifiers
	// of all NeoFS containers if pointer to owner identifier is nil.
	List(*user.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 FS chain.
	Put(containercore.Container) (*cid.ID, error)
	// Delete removes specified container from FS chain.
	Delete(containercore.RemovalWitness) error
	// PutEACL updates extended ACL table of specified container in FS chain.
	PutEACL(containercore.EACL) error
}

Writer is an interface of container storage updater.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL