Documentation ¶
Index ¶
- type MockBuilder
- func (_m *MockBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
- func (_m *MockBuilder) Close()
- func (_m *MockBuilder) EXPECT() *MockBuilder_Expecter
- func (_m *MockBuilder) Resolver() serviceresolver.Resolver
- func (_m *MockBuilder) Scheme() string
- type MockBuilder_Build_Call
- type MockBuilder_Close_Call
- type MockBuilder_Expecter
- func (_e *MockBuilder_Expecter) Build(target interface{}, cc interface{}, opts interface{}) *MockBuilder_Build_Call
- func (_e *MockBuilder_Expecter) Close() *MockBuilder_Close_Call
- func (_e *MockBuilder_Expecter) Resolver() *MockBuilder_Resolver_Call
- func (_e *MockBuilder_Expecter) Scheme() *MockBuilder_Scheme_Call
- type MockBuilder_Resolver_Call
- type MockBuilder_Scheme_Call
- type MockResolver
- type MockResolver_Expecter
- type MockResolver_GetLatestState_Call
- func (_c *MockResolver_GetLatestState_Call) Return(_a0 discoverer.VersionedState) *MockResolver_GetLatestState_Call
- func (_c *MockResolver_GetLatestState_Call) Run(run func()) *MockResolver_GetLatestState_Call
- func (_c *MockResolver_GetLatestState_Call) RunAndReturn(run func() discoverer.VersionedState) *MockResolver_GetLatestState_Call
- type MockResolver_Watch_Call
- func (_c *MockResolver_Watch_Call) Return(_a0 error) *MockResolver_Watch_Call
- func (_c *MockResolver_Watch_Call) Run(run func(ctx context.Context, cb func(discoverer.VersionedState) error)) *MockResolver_Watch_Call
- func (_c *MockResolver_Watch_Call) RunAndReturn(run func(context.Context, func(discoverer.VersionedState) error) error) *MockResolver_Watch_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBuilder ¶
MockBuilder is an autogenerated mock type for the Builder type
func NewMockBuilder ¶
func NewMockBuilder(t interface { mock.TestingT Cleanup(func()) }) *MockBuilder
NewMockBuilder creates a new instance of MockBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockBuilder) Build ¶
func (_m *MockBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
Build provides a mock function with given fields: target, cc, opts
func (*MockBuilder) Close ¶
func (_m *MockBuilder) Close()
Close provides a mock function with given fields:
func (*MockBuilder) EXPECT ¶
func (_m *MockBuilder) EXPECT() *MockBuilder_Expecter
func (*MockBuilder) Resolver ¶
func (_m *MockBuilder) Resolver() serviceresolver.Resolver
Resolver provides a mock function with given fields:
func (*MockBuilder) Scheme ¶
func (_m *MockBuilder) Scheme() string
Scheme provides a mock function with given fields:
type MockBuilder_Build_Call ¶
MockBuilder_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
func (*MockBuilder_Build_Call) Return ¶
func (_c *MockBuilder_Build_Call) Return(_a0 resolver.Resolver, _a1 error) *MockBuilder_Build_Call
func (*MockBuilder_Build_Call) Run ¶
func (_c *MockBuilder_Build_Call) Run(run func(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions)) *MockBuilder_Build_Call
func (*MockBuilder_Build_Call) RunAndReturn ¶
func (_c *MockBuilder_Build_Call) RunAndReturn(run func(resolver.Target, resolver.ClientConn, resolver.BuildOptions) (resolver.Resolver, error)) *MockBuilder_Build_Call
type MockBuilder_Close_Call ¶
MockBuilder_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockBuilder_Close_Call) Return ¶
func (_c *MockBuilder_Close_Call) Return() *MockBuilder_Close_Call
func (*MockBuilder_Close_Call) Run ¶
func (_c *MockBuilder_Close_Call) Run(run func()) *MockBuilder_Close_Call
func (*MockBuilder_Close_Call) RunAndReturn ¶
func (_c *MockBuilder_Close_Call) RunAndReturn(run func()) *MockBuilder_Close_Call
type MockBuilder_Expecter ¶
type MockBuilder_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBuilder_Expecter) Build ¶
func (_e *MockBuilder_Expecter) Build(target interface{}, cc interface{}, opts interface{}) *MockBuilder_Build_Call
Build is a helper method to define mock.On call
- target resolver.Target
- cc resolver.ClientConn
- opts resolver.BuildOptions
func (*MockBuilder_Expecter) Close ¶
func (_e *MockBuilder_Expecter) Close() *MockBuilder_Close_Call
Close is a helper method to define mock.On call
func (*MockBuilder_Expecter) Resolver ¶
func (_e *MockBuilder_Expecter) Resolver() *MockBuilder_Resolver_Call
Resolver is a helper method to define mock.On call
func (*MockBuilder_Expecter) Scheme ¶
func (_e *MockBuilder_Expecter) Scheme() *MockBuilder_Scheme_Call
Scheme is a helper method to define mock.On call
type MockBuilder_Resolver_Call ¶
MockBuilder_Resolver_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resolver'
func (*MockBuilder_Resolver_Call) Return ¶
func (_c *MockBuilder_Resolver_Call) Return(_a0 serviceresolver.Resolver) *MockBuilder_Resolver_Call
func (*MockBuilder_Resolver_Call) Run ¶
func (_c *MockBuilder_Resolver_Call) Run(run func()) *MockBuilder_Resolver_Call
func (*MockBuilder_Resolver_Call) RunAndReturn ¶
func (_c *MockBuilder_Resolver_Call) RunAndReturn(run func() serviceresolver.Resolver) *MockBuilder_Resolver_Call
type MockBuilder_Scheme_Call ¶
MockBuilder_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'
func (*MockBuilder_Scheme_Call) Return ¶
func (_c *MockBuilder_Scheme_Call) Return(_a0 string) *MockBuilder_Scheme_Call
func (*MockBuilder_Scheme_Call) Run ¶
func (_c *MockBuilder_Scheme_Call) Run(run func()) *MockBuilder_Scheme_Call
func (*MockBuilder_Scheme_Call) RunAndReturn ¶
func (_c *MockBuilder_Scheme_Call) RunAndReturn(run func() string) *MockBuilder_Scheme_Call
type MockResolver ¶
MockResolver is an autogenerated mock type for the Resolver type
func NewMockResolver ¶
func NewMockResolver(t interface { mock.TestingT Cleanup(func()) }) *MockResolver
NewMockResolver creates a new instance of MockResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockResolver) EXPECT ¶
func (_m *MockResolver) EXPECT() *MockResolver_Expecter
func (*MockResolver) GetLatestState ¶
func (_m *MockResolver) GetLatestState() discoverer.VersionedState
GetLatestState provides a mock function with given fields:
func (*MockResolver) Watch ¶
func (_m *MockResolver) Watch(ctx context.Context, cb func(discoverer.VersionedState) error) error
Watch provides a mock function with given fields: ctx, cb
type MockResolver_Expecter ¶
type MockResolver_Expecter struct {
// contains filtered or unexported fields
}
func (*MockResolver_Expecter) GetLatestState ¶
func (_e *MockResolver_Expecter) GetLatestState() *MockResolver_GetLatestState_Call
GetLatestState is a helper method to define mock.On call
func (*MockResolver_Expecter) Watch ¶
func (_e *MockResolver_Expecter) Watch(ctx interface{}, cb interface{}) *MockResolver_Watch_Call
Watch is a helper method to define mock.On call
- ctx context.Context
- cb func(discoverer.VersionedState) error
type MockResolver_GetLatestState_Call ¶
MockResolver_GetLatestState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestState'
func (*MockResolver_GetLatestState_Call) Return ¶
func (_c *MockResolver_GetLatestState_Call) Return(_a0 discoverer.VersionedState) *MockResolver_GetLatestState_Call
func (*MockResolver_GetLatestState_Call) Run ¶
func (_c *MockResolver_GetLatestState_Call) Run(run func()) *MockResolver_GetLatestState_Call
func (*MockResolver_GetLatestState_Call) RunAndReturn ¶
func (_c *MockResolver_GetLatestState_Call) RunAndReturn(run func() discoverer.VersionedState) *MockResolver_GetLatestState_Call
type MockResolver_Watch_Call ¶
MockResolver_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*MockResolver_Watch_Call) Return ¶
func (_c *MockResolver_Watch_Call) Return(_a0 error) *MockResolver_Watch_Call
func (*MockResolver_Watch_Call) Run ¶
func (_c *MockResolver_Watch_Call) Run(run func(ctx context.Context, cb func(discoverer.VersionedState) error)) *MockResolver_Watch_Call
func (*MockResolver_Watch_Call) RunAndReturn ¶
func (_c *MockResolver_Watch_Call) RunAndReturn(run func(context.Context, func(discoverer.VersionedState) error) error) *MockResolver_Watch_Call