mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 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 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) 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) Listeners

func (m *MockGateway) Listeners() []store.Listener

Listeners mocks base method.

func (*MockGateway) Meta

func (m *MockGateway) Meta() map[string]string

Meta mocks base method.

func (*MockGateway) ShouldBind

func (m *MockGateway) ShouldBind(route store.Route) bool

ShouldBind mocks base method.

func (*MockGateway) ShouldUpdate added in v0.2.0

func (m *MockGateway) ShouldUpdate(other store.Gateway) bool

ShouldUpdate mocks base method.

type MockGatewayMockRecorder

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

MockGatewayMockRecorder is the mock recorder for MockGateway.

func (*MockGatewayMockRecorder) ID

ID indicates an expected call of ID.

func (*MockGatewayMockRecorder) Listeners

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

Listeners indicates an expected call of Listeners.

func (*MockGatewayMockRecorder) Meta

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

Meta indicates an expected call of Meta.

func (*MockGatewayMockRecorder) ShouldBind

func (mr *MockGatewayMockRecorder) ShouldBind(route interface{}) *gomock.Call

ShouldBind indicates an expected call of ShouldBind.

func (*MockGatewayMockRecorder) ShouldUpdate added in v0.2.0

func (mr *MockGatewayMockRecorder) ShouldUpdate(other interface{}) *gomock.Call

ShouldUpdate indicates an expected call of ShouldUpdate.

type MockListener

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

MockListener is a mock of Listener interface.

func NewMockListener

func NewMockListener(ctrl *gomock.Controller) *MockListener

NewMockListener creates a new mock instance.

func (*MockListener) CanBind

func (m *MockListener) CanBind(ctx context.Context, route store.Route) (bool, error)

CanBind mocks base method.

func (*MockListener) Config

func (m *MockListener) Config() store.ListenerConfig

Config mocks base method.

func (*MockListener) EXPECT

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

func (*MockListener) ID

func (m *MockListener) ID() string

ID mocks base method.

func (*MockListener) IsValid

func (m *MockListener) IsValid() bool

IsValid mocks base method.

type MockListenerMockRecorder

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

MockListenerMockRecorder is the mock recorder for MockListener.

func (*MockListenerMockRecorder) CanBind

func (mr *MockListenerMockRecorder) CanBind(ctx, route interface{}) *gomock.Call

CanBind indicates an expected call of CanBind.

func (*MockListenerMockRecorder) Config

