mock_metadata

package
v0.0.3-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_metadata is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockReadStore added in v0.0.3

type MockReadStore struct {
	// contains filtered or unexported fields
}

MockReadStore is a mock of ReadStore interface.

func NewMockReadStore added in v0.0.3

func NewMockReadStore(ctrl *gomock.Controller) *MockReadStore

NewMockReadStore creates a new mock instance.

func (*MockReadStore) EXPECT added in v0.0.3

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockReadStore) GetEntity added in v0.0.3

func (m *MockReadStore) GetEntity(ctx context.Context, id int) (*types.Entity, error)

GetEntity mocks base method.

func (*MockReadStore) GetEntityByName added in v0.0.3

func (m *MockReadStore) GetEntityByName(ctx context.Context, name string) (*types.Entity, error)

GetEntityByName mocks base method.

func (*MockReadStore) GetFeature added in v0.0.3

func (m *MockReadStore) GetFeature(ctx context.Context, id int) (*types.Feature, error)

GetFeature mocks base method.

func (*MockReadStore) GetFeatureByName added in v0.0.3

func (m *MockReadStore) GetFeatureByName(ctx context.Context, name string) (*types.Feature, error)

GetFeatureByName mocks base method.

func (*MockReadStore) GetGroup added in v0.0.3

func (m *MockReadStore) GetGroup(ctx context.Context, id int) (*types.Group, error)

GetGroup mocks base method.

func (*MockReadStore) GetGroupByName added in v0.0.3

func (m *MockReadStore) GetGroupByName(ctx context.Context, name string) (*types.Group, error)

GetGroupByName mocks base method.

func (*MockReadStore) GetRevision added in v0.0.3

func (m *MockReadStore) GetRevision(ctx context.Context, id int) (*types.Revision, error)

GetRevision mocks base method.

func (*MockReadStore) GetRevisionBy added in v0.0.3

func (m *MockReadStore) GetRevisionBy(ctx context.Context, groupID int, revision int64) (*types.Revision, error)

GetRevisionBy mocks base method.

func (*MockReadStore) ListEntity added in v0.0.3

func (m *MockReadStore) ListEntity(ctx context.Context) types.EntityList

ListEntity mocks base method.

func (*MockReadStore) ListFeature added in v0.0.3

ListFeature mocks base method.

func (*MockReadStore) ListGroup added in v0.0.3

func (m *MockReadStore) ListGroup(ctx context.Context, entityID *int) types.GroupList

ListGroup mocks base method.

func (*MockReadStore) ListRevision added in v0.0.3

func (m *MockReadStore) ListRevision(ctx context.Context, groupID *int) types.RevisionList

ListRevision mocks base method.

func (*MockReadStore) Refresh added in v0.0.3

func (m *MockReadStore) Refresh() error

Refresh mocks base method.

type MockReadStoreMockRecorder added in v0.0.3

type MockReadStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockReadStoreMockRecorder is the mock recorder for MockReadStore.

func (*MockReadStoreMockRecorder) GetEntity added in v0.0.3

func (mr *MockReadStoreMockRecorder) GetEntity(ctx, id interface{}) *gomock.Call

GetEntity indicates an expected call of GetEntity.

func (*MockReadStoreMockRecorder) GetEntityByName added in v0.0.3

func (mr *MockReadStoreMockRecorder) GetEntityByName(ctx, name interface{}) *gomock.Call

GetEntityByName indicates an expected call of GetEntityByName.

func (*MockReadStoreMockRecorder) GetFeature added in v0.0.3

func (mr *MockReadStoreMockRecorder) GetFeature(ctx, id interface{}) *gomock.Call

GetFeature indicates an expected call of GetFeature.

func (*MockReadStoreMockRecorder) GetFeatureByName added in v0.0.3

func (mr *MockReadStoreMockRecorder) GetFeatureByName(ctx, name interface{}) *gomock.Call

GetFeatureByName indicates an expected call of GetFeatureByName.

func (*MockReadStoreMockRecorder) GetGroup added in v0.0.3

func (mr *MockReadStoreMockRecorder) GetGroup(ctx, id interface{}) *gomock.Call

GetGroup indicates an expected call of GetGroup.

func (*MockReadStoreMockRecorder) GetGroupByName added in v0.0.3

func (mr *MockReadStoreMockRecorder) GetGroupByName(ctx, name interface{}) *gomock.Call

GetGroupByName indicates an expected call of GetGroupByName.

func (*MockReadStoreMockRecorder) GetRevision added in v0.0.3

func (mr *MockReadStoreMockRecorder) GetRevision(ctx, id interface{}) *gomock.Call

GetRevision indicates an expected call of GetRevision.

func (*MockReadStoreMockRecorder) GetRevisionBy added in v0.0.3

func (mr *MockReadStoreMockRecorder) GetRevisionBy(ctx, groupID, revision interface{}) *gomock.Call

GetRevisionBy indicates an expected call of GetRevisionBy.

func (*MockReadStoreMockRecorder) ListEntity added in v0.0.3

func (mr *MockReadStoreMockRecorder) ListEntity(ctx interface{}) *gomock.Call

ListEntity indicates an expected call of ListEntity.

func (*MockReadStoreMockRecorder) ListFeature added in v0.0.3

func (mr *MockReadStoreMockRecorder) ListFeature(ctx, opt interface{}) *gomock.Call

ListFeature indicates an expected call of ListFeature.

func (*MockReadStoreMockRecorder) ListGroup added in v0.0.3

func (mr *MockReadStoreMockRecorder) ListGroup(ctx, entityID interface{}) *gomock.Call

ListGroup indicates an expected call of ListGroup.

func (*MockReadStoreMockRecorder) ListRevision added in v0.0.3

func (mr *MockReadStoreMockRecorder) ListRevision(ctx, groupID interface{}) *gomock.Call

ListRevision indicates an expected call of ListRevision.

func (*MockReadStoreMockRecorder) Refresh added in v0.0.3

func (mr *MockReadStoreMockRecorder) Refresh() *gomock.Call

Refresh indicates an expected call of Refresh.

type MockSqlxContext added in v0.0.3

type MockSqlxContext struct {
	// contains filtered or unexported fields
}

MockSqlxContext is a mock of SqlxContext interface.

func NewMockSqlxContext added in v0.0.3

func NewMockSqlxContext(ctrl *gomock.Controller) *MockSqlxContext

NewMockSqlxContext creates a new mock instance.

func (*MockSqlxContext) DriverName added in v0.0.3

func (m *MockSqlxContext) DriverName() string

DriverName mocks base method.

func (*MockSqlxContext) EXPECT added in v0.0.3

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSqlxContext) ExecContext added in v0.0.3

func (m *MockSqlxContext) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

ExecContext mocks base method.

func (*MockSqlxContext) GetContext added in v0.0.3

func (m *MockSqlxContext) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

GetContext mocks base method.

func (*MockSqlxContext) Rebind added in v0.0.3

func (m *MockSqlxContext) Rebind(arg0 string) string

Rebind mocks base method.

func (*MockSqlxContext) SelectContext added in v0.0.3

func (m *MockSqlxContext) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

SelectContext mocks base method.

type MockSqlxContextMockRecorder added in v0.0.3

type MockSqlxContextMockRecorder struct {
	// contains filtered or unexported fields
}

MockSqlxContextMockRecorder is the mock recorder for MockSqlxContext.

func (*MockSqlxContextMockRecorder) DriverName added in v0.0.3

func (mr *MockSqlxContextMockRecorder) DriverName() *gomock.Call

DriverName indicates an expected call of DriverName.

func (*MockSqlxContextMockRecorder) ExecContext added in v0.0.3

func (mr *MockSqlxContextMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockSqlxContextMockRecorder) GetContext added in v0.0.3

func (mr *MockSqlxContextMockRecorder) GetContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call

GetContext indicates an expected call of GetContext.

func (*MockSqlxContextMockRecorder) Rebind added in v0.0.3

func (mr *MockSqlxContextMockRecorder) Rebind(arg0 interface{}) *gomock.Call

Rebind indicates an expected call of Rebind.

func (*MockSqlxContextMockRecorder) SelectContext added in v0.0.3

func (mr *MockSqlxContextMockRecorder) SelectContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call

SelectContext indicates an expected call of SelectContext.

type MockStore

type MockStore struct {
	// contains filtered or unexported fields
}

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) Close

func (m *MockStore) Close() error

Close mocks base method.

func (*MockStore) CreateEntity

func (m *MockStore) CreateEntity(ctx context.Context, opt metadata.CreateEntityOpt) (int, error)

CreateEntity mocks base method.

func (*MockStore) CreateFeature

func (m *MockStore) CreateFeature(ctx context.Context, opt metadata.CreateFeatureOpt) (int, error)

CreateFeature mocks base method.

func (*MockStore) CreateGroup added in v0.0.3

func (m *MockStore) CreateGroup(ctx context.Context, opt metadata.CreateGroupOpt) (int, error)

CreateGroup mocks base method.

func (*MockStore) CreateRevision

func (m *MockStore) CreateRevision(ctx context.Context, opt metadata.CreateRevisionOpt) (int, string, error)

CreateRevision mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStore) GetEntity

func (m *MockStore) GetEntity(ctx context.Context, id int) (*types.Entity, error)

GetEntity mocks base method.

func (*MockStore) GetEntityByName added in v0.0.2

func (m *MockStore) GetEntityByName(ctx context.Context, name string) (*types.Entity, error)

GetEntityByName mocks base method.

func (*MockStore) GetFeature

func (m *MockStore) GetFeature(ctx context.Context, id int) (*types.Feature, error)

GetFeature mocks base method.

func (*MockStore) GetFeatureByName added in v0.0.2

func (m *MockStore) GetFeatureByName(ctx context.Context, name string) (*types.Feature, error)

GetFeatureByName mocks base method.

func (*MockStore) GetGroup added in v0.0.3

func (m *MockStore) GetGroup(ctx context.Context, id int) (*types.Group, error)

GetGroup mocks base method.

func (*MockStore) GetGroupByName added in v0.0.3

func (m *MockStore) GetGroupByName(ctx context.Context, name string) (*types.Group, error)

GetGroupByName mocks base method.

func (*MockStore) GetRevision

func (m *MockStore) GetRevision(ctx context.Context, id int) (*types.Revision, error)

GetRevision mocks base method.

func (*MockStore) GetRevisionBy added in v0.0.2

func (m *MockStore) GetRevisionBy(ctx context.Context, groupID int, revision int64) (*types.Revision, error)

GetRevisionBy mocks base method.

func (*MockStore) ListEntity

func (m *MockStore) ListEntity(ctx context.Context) types.EntityList

ListEntity mocks base method.

func (*MockStore) ListFeature

ListFeature mocks base method.

func (*MockStore) ListGroup added in v0.0.3

func (m *MockStore) ListGroup(ctx context.Context, entityID *int) types.GroupList

ListGroup mocks base method.

func (*MockStore) ListRevision

func (m *MockStore) ListRevision(ctx context.Context, groupID *int) types.RevisionList

ListRevision mocks base method.

func (*MockStore) Refresh added in v0.0.2

func (m *MockStore) Refresh() error

Refresh mocks base method.

func (*MockStore) UpdateEntity

func (m *MockStore) UpdateEntity(ctx context.Context, opt metadata.UpdateEntityOpt) error

UpdateEntity mocks base method.

func (*MockStore) UpdateFeature

func (m *MockStore) UpdateFeature(ctx context.Context, opt metadata.UpdateFeatureOpt) error

UpdateFeature mocks base method.

func (*MockStore) UpdateGroup added in v0.0.3

func (m *MockStore) UpdateGroup(ctx context.Context, opt metadata.UpdateGroupOpt) error

UpdateGroup mocks base method.

func (*MockStore) UpdateRevision added in v0.0.2

func (m *MockStore) UpdateRevision(ctx context.Context, opt metadata.UpdateRevisionOpt) error

UpdateRevision mocks base method.

func (*MockStore) WithTransaction added in v0.0.2

func (m *MockStore) WithTransaction(ctx context.Context, fn func(context.Context, metadata.WriteStore) error) error

WithTransaction mocks base method.

type MockStoreMockRecorder

type MockStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) Close

func (mr *MockStoreMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockStoreMockRecorder) CreateEntity

func (mr *MockStoreMockRecorder) CreateEntity(ctx, opt interface{}) *gomock.Call

CreateEntity indicates an expected call of CreateEntity.

func (*MockStoreMockRecorder) CreateFeature

func (mr *MockStoreMockRecorder) CreateFeature(ctx, opt interface{}) *gomock.Call

CreateFeature indicates an expected call of CreateFeature.

func (*MockStoreMockRecorder) CreateGroup added in v0.0.3

func (mr *MockStoreMockRecorder) CreateGroup(ctx, opt interface{}) *gomock.Call

CreateGroup indicates an expected call of CreateGroup.

func (*MockStoreMockRecorder) CreateRevision

func (mr *MockStoreMockRecorder) CreateRevision(ctx, opt interface{}) *gomock.Call

CreateRevision indicates an expected call of CreateRevision.

func (*MockStoreMockRecorder) GetEntity

