mocks

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackend added in v0.5.0

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

MockBackend is a mock of Backend interface.

func NewMockBackend added in v0.5.0

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance.

func (*MockBackend) DeleteGateway added in v0.5.0

func (m *MockBackend) DeleteGateway(ctx context.Context, id core.GatewayID) error

DeleteGateway mocks base method.

func (*MockBackend) DeleteRoute added in v0.5.0

func (m *MockBackend) DeleteRoute(ctx context.Context, id string) error

DeleteRoute mocks base method.

func (*MockBackend) EXPECT added in v0.5.0

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) GetGateway added in v0.5.0

func (m *MockBackend) GetGateway(ctx context.Context, id core.GatewayID) ([]byte, error)

GetGateway mocks base method.

func (*MockBackend) GetRoute added in v0.5.0

func (m *MockBackend) GetRoute(ctx context.Context, id string) ([]byte, error)

GetRoute mocks base method.

func (*MockBackend) ListGateways added in v0.5.0

func (m *MockBackend) ListGateways(ctx context.Context) ([][]byte, error)

ListGateways mocks base method.

func (*MockBackend) ListRoutes added in v0.5.0

func (m *MockBackend) ListRoutes(ctx context.Context) ([][]byte, error)

ListRoutes mocks base method.

func (*MockBackend) UpsertGateways added in v0.5.0

func (m *MockBackend) UpsertGateways(ctx context.Context, gateways ...store.GatewayRecord) error

UpsertGateways mocks base method.

func (*MockBackend) UpsertRoutes added in v0.5.0

func (m *MockBackend) UpsertRoutes(ctx context.Context, routes ...store.RouteRecord) error

UpsertRoutes mocks base method.

type MockBackendMockRecorder added in v0.5.0

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) DeleteGateway added in v0.5.0

func (mr *MockBackendMockRecorder) DeleteGateway(ctx, id interface{}) *gomock.Call

DeleteGateway indicates an expected call of DeleteGateway.

func (*MockBackendMockRecorder) DeleteRoute added in v0.5.0

func (mr *MockBackendMockRecorder) DeleteRoute(ctx, id interface{}) *gomock.Call

DeleteRoute indicates an expected call of DeleteRoute.

func (*MockBackendMockRecorder) GetGateway added in v0.5.0

func (mr *MockBackendMockRecorder) GetGateway(ctx, id interface{}) *gomock.Call

GetGateway indicates an expected call of GetGateway.

func (*MockBackendMockRecorder) GetRoute added in v0.5.0

func (mr *MockBackendMockRecorder) GetRoute(ctx, id interface{}) *gomock.Call

GetRoute indicates an expected call of GetRoute.

func (*MockBackendMockRecorder) ListGateways added in v0.5.0

func (mr *MockBackendMockRecorder) ListGateways(ctx interface{}) *gomock.Call

ListGateways indicates an expected call of ListGateways.

func (*MockBackendMockRecorder) ListRoutes added in v0.5.0

func (mr *MockBackendMockRecorder) ListRoutes(ctx interface{}) *gomock.Call

ListRoutes indicates an expected call of ListRoutes.

func (*MockBackendMockRecorder) UpsertGateways added in v0.5.0

func (mr *MockBackendMockRecorder) UpsertGateways(ctx interface{}, gateways ...interface{}) *gomock.Call

UpsertGateways indicates an expected call of UpsertGateways.

func (*MockBackendMockRecorder) UpsertRoutes added in v0.5.0

func (mr *MockBackendMockRecorder) UpsertRoutes(ctx interface{}, routes ...interface{}) *gomock.Call

UpsertRoutes indicates an expected call of UpsertRoutes.

type MockBinder added in v0.5.0

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

MockBinder is a mock of Binder interface.

func NewMockBinder added in v0.5.0

func NewMockBinder(ctrl *gomock.Controller) *MockBinder

NewMockBinder creates a new mock instance.

func (*MockBinder) Bind added in v0.5.0

func (m *MockBinder) Bind(ctx context.Context, gateway store.Gateway, route store.Route) bool

Bind mocks base method.

func (*MockBinder) EXPECT added in v0.5.0

func (m *MockBinder) EXPECT() *MockBinderMockRecorder

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

func (*MockBinder) Unbind added in v0.5.0

func (m *MockBinder) Unbind(ctx context.Context, gateway store.Gateway, route store.Route) bool

Unbind mocks base method.

type MockBinderMockRecorder added in v0.5.0

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

MockBinderMockRecorder is the mock recorder for MockBinder.

func (*MockBinderMockRecorder) Bind added in v0.5.0

func (mr *MockBinderMockRecorder) Bind(ctx, gateway, route interface{}) *gomock.Call

Bind indicates an expected call of Bind.

func (*MockBinderMockRecorder) Unbind added in v0.5.0

func (mr *MockBinderMockRecorder) Unbind(ctx, gateway, route interface{}) *gomock.Call

Unbind indicates an expected call of Unbind.

type MockGateway

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

MockGateway is a mock of Gateway interface.

func NewMockGateway

func NewMockGateway(ctrl *gomock.Controller) *MockGateway

NewMockGateway creates a new mock instance.

func (*MockGateway) CanFetchSecrets added in v0.5.0

func (m *MockGateway) CanFetchSecrets(secrets []string) (bool, error)

CanFetchSecrets mocks base method.

func (*MockGateway) EXPECT

func (m *MockGateway) EXPECT() *MockGatewayMockRecorder

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

func (*MockGateway) ID

func (m *MockGateway) ID() core.GatewayID

ID mocks base method.

func (*MockGateway) Resolve added in v0.5.0

func (m *MockGateway) Resolve() core.ResolvedGateway

Resolve mocks base method.

type MockGatewayMockRecorder

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

MockGatewayMockRecorder is the mock recorder for MockGateway.

func (*MockGatewayMockRecorder) CanFetchSecrets added in v0.5.0

func (mr *MockGatewayMockRecorder) CanFetchSecrets(secrets interface{}) *gomock.Call

CanFetchSecrets indicates an expected call of CanFetchSecrets.

func (*MockGatewayMockRecorder) ID

ID indicates an expected call of ID.

func (*MockGatewayMockRecorder) Resolve added in v0.5.0

func (mr *MockGatewayMockRecorder) Resolve() *gomock.Call

Resolve indicates an expected call of Resolve.

type MockMarshaler added in v0.5.0

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

MockMarshaler is a mock of Marshaler interface.

func NewMockMarshaler added in v0.5.0

func NewMockMarshaler(ctrl *gomock.Controller) *MockMarshaler

NewMockMarshaler creates a new mock instance.

func (*MockMarshaler) EXPECT added in v0.5.0

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

func (*MockMarshaler) MarshalGateway added in v0.5.0

func (m *MockMarshaler) MarshalGateway(arg0 store.Gateway) ([]byte, error)

MarshalGateway mocks base method.

func (*MockMarshaler) MarshalRoute added in v0.5.0

func (m *MockMarshaler) MarshalRoute(arg0 store.Route) ([]byte, error)

MarshalRoute mocks base method.

func (*MockMarshaler) UnmarshalGateway added in v0.5.0

func (m *MockMarshaler) UnmarshalGateway(data []byte) (store.Gateway, error)

UnmarshalGateway mocks base method.

func (*MockMarshaler) UnmarshalRoute added in v0.5.0

func (m *MockMarshaler) UnmarshalRoute(data []byte) (store.Route, error)

UnmarshalRoute mocks base method.

type MockMarshalerMockRecorder added in v0.5.0

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

MockMarshalerMockRecorder is the mock recorder for MockMarshaler.

func (*MockMarshalerMockRecorder) MarshalGateway added in v0.5.0

func (mr *MockMarshalerMockRecorder) MarshalGateway(arg0 interface{}) *gomock.Call

MarshalGateway indicates an expected call of MarshalGateway.

func (*MockMarshalerMockRecorder) MarshalRoute added in v0.5.0

func (mr *MockMarshalerMockRecorder) MarshalRoute(arg0 interface{}) *gomock.Call

MarshalRoute indicates an expected call of MarshalRoute.

func (*MockMarshalerMockRecorder) UnmarshalGateway added in v0.5.0

func (mr *MockMarshalerMockRecorder) UnmarshalGateway(data interface{}) *gomock.Call

UnmarshalGateway indicates an expected call of UnmarshalGateway.

func (*MockMarshalerMockRecorder) UnmarshalRoute added in v0.5.0

func (mr *MockMarshalerMockRecorder) UnmarshalRoute(data interface{}) *gomock.Call

UnmarshalRoute indicates an expected call of UnmarshalRoute.

type MockReadStore added in v0.5.0

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

MockReadStore is a mock of ReadStore interface.

func NewMockReadStore added in v0.5.0

func NewMockReadStore(ctrl *gomock.Controller) *MockReadStore

NewMockReadStore creates a new mock instance.

func (*MockReadStore) EXPECT added in v0.5.0

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

func (*MockReadStore) GetGateway added in v0.5.0

func (m *MockReadStore) GetGateway(ctx context.Context, id core.GatewayID) (store.Gateway, error)

GetGateway mocks base method.

func (*MockReadStore) GetRoute added in v0.5.0

func (m *MockReadStore) GetRoute(ctx context.Context, id string) (store.Route, error)

GetRoute mocks base method.

func (*MockReadStore) ListGateways added in v0.5.0

func (m *MockReadStore) ListGateways(ctx context.Context) ([]store.Gateway, error)

ListGateways mocks base method.

func (*MockReadStore) ListRoutes added in v0.5.0

func (m *MockReadStore) ListRoutes(ctx context.Context) ([]store.Route, error)

ListRoutes mocks base method.

type MockReadStoreMockRecorder added in v0.5.0

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

MockReadStoreMockRecorder is the mock recorder for MockReadStore.

func (*MockReadStoreMockRecorder) GetGateway added in v0.5.0

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

GetGateway indicates an expected call of GetGateway.

func (*MockReadStoreMockRecorder) GetRoute added in v0.5.0

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

GetRoute indicates an expected call of GetRoute.

func (*MockReadStoreMockRecorder) ListGateways added in v0.5.0

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

ListGateways indicates an expected call of ListGateways.

func (*MockReadStoreMockRecorder) ListRoutes added in v0.5.0

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

ListRoutes indicates an expected call of ListRoutes.

type MockRoute

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

MockRoute is a mock of Route interface.

func NewMockRoute

func NewMockRoute(ctrl *gomock.Controller) *MockRoute

NewMockRoute creates a new mock instance.

func (*MockRoute) EXPECT

func (m *MockRoute) EXPECT() *MockRouteMockRecorder

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

func (*MockRoute) ID

func (m *MockRoute) ID() string

ID mocks base method.

type MockRouteMockRecorder

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

MockRouteMockRecorder is the mock recorder for MockRoute.

func (*MockRouteMockRecorder) ID

func (mr *MockRouteMockRecorder) ID() *gomock.Call

ID indicates an expected call of ID.

type MockStatusUpdater added in v0.5.0

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

MockStatusUpdater is a mock of StatusUpdater interface.

func NewMockStatusUpdater added in v0.5.0

func NewMockStatusUpdater(ctrl *gomock.Controller) *MockStatusUpdater

NewMockStatusUpdater creates a new mock instance.

func (*MockStatusUpdater) EXPECT added in v0.5.0

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

func (*MockStatusUpdater) UpdateGatewayStatusOnSync added in v0.5.0

func (m *MockStatusUpdater) UpdateGatewayStatusOnSync(ctx context.Context, gateway store.Gateway, sync func() (bool, error)) error

UpdateGatewayStatusOnSync mocks base method.

func (*MockStatusUpdater) UpdateRouteStatus added in v0.5.0

func (m *MockStatusUpdater) UpdateRouteStatus(ctx context.Context, route store.Route) error

UpdateRouteStatus mocks base method.

type MockStatusUpdaterMockRecorder added in v0.5.0

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

MockStatusUpdaterMockRecorder is the mock recorder for MockStatusUpdater.

func (*MockStatusUpdaterMockRecorder) UpdateGatewayStatusOnSync added in v0.5.0

func (mr *MockStatusUpdaterMockRecorder) UpdateGatewayStatusOnSync(ctx, gateway, sync interface{}) *gomock.Call

UpdateGatewayStatusOnSync indicates an expected call of UpdateGatewayStatusOnSync.

func (*MockStatusUpdaterMockRecorder) UpdateRouteStatus added in v0.5.0

func (mr *MockStatusUpdaterMockRecorder) UpdateRouteStatus(ctx, route interface{}) *gomock.Call

UpdateRouteStatus indicates an expected call of UpdateRouteStatus.

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) DeleteGateway

func (m *MockStore) DeleteGateway(ctx context.Context, id core.GatewayID) error

DeleteGateway mocks base method.

func (*MockStore) DeleteRoute

func (m *MockStore) DeleteRoute(ctx context.Context, id string) error

DeleteRoute 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) GetGateway added in v0.5.0

func (m *MockStore) GetGateway(ctx context.Context, id core.GatewayID) (store.Gateway, error)

GetGateway mocks base method.

func (*MockStore) GetRoute added in v0.5.0

func (m *MockStore) GetRoute(ctx context.Context, id string) (store.Route, error)

GetRoute mocks base method.

func (*MockStore) ListGateways added in v0.5.0

func (m *MockStore) ListGateways(ctx context.Context) ([]store.Gateway, error)

ListGateways mocks base method.

func (*MockStore) ListRoutes added in v0.5.0

func (m *MockStore) ListRoutes(ctx context.Context) ([]store.Route, error)

ListRoutes mocks base method.

func (*MockStore) SyncAllAtInterval added in v0.5.0

func (m *MockStore) SyncAllAtInterval(ctx context.Context)

SyncAllAtInterval mocks base method.

func (*MockStore) UpsertGateway

