servers

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMaker

type MockMaker struct {
	mock.Mock
}

MockMaker is an autogenerated mock type for the Maker type

func NewMockMaker

func NewMockMaker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMaker

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 *types.Spec) (servers.Servers, error)

Make provides a mock function with given fields: config

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

type MockMaker_Make_Call struct {
	*mock.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 (*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

type MockServer struct {
	mock.Mock
}

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) Sandbox

func (_m *MockServer) Sandbox(name providers.Type) (sandbox.Sandbox, bool)

Sandbox provides a mock function with given fields: name

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

type MockServer_Config_Call struct {
	*mock.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 (*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

type MockServer_Configs_Call struct {
	*mock.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 (*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

type MockServer_ExpectAction_Call struct {
	*mock.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 (*MockServer_ExpectAction_Call) Run

func (*MockServer_ExpectAction_Call) RunAndReturn

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

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

Group is a helper method to define mock.On call

func (*MockServer_Expecter) Parameters

Parameters is a helper method to define mock.On call

func (*MockServer_Expecter) Port

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

Templates is a helper method to define mock.On call

func (*MockServer_Expecter) User

User is a helper method to define mock.On call

type MockServer_Group_Call

type MockServer_Group_Call struct {
	*mock.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 (*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

type MockServer_Parameters_Call struct {
	*mock.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 (*MockServer_Parameters_Call) Run

func (*MockServer_Parameters_Call) RunAndReturn

type MockServer_Port_Call

type MockServer_Port_Call struct {
	*mock.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 (*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

type MockServer_Sandbox_Call struct {
	*mock.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 (*MockServer_Sandbox_Call) Run

func (*MockServer_Sandbox_Call) RunAndReturn

type MockServer_Template_Call

type MockServer_Template_Call struct {
	*mock.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 (*MockServer_Template_Call) Run

func (_c *MockServer_Template_Call) Run(run func(name string)) *MockServer_Template_Call

func (*MockServer_Template_Call) RunAndReturn

type MockServer_Templates_Call

type MockServer_Templates_Call struct {
	*mock.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 (*MockServer_Templates_Call) Run

func (*MockServer_Templates_Call) RunAndReturn

type MockServer_User_Call

type MockServer_User_Call struct {
	*mock.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 (*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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL