Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockGateway
- func (m *MockGateway) EXPECT() *MockGatewayMockRecorder
- func (m *MockGateway) ID() core.GatewayID
- func (m *MockGateway) Listeners() []store.Listener
- func (m *MockGateway) Meta() map[string]string
- func (m *MockGateway) ShouldBind(route store.Route) bool
- func (m *MockGateway) ShouldUpdate(other store.Gateway) bool
- type MockGatewayMockRecorder
- func (mr *MockGatewayMockRecorder) ID() *gomock.Call
- func (mr *MockGatewayMockRecorder) Listeners() *gomock.Call
- func (mr *MockGatewayMockRecorder) Meta() *gomock.Call
- func (mr *MockGatewayMockRecorder) ShouldBind(route interface{}) *gomock.Call
- func (mr *MockGatewayMockRecorder) ShouldUpdate(other interface{}) *gomock.Call
- type MockListener
- type MockListenerMockRecorder
- type MockRoute
- type MockRouteMockRecorder
- type MockRouteTrackingListener
- func (m *MockRouteTrackingListener) CanBind(ctx context.Context, route store.Route) (bool, error)
- func (m *MockRouteTrackingListener) Config() store.ListenerConfig
- func (m *MockRouteTrackingListener) EXPECT() *MockRouteTrackingListenerMockRecorder
- func (m *MockRouteTrackingListener) ID() string
- func (m *MockRouteTrackingListener) IsValid() bool
- func (m *MockRouteTrackingListener) OnRouteAdded(route store.Route)
- func (m *MockRouteTrackingListener) OnRouteRemoved(id string)
- type MockRouteTrackingListenerMockRecorder
- func (mr *MockRouteTrackingListenerMockRecorder) CanBind(ctx, route interface{}) *gomock.Call
- func (mr *MockRouteTrackingListenerMockRecorder) Config() *gomock.Call
- func (mr *MockRouteTrackingListenerMockRecorder) ID() *gomock.Call
- func (mr *MockRouteTrackingListenerMockRecorder) IsValid() *gomock.Call
- func (mr *MockRouteTrackingListenerMockRecorder) OnRouteAdded(route interface{}) *gomock.Call
- func (mr *MockRouteTrackingListenerMockRecorder) OnRouteRemoved(id interface{}) *gomock.Call
- type MockStatusTrackingGateway
- func (m *MockStatusTrackingGateway) EXPECT() *MockStatusTrackingGatewayMockRecorder
- func (m *MockStatusTrackingGateway) ID() core.GatewayID
- func (m *MockStatusTrackingGateway) Listeners() []store.Listener
- func (m *MockStatusTrackingGateway) Meta() map[string]string
- func (m *MockStatusTrackingGateway) ShouldBind(route store.Route) bool
- func (m *MockStatusTrackingGateway) ShouldUpdate(other store.Gateway) bool
- func (m *MockStatusTrackingGateway) TrackSync(ctx context.Context, sync func() (bool, error)) error
- type MockStatusTrackingGatewayMockRecorder
- func (mr *MockStatusTrackingGatewayMockRecorder) ID() *gomock.Call
- func (mr *MockStatusTrackingGatewayMockRecorder) Listeners() *gomock.Call
- func (mr *MockStatusTrackingGatewayMockRecorder) Meta() *gomock.Call
- func (mr *MockStatusTrackingGatewayMockRecorder) ShouldBind(route interface{}) *gomock.Call
- func (mr *MockStatusTrackingGatewayMockRecorder) ShouldUpdate(other interface{}) *gomock.Call
- func (mr *MockStatusTrackingGatewayMockRecorder) TrackSync(ctx, sync interface{}) *gomock.Call
- type MockStatusTrackingRoute
- func (m *MockStatusTrackingRoute) Compare(other store.Route) store.CompareResult
- func (m *MockStatusTrackingRoute) EXPECT() *MockStatusTrackingRouteMockRecorder
- func (m *MockStatusTrackingRoute) ID() string
- func (m *MockStatusTrackingRoute) OnBindFailed(err error, gateway store.Gateway)
- func (m *MockStatusTrackingRoute) OnBound(gateway store.Gateway)
- func (m *MockStatusTrackingRoute) OnGatewayRemoved(gateway store.Gateway)
- func (m *MockStatusTrackingRoute) Resolve(listener store.Listener) *core.ResolvedRoute
- func (m *MockStatusTrackingRoute) SyncStatus(ctx context.Context) error
- type MockStatusTrackingRouteMockRecorder
- func (mr *MockStatusTrackingRouteMockRecorder) Compare(other interface{}) *gomock.Call
- func (mr *MockStatusTrackingRouteMockRecorder) ID() *gomock.Call
- func (mr *MockStatusTrackingRouteMockRecorder) OnBindFailed(err, gateway interface{}) *gomock.Call
- func (mr *MockStatusTrackingRouteMockRecorder) OnBound(gateway interface{}) *gomock.Call
- func (mr *MockStatusTrackingRouteMockRecorder) OnGatewayRemoved(gateway interface{}) *gomock.Call
- func (mr *MockStatusTrackingRouteMockRecorder) Resolve(listener interface{}) *gomock.Call
- func (mr *MockStatusTrackingRouteMockRecorder) SyncStatus(ctx interface{}) *gomock.Call
- type MockStore
- func (m *MockStore) CanFetchSecrets(ctx context.Context, id core.GatewayID, secrets []string) (bool, error)
- func (m *MockStore) DeleteGateway(ctx context.Context, id core.GatewayID) error
- func (m *MockStore) DeleteRoute(ctx context.Context, id string) error
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) GatewayExists(ctx context.Context, id core.GatewayID) (bool, error)
- func (m *MockStore) Sync(ctx context.Context) error
- func (m *MockStore) UpsertGateway(ctx context.Context, gateway store.Gateway) error
- func (m *MockStore) UpsertRoute(ctx context.Context, route store.Route) error
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) CanFetchSecrets(ctx, id, secrets interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteGateway(ctx, id interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteRoute(ctx, id interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GatewayExists(ctx, id interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Sync(ctx interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) UpsertGateway(ctx, gateway interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) UpsertRoute(ctx, route interface{}) *gomock.Call
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) Listeners ¶
func (m *MockGateway) Listeners() []store.Listener
Listeners 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 ¶
func (mr *MockGatewayMockRecorder) ID() *gomock.Call
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) Config ¶
func (m *MockListener) Config() store.ListenerConfig
Config mocks base method.
func (*MockListener) EXPECT ¶
func (m *MockListener) EXPECT() *MockListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (mr *MockListenerMockRecorder) ID() *gomock.Call
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.
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) Config ¶
func (m *MockRouteTrackingListener) Config() store.ListenerConfig
Config mocks base method.
func (*MockRouteTrackingListener) EXPECT ¶
func (m *MockRouteTrackingListener) EXPECT() *MockRouteTrackingListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRouteTrackingListener) ID ¶
func (m *MockRouteTrackingListener) ID() string
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 ¶
func (mr *MockRouteTrackingListenerMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*MockRouteTrackingListenerMockRecorder) ID ¶
func (mr *MockRouteTrackingListenerMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockRouteTrackingListenerMockRecorder) IsValid ¶
func (mr *MockRouteTrackingListenerMockRecorder) IsValid() *gomock.Call
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 ¶
func (m *MockStatusTrackingGateway) EXPECT() *MockStatusTrackingGatewayMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStatusTrackingGateway) ID ¶
func (m *MockStatusTrackingGateway) ID() core.GatewayID
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.
type MockStatusTrackingGatewayMockRecorder ¶
type MockStatusTrackingGatewayMockRecorder struct {
// contains filtered or unexported fields
}
MockStatusTrackingGatewayMockRecorder is the mock recorder for MockStatusTrackingGateway.
func (*MockStatusTrackingGatewayMockRecorder) ID ¶
func (mr *MockStatusTrackingGatewayMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockStatusTrackingGatewayMockRecorder) Listeners ¶
func (mr *MockStatusTrackingGatewayMockRecorder) Listeners() *gomock.Call
Listeners indicates an expected call of Listeners.
func (*MockStatusTrackingGatewayMockRecorder) Meta ¶
func (mr *MockStatusTrackingGatewayMockRecorder) Meta() *gomock.Call
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 ¶
func (m *MockStatusTrackingRoute) Compare(other store.Route) store.CompareResult
Compare mocks base method.
func (*MockStatusTrackingRoute) EXPECT ¶
func (m *MockStatusTrackingRoute) EXPECT() *MockStatusTrackingRouteMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStatusTrackingRoute) ID ¶
func (m *MockStatusTrackingRoute) ID() string
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 ¶
func (m *MockStatusTrackingRoute) Resolve(listener store.Listener) *core.ResolvedRoute
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 ¶
func (mr *MockStatusTrackingRouteMockRecorder) ID() *gomock.Call
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 ¶
DeleteGateway mocks base method.
func (*MockStore) DeleteRoute ¶
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 ¶
GatewayExists mocks base method.
func (*MockStore) UpsertGateway ¶
UpsertGateway 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.