proxy_test

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatastore

type MockDatastore struct {
	mock.Mock
}

func (*MockDatastore) CheckRevision

func (dm *MockDatastore) CheckRevision(_ context.Context, revision datastore.Revision) error

func (*MockDatastore) Close

func (dm *MockDatastore) Close() error

func (*MockDatastore) Features added in v1.11.0

func (dm *MockDatastore) Features(_ context.Context) (*datastore.Features, error)

func (*MockDatastore) HeadRevision

func (dm *MockDatastore) HeadRevision(_ context.Context) (datastore.Revision, error)

func (*MockDatastore) OptimizedRevision

func (dm *MockDatastore) OptimizedRevision(_ context.Context) (datastore.Revision, error)

func (*MockDatastore) ReadWriteTx

func (*MockDatastore) ReadyState added in v1.18.1

func (dm *MockDatastore) ReadyState(_ context.Context) (datastore.ReadyState, error)

func (*MockDatastore) RevisionFromString added in v1.14.0

func (dm *MockDatastore) RevisionFromString(s string) (datastore.Revision, error)

func (*MockDatastore) SnapshotReader

func (dm *MockDatastore) SnapshotReader(rev datastore.Revision) datastore.Reader

func (*MockDatastore) Statistics

func (dm *MockDatastore) Statistics(_ context.Context) (datastore.Stats, error)

func (*MockDatastore) Watch

func (dm *MockDatastore) Watch(_ context.Context, afterRevision datastore.Revision) (<-chan *datastore.RevisionChanges, <-chan error)

type MockReadWriteTransaction

type MockReadWriteTransaction struct {
	mock.Mock
}

func (*MockReadWriteTransaction) BulkLoad added in v1.22.0

func (*MockReadWriteTransaction) DeleteCaveats added in v1.14.0

func (dm *MockReadWriteTransaction) DeleteCaveats(_ context.Context, _ []string) error

func (*MockReadWriteTransaction) DeleteNamespaces added in v1.14.0

func (dm *MockReadWriteTransaction) DeleteNamespaces(_ context.Context, nsNames ...string) error

func (*MockReadWriteTransaction) DeleteRelationships

func (dm *MockReadWriteTransaction) DeleteRelationships(_ context.Context, filter *v1.RelationshipFilter) error

func (*MockReadWriteTransaction) ListAllCaveats added in v1.16.2

func (*MockReadWriteTransaction) ListAllNamespaces added in v1.16.2

func (*MockReadWriteTransaction) LookupCaveatsWithNames added in v1.16.2

func (dm *MockReadWriteTransaction) LookupCaveatsWithNames(_ context.Context, caveatNames []string) ([]datastore.RevisionedCaveat, error)

func (*MockReadWriteTransaction) LookupNamespacesWithNames added in v1.16.2

func (dm *MockReadWriteTransaction) LookupNamespacesWithNames(_ context.Context, nsNames []string) ([]datastore.RevisionedNamespace, error)

func (*MockReadWriteTransaction) QueryRelationships

func (*MockReadWriteTransaction) ReadCaveatByName added in v1.14.0

func (*MockReadWriteTransaction) ReadNamespaceByName added in v1.16.2

func (dm *MockReadWriteTransaction) ReadNamespaceByName(
	_ context.Context,
	nsName string,
) (*core.NamespaceDefinition, datastore.Revision, error)

func (*MockReadWriteTransaction) ReverseQueryRelationships

func (dm *MockReadWriteTransaction) ReverseQueryRelationships(
	_ context.Context,
	subjectsFilter datastore.SubjectsFilter,
	options ...options.ReverseQueryOptionsOption,
) (datastore.RelationshipIterator, error)

func (*MockReadWriteTransaction) WriteCaveats added in v1.14.0

func (dm *MockReadWriteTransaction) WriteCaveats(_ context.Context, caveats []*core.CaveatDefinition) error

func (*MockReadWriteTransaction) WriteNamespaces

func (dm *MockReadWriteTransaction) WriteNamespaces(_ context.Context, newConfigs ...*core.NamespaceDefinition) error

func (*MockReadWriteTransaction) WriteRelationships

func (dm *MockReadWriteTransaction) WriteRelationships(_ context.Context, mutations []*core.RelationTupleUpdate) error

type MockReader

type MockReader struct {
	mock.Mock
}

func (*MockReader) ListAllCaveats added in v1.16.2

func (dm *MockReader) ListAllCaveats(_ context.Context) ([]datastore.RevisionedCaveat, error)

func (*MockReader) ListAllNamespaces added in v1.16.2

func (dm *MockReader) ListAllNamespaces(_ context.Context) ([]datastore.RevisionedNamespace, error)

func (*MockReader) LookupCaveatsWithNames added in v1.16.2

func (dm *MockReader) LookupCaveatsWithNames(_ context.Context, caveatNames []string) ([]datastore.RevisionedCaveat, error)

func (*MockReader) LookupNamespacesWithNames added in v1.16.2

func (dm *MockReader) LookupNamespacesWithNames(_ context.Context, nsNames []string) ([]datastore.RevisionedNamespace, error)

func (*MockReader) QueryRelationships

func (*MockReader) ReadCaveatByName added in v1.14.0

func (dm *MockReader) ReadCaveatByName(_ context.Context, name string) (*core.CaveatDefinition, datastore.Revision, error)

func (*MockReader) ReadNamespaceByName added in v1.16.2

func (dm *MockReader) ReadNamespaceByName(
	_ context.Context,
	nsName string,
) (*core.NamespaceDefinition, datastore.Revision, error)

func (*MockReader) ReverseQueryRelationships

func (dm *MockReader) ReverseQueryRelationships(
	_ context.Context,
	subjectsFilter datastore.SubjectsFilter,
	options ...options.ReverseQueryOptionsOption,
) (datastore.RelationshipIterator, error)

Jump to

Keyboard shortcuts

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