func (mr *MockStoreMockRecorder) GetEntity(ctx, id interface{}) *gomock.Call

GetEntity indicates an expected call of GetEntity.

func (*MockStoreMockRecorder) GetEntityByName added in v0.0.2

func (mr *MockStoreMockRecorder) GetEntityByName(ctx, name interface{}) *gomock.Call

GetEntityByName indicates an expected call of GetEntityByName.

func (*MockStoreMockRecorder) GetFeature

func (mr *MockStoreMockRecorder) GetFeature(ctx, id interface{}) *gomock.Call

GetFeature indicates an expected call of GetFeature.

func (*MockStoreMockRecorder) GetFeatureByName added in v0.0.2

func (mr *MockStoreMockRecorder) GetFeatureByName(ctx, name interface{}) *gomock.Call

GetFeatureByName indicates an expected call of GetFeatureByName.

func (*MockStoreMockRecorder) GetGroup added in v0.0.3

func (mr *MockStoreMockRecorder) GetGroup(ctx, id interface{}) *gomock.Call

GetGroup indicates an expected call of GetGroup.

func (*MockStoreMockRecorder) GetGroupByName added in v0.0.3

func (mr *MockStoreMockRecorder) GetGroupByName(ctx, name interface{}) *gomock.Call

GetGroupByName indicates an expected call of GetGroupByName.

func (*MockStoreMockRecorder) GetRevision

func (mr *MockStoreMockRecorder) GetRevision(ctx, id interface{}) *gomock.Call

GetRevision indicates an expected call of GetRevision.

func (*MockStoreMockRecorder) GetRevisionBy added in v0.0.2

func (mr *MockStoreMockRecorder) GetRevisionBy(ctx, groupID, revision interface{}) *gomock.Call

GetRevisionBy indicates an expected call of GetRevisionBy.

func (*MockStoreMockRecorder) ListEntity

func (mr *MockStoreMockRecorder) ListEntity(ctx interface{}) *gomock.Call

ListEntity indicates an expected call of ListEntity.

func (*MockStoreMockRecorder) ListFeature

func (mr *MockStoreMockRecorder) ListFeature(ctx, opt interface{}) *gomock.Call

ListFeature indicates an expected call of ListFeature.

func (*MockStoreMockRecorder) ListGroup added in v0.0.3

func (mr *MockStoreMockRecorder) ListGroup(ctx, entityID interface{}) *gomock.Call

ListGroup indicates an expected call of ListGroup.

func (*MockStoreMockRecorder) ListRevision

func (mr *MockStoreMockRecorder) ListRevision(ctx, groupID interface{}) *gomock.Call

ListRevision indicates an expected call of ListRevision.

func (*MockStoreMockRecorder) Refresh added in v0.0.2

func (mr *MockStoreMockRecorder) Refresh() *gomock.Call

Refresh indicates an expected call of Refresh.

func (*MockStoreMockRecorder) UpdateEntity

func (mr *MockStoreMockRecorder) UpdateEntity(ctx, opt interface{}) *gomock.Call

UpdateEntity indicates an expected call of UpdateEntity.

func (*MockStoreMockRecorder) UpdateFeature

func (mr *MockStoreMockRecorder) UpdateFeature(ctx, opt interface{}) *gomock.Call

UpdateFeature indicates an expected call of UpdateFeature.

func (*MockStoreMockRecorder) UpdateGroup added in v0.0.3

func (mr *MockStoreMockRecorder) UpdateGroup(ctx, opt interface{}) *gomock.Call

UpdateGroup indicates an expected call of UpdateGroup.

func (*MockStoreMockRecorder) UpdateRevision added in v0.0.2

func (mr *MockStoreMockRecorder) UpdateRevision(ctx, opt interface{}) *gomock.Call

UpdateRevision indicates an expected call of UpdateRevision.

func (*MockStoreMockRecorder) WithTransaction added in v0.0.2

func (mr *MockStoreMockRecorder) WithTransaction(ctx, fn interface{}) *gomock.Call

WithTransaction indicates an expected call of WithTransaction.

type MockWriteStore added in v0.0.3

type MockWriteStore struct {
	// contains filtered or unexported fields
}

MockWriteStore is a mock of WriteStore interface.

func NewMockWriteStore added in v0.0.3

func NewMockWriteStore(ctrl *gomock.Controller) *MockWriteStore

NewMockWriteStore creates a new mock instance.

func (*MockWriteStore) CreateEntity added in v0.0.3