func (mr *MockListenerMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config.

func (*MockListenerMockRecorder) ID

ID indicates an expected call of ID.

func (*MockListenerMockRecorder) IsValid

func (mr *MockListenerMockRecorder) IsValid() *gomock.Call

IsValid indicates an expected call of IsValid.

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

func (m *MockRoute) Compare(other store.Route) store.CompareResult

Compare mocks base method.

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.

func (*MockRoute) Resolve

func (m *MockRoute) Resolve(listener store.Listener) *core.ResolvedRoute

Resolve mocks base method.

type MockRouteMockRecorder

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

MockRouteMockRecorder is the mock recorder for MockRoute.

func (*MockRouteMockRecorder) Compare

func (mr *MockRouteMockRecorder) Compare(other interface{}) *gomock.Call

Compare indicates an expected call of Compare.

func (*MockRouteMockRecorder) ID

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

ID indicates an expected call of ID.

func (*MockRouteMockRecorder) Resolve

func (mr *MockRouteMockRecorder) Resolve(listener interface{}) *gomock.Call

Resolve indicates an expected call of Resolve.

type MockRouteTrackingListener

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

MockRouteTrackingListener is a mock of RouteTrackingListener interface.

func NewMockRouteTrackingListener

func NewMockRouteTrackingListener(ctrl *gomock.Controller) *MockRouteTrackingListener

NewMockRouteTrackingListener creates a new mock instance.

func (*MockRouteTrackingListener) CanBind

func (m *MockRouteTrackingListener) CanBind(ctx context.Context, route store.Route) (bool, error)

CanBind mocks base method.

func (*MockRouteTrackingListener) Config

Config mocks base method.

func (*MockRouteTrackingListener) EXPECT

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

func (*MockRouteTrackingListener) ID

ID mocks base method.

func (*MockRouteTrackingListener) IsValid

func (m *MockRouteTrackingListener) IsValid() bool

IsValid mocks base method.

func (*MockRouteTrackingListener) OnRouteAdded

func (m *MockRouteTrackingListener) OnRouteAdded(route store.Route)

OnRouteAdded mocks base method.

func (*MockRouteTrackingListener) OnRouteRemoved

func (m *MockRouteTrackingListener) OnRouteRemoved(id string)

OnRouteRemoved mocks base method.

type MockRouteTrackingListenerMockRecorder

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

MockRouteTrackingListenerMockRecorder is the mock recorder for MockRouteTrackingListener.

func (*MockRouteTrackingListenerMockRecorder) CanBind

func (mr *MockRouteTrackingListenerMockRecorder) CanBind(ctx, route interface{}) *gomock.Call

CanBind indicates an expected call of CanBind.

func (*MockRouteTrackingListenerMockRecorder) Config

Config indicates an expected call of Config.

func (*MockRouteTrackingListenerMockRecorder) ID

ID indicates an expected call of ID.

func (*MockRouteTrackingListenerMockRecorder) IsValid

IsValid indicates an expected call of IsValid.

func (*MockRouteTrackingListenerMockRecorder) OnRouteAdded

func (mr *MockRouteTrackingListenerMockRecorder) OnRouteAdded(route interface{}) *gomock.Call

OnRouteAdded indicates an expected call of OnRouteAdded.

func (*MockRouteTrackingListenerMockRecorder) OnRouteRemoved

func (mr *MockRouteTrackingListenerMockRecorder) OnRouteRemoved(id interface{}) *gomock.Call

OnRouteRemoved indicates an expected call of OnRouteRemoved.

type MockStatusTrackingGateway

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

MockStatusTrackingGateway is a mock of StatusTrackingGateway interface.

func NewMockStatusTrackingGateway

func NewMockStatusTrackingGateway(ctrl *gomock.Controller) *MockStatusTrackingGateway

NewMockStatusTrackingGateway creates a new mock instance.

func (*MockStatusTrackingGateway) EXPECT

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

func (*MockStatusTrackingGateway) ID

ID mocks base method.

func (*MockStatusTrackingGateway) Listeners

func (m *MockStatusTrackingGateway) Listeners() []store.Listener

Listeners mocks base method.

func (*MockStatusTrackingGateway) Meta

func (m *MockStatusTrackingGateway) Meta() map[string]string

Meta mocks base method.

func (*MockStatusTrackingGateway) ShouldBind

func (m *MockStatusTrackingGateway) ShouldBind(route store.Route) bool

ShouldBind mocks base method.

func (*MockStatusTrackingGateway) ShouldUpdate added in v0.2.0

func (m *MockStatusTrackingGateway) ShouldUpdate(other store.Gateway) bool

ShouldUpdate mocks base method.

func (*MockStatusTrackingGateway) TrackSync

func (m *MockStatusTrackingGateway) TrackSync(ctx context.Context, sync func() (bool, error)) error

TrackSync mocks base method.

type MockStatusTrackingGatewayMockRecorder

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

MockStatusTrackingGatewayMockRecorder is the mock recorder for MockStatusTrackingGateway.

func (*MockStatusTrackingGatewayMockRecorder) ID

ID indicates an expected call of ID.

func (*MockStatusTrackingGatewayMockRecorder) Listeners

Listeners indicates an expected call of Listeners.

func (*MockStatusTrackingGatewayMockRecorder) Meta

Meta indicates an expected call of Meta.

func (*MockStatusTrackingGatewayMockRecorder) ShouldBind

func (mr *MockStatusTrackingGatewayMockRecorder) ShouldBind(route interface{}) *gomock.Call

ShouldBind indicates an expected call of ShouldBind.

func (*MockStatusTrackingGatewayMockRecorder) ShouldUpdate added in v0.2.0

func (mr *MockStatusTrackingGatewayMockRecorder) ShouldUpdate(other interface{}) *gomock.Call

ShouldUpdate indicates an expected call of ShouldUpdate.

func (*MockStatusTrackingGatewayMockRecorder) TrackSync

func (mr *MockStatusTrackingGatewayMockRecorder) TrackSync(ctx, sync interface{}) *gomock.Call

TrackSync indicates an expected call of TrackSync.

type MockStatusTrackingRoute

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

MockStatusTrackingRoute is a mock of StatusTrackingRoute interface.

func NewMockStatusTrackingRoute

func NewMockStatusTrackingRoute(ctrl *gomock.Controller) *MockStatusTrackingRoute

NewMockStatusTrackingRoute creates a new mock instance.

func (*MockStatusTrackingRoute) Compare

Compare mocks base method.

func (*MockStatusTrackingRoute) EXPECT

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

func (*MockStatusTrackingRoute) ID

ID mocks base method.

func (*MockStatusTrackingRoute) OnBindFailed

func (m *MockStatusTrackingRoute) OnBindFailed(err error, gateway store.Gateway)

OnBindFailed mocks base method.

func (*MockStatusTrackingRoute) OnBound

func (m *MockStatusTrackingRoute) OnBound(gateway store.Gateway)

OnBound mocks base method.

func (*MockStatusTrackingRoute) OnGatewayRemoved

func (m *MockStatusTrackingRoute) OnGatewayRemoved(gateway store.Gateway)

OnGatewayRemoved mocks base method.

func (*MockStatusTrackingRoute) Resolve

Resolve mocks base method.

func (*MockStatusTrackingRoute) SyncStatus

func (m *MockStatusTrackingRoute) SyncStatus(ctx context.Context) error

SyncStatus mocks base method.

type MockStatusTrackingRouteMockRecorder

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

MockStatusTrackingRouteMockRecorder is the mock recorder for MockStatusTrackingRoute.

func (*MockStatusTrackingRouteMockRecorder) Compare

func (mr *MockStatusTrackingRouteMockRecorder) Compare(other interface{}) *gomock.Call

Compare indicates an expected call of Compare.

func (*MockStatusTrackingRouteMockRecorder) ID

ID indicates an expected call of ID.

func (*MockStatusTrackingRouteMockRecorder) OnBindFailed

func (mr *MockStatusTrackingRouteMockRecorder) OnBindFailed(err, gateway interface{}) *gomock.Call

OnBindFailed indicates an expected call of OnBindFailed.

func (*MockStatusTrackingRouteMockRecorder) OnBound

func (mr *MockStatusTrackingRouteMockRecorder) OnBound(gateway interface{}) *gomock.Call

OnBound indicates an expected call of OnBound.

func (*MockStatusTrackingRouteMockRecorder) OnGatewayRemoved

func (mr *MockStatusTrackingRouteMockRecorder) OnGatewayRemoved(gateway interface{}) *gomock.Call

OnGatewayRemoved indicates an expected call of OnGatewayRemoved.

func (*MockStatusTrackingRouteMockRecorder) Resolve

func (mr *MockStatusTrackingRouteMockRecorder) Resolve(listener interface{}) *gomock.Call

Resolve indicates an expected call of Resolve.

func (*MockStatusTrackingRouteMockRecorder) SyncStatus

func (mr *MockStatusTrackingRouteMockRecorder) SyncStatus(ctx interface{}) *gomock.Call

SyncStatus indicates an expected call of SyncStatus.

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

func (m *MockStore) CanFetchSecrets(ctx context.Context, id core.GatewayID, secrets []string) (bool, error)

CanFetchSecrets mocks base method.

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

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

GatewayExists mocks base method.

func (*MockStore) Sync

func (m *MockStore) Sync(ctx context.Context) error

Sync mocks base method.

func (*MockStore) UpsertGateway

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

UpsertGateway mocks base method.

func (*MockStore) UpsertRoute

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

UpsertRoute mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) CanFetchSecrets

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

CanFetchSecrets indicates an expected call of CanFetchSecrets.

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

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

GatewayExists indicates an expected call of GatewayExists.

func (*MockStoreMockRecorder) Sync

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

Sync indicates an expected call of Sync.

func (*MockStoreMockRecorder) UpsertGateway

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

UpsertGateway indicates an expected call of UpsertGateway.

func (*MockStoreMockRecorder) UpsertRoute

func (mr *MockStoreMockRecorder) UpsertRoute(ctx, route 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