neofstest

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestNeoFS

type TestNeoFS struct {
	neofs.NeoFS
	// contains filtered or unexported fields
}

func NewTestNeoFS

func NewTestNeoFS() *TestNeoFS

func (*TestNeoFS) AddObject

func (t *TestNeoFS) AddObject(key string, obj *object.Object)

func (*TestNeoFS) Container

func (t *TestNeoFS) Container(_ context.Context, id cid.ID) (*container.Container, error)

func (*TestNeoFS) ContainerID

func (t *TestNeoFS) ContainerID(name string) (*cid.ID, error)

func (*TestNeoFS) CreateContainer

func (t *TestNeoFS) CreateContainer(_ context.Context, prm neofs.PrmContainerCreate) (*cid.ID, error)

func (*TestNeoFS) CreateObject

func (t *TestNeoFS) CreateObject(_ context.Context, prm neofs.PrmObjectCreate) (*oid.ID, error)

func (*TestNeoFS) CurrentEpoch

func (t *TestNeoFS) CurrentEpoch() uint64

func (*TestNeoFS) DeleteObject

func (t *TestNeoFS) DeleteObject(_ context.Context, prm neofs.PrmObjectDelete) error

func (*TestNeoFS) Objects

func (t *TestNeoFS) Objects() []*object.Object

func (*TestNeoFS) ReadObject

func (t *TestNeoFS) ReadObject(_ context.Context, prm neofs.PrmObjectRead) (*neofs.ObjectPart, error)

func (*TestNeoFS) SelectObjects

func (t *TestNeoFS) SelectObjects(_ context.Context, prm neofs.PrmObjectSelect) ([]oid.ID, error)

func (*TestNeoFS) TimeToEpoch

func (t *TestNeoFS) TimeToEpoch(_ context.Context, futureTime time.Time) (uint64, uint64, error)

func (*TestNeoFS) UserContainers

func (t *TestNeoFS) UserContainers(_ context.Context, _ user.ID) ([]cid.ID, error)

Jump to

Keyboard shortcuts

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