Documentation ¶
Index ¶
- type MockMaker
- type MockMaker_Expecter
- type MockMaker_Make_Call
- type MockServer
- func (_m *MockServer) Config(name string) (configs.Config, bool)
- func (_m *MockServer) Configs() configs.Configs
- func (_m *MockServer) EXPECT() *MockServer_Expecter
- func (_m *MockServer) ExpectAction(name string) (actions.ExpectAction, bool)
- func (_m *MockServer) Group() string
- func (_m *MockServer) Parameters() parameters.Parameters
- func (_m *MockServer) Port() int32
- func (_m *MockServer) Sandbox(name providers.Type) (sandbox.Sandbox, bool)
- func (_m *MockServer) Template(name string) (templates.Template, bool)
- func (_m *MockServer) Templates() templates.Templates
- func (_m *MockServer) User() string
- type MockServer_Config_Call
- type MockServer_Configs_Call
- type MockServer_ExpectAction_Call
- func (_c *MockServer_ExpectAction_Call) Return(_a0 actions.ExpectAction, _a1 bool) *MockServer_ExpectAction_Call
- func (_c *MockServer_ExpectAction_Call) Run(run func(name string)) *MockServer_ExpectAction_Call
- func (_c *MockServer_ExpectAction_Call) RunAndReturn(run func(string) (actions.ExpectAction, bool)) *MockServer_ExpectAction_Call
- type MockServer_Expecter
- func (_e *MockServer_Expecter) Config(name interface{}) *MockServer_Config_Call
- func (_e *MockServer_Expecter) Configs() *MockServer_Configs_Call
- func (_e *MockServer_Expecter) ExpectAction(name interface{}) *MockServer_ExpectAction_Call
- func (_e *MockServer_Expecter) Group() *MockServer_Group_Call
- func (_e *MockServer_Expecter) Parameters() *MockServer_Parameters_Call
- func (_e *MockServer_Expecter) Port() *MockServer_Port_Call
- func (_e *MockServer_Expecter) Sandbox(name interface{}) *MockServer_Sandbox_Call
- func (_e *MockServer_Expecter) Template(name interface{}) *MockServer_Template_Call
- func (_e *MockServer_Expecter) Templates() *MockServer_Templates_Call
- func (_e *MockServer_Expecter) User() *MockServer_User_Call
- type MockServer_Group_Call
- type MockServer_Parameters_Call
- type MockServer_Port_Call
- type MockServer_Sandbox_Call
- func (_c *MockServer_Sandbox_Call) Return(_a0 sandbox.Sandbox, _a1 bool) *MockServer_Sandbox_Call
- func (_c *MockServer_Sandbox_Call) Run(run func(name providers.Type)) *MockServer_Sandbox_Call
- func (_c *MockServer_Sandbox_Call) RunAndReturn(run func(providers.Type) (sandbox.Sandbox, bool)) *MockServer_Sandbox_Call
- type MockServer_Template_Call
- func (_c *MockServer_Template_Call) Return(_a0 templates.Template, _a1 bool) *MockServer_Template_Call
- func (_c *MockServer_Template_Call) Run(run func(name string)) *MockServer_Template_Call
- func (_c *MockServer_Template_Call) RunAndReturn(run func(string) (templates.Template, bool)) *MockServer_Template_Call
- type MockServer_Templates_Call
- type MockServer_User_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMaker ¶
MockMaker is an autogenerated mock type for the Maker type
func NewMockMaker ¶
NewMockMaker creates a new instance of MockMaker. 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 (*MockMaker) EXPECT ¶
func (_m *MockMaker) EXPECT() *MockMaker_Expecter
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) Make ¶
func (_e *MockMaker_Expecter) Make(config interface{}) *MockMaker_Make_Call
Make is a helper method to define mock.On call
- config *types.Spec
type MockMaker_Make_Call ¶
MockMaker_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'
func (*MockMaker_Make_Call) Return ¶
func (_c *MockMaker_Make_Call) Return(_a0 servers.Servers, _a1 error) *MockMaker_Make_Call
func (*MockMaker_Make_Call) Run ¶
func (_c *MockMaker_Make_Call) Run(run func(config *types.Spec)) *MockMaker_Make_Call
func (*MockMaker_Make_Call) RunAndReturn ¶
func (_c *MockMaker_Make_Call) RunAndReturn(run func(*types.Spec) (servers.Servers, error)) *MockMaker_Make_Call
type MockServer ¶
MockServer is an autogenerated mock type for the Server type
func NewMockServer ¶
func NewMockServer(t interface { mock.TestingT Cleanup(func()) }) *MockServer
NewMockServer creates a new instance of MockServer. 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 (*MockServer) Config ¶
func (_m *MockServer) Config(name string) (configs.Config, bool)
Config provides a mock function with given fields: name
func (*MockServer) Configs ¶
func (_m *MockServer) Configs() configs.Configs
Configs provides a mock function with given fields:
func (*MockServer) EXPECT ¶
func (_m *MockServer) EXPECT() *MockServer_Expecter
func (*MockServer) ExpectAction ¶
func (_m *MockServer) ExpectAction(name string) (actions.ExpectAction, bool)
ExpectAction provides a mock function with given fields: name
func (*MockServer) Group ¶
func (_m *MockServer) Group() string
Group provides a mock function with given fields:
func (*MockServer) Parameters ¶
func (_m *MockServer) Parameters() parameters.Parameters
Parameters provides a mock function with given fields:
func (*MockServer) Port ¶
func (_m *MockServer) Port() int32
Port provides a mock function with given fields:
func (*MockServer) Template ¶
func (_m *MockServer) Template(name string) (templates.Template, bool)
Template provides a mock function with given fields: name
func (*MockServer) Templates ¶
func (_m *MockServer) Templates() templates.Templates
Templates provides a mock function with given fields:
func (*MockServer) User ¶
func (_m *MockServer) User() string
User provides a mock function with given fields:
type MockServer_Config_Call ¶
MockServer_Config_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Config'
func (*MockServer_Config_Call) Return ¶
func (_c *MockServer_Config_Call) Return(_a0 configs.Config, _a1 bool) *MockServer_Config_Call
func (*MockServer_Config_Call) Run ¶
func (_c *MockServer_Config_Call) Run(run func(name string)) *MockServer_Config_Call
func (*MockServer_Config_Call) RunAndReturn ¶
func (_c *MockServer_Config_Call) RunAndReturn(run func(string) (configs.Config, bool)) *MockServer_Config_Call
type MockServer_Configs_Call ¶
MockServer_Configs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Configs'
func (*MockServer_Configs_Call) Return ¶
func (_c *MockServer_Configs_Call) Return(_a0 configs.Configs) *MockServer_Configs_Call
func (*MockServer_Configs_Call) Run ¶
func (_c *MockServer_Configs_Call) Run(run func()) *MockServer_Configs_Call
func (*MockServer_Configs_Call) RunAndReturn ¶
func (_c *MockServer_Configs_Call) RunAndReturn(run func() configs.Configs) *MockServer_Configs_Call
type MockServer_ExpectAction_Call ¶
MockServer_ExpectAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExpectAction'
func (*MockServer_ExpectAction_Call) Return ¶
func (_c *MockServer_ExpectAction_Call) Return(_a0 actions.ExpectAction, _a1 bool) *MockServer_ExpectAction_Call
func (*MockServer_ExpectAction_Call) Run ¶
func (_c *MockServer_ExpectAction_Call) Run(run func(name string)) *MockServer_ExpectAction_Call
func (*MockServer_ExpectAction_Call) RunAndReturn ¶
func (_c *MockServer_ExpectAction_Call) RunAndReturn(run func(string) (actions.ExpectAction, bool)) *MockServer_ExpectAction_Call
type MockServer_Expecter ¶
type MockServer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockServer_Expecter) Config ¶
func (_e *MockServer_Expecter) Config(name interface{}) *MockServer_Config_Call
Config is a helper method to define mock.On call
- name string
func (*MockServer_Expecter) Configs ¶
func (_e *MockServer_Expecter) Configs() *MockServer_Configs_Call
Configs is a helper method to define mock.On call
func (*MockServer_Expecter) ExpectAction ¶
func (_e *MockServer_Expecter) ExpectAction(name interface{}) *MockServer_ExpectAction_Call
ExpectAction is a helper method to define mock.On call
- name string
func (*MockServer_Expecter) Group ¶
func (_e *MockServer_Expecter) Group() *MockServer_Group_Call
Group is a helper method to define mock.On call
func (*MockServer_Expecter) Parameters ¶
func (_e *MockServer_Expecter) Parameters() *MockServer_Parameters_Call
Parameters is a helper method to define mock.On call
func (*MockServer_Expecter) Port ¶
func (_e *MockServer_Expecter) Port() *MockServer_Port_Call
Port is a helper method to define mock.On call
func (*MockServer_Expecter) Sandbox ¶
func (_e *MockServer_Expecter) Sandbox(name interface{}) *MockServer_Sandbox_Call
Sandbox is a helper method to define mock.On call
- name providers.Type
func (*MockServer_Expecter) Template ¶
func (_e *MockServer_Expecter) Template(name interface{}) *MockServer_Template_Call
Template is a helper method to define mock.On call
- name string
func (*MockServer_Expecter) Templates ¶
func (_e *MockServer_Expecter) Templates() *MockServer_Templates_Call
Templates is a helper method to define mock.On call
func (*MockServer_Expecter) User ¶
func (_e *MockServer_Expecter) User() *MockServer_User_Call
User is a helper method to define mock.On call
type MockServer_Group_Call ¶
MockServer_Group_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Group'
func (*MockServer_Group_Call) Return ¶
func (_c *MockServer_Group_Call) Return(_a0 string) *MockServer_Group_Call
func (*MockServer_Group_Call) Run ¶
func (_c *MockServer_Group_Call) Run(run func()) *MockServer_Group_Call
func (*MockServer_Group_Call) RunAndReturn ¶
func (_c *MockServer_Group_Call) RunAndReturn(run func() string) *MockServer_Group_Call
type MockServer_Parameters_Call ¶
MockServer_Parameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parameters'
func (*MockServer_Parameters_Call) Return ¶
func (_c *MockServer_Parameters_Call) Return(_a0 parameters.Parameters) *MockServer_Parameters_Call
func (*MockServer_Parameters_Call) Run ¶
func (_c *MockServer_Parameters_Call) Run(run func()) *MockServer_Parameters_Call
func (*MockServer_Parameters_Call) RunAndReturn ¶
func (_c *MockServer_Parameters_Call) RunAndReturn(run func() parameters.Parameters) *MockServer_Parameters_Call
type MockServer_Port_Call ¶
MockServer_Port_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Port'
func (*MockServer_Port_Call) Return ¶
func (_c *MockServer_Port_Call) Return(_a0 int32) *MockServer_Port_Call
func (*MockServer_Port_Call) Run ¶
func (_c *MockServer_Port_Call) Run(run func()) *MockServer_Port_Call
func (*MockServer_Port_Call) RunAndReturn ¶
func (_c *MockServer_Port_Call) RunAndReturn(run func() int32) *MockServer_Port_Call
type MockServer_Sandbox_Call ¶
MockServer_Sandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sandbox'
func (*MockServer_Sandbox_Call) Return ¶
func (_c *MockServer_Sandbox_Call) Return(_a0 sandbox.Sandbox, _a1 bool) *MockServer_Sandbox_Call
func (*MockServer_Sandbox_Call) Run ¶
func (_c *MockServer_Sandbox_Call) Run(run func(name providers.Type)) *MockServer_Sandbox_Call
func (*MockServer_Sandbox_Call) RunAndReturn ¶
func (_c *MockServer_Sandbox_Call) RunAndReturn(run func(providers.Type) (sandbox.Sandbox, bool)) *MockServer_Sandbox_Call
type MockServer_Template_Call ¶
MockServer_Template_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Template'
func (*MockServer_Template_Call) Return ¶
func (_c *MockServer_Template_Call) Return(_a0 templates.Template, _a1 bool) *MockServer_Template_Call
func (*MockServer_Template_Call) Run ¶
func (_c *MockServer_Template_Call) Run(run func(name string)) *MockServer_Template_Call
func (*MockServer_Template_Call) RunAndReturn ¶
func (_c *MockServer_Template_Call) RunAndReturn(run func(string) (templates.Template, bool)) *MockServer_Template_Call
type MockServer_Templates_Call ¶
MockServer_Templates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Templates'
func (*MockServer_Templates_Call) Return ¶
func (_c *MockServer_Templates_Call) Return(_a0 templates.Templates) *MockServer_Templates_Call
func (*MockServer_Templates_Call) Run ¶
func (_c *MockServer_Templates_Call) Run(run func()) *MockServer_Templates_Call
func (*MockServer_Templates_Call) RunAndReturn ¶
func (_c *MockServer_Templates_Call) RunAndReturn(run func() templates.Templates) *MockServer_Templates_Call
type MockServer_User_Call ¶
MockServer_User_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'User'
func (*MockServer_User_Call) Return ¶
func (_c *MockServer_User_Call) Return(_a0 string) *MockServer_User_Call
func (*MockServer_User_Call) Run ¶
func (_c *MockServer_User_Call) Run(run func()) *MockServer_User_Call
func (*MockServer_User_Call) RunAndReturn ¶
func (_c *MockServer_User_Call) RunAndReturn(run func() string) *MockServer_User_Call