container

package
v0.44.0-rc.11 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

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(*user.ID) ([]cid.ID, 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.

Jump to

Keyboard shortcuts

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