func (m *MockWriteStore) CreateEntity(ctx context.Context, opt metadata.CreateEntityOpt) (int, error)

CreateEntity mocks base method.

func (*MockWriteStore) CreateFeature added in v0.0.3

func (m *MockWriteStore) CreateFeature(ctx context.Context, opt metadata.CreateFeatureOpt) (int, error)

CreateFeature mocks base method.

func (*MockWriteStore) CreateGroup added in v0.0.3

func (m *MockWriteStore) CreateGroup(ctx context.Context, opt metadata.CreateGroupOpt) (int, error)

CreateGroup mocks base method.

func (*MockWriteStore) CreateRevision added in v0.0.3

func (m *MockWriteStore) CreateRevision(ctx context.Context, opt metadata.CreateRevisionOpt) (int, string, error)

CreateRevision mocks base method.

func (*MockWriteStore) EXPECT added in v0.0.3

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWriteStore) UpdateEntity added in v0.0.3

func (m *MockWriteStore) UpdateEntity(ctx context.Context, opt metadata.UpdateEntityOpt) error

UpdateEntity mocks base method.

func (*MockWriteStore) UpdateFeature added in v0.0.3

func (m *MockWriteStore) UpdateFeature(ctx context.Context, opt metadata.UpdateFeatureOpt) error

UpdateFeature mocks base method.

func (*MockWriteStore) UpdateGroup added in v0.0.3

func (m *MockWriteStore) UpdateGroup(ctx context.Context, opt metadata.UpdateGroupOpt) error

UpdateGroup mocks base method.

func (*MockWriteStore) UpdateRevision added in v0.0.3

func (m *MockWriteStore) UpdateRevision(ctx context.Context, opt metadata.UpdateRevisionOpt) error

UpdateRevision mocks base method.

func (*MockWriteStore) WithTransaction added in v0.0.3

func (m *MockWriteStore) WithTransaction(ctx context.Context, fn func(context.Context, metadata.WriteStore) error) error

WithTransaction mocks base method.

type MockWriteStoreMockRecorder added in v0.0.3

type MockWriteStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockWriteStoreMockRecorder is the mock recorder for MockWriteStore.

func (*MockWriteStoreMockRecorder) CreateEntity added in v0.0.3

func (mr *MockWriteStoreMockRecorder) CreateEntity(ctx, opt interface{}) *gomock.Call

CreateEntity indicates an expected call of CreateEntity.

func (*MockWriteStoreMockRecorder) CreateFeature added in v0.0.3

func (mr *MockWriteStoreMockRecorder) CreateFeature(ctx, opt interface{}) *gomock.Call

CreateFeature indicates an expected call of CreateFeature.

func (*MockWriteStoreMockRecorder) CreateGroup added in v0.0.3

func (mr *MockWriteStoreMockRecorder) CreateGroup(ctx, opt interface{}) *gomock.Call

CreateGroup indicates an expected call of CreateGroup.

func (*MockWriteStoreMockRecorder) CreateRevision added in v0.0.3

func (mr *MockWriteStoreMockRecorder) CreateRevision(ctx, opt interface{}) *gomock.Call

CreateRevision indicates an expected call of CreateRevision.

func (*MockWriteStoreMockRecorder) UpdateEntity added in v0.0.3

func (mr *MockWriteStoreMockRecorder) UpdateEntity(ctx, opt interface{}) *gomock.Call

UpdateEntity indicates an expected call of UpdateEntity.

func (*MockWriteStoreMockRecorder) UpdateFeature added in v0.0.3

func (mr *MockWriteStoreMockRecorder) UpdateFeature(ctx, opt interface{}) *gomock.Call

UpdateFeature indicates an expected call of UpdateFeature.

func (*MockWriteStoreMockRecorder) UpdateGroup added in v0.0.3

func (mr *MockWriteStoreMockRecorder) UpdateGroup(ctx, opt interface{}) *gomock.Call

UpdateGroup indicates an expected call of UpdateGroup.

func (*MockWriteStoreMockRecorder) UpdateRevision added in v0.0.3

func (mr *MockWriteStoreMockRecorder) UpdateRevision(ctx, opt interface{}) *gomock.Call

UpdateRevision indicates an expected call of UpdateRevision.

func (*MockWriteStoreMockRecorder) WithTransaction added in v0.0.3

func (mr *MockWriteStoreMockRecorder) WithTransaction(ctx, fn interface{}) *gomock.Call

WithTransaction indicates an expected call of WithTransaction.

Jump to

Keyboard shortcuts

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