testutils

package
v0.105.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 14 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 FakeKVEntryIterator added in v0.91.0

type FakeKVEntryIterator struct {
	Entries []*kv.Entry
	Error   error
	// contains filtered or unexported fields
}

func NewFakeKVEntryIterator added in v0.91.0

func NewFakeKVEntryIterator(entries []*kv.Entry) *FakeKVEntryIterator

func (*FakeKVEntryIterator) Close added in v0.91.0

func (f *FakeKVEntryIterator) Close()

func (*FakeKVEntryIterator) Entry added in v0.91.0

func (f *FakeKVEntryIterator) Entry() *kv.Entry

func (*FakeKVEntryIterator) Err added in v0.91.0

func (f *FakeKVEntryIterator) Err() error

func (*FakeKVEntryIterator) Next added in v0.91.0

func (f *FakeKVEntryIterator) Next() bool

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 []block.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) GetSkippedEntries added in v0.98.0

func (w *FakeWalker) GetSkippedEntries() []block.ObjectStoreEntry

func (*FakeWalker) Marker added in v0.65.0

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

func (*FakeWalker) Walk added in v0.65.0

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

Jump to

Keyboard shortcuts

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