testutils

package
v0.70.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ContinuationTokenOpaque = "FakeContToken"

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeEntryIterator

type FakeEntryIterator struct {
	Entries []*catalog.EntryRecord
	Error   error
	// contains filtered or unexported fields
}

func NewFakeEntryIterator

func NewFakeEntryIterator(entries []*catalog.EntryRecord) *FakeEntryIterator

func (*FakeEntryIterator) Close

func (f *FakeEntryIterator) Close()

func (*FakeEntryIterator) Err

func (f *FakeEntryIterator) Err() error

func (*FakeEntryIterator) Next

func (f *FakeEntryIterator) Next() bool

func (*FakeEntryIterator) SeekGE

func (f *FakeEntryIterator) SeekGE(id catalog.Path)

func (*FakeEntryIterator) Value

type FakeFactory added in v0.65.0

type FakeFactory struct {
	Walker *FakeWalker
}

func (FakeFactory) GetWalker added in v0.65.0

type FakeValueIterator

type FakeValueIterator struct {
	Records []*graveler.ValueRecord
	Error   error
	// contains filtered or unexported fields
}

func NewFakeValueIterator

func NewFakeValueIterator(records []*graveler.ValueRecord) *FakeValueIterator

func (*FakeValueIterator) Close

func (f *FakeValueIterator) Close()

func (*FakeValueIterator) Err

func (f *FakeValueIterator) Err() error

func (*FakeValueIterator) Next

func (f *FakeValueIterator) Next() bool

func (*FakeValueIterator) SeekGE

func (f *FakeValueIterator) SeekGE(id graveler.Key)

func (*FakeValueIterator) Value

type FakeWalker added in v0.65.0

type FakeWalker struct {
	Entries []store.ObjectStoreEntry

	Max int
	// contains filtered or unexported fields
}

func NewFakeWalker added in v0.65.0

func NewFakeWalker(count, max int, uriPrefix, expectedAfter, expectedContinuationToken, expectedFromSourceURIWithPrefix string, err error) *FakeWalker

func (*FakeWalker) Marker added in v0.65.0

func (w *FakeWalker) Marker() store.Mark

func (*FakeWalker) Walk added in v0.65.0

func (w *FakeWalker) Walk(_ context.Context, storageURI *url.URL, op store.WalkOptions, walkFn func(e store.ObjectStoreEntry) error) error

Jump to

Keyboard shortcuts

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