Documentation ¶
Index ¶
- type MockForwarderClient
- func (_m *MockForwarderClient) Dial(network string, address string) (net.Conn, error)
- func (_m *MockForwarderClient) DialWithTLS(network string, addr string, config *tls.Config) (*tls.Conn, error)
- func (_m *MockForwarderClient) EXPECT() *MockForwarderClient_Expecter
- func (_m *MockForwarderClient) OpenFile(name string) (*os.File, error)
- type MockForwarderClient_DialWithTLS_Call
- func (_c *MockForwarderClient_DialWithTLS_Call) Return(_a0 *tls.Conn, _a1 error) *MockForwarderClient_DialWithTLS_Call
- func (_c *MockForwarderClient_DialWithTLS_Call) Run(run func(network string, addr string, config *tls.Config)) *MockForwarderClient_DialWithTLS_Call
- func (_c *MockForwarderClient_DialWithTLS_Call) RunAndReturn(run func(string, string, *tls.Config) (*tls.Conn, error)) *MockForwarderClient_DialWithTLS_Call
- type MockForwarderClient_Dial_Call
- func (_c *MockForwarderClient_Dial_Call) Return(_a0 net.Conn, _a1 error) *MockForwarderClient_Dial_Call
- func (_c *MockForwarderClient_Dial_Call) Run(run func(network string, address string)) *MockForwarderClient_Dial_Call
- func (_c *MockForwarderClient_Dial_Call) RunAndReturn(run func(string, string) (net.Conn, error)) *MockForwarderClient_Dial_Call
- type MockForwarderClient_Expecter
- func (_e *MockForwarderClient_Expecter) Dial(network interface{}, address interface{}) *MockForwarderClient_Dial_Call
- func (_e *MockForwarderClient_Expecter) DialWithTLS(network interface{}, addr interface{}, config interface{}) *MockForwarderClient_DialWithTLS_Call
- func (_e *MockForwarderClient_Expecter) OpenFile(name interface{}) *MockForwarderClient_OpenFile_Call
- type MockForwarderClient_OpenFile_Call
- func (_c *MockForwarderClient_OpenFile_Call) Return(_a0 *os.File, _a1 error) *MockForwarderClient_OpenFile_Call
- func (_c *MockForwarderClient_OpenFile_Call) Run(run func(name string)) *MockForwarderClient_OpenFile_Call
- func (_c *MockForwarderClient_OpenFile_Call) RunAndReturn(run func(string) (*os.File, error)) *MockForwarderClient_OpenFile_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockForwarderClient ¶
MockForwarderClient is an autogenerated mock type for the chronicleForwarderClient type
func NewMockForwarderClient ¶
func NewMockForwarderClient(t interface { mock.TestingT Cleanup(func()) }) *MockForwarderClient
NewMockForwarderClient creates a new instance of MockForwarderClient. 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 (*MockForwarderClient) Dial ¶
Dial provides a mock function with given fields: network, address
func (*MockForwarderClient) DialWithTLS ¶
func (_m *MockForwarderClient) DialWithTLS(network string, addr string, config *tls.Config) (*tls.Conn, error)
DialWithTLS provides a mock function with given fields: network, addr, config
func (*MockForwarderClient) EXPECT ¶
func (_m *MockForwarderClient) EXPECT() *MockForwarderClient_Expecter
type MockForwarderClient_DialWithTLS_Call ¶
MockForwarderClient_DialWithTLS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DialWithTLS'
func (*MockForwarderClient_DialWithTLS_Call) Return ¶
func (_c *MockForwarderClient_DialWithTLS_Call) Return(_a0 *tls.Conn, _a1 error) *MockForwarderClient_DialWithTLS_Call
func (*MockForwarderClient_DialWithTLS_Call) Run ¶
func (_c *MockForwarderClient_DialWithTLS_Call) Run(run func(network string, addr string, config *tls.Config)) *MockForwarderClient_DialWithTLS_Call
func (*MockForwarderClient_DialWithTLS_Call) RunAndReturn ¶
func (_c *MockForwarderClient_DialWithTLS_Call) RunAndReturn(run func(string, string, *tls.Config) (*tls.Conn, error)) *MockForwarderClient_DialWithTLS_Call
type MockForwarderClient_Dial_Call ¶
MockForwarderClient_Dial_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dial'
func (*MockForwarderClient_Dial_Call) Return ¶
func (_c *MockForwarderClient_Dial_Call) Return(_a0 net.Conn, _a1 error) *MockForwarderClient_Dial_Call
func (*MockForwarderClient_Dial_Call) Run ¶
func (_c *MockForwarderClient_Dial_Call) Run(run func(network string, address string)) *MockForwarderClient_Dial_Call
func (*MockForwarderClient_Dial_Call) RunAndReturn ¶
func (_c *MockForwarderClient_Dial_Call) RunAndReturn(run func(string, string) (net.Conn, error)) *MockForwarderClient_Dial_Call
type MockForwarderClient_Expecter ¶
type MockForwarderClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockForwarderClient_Expecter) Dial ¶
func (_e *MockForwarderClient_Expecter) Dial(network interface{}, address interface{}) *MockForwarderClient_Dial_Call
Dial is a helper method to define mock.On call
- network string
- address string
func (*MockForwarderClient_Expecter) DialWithTLS ¶
func (_e *MockForwarderClient_Expecter) DialWithTLS(network interface{}, addr interface{}, config interface{}) *MockForwarderClient_DialWithTLS_Call
DialWithTLS is a helper method to define mock.On call
- network string
- addr string
- config *tls.Config
func (*MockForwarderClient_Expecter) OpenFile ¶
func (_e *MockForwarderClient_Expecter) OpenFile(name interface{}) *MockForwarderClient_OpenFile_Call
OpenFile is a helper method to define mock.On call
- name string
type MockForwarderClient_OpenFile_Call ¶
MockForwarderClient_OpenFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenFile'
func (*MockForwarderClient_OpenFile_Call) Return ¶
func (_c *MockForwarderClient_OpenFile_Call) Return(_a0 *os.File, _a1 error) *MockForwarderClient_OpenFile_Call
func (*MockForwarderClient_OpenFile_Call) Run ¶
func (_c *MockForwarderClient_OpenFile_Call) Run(run func(name string)) *MockForwarderClient_OpenFile_Call
func (*MockForwarderClient_OpenFile_Call) RunAndReturn ¶
func (_c *MockForwarderClient_OpenFile_Call) RunAndReturn(run func(string) (*os.File, error)) *MockForwarderClient_OpenFile_Call