Documentation ¶
Index ¶
- type MockMaker
- type MockMaker_Expecter
- type MockMaker_Make_Call
- type MockService
- func (_m *MockService) ConfDir() (string, error)
- func (_m *MockService) Dirs() map[dir.DirType]string
- func (_m *MockService) EXPECT() *MockService_Expecter
- func (_m *MockService) Environment() environment.Environment
- func (_m *MockService) EnvironmentConfigPaths() map[string]string
- func (_m *MockService) EnvironmentScriptPaths() map[string]string
- func (_m *MockService) Executable() (string, error)
- func (_m *MockService) FullName() string
- func (_m *MockService) Group() string
- func (_m *MockService) IsPublic() bool
- func (_m *MockService) LocalAddress() string
- func (_m *MockService) Name() string
- func (_m *MockService) OutputScanner(ctx context.Context, outputType output.Type) (*bufio.Scanner, error)
- func (_m *MockService) Pid() (int, error)
- func (_m *MockService) Port() int32
- func (_m *MockService) PrivateAddress() string
- func (_m *MockService) PrivateUrl() (string, error)
- func (_m *MockService) PublicUrl(path string) (string, error)
- func (_m *MockService) Reload(ctx context.Context) error
- func (_m *MockService) RenderTemplate(text string, params parameters.Parameters) (string, error)
- func (_m *MockService) Restart(ctx context.Context) error
- func (_m *MockService) RunDir() (string, error)
- func (_m *MockService) Sandbox() sandbox.Sandbox
- func (_m *MockService) ScriptDir() (string, error)
- func (_m *MockService) Server() servers.Server
- func (_m *MockService) ServerParameters() parameters.Parameters
- func (_m *MockService) SetTemplate(_a0 template.Template)
- func (_m *MockService) Start(ctx context.Context) error
- func (_m *MockService) Stop(ctx context.Context) error
- func (_m *MockService) Task() task.Task
- func (_m *MockService) User() string
- func (_m *MockService) Workspace() string
- func (_m *MockService) WorkspaceConfigPaths() map[string]string
- func (_m *MockService) WorkspaceScriptPaths() map[string]string
- type MockServiceLocator
- type MockServiceLocator_Expecter
- type MockServiceLocator_Find_Call
- func (_c *MockServiceLocator_Find_Call) Return(_a0 services.Service, _a1 error) *MockServiceLocator_Find_Call
- func (_c *MockServiceLocator_Find_Call) Run(run func(name string)) *MockServiceLocator_Find_Call
- func (_c *MockServiceLocator_Find_Call) RunAndReturn(run func(string) (services.Service, error)) *MockServiceLocator_Find_Call
- type MockServiceLocator_Services_Call
- func (_c *MockServiceLocator_Services_Call) Return(_a0 services.Services) *MockServiceLocator_Services_Call
- func (_c *MockServiceLocator_Services_Call) Run(run func()) *MockServiceLocator_Services_Call
- func (_c *MockServiceLocator_Services_Call) RunAndReturn(run func() services.Services) *MockServiceLocator_Services_Call
- type MockService_ConfDir_Call
- type MockService_Dirs_Call
- type MockService_EnvironmentConfigPaths_Call
- func (_c *MockService_EnvironmentConfigPaths_Call) Return(_a0 map[string]string) *MockService_EnvironmentConfigPaths_Call
- func (_c *MockService_EnvironmentConfigPaths_Call) Run(run func()) *MockService_EnvironmentConfigPaths_Call
- func (_c *MockService_EnvironmentConfigPaths_Call) RunAndReturn(run func() map[string]string) *MockService_EnvironmentConfigPaths_Call
- type MockService_EnvironmentScriptPaths_Call
- func (_c *MockService_EnvironmentScriptPaths_Call) Return(_a0 map[string]string) *MockService_EnvironmentScriptPaths_Call
- func (_c *MockService_EnvironmentScriptPaths_Call) Run(run func()) *MockService_EnvironmentScriptPaths_Call
- func (_c *MockService_EnvironmentScriptPaths_Call) RunAndReturn(run func() map[string]string) *MockService_EnvironmentScriptPaths_Call
- type MockService_Environment_Call
- func (_c *MockService_Environment_Call) Return(_a0 environment.Environment) *MockService_Environment_Call
- func (_c *MockService_Environment_Call) Run(run func()) *MockService_Environment_Call
- func (_c *MockService_Environment_Call) RunAndReturn(run func() environment.Environment) *MockService_Environment_Call
- type MockService_Executable_Call
- type MockService_Expecter
- func (_e *MockService_Expecter) ConfDir() *MockService_ConfDir_Call
- func (_e *MockService_Expecter) Dirs() *MockService_Dirs_Call
- func (_e *MockService_Expecter) Environment() *MockService_Environment_Call
- func (_e *MockService_Expecter) EnvironmentConfigPaths() *MockService_EnvironmentConfigPaths_Call
- func (_e *MockService_Expecter) EnvironmentScriptPaths() *MockService_EnvironmentScriptPaths_Call
- func (_e *MockService_Expecter) Executable() *MockService_Executable_Call
- func (_e *MockService_Expecter) FullName() *MockService_FullName_Call
- func (_e *MockService_Expecter) Group() *MockService_Group_Call
- func (_e *MockService_Expecter) IsPublic() *MockService_IsPublic_Call
- func (_e *MockService_Expecter) LocalAddress() *MockService_LocalAddress_Call
- func (_e *MockService_Expecter) Name() *MockService_Name_Call
- func (_e *MockService_Expecter) OutputScanner(ctx interface{}, outputType interface{}) *MockService_OutputScanner_Call
- func (_e *MockService_Expecter) Pid() *MockService_Pid_Call
- func (_e *MockService_Expecter) Port() *MockService_Port_Call
- func (_e *MockService_Expecter) PrivateAddress() *MockService_PrivateAddress_Call
- func (_e *MockService_Expecter) PrivateUrl() *MockService_PrivateUrl_Call
- func (_e *MockService_Expecter) PublicUrl(path interface{}) *MockService_PublicUrl_Call
- func (_e *MockService_Expecter) Reload(ctx interface{}) *MockService_Reload_Call
- func (_e *MockService_Expecter) RenderTemplate(text interface{}, params interface{}) *MockService_RenderTemplate_Call
- func (_e *MockService_Expecter) Restart(ctx interface{}) *MockService_Restart_Call
- func (_e *MockService_Expecter) RunDir() *MockService_RunDir_Call
- func (_e *MockService_Expecter) Sandbox() *MockService_Sandbox_Call
- func (_e *MockService_Expecter) ScriptDir() *MockService_ScriptDir_Call
- func (_e *MockService_Expecter) Server() *MockService_Server_Call
- func (_e *MockService_Expecter) ServerParameters() *MockService_ServerParameters_Call
- func (_e *MockService_Expecter) SetTemplate(_a0 interface{}) *MockService_SetTemplate_Call
- func (_e *MockService_Expecter) Start(ctx interface{}) *MockService_Start_Call
- func (_e *MockService_Expecter) Stop(ctx interface{}) *MockService_Stop_Call
- func (_e *MockService_Expecter) Task() *MockService_Task_Call
- func (_e *MockService_Expecter) User() *MockService_User_Call
- func (_e *MockService_Expecter) Workspace() *MockService_Workspace_Call
- func (_e *MockService_Expecter) WorkspaceConfigPaths() *MockService_WorkspaceConfigPaths_Call
- func (_e *MockService_Expecter) WorkspaceScriptPaths() *MockService_WorkspaceScriptPaths_Call
- type MockService_FullName_Call
- type MockService_Group_Call
- type MockService_IsPublic_Call
- type MockService_LocalAddress_Call
- type MockService_Name_Call
- type MockService_OutputScanner_Call
- func (_c *MockService_OutputScanner_Call) Return(_a0 *bufio.Scanner, _a1 error) *MockService_OutputScanner_Call
- func (_c *MockService_OutputScanner_Call) Run(run func(ctx context.Context, outputType output.Type)) *MockService_OutputScanner_Call
- func (_c *MockService_OutputScanner_Call) RunAndReturn(run func(context.Context, output.Type) (*bufio.Scanner, error)) *MockService_OutputScanner_Call
- type MockService_Pid_Call
- type MockService_Port_Call
- type MockService_PrivateAddress_Call
- type MockService_PrivateUrl_Call
- type MockService_PublicUrl_Call
- func (_c *MockService_PublicUrl_Call) Return(_a0 string, _a1 error) *MockService_PublicUrl_Call
- func (_c *MockService_PublicUrl_Call) Run(run func(path string)) *MockService_PublicUrl_Call
- func (_c *MockService_PublicUrl_Call) RunAndReturn(run func(string) (string, error)) *MockService_PublicUrl_Call
- type MockService_Reload_Call
- type MockService_RenderTemplate_Call
- func (_c *MockService_RenderTemplate_Call) Return(_a0 string, _a1 error) *MockService_RenderTemplate_Call
- func (_c *MockService_RenderTemplate_Call) Run(run func(text string, params parameters.Parameters)) *MockService_RenderTemplate_Call
- func (_c *MockService_RenderTemplate_Call) RunAndReturn(run func(string, parameters.Parameters) (string, error)) *MockService_RenderTemplate_Call
- type MockService_Restart_Call
- type MockService_RunDir_Call
- type MockService_Sandbox_Call
- type MockService_ScriptDir_Call
- type MockService_ServerParameters_Call
- func (_c *MockService_ServerParameters_Call) Return(_a0 parameters.Parameters) *MockService_ServerParameters_Call
- func (_c *MockService_ServerParameters_Call) Run(run func()) *MockService_ServerParameters_Call
- func (_c *MockService_ServerParameters_Call) RunAndReturn(run func() parameters.Parameters) *MockService_ServerParameters_Call
- type MockService_Server_Call
- type MockService_SetTemplate_Call
- type MockService_Start_Call
- type MockService_Stop_Call
- type MockService_Task_Call
- type MockService_User_Call
- type MockService_WorkspaceConfigPaths_Call
- func (_c *MockService_WorkspaceConfigPaths_Call) Return(_a0 map[string]string) *MockService_WorkspaceConfigPaths_Call
- func (_c *MockService_WorkspaceConfigPaths_Call) Run(run func()) *MockService_WorkspaceConfigPaths_Call
- func (_c *MockService_WorkspaceConfigPaths_Call) RunAndReturn(run func() map[string]string) *MockService_WorkspaceConfigPaths_Call
- type MockService_WorkspaceScriptPaths_Call
- func (_c *MockService_WorkspaceScriptPaths_Call) Return(_a0 map[string]string) *MockService_WorkspaceScriptPaths_Call
- func (_c *MockService_WorkspaceScriptPaths_Call) Run(run func()) *MockService_WorkspaceScriptPaths_Call
- func (_c *MockService_WorkspaceScriptPaths_Call) RunAndReturn(run func() map[string]string) *MockService_WorkspaceScriptPaths_Call
- type MockService_Workspace_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
func (*MockMaker) Make ¶
func (_m *MockMaker) Make(config map[string]types.Service, dflts *defaults.Defaults, scriptResources scripts.Scripts, srvs servers.Servers, _a4 environments.Environments, instanceName string, instanceIdx int, instanceWorkspace string) (services.ServiceLocator, error)
Make provides a mock function with given fields: config, dflts, scriptResources, srvs, _a4, instanceName, instanceIdx, instanceWorkspace
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) Make ¶
func (_e *MockMaker_Expecter) Make(config interface{}, dflts interface{}, scriptResources interface{}, srvs interface{}, _a4 interface{}, instanceName interface{}, instanceIdx interface{}, instanceWorkspace interface{}) *MockMaker_Make_Call
Make is a helper method to define mock.On call
- config map[string]types.Service
- dflts *defaults.Defaults
- scriptResources scripts.Scripts
- srvs servers.Servers
- _a4 environments.Environments
- instanceName string
- instanceIdx int
- instanceWorkspace string
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 services.ServiceLocator, _a1 error) *MockMaker_Make_Call
func (*MockMaker_Make_Call) Run ¶
func (_c *MockMaker_Make_Call) Run(run func(config map[string]types.Service, dflts *defaults.Defaults, scriptResources scripts.Scripts, srvs servers.Servers, _a4 environments.Environments, instanceName string, instanceIdx int, instanceWorkspace string)) *MockMaker_Make_Call
func (*MockMaker_Make_Call) RunAndReturn ¶
func (_c *MockMaker_Make_Call) RunAndReturn(run func(map[string]types.Service, *defaults.Defaults, scripts.Scripts, servers.Servers, environments.Environments, string, int, string) (services.ServiceLocator, error)) *MockMaker_Make_Call
type MockService ¶
MockService is an autogenerated mock type for the Service type
func NewMockService ¶
func NewMockService(t interface { mock.TestingT Cleanup(func()) }) *MockService
NewMockService creates a new instance of MockService. 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 (*MockService) ConfDir ¶
func (_m *MockService) ConfDir() (string, error)
ConfDir provides a mock function with given fields:
func (*MockService) Dirs ¶
func (_m *MockService) Dirs() map[dir.DirType]string
Dirs provides a mock function with given fields:
func (*MockService) EXPECT ¶
func (_m *MockService) EXPECT() *MockService_Expecter
func (*MockService) Environment ¶
func (_m *MockService) Environment() environment.Environment
Environment provides a mock function with given fields:
func (*MockService) EnvironmentConfigPaths ¶
func (_m *MockService) EnvironmentConfigPaths() map[string]string
EnvironmentConfigPaths provides a mock function with given fields:
func (*MockService) EnvironmentScriptPaths ¶
func (_m *MockService) EnvironmentScriptPaths() map[string]string
EnvironmentScriptPaths provides a mock function with given fields:
func (*MockService) Executable ¶
func (_m *MockService) Executable() (string, error)
Executable provides a mock function with given fields:
func (*MockService) FullName ¶
func (_m *MockService) FullName() string
FullName provides a mock function with given fields:
func (*MockService) Group ¶
func (_m *MockService) Group() string
Group provides a mock function with given fields:
func (*MockService) IsPublic ¶
func (_m *MockService) IsPublic() bool
IsPublic provides a mock function with given fields:
func (*MockService) LocalAddress ¶
func (_m *MockService) LocalAddress() string
LocalAddress provides a mock function with given fields:
func (*MockService) Name ¶
func (_m *MockService) Name() string
Name provides a mock function with given fields:
func (*MockService) OutputScanner ¶
func (_m *MockService) OutputScanner(ctx context.Context, outputType output.Type) (*bufio.Scanner, error)
OutputScanner provides a mock function with given fields: ctx, outputType
func (*MockService) Pid ¶
func (_m *MockService) Pid() (int, error)
Pid provides a mock function with given fields:
func (*MockService) Port ¶
func (_m *MockService) Port() int32
Port provides a mock function with given fields:
func (*MockService) PrivateAddress ¶
func (_m *MockService) PrivateAddress() string
PrivateAddress provides a mock function with given fields:
func (*MockService) PrivateUrl ¶
func (_m *MockService) PrivateUrl() (string, error)
PrivateUrl provides a mock function with given fields:
func (*MockService) PublicUrl ¶
func (_m *MockService) PublicUrl(path string) (string, error)
PublicUrl provides a mock function with given fields: path
func (*MockService) Reload ¶
func (_m *MockService) Reload(ctx context.Context) error
Reload provides a mock function with given fields: ctx
func (*MockService) RenderTemplate ¶
func (_m *MockService) RenderTemplate(text string, params parameters.Parameters) (string, error)
RenderTemplate provides a mock function with given fields: text, params
func (*MockService) Restart ¶
func (_m *MockService) Restart(ctx context.Context) error
Restart provides a mock function with given fields: ctx
func (*MockService) RunDir ¶
func (_m *MockService) RunDir() (string, error)
RunDir provides a mock function with given fields:
func (*MockService) Sandbox ¶
func (_m *MockService) Sandbox() sandbox.Sandbox
Sandbox provides a mock function with given fields:
func (*MockService) ScriptDir ¶
func (_m *MockService) ScriptDir() (string, error)
ScriptDir provides a mock function with given fields:
func (*MockService) Server ¶
func (_m *MockService) Server() servers.Server
Server provides a mock function with given fields:
func (*MockService) ServerParameters ¶
func (_m *MockService) ServerParameters() parameters.Parameters
ServerParameters provides a mock function with given fields:
func (*MockService) SetTemplate ¶
func (_m *MockService) SetTemplate(_a0 template.Template)
SetTemplate provides a mock function with given fields: _a0
func (*MockService) Start ¶
func (_m *MockService) Start(ctx context.Context) error
Start provides a mock function with given fields: ctx
func (*MockService) Stop ¶
func (_m *MockService) Stop(ctx context.Context) error
Stop provides a mock function with given fields: ctx
func (*MockService) Task ¶
func (_m *MockService) Task() task.Task
Task provides a mock function with given fields:
func (*MockService) User ¶
func (_m *MockService) User() string
User provides a mock function with given fields:
func (*MockService) Workspace ¶
func (_m *MockService) Workspace() string
Workspace provides a mock function with given fields:
func (*MockService) WorkspaceConfigPaths ¶
func (_m *MockService) WorkspaceConfigPaths() map[string]string
WorkspaceConfigPaths provides a mock function with given fields:
func (*MockService) WorkspaceScriptPaths ¶
func (_m *MockService) WorkspaceScriptPaths() map[string]string
WorkspaceScriptPaths provides a mock function with given fields:
type MockServiceLocator ¶
MockServiceLocator is an autogenerated mock type for the ServiceLocator type
func NewMockServiceLocator ¶
func NewMockServiceLocator(t interface { mock.TestingT Cleanup(func()) }) *MockServiceLocator
NewMockServiceLocator creates a new instance of MockServiceLocator. 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 (*MockServiceLocator) EXPECT ¶
func (_m *MockServiceLocator) EXPECT() *MockServiceLocator_Expecter
func (*MockServiceLocator) Find ¶
func (_m *MockServiceLocator) Find(name string) (services.Service, error)
Find provides a mock function with given fields: name
func (*MockServiceLocator) Services ¶
func (_m *MockServiceLocator) Services() services.Services
Services provides a mock function with given fields:
type MockServiceLocator_Expecter ¶
type MockServiceLocator_Expecter struct {
// contains filtered or unexported fields
}
func (*MockServiceLocator_Expecter) Find ¶
func (_e *MockServiceLocator_Expecter) Find(name interface{}) *MockServiceLocator_Find_Call
Find is a helper method to define mock.On call
- name string
func (*MockServiceLocator_Expecter) Services ¶
func (_e *MockServiceLocator_Expecter) Services() *MockServiceLocator_Services_Call
Services is a helper method to define mock.On call
type MockServiceLocator_Find_Call ¶
MockServiceLocator_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*MockServiceLocator_Find_Call) Return ¶
func (_c *MockServiceLocator_Find_Call) Return(_a0 services.Service, _a1 error) *MockServiceLocator_Find_Call
func (*MockServiceLocator_Find_Call) Run ¶
func (_c *MockServiceLocator_Find_Call) Run(run func(name string)) *MockServiceLocator_Find_Call
func (*MockServiceLocator_Find_Call) RunAndReturn ¶
func (_c *MockServiceLocator_Find_Call) RunAndReturn(run func(string) (services.Service, error)) *MockServiceLocator_Find_Call
type MockServiceLocator_Services_Call ¶
MockServiceLocator_Services_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Services'
func (*MockServiceLocator_Services_Call) Return ¶
func (_c *MockServiceLocator_Services_Call) Return(_a0 services.Services) *MockServiceLocator_Services_Call
func (*MockServiceLocator_Services_Call) Run ¶
func (_c *MockServiceLocator_Services_Call) Run(run func()) *MockServiceLocator_Services_Call
func (*MockServiceLocator_Services_Call) RunAndReturn ¶
func (_c *MockServiceLocator_Services_Call) RunAndReturn(run func() services.Services) *MockServiceLocator_Services_Call
type MockService_ConfDir_Call ¶
MockService_ConfDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfDir'
func (*MockService_ConfDir_Call) Return ¶
func (_c *MockService_ConfDir_Call) Return(_a0 string, _a1 error) *MockService_ConfDir_Call
func (*MockService_ConfDir_Call) Run ¶
func (_c *MockService_ConfDir_Call) Run(run func()) *MockService_ConfDir_Call
func (*MockService_ConfDir_Call) RunAndReturn ¶
func (_c *MockService_ConfDir_Call) RunAndReturn(run func() (string, error)) *MockService_ConfDir_Call
type MockService_Dirs_Call ¶
MockService_Dirs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dirs'
func (*MockService_Dirs_Call) Return ¶
func (_c *MockService_Dirs_Call) Return(_a0 map[dir.DirType]string) *MockService_Dirs_Call
func (*MockService_Dirs_Call) Run ¶
func (_c *MockService_Dirs_Call) Run(run func()) *MockService_Dirs_Call
func (*MockService_Dirs_Call) RunAndReturn ¶
func (_c *MockService_Dirs_Call) RunAndReturn(run func() map[dir.DirType]string) *MockService_Dirs_Call
type MockService_EnvironmentConfigPaths_Call ¶
MockService_EnvironmentConfigPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnvironmentConfigPaths'
func (*MockService_EnvironmentConfigPaths_Call) Return ¶
func (_c *MockService_EnvironmentConfigPaths_Call) Return(_a0 map[string]string) *MockService_EnvironmentConfigPaths_Call
func (*MockService_EnvironmentConfigPaths_Call) Run ¶
func (_c *MockService_EnvironmentConfigPaths_Call) Run(run func()) *MockService_EnvironmentConfigPaths_Call
func (*MockService_EnvironmentConfigPaths_Call) RunAndReturn ¶
func (_c *MockService_EnvironmentConfigPaths_Call) RunAndReturn(run func() map[string]string) *MockService_EnvironmentConfigPaths_Call
type MockService_EnvironmentScriptPaths_Call ¶
MockService_EnvironmentScriptPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnvironmentScriptPaths'
func (*MockService_EnvironmentScriptPaths_Call) Return ¶
func (_c *MockService_EnvironmentScriptPaths_Call) Return(_a0 map[string]string) *MockService_EnvironmentScriptPaths_Call
func (*MockService_EnvironmentScriptPaths_Call) Run ¶
func (_c *MockService_EnvironmentScriptPaths_Call) Run(run func()) *MockService_EnvironmentScriptPaths_Call
func (*MockService_EnvironmentScriptPaths_Call) RunAndReturn ¶
func (_c *MockService_EnvironmentScriptPaths_Call) RunAndReturn(run func() map[string]string) *MockService_EnvironmentScriptPaths_Call
type MockService_Environment_Call ¶
MockService_Environment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Environment'
func (*MockService_Environment_Call) Return ¶
func (_c *MockService_Environment_Call) Return(_a0 environment.Environment) *MockService_Environment_Call
func (*MockService_Environment_Call) Run ¶
func (_c *MockService_Environment_Call) Run(run func()) *MockService_Environment_Call
func (*MockService_Environment_Call) RunAndReturn ¶
func (_c *MockService_Environment_Call) RunAndReturn(run func() environment.Environment) *MockService_Environment_Call
type MockService_Executable_Call ¶
MockService_Executable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Executable'
func (*MockService_Executable_Call) Return ¶
func (_c *MockService_Executable_Call) Return(_a0 string, _a1 error) *MockService_Executable_Call
func (*MockService_Executable_Call) Run ¶
func (_c *MockService_Executable_Call) Run(run func()) *MockService_Executable_Call
func (*MockService_Executable_Call) RunAndReturn ¶
func (_c *MockService_Executable_Call) RunAndReturn(run func() (string, error)) *MockService_Executable_Call
type MockService_Expecter ¶
type MockService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockService_Expecter) ConfDir ¶
func (_e *MockService_Expecter) ConfDir() *MockService_ConfDir_Call
ConfDir is a helper method to define mock.On call
func (*MockService_Expecter) Dirs ¶
func (_e *MockService_Expecter) Dirs() *MockService_Dirs_Call
Dirs is a helper method to define mock.On call
func (*MockService_Expecter) Environment ¶
func (_e *MockService_Expecter) Environment() *MockService_Environment_Call
Environment is a helper method to define mock.On call
func (*MockService_Expecter) EnvironmentConfigPaths ¶
func (_e *MockService_Expecter) EnvironmentConfigPaths() *MockService_EnvironmentConfigPaths_Call
EnvironmentConfigPaths is a helper method to define mock.On call
func (*MockService_Expecter) EnvironmentScriptPaths ¶
func (_e *MockService_Expecter) EnvironmentScriptPaths() *MockService_EnvironmentScriptPaths_Call
EnvironmentScriptPaths is a helper method to define mock.On call
func (*MockService_Expecter) Executable ¶
func (_e *MockService_Expecter) Executable() *MockService_Executable_Call
Executable is a helper method to define mock.On call
func (*MockService_Expecter) FullName ¶
func (_e *MockService_Expecter) FullName() *MockService_FullName_Call
FullName is a helper method to define mock.On call
func (*MockService_Expecter) Group ¶
func (_e *MockService_Expecter) Group() *MockService_Group_Call
Group is a helper method to define mock.On call
func (*MockService_Expecter) IsPublic ¶
func (_e *MockService_Expecter) IsPublic() *MockService_IsPublic_Call
IsPublic is a helper method to define mock.On call
func (*MockService_Expecter) LocalAddress ¶
func (_e *MockService_Expecter) LocalAddress() *MockService_LocalAddress_Call
LocalAddress is a helper method to define mock.On call
func (*MockService_Expecter) Name ¶
func (_e *MockService_Expecter) Name() *MockService_Name_Call
Name is a helper method to define mock.On call
func (*MockService_Expecter) OutputScanner ¶
func (_e *MockService_Expecter) OutputScanner(ctx interface{}, outputType interface{}) *MockService_OutputScanner_Call
OutputScanner is a helper method to define mock.On call
- ctx context.Context
- outputType output.Type
func (*MockService_Expecter) Pid ¶
func (_e *MockService_Expecter) Pid() *MockService_Pid_Call
Pid is a helper method to define mock.On call
func (*MockService_Expecter) Port ¶
func (_e *MockService_Expecter) Port() *MockService_Port_Call
Port is a helper method to define mock.On call
func (*MockService_Expecter) PrivateAddress ¶
func (_e *MockService_Expecter) PrivateAddress() *MockService_PrivateAddress_Call
PrivateAddress is a helper method to define mock.On call
func (*MockService_Expecter) PrivateUrl ¶
func (_e *MockService_Expecter) PrivateUrl() *MockService_PrivateUrl_Call
PrivateUrl is a helper method to define mock.On call
func (*MockService_Expecter) PublicUrl ¶
func (_e *MockService_Expecter) PublicUrl(path interface{}) *MockService_PublicUrl_Call
PublicUrl is a helper method to define mock.On call
- path string
func (*MockService_Expecter) Reload ¶
func (_e *MockService_Expecter) Reload(ctx interface{}) *MockService_Reload_Call
Reload is a helper method to define mock.On call
- ctx context.Context
func (*MockService_Expecter) RenderTemplate ¶
func (_e *MockService_Expecter) RenderTemplate(text interface{}, params interface{}) *MockService_RenderTemplate_Call
RenderTemplate is a helper method to define mock.On call
- text string
- params parameters.Parameters
func (*MockService_Expecter) Restart ¶
func (_e *MockService_Expecter) Restart(ctx interface{}) *MockService_Restart_Call
Restart is a helper method to define mock.On call
- ctx context.Context
func (*MockService_Expecter) RunDir ¶
func (_e *MockService_Expecter) RunDir() *MockService_RunDir_Call
RunDir is a helper method to define mock.On call
func (*MockService_Expecter) Sandbox ¶
func (_e *MockService_Expecter) Sandbox() *MockService_Sandbox_Call
Sandbox is a helper method to define mock.On call
func (*MockService_Expecter) ScriptDir ¶
func (_e *MockService_Expecter) ScriptDir() *MockService_ScriptDir_Call
ScriptDir is a helper method to define mock.On call
func (*MockService_Expecter) Server ¶
func (_e *MockService_Expecter) Server() *MockService_Server_Call
Server is a helper method to define mock.On call
func (*MockService_Expecter) ServerParameters ¶
func (_e *MockService_Expecter) ServerParameters() *MockService_ServerParameters_Call
ServerParameters is a helper method to define mock.On call
func (*MockService_Expecter) SetTemplate ¶
func (_e *MockService_Expecter) SetTemplate(_a0 interface{}) *MockService_SetTemplate_Call
SetTemplate is a helper method to define mock.On call
- _a0 template.Template
func (*MockService_Expecter) Start ¶
func (_e *MockService_Expecter) Start(ctx interface{}) *MockService_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*MockService_Expecter) Stop ¶
func (_e *MockService_Expecter) Stop(ctx interface{}) *MockService_Stop_Call
Stop is a helper method to define mock.On call
- ctx context.Context
func (*MockService_Expecter) Task ¶
func (_e *MockService_Expecter) Task() *MockService_Task_Call
Task is a helper method to define mock.On call
func (*MockService_Expecter) User ¶
func (_e *MockService_Expecter) User() *MockService_User_Call
User is a helper method to define mock.On call
func (*MockService_Expecter) Workspace ¶
func (_e *MockService_Expecter) Workspace() *MockService_Workspace_Call
Workspace is a helper method to define mock.On call
func (*MockService_Expecter) WorkspaceConfigPaths ¶
func (_e *MockService_Expecter) WorkspaceConfigPaths() *MockService_WorkspaceConfigPaths_Call
WorkspaceConfigPaths is a helper method to define mock.On call
func (*MockService_Expecter) WorkspaceScriptPaths ¶
func (_e *MockService_Expecter) WorkspaceScriptPaths() *MockService_WorkspaceScriptPaths_Call
WorkspaceScriptPaths is a helper method to define mock.On call
type MockService_FullName_Call ¶
MockService_FullName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FullName'
func (*MockService_FullName_Call) Return ¶
func (_c *MockService_FullName_Call) Return(_a0 string) *MockService_FullName_Call
func (*MockService_FullName_Call) Run ¶
func (_c *MockService_FullName_Call) Run(run func()) *MockService_FullName_Call
func (*MockService_FullName_Call) RunAndReturn ¶
func (_c *MockService_FullName_Call) RunAndReturn(run func() string) *MockService_FullName_Call
type MockService_Group_Call ¶
MockService_Group_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Group'
func (*MockService_Group_Call) Return ¶
func (_c *MockService_Group_Call) Return(_a0 string) *MockService_Group_Call
func (*MockService_Group_Call) Run ¶
func (_c *MockService_Group_Call) Run(run func()) *MockService_Group_Call
func (*MockService_Group_Call) RunAndReturn ¶
func (_c *MockService_Group_Call) RunAndReturn(run func() string) *MockService_Group_Call
type MockService_IsPublic_Call ¶
MockService_IsPublic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPublic'
func (*MockService_IsPublic_Call) Return ¶
func (_c *MockService_IsPublic_Call) Return(_a0 bool) *MockService_IsPublic_Call
func (*MockService_IsPublic_Call) Run ¶
func (_c *MockService_IsPublic_Call) Run(run func()) *MockService_IsPublic_Call
func (*MockService_IsPublic_Call) RunAndReturn ¶
func (_c *MockService_IsPublic_Call) RunAndReturn(run func() bool) *MockService_IsPublic_Call
type MockService_LocalAddress_Call ¶
MockService_LocalAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LocalAddress'
func (*MockService_LocalAddress_Call) Return ¶
func (_c *MockService_LocalAddress_Call) Return(_a0 string) *MockService_LocalAddress_Call
func (*MockService_LocalAddress_Call) Run ¶
func (_c *MockService_LocalAddress_Call) Run(run func()) *MockService_LocalAddress_Call
func (*MockService_LocalAddress_Call) RunAndReturn ¶
func (_c *MockService_LocalAddress_Call) RunAndReturn(run func() string) *MockService_LocalAddress_Call
type MockService_Name_Call ¶
MockService_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*MockService_Name_Call) Return ¶
func (_c *MockService_Name_Call) Return(_a0 string) *MockService_Name_Call
func (*MockService_Name_Call) Run ¶
func (_c *MockService_Name_Call) Run(run func()) *MockService_Name_Call
func (*MockService_Name_Call) RunAndReturn ¶
func (_c *MockService_Name_Call) RunAndReturn(run func() string) *MockService_Name_Call
type MockService_OutputScanner_Call ¶
MockService_OutputScanner_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OutputScanner'
func (*MockService_OutputScanner_Call) Return ¶
func (_c *MockService_OutputScanner_Call) Return(_a0 *bufio.Scanner, _a1 error) *MockService_OutputScanner_Call
func (*MockService_OutputScanner_Call) Run ¶
func (_c *MockService_OutputScanner_Call) Run(run func(ctx context.Context, outputType output.Type)) *MockService_OutputScanner_Call
func (*MockService_OutputScanner_Call) RunAndReturn ¶
func (_c *MockService_OutputScanner_Call) RunAndReturn(run func(context.Context, output.Type) (*bufio.Scanner, error)) *MockService_OutputScanner_Call
type MockService_Pid_Call ¶
MockService_Pid_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pid'
func (*MockService_Pid_Call) Return ¶
func (_c *MockService_Pid_Call) Return(_a0 int, _a1 error) *MockService_Pid_Call
func (*MockService_Pid_Call) Run ¶
func (_c *MockService_Pid_Call) Run(run func()) *MockService_Pid_Call
func (*MockService_Pid_Call) RunAndReturn ¶
func (_c *MockService_Pid_Call) RunAndReturn(run func() (int, error)) *MockService_Pid_Call
type MockService_Port_Call ¶
MockService_Port_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Port'
func (*MockService_Port_Call) Return ¶
func (_c *MockService_Port_Call) Return(_a0 int32) *MockService_Port_Call
func (*MockService_Port_Call) Run ¶
func (_c *MockService_Port_Call) Run(run func()) *MockService_Port_Call
func (*MockService_Port_Call) RunAndReturn ¶
func (_c *MockService_Port_Call) RunAndReturn(run func() int32) *MockService_Port_Call
type MockService_PrivateAddress_Call ¶
MockService_PrivateAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrivateAddress'
func (*MockService_PrivateAddress_Call) Return ¶
func (_c *MockService_PrivateAddress_Call) Return(_a0 string) *MockService_PrivateAddress_Call
func (*MockService_PrivateAddress_Call) Run ¶
func (_c *MockService_PrivateAddress_Call) Run(run func()) *MockService_PrivateAddress_Call
func (*MockService_PrivateAddress_Call) RunAndReturn ¶
func (_c *MockService_PrivateAddress_Call) RunAndReturn(run func() string) *MockService_PrivateAddress_Call
type MockService_PrivateUrl_Call ¶
MockService_PrivateUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrivateUrl'
func (*MockService_PrivateUrl_Call) Return ¶
func (_c *MockService_PrivateUrl_Call) Return(_a0 string, _a1 error) *MockService_PrivateUrl_Call
func (*MockService_PrivateUrl_Call) Run ¶
func (_c *MockService_PrivateUrl_Call) Run(run func()) *MockService_PrivateUrl_Call
func (*MockService_PrivateUrl_Call) RunAndReturn ¶
func (_c *MockService_PrivateUrl_Call) RunAndReturn(run func() (string, error)) *MockService_PrivateUrl_Call
type MockService_PublicUrl_Call ¶
MockService_PublicUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublicUrl'
func (*MockService_PublicUrl_Call) Return ¶
func (_c *MockService_PublicUrl_Call) Return(_a0 string, _a1 error) *MockService_PublicUrl_Call
func (*MockService_PublicUrl_Call) Run ¶
func (_c *MockService_PublicUrl_Call) Run(run func(path string)) *MockService_PublicUrl_Call
func (*MockService_PublicUrl_Call) RunAndReturn ¶
func (_c *MockService_PublicUrl_Call) RunAndReturn(run func(string) (string, error)) *MockService_PublicUrl_Call
type MockService_Reload_Call ¶
MockService_Reload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reload'
func (*MockService_Reload_Call) Return ¶
func (_c *MockService_Reload_Call) Return(_a0 error) *MockService_Reload_Call
func (*MockService_Reload_Call) Run ¶
func (_c *MockService_Reload_Call) Run(run func(ctx context.Context)) *MockService_Reload_Call
func (*MockService_Reload_Call) RunAndReturn ¶
func (_c *MockService_Reload_Call) RunAndReturn(run func(context.Context) error) *MockService_Reload_Call
type MockService_RenderTemplate_Call ¶
MockService_RenderTemplate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenderTemplate'
func (*MockService_RenderTemplate_Call) Return ¶
func (_c *MockService_RenderTemplate_Call) Return(_a0 string, _a1 error) *MockService_RenderTemplate_Call
func (*MockService_RenderTemplate_Call) Run ¶
func (_c *MockService_RenderTemplate_Call) Run(run func(text string, params parameters.Parameters)) *MockService_RenderTemplate_Call
func (*MockService_RenderTemplate_Call) RunAndReturn ¶
func (_c *MockService_RenderTemplate_Call) RunAndReturn(run func(string, parameters.Parameters) (string, error)) *MockService_RenderTemplate_Call
type MockService_Restart_Call ¶
MockService_Restart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Restart'
func (*MockService_Restart_Call) Return ¶
func (_c *MockService_Restart_Call) Return(_a0 error) *MockService_Restart_Call
func (*MockService_Restart_Call) Run ¶
func (_c *MockService_Restart_Call) Run(run func(ctx context.Context)) *MockService_Restart_Call
func (*MockService_Restart_Call) RunAndReturn ¶
func (_c *MockService_Restart_Call) RunAndReturn(run func(context.Context) error) *MockService_Restart_Call
type MockService_RunDir_Call ¶
MockService_RunDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunDir'
func (*MockService_RunDir_Call) Return ¶
func (_c *MockService_RunDir_Call) Return(_a0 string, _a1 error) *MockService_RunDir_Call
func (*MockService_RunDir_Call) Run ¶
func (_c *MockService_RunDir_Call) Run(run func()) *MockService_RunDir_Call
func (*MockService_RunDir_Call) RunAndReturn ¶
func (_c *MockService_RunDir_Call) RunAndReturn(run func() (string, error)) *MockService_RunDir_Call
type MockService_Sandbox_Call ¶
MockService_Sandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sandbox'
func (*MockService_Sandbox_Call) Return ¶
func (_c *MockService_Sandbox_Call) Return(_a0 sandbox.Sandbox) *MockService_Sandbox_Call
func (*MockService_Sandbox_Call) Run ¶
func (_c *MockService_Sandbox_Call) Run(run func()) *MockService_Sandbox_Call
func (*MockService_Sandbox_Call) RunAndReturn ¶
func (_c *MockService_Sandbox_Call) RunAndReturn(run func() sandbox.Sandbox) *MockService_Sandbox_Call
type MockService_ScriptDir_Call ¶
MockService_ScriptDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScriptDir'
func (*MockService_ScriptDir_Call) Return ¶
func (_c *MockService_ScriptDir_Call) Return(_a0 string, _a1 error) *MockService_ScriptDir_Call
func (*MockService_ScriptDir_Call) Run ¶
func (_c *MockService_ScriptDir_Call) Run(run func()) *MockService_ScriptDir_Call
func (*MockService_ScriptDir_Call) RunAndReturn ¶
func (_c *MockService_ScriptDir_Call) RunAndReturn(run func() (string, error)) *MockService_ScriptDir_Call
type MockService_ServerParameters_Call ¶
MockService_ServerParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerParameters'
func (*MockService_ServerParameters_Call) Return ¶
func (_c *MockService_ServerParameters_Call) Return(_a0 parameters.Parameters) *MockService_ServerParameters_Call
func (*MockService_ServerParameters_Call) Run ¶
func (_c *MockService_ServerParameters_Call) Run(run func()) *MockService_ServerParameters_Call
func (*MockService_ServerParameters_Call) RunAndReturn ¶
func (_c *MockService_ServerParameters_Call) RunAndReturn(run func() parameters.Parameters) *MockService_ServerParameters_Call
type MockService_Server_Call ¶
MockService_Server_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Server'
func (*MockService_Server_Call) Return ¶
func (_c *MockService_Server_Call) Return(_a0 servers.Server) *MockService_Server_Call
func (*MockService_Server_Call) Run ¶
func (_c *MockService_Server_Call) Run(run func()) *MockService_Server_Call
func (*MockService_Server_Call) RunAndReturn ¶
func (_c *MockService_Server_Call) RunAndReturn(run func() servers.Server) *MockService_Server_Call
type MockService_SetTemplate_Call ¶
MockService_SetTemplate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTemplate'
func (*MockService_SetTemplate_Call) Return ¶
func (_c *MockService_SetTemplate_Call) Return() *MockService_SetTemplate_Call
func (*MockService_SetTemplate_Call) Run ¶
func (_c *MockService_SetTemplate_Call) Run(run func(_a0 template.Template)) *MockService_SetTemplate_Call
func (*MockService_SetTemplate_Call) RunAndReturn ¶
func (_c *MockService_SetTemplate_Call) RunAndReturn(run func(template.Template)) *MockService_SetTemplate_Call
type MockService_Start_Call ¶
MockService_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MockService_Start_Call) Return ¶
func (_c *MockService_Start_Call) Return(_a0 error) *MockService_Start_Call
func (*MockService_Start_Call) Run ¶
func (_c *MockService_Start_Call) Run(run func(ctx context.Context)) *MockService_Start_Call
func (*MockService_Start_Call) RunAndReturn ¶
func (_c *MockService_Start_Call) RunAndReturn(run func(context.Context) error) *MockService_Start_Call
type MockService_Stop_Call ¶
MockService_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*MockService_Stop_Call) Return ¶
func (_c *MockService_Stop_Call) Return(_a0 error) *MockService_Stop_Call
func (*MockService_Stop_Call) Run ¶
func (_c *MockService_Stop_Call) Run(run func(ctx context.Context)) *MockService_Stop_Call
func (*MockService_Stop_Call) RunAndReturn ¶
func (_c *MockService_Stop_Call) RunAndReturn(run func(context.Context) error) *MockService_Stop_Call
type MockService_Task_Call ¶
MockService_Task_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Task'
func (*MockService_Task_Call) Return ¶
func (_c *MockService_Task_Call) Return(_a0 task.Task) *MockService_Task_Call
func (*MockService_Task_Call) Run ¶
func (_c *MockService_Task_Call) Run(run func()) *MockService_Task_Call
func (*MockService_Task_Call) RunAndReturn ¶
func (_c *MockService_Task_Call) RunAndReturn(run func() task.Task) *MockService_Task_Call
type MockService_User_Call ¶
MockService_User_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'User'
func (*MockService_User_Call) Return ¶
func (_c *MockService_User_Call) Return(_a0 string) *MockService_User_Call
func (*MockService_User_Call) Run ¶
func (_c *MockService_User_Call) Run(run func()) *MockService_User_Call
func (*MockService_User_Call) RunAndReturn ¶
func (_c *MockService_User_Call) RunAndReturn(run func() string) *MockService_User_Call
type MockService_WorkspaceConfigPaths_Call ¶
MockService_WorkspaceConfigPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkspaceConfigPaths'
func (*MockService_WorkspaceConfigPaths_Call) Return ¶
func (_c *MockService_WorkspaceConfigPaths_Call) Return(_a0 map[string]string) *MockService_WorkspaceConfigPaths_Call
func (*MockService_WorkspaceConfigPaths_Call) Run ¶
func (_c *MockService_WorkspaceConfigPaths_Call) Run(run func()) *MockService_WorkspaceConfigPaths_Call
func (*MockService_WorkspaceConfigPaths_Call) RunAndReturn ¶
func (_c *MockService_WorkspaceConfigPaths_Call) RunAndReturn(run func() map[string]string) *MockService_WorkspaceConfigPaths_Call
type MockService_WorkspaceScriptPaths_Call ¶
MockService_WorkspaceScriptPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkspaceScriptPaths'
func (*MockService_WorkspaceScriptPaths_Call) Return ¶
func (_c *MockService_WorkspaceScriptPaths_Call) Return(_a0 map[string]string) *MockService_WorkspaceScriptPaths_Call
func (*MockService_WorkspaceScriptPaths_Call) Run ¶
func (_c *MockService_WorkspaceScriptPaths_Call) Run(run func()) *MockService_WorkspaceScriptPaths_Call
func (*MockService_WorkspaceScriptPaths_Call) RunAndReturn ¶
func (_c *MockService_WorkspaceScriptPaths_Call) RunAndReturn(run func() map[string]string) *MockService_WorkspaceScriptPaths_Call
type MockService_Workspace_Call ¶
MockService_Workspace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Workspace'
func (*MockService_Workspace_Call) Return ¶
func (_c *MockService_Workspace_Call) Return(_a0 string) *MockService_Workspace_Call
func (*MockService_Workspace_Call) Run ¶
func (_c *MockService_Workspace_Call) Run(run func()) *MockService_Workspace_Call
func (*MockService_Workspace_Call) RunAndReturn ¶
func (_c *MockService_Workspace_Call) RunAndReturn(run func() string) *MockService_Workspace_Call