func (m *MockStore) UpsertGateway(ctx context.Context, gateway store.Gateway, updateConditionFn func(store.Gateway) bool) error

UpsertGateway mocks base method.

func (*MockStore) UpsertRoute

func (m *MockStore) UpsertRoute(ctx context.Context, route store.Route, updateConditionFn func(store.Route) bool) error

UpsertRoute mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) DeleteGateway

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

DeleteGateway indicates an expected call of DeleteGateway.

func (*MockStoreMockRecorder) DeleteRoute

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

DeleteRoute indicates an expected call of DeleteRoute.

func (*MockStoreMockRecorder) GetGateway added in v0.5.0

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

GetGateway indicates an expected call of GetGateway.

func (*MockStoreMockRecorder) GetRoute added in v0.5.0

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

GetRoute indicates an expected call of GetRoute.

func (*MockStoreMockRecorder) ListGateways added in v0.5.0

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

ListGateways indicates an expected call of ListGateways.

func (*MockStoreMockRecorder) ListRoutes added in v0.5.0

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

ListRoutes indicates an expected call of ListRoutes.

func (*MockStoreMockRecorder) SyncAllAtInterval added in v0.5.0

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

SyncAllAtInterval indicates an expected call of SyncAllAtInterval.

func (*MockStoreMockRecorder) UpsertGateway

func (mr *MockStoreMockRecorder) UpsertGateway(ctx, gateway, updateConditionFn interface{}) *gomock.Call

UpsertGateway indicates an expected call of UpsertGateway.

func (*MockStoreMockRecorder) UpsertRoute

func (mr *MockStoreMockRecorder) UpsertRoute(ctx, route, updateConditionFn interface{}) *gomock.Call

UpsertRoute indicates an expected call of UpsertRoute.

type MockWriteStore added in v0.5.0

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

MockWriteStore is a mock of WriteStore interface.

func NewMockWriteStore added in v0.5.0

func NewMockWriteStore(ctrl *gomock.Controller) *MockWriteStore

NewMockWriteStore creates a new mock instance.

func (*MockWriteStore) DeleteGateway added in v0.5.0

func (m *MockWriteStore) DeleteGateway(ctx context.Context, id core.GatewayID) error

DeleteGateway mocks base method.

func (*MockWriteStore) DeleteRoute added in v0.5.0

func (m *MockWriteStore) DeleteRoute(ctx context.Context, id string) error

DeleteRoute mocks base method.

func (*MockWriteStore) EXPECT added in v0.5.0

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

func (*MockWriteStore) SyncAllAtInterval added in v0.5.0

func (m *MockWriteStore) SyncAllAtInterval(ctx context.Context)

SyncAllAtInterval mocks base method.

func (*MockWriteStore) UpsertGateway added in v0.5.0

func (m *MockWriteStore) UpsertGateway(ctx context.Context, gateway store.Gateway, updateConditionFn func(store.Gateway) bool) error

UpsertGateway mocks base method.

func (*MockWriteStore) UpsertRoute added in v0.5.0

func (m *MockWriteStore) UpsertRoute(ctx context.Context, route store.Route, updateConditionFn func(store.Route) bool) error

UpsertRoute mocks base method.

type MockWriteStoreMockRecorder added in v0.5.0

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

MockWriteStoreMockRecorder is the mock recorder for MockWriteStore.

func (*MockWriteStoreMockRecorder) DeleteGateway added in v0.5.0

func (mr *MockWriteStoreMockRecorder) DeleteGateway(ctx, id interface{}) *gomock.Call

DeleteGateway indicates an expected call of DeleteGateway.

func (*MockWriteStoreMockRecorder) DeleteRoute added in v0.5.0

func (mr *MockWriteStoreMockRecorder) DeleteRoute(ctx, id interface{}) *gomock.Call

DeleteRoute indicates an expected call of DeleteRoute.

func (*MockWriteStoreMockRecorder) SyncAllAtInterval added in v0.5.0

func (mr *MockWriteStoreMockRecorder) SyncAllAtInterval(ctx interface{}) *gomock.Call

SyncAllAtInterval indicates an expected call of SyncAllAtInterval.

func (*MockWriteStoreMockRecorder) UpsertGateway added in v0.5.0

func (mr *MockWriteStoreMockRecorder) UpsertGateway(ctx, gateway, updateConditionFn interface{}) *gomock.Call

UpsertGateway indicates an expected call of UpsertGateway.

func (*MockWriteStoreMockRecorder) UpsertRoute added in v0.5.0

func (mr *MockWriteStoreMockRecorder) UpsertRoute(ctx, route, updateConditionFn interface{}) *gomock.Call

UpsertRoute indicates an expected call of UpsertRoute.

Jump to

Keyboard shortcuts

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