environment

package
v0.0.7 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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEnvironment

type MockEnvironment struct {
	mock.Mock
}

MockEnvironment is an autogenerated mock type for the Environment type

func NewMockEnvironment

func NewMockEnvironment(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEnvironment

NewMockEnvironment creates a new instance of MockEnvironment. 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 (*MockEnvironment) ContainerRegistry

func (_m *MockEnvironment) ContainerRegistry() *environment.ContainerRegistry

ContainerRegistry provides a mock function with given fields:

func (*MockEnvironment) Destroy

func (_m *MockEnvironment) Destroy(ctx context.Context) error

Destroy provides a mock function with given fields: ctx

func (*MockEnvironment) EXPECT

func (*MockEnvironment) ExecTaskCommand

func (_m *MockEnvironment) ExecTaskCommand(ctx context.Context, ss *environment.ServiceSettings, target task.Task, cmd *environment.Command) error

ExecTaskCommand provides a mock function with given fields: ctx, ss, target, cmd

func (*MockEnvironment) ExecTaskSignal

func (_m *MockEnvironment) ExecTaskSignal(ctx context.Context, ss *environment.ServiceSettings, target task.Task, signal os.Signal) error

ExecTaskSignal provides a mock function with given fields: ctx, ss, target, signal

func (*MockEnvironment) Init

func (_m *MockEnvironment) Init(ctx context.Context) error

Init provides a mock function with given fields: ctx

func (*MockEnvironment) IsUsed

func (_m *MockEnvironment) IsUsed() bool

IsUsed provides a mock function with given fields:

func (*MockEnvironment) MarkUsed

func (_m *MockEnvironment) MarkUsed()

MarkUsed provides a mock function with given fields:

func (*MockEnvironment) Mkdir

func (_m *MockEnvironment) Mkdir(serviceName string, path string, perm fs.FileMode) error

Mkdir provides a mock function with given fields: serviceName, path, perm

func (*MockEnvironment) Output

func (_m *MockEnvironment) Output(ctx context.Context, target task.Task, outputType output.Type) (io.Reader, error)

Output provides a mock function with given fields: ctx, target, outputType

func (*MockEnvironment) PortsEnd

func (_m *MockEnvironment) PortsEnd() int32

PortsEnd provides a mock function with given fields:

func (*MockEnvironment) PortsStart

func (_m *MockEnvironment) PortsStart() int32

PortsStart provides a mock function with given fields:

func (*MockEnvironment) ReservePort

func (_m *MockEnvironment) ReservePort() int32

ReservePort provides a mock function with given fields:

func (*MockEnvironment) RootPath

func (_m *MockEnvironment) RootPath(workspace string) string

RootPath provides a mock function with given fields: workspace

func (*MockEnvironment) RunTask

RunTask provides a mock function with given fields: ctx, ss, cmd

func (*MockEnvironment) ServiceLocalAddress

func (_m *MockEnvironment) ServiceLocalAddress(serviceName string, servicePort int32, serverPort int32) string

ServiceLocalAddress provides a mock function with given fields: serviceName, servicePort, serverPort

func (*MockEnvironment) ServicePrivateAddress

func (_m *MockEnvironment) ServicePrivateAddress(serviceName string, servicePort int32, serverPort int32) string

ServicePrivateAddress provides a mock function with given fields: serviceName, servicePort, serverPort

type MockEnvironment_ContainerRegistry_Call

type MockEnvironment_ContainerRegistry_Call struct {
	*mock.Call
}

MockEnvironment_ContainerRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerRegistry'

func (*MockEnvironment_ContainerRegistry_Call) Return

func (*MockEnvironment_ContainerRegistry_Call) Run

func (*MockEnvironment_ContainerRegistry_Call) RunAndReturn

type MockEnvironment_Destroy_Call

type MockEnvironment_Destroy_Call struct {
	*mock.Call
}

MockEnvironment_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'

func (*MockEnvironment_Destroy_Call) Return

func (*MockEnvironment_Destroy_Call) Run

func (*MockEnvironment_Destroy_Call) RunAndReturn

type MockEnvironment_ExecTaskCommand_Call

type MockEnvironment_ExecTaskCommand_Call struct {
	*mock.Call
}

MockEnvironment_ExecTaskCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecTaskCommand'

func (*MockEnvironment_ExecTaskCommand_Call) Return

func (*MockEnvironment_ExecTaskCommand_Call) Run

type MockEnvironment_ExecTaskSignal_Call

type MockEnvironment_ExecTaskSignal_Call struct {
	*mock.Call
}

MockEnvironment_ExecTaskSignal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecTaskSignal'

func (*MockEnvironment_ExecTaskSignal_Call) Return

func (*MockEnvironment_ExecTaskSignal_Call) Run

func (*MockEnvironment_ExecTaskSignal_Call) RunAndReturn

type MockEnvironment_Expecter

type MockEnvironment_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockEnvironment_Expecter) ContainerRegistry

ContainerRegistry is a helper method to define mock.On call

func (*MockEnvironment_Expecter) Destroy

func (_e *MockEnvironment_Expecter) Destroy(ctx interface{}) *MockEnvironment_Destroy_Call

Destroy is a helper method to define mock.On call

  • ctx context.Context

func (*MockEnvironment_Expecter) ExecTaskCommand

func (_e *MockEnvironment_Expecter) ExecTaskCommand(ctx interface{}, ss interface{}, target interface{}, cmd interface{}) *MockEnvironment_ExecTaskCommand_Call

ExecTaskCommand is a helper method to define mock.On call

  • ctx context.Context
  • ss *environment.ServiceSettings
  • target task.Task
  • cmd *environment.Command

func (*MockEnvironment_Expecter) ExecTaskSignal

func (_e *MockEnvironment_Expecter) ExecTaskSignal(ctx interface{}, ss interface{}, target interface{}, signal interface{}) *MockEnvironment_ExecTaskSignal_Call

ExecTaskSignal is a helper method to define mock.On call

  • ctx context.Context
  • ss *environment.ServiceSettings
  • target task.Task
  • signal os.Signal

func (*MockEnvironment_Expecter) Init

func (_e *MockEnvironment_Expecter) Init(ctx interface{}) *MockEnvironment_Init_Call

Init is a helper method to define mock.On call

  • ctx context.Context

func (*MockEnvironment_Expecter) IsUsed

IsUsed is a helper method to define mock.On call

func (*MockEnvironment_Expecter) MarkUsed

MarkUsed is a helper method to define mock.On call

func (*MockEnvironment_Expecter) Mkdir

func (_e *MockEnvironment_Expecter) Mkdir(serviceName interface{}, path interface{}, perm interface{}) *MockEnvironment_Mkdir_Call

Mkdir is a helper method to define mock.On call

  • serviceName string
  • path string
  • perm fs.FileMode

func (*MockEnvironment_Expecter) Output

func (_e *MockEnvironment_Expecter) Output(ctx interface{}, target interface{}, outputType interface{}) *MockEnvironment_Output_Call

Output is a helper method to define mock.On call

  • ctx context.Context
  • target task.Task
  • outputType output.Type

func (*MockEnvironment_Expecter) PortsEnd

PortsEnd is a helper method to define mock.On call

func (*MockEnvironment_Expecter) PortsStart

PortsStart is a helper method to define mock.On call

func (*MockEnvironment_Expecter) ReservePort

ReservePort is a helper method to define mock.On call

func (*MockEnvironment_Expecter) RootPath

func (_e *MockEnvironment_Expecter) RootPath(workspace interface{}) *MockEnvironment_RootPath_Call

RootPath is a helper method to define mock.On call

  • workspace string

func (*MockEnvironment_Expecter) RunTask

func (_e *MockEnvironment_Expecter) RunTask(ctx interface{}, ss interface{}, cmd interface{}) *MockEnvironment_RunTask_Call

RunTask is a helper method to define mock.On call

  • ctx context.Context
  • ss *environment.ServiceSettings
  • cmd *environment.Command

func (*MockEnvironment_Expecter) ServiceLocalAddress

func (_e *MockEnvironment_Expecter) ServiceLocalAddress(serviceName interface{}, servicePort interface{}, serverPort interface{}) *MockEnvironment_ServiceLocalAddress_Call

ServiceLocalAddress is a helper method to define mock.On call

  • serviceName string
  • servicePort int32
  • serverPort int32

func (*MockEnvironment_Expecter) ServicePrivateAddress

func (_e *MockEnvironment_Expecter) ServicePrivateAddress(serviceName interface{}, servicePort interface{}, serverPort interface{}) *MockEnvironment_ServicePrivateAddress_Call

ServicePrivateAddress is a helper method to define mock.On call

  • serviceName string
  • servicePort int32
  • serverPort int32

type MockEnvironment_Init_Call

type MockEnvironment_Init_Call struct {
	*mock.Call
}

MockEnvironment_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'

func (*MockEnvironment_Init_Call) Return

func (*MockEnvironment_Init_Call) Run

func (*MockEnvironment_Init_Call) RunAndReturn

type MockEnvironment_IsUsed_Call

type MockEnvironment_IsUsed_Call struct {
	*mock.Call
}

MockEnvironment_IsUsed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsUsed'

func (*MockEnvironment_IsUsed_Call) Return

func (*MockEnvironment_IsUsed_Call) Run

func (*MockEnvironment_IsUsed_Call) RunAndReturn

func (_c *MockEnvironment_IsUsed_Call) RunAndReturn(run func() bool) *MockEnvironment_IsUsed_Call

type MockEnvironment_MarkUsed_Call

type MockEnvironment_MarkUsed_Call struct {
	*mock.Call
}

MockEnvironment_MarkUsed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkUsed'

func (*MockEnvironment_MarkUsed_Call) Return

func (*MockEnvironment_MarkUsed_Call) Run

func (*MockEnvironment_MarkUsed_Call) RunAndReturn

func (_c *MockEnvironment_MarkUsed_Call) RunAndReturn(run func()) *MockEnvironment_MarkUsed_Call

type MockEnvironment_Mkdir_Call

type MockEnvironment_Mkdir_Call struct {
	*mock.Call
}

MockEnvironment_Mkdir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mkdir'

func (*MockEnvironment_Mkdir_Call) Return

func (*MockEnvironment_Mkdir_Call) Run

func (_c *MockEnvironment_Mkdir_Call) Run(run func(serviceName string, path string, perm fs.FileMode)) *MockEnvironment_Mkdir_Call

func (*MockEnvironment_Mkdir_Call) RunAndReturn

type MockEnvironment_Output_Call

type MockEnvironment_Output_Call struct {
	*mock.Call
}

MockEnvironment_Output_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Output'

func (*MockEnvironment_Output_Call) Return

func (*MockEnvironment_Output_Call) Run

func (_c *MockEnvironment_Output_Call) Run(run func(ctx context.Context, target task.Task, outputType output.Type)) *MockEnvironment_Output_Call

func (*MockEnvironment_Output_Call) RunAndReturn

type MockEnvironment_PortsEnd_Call

type MockEnvironment_PortsEnd_Call struct {
	*mock.Call
}

MockEnvironment_PortsEnd_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PortsEnd'

func (*MockEnvironment_PortsEnd_Call) Return

func (*MockEnvironment_PortsEnd_Call) Run

func (*MockEnvironment_PortsEnd_Call) RunAndReturn

type MockEnvironment_PortsStart_Call

type MockEnvironment_PortsStart_Call struct {
	*mock.Call
}

MockEnvironment_PortsStart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PortsStart'

func (*MockEnvironment_PortsStart_Call) Return

func (*MockEnvironment_PortsStart_Call) Run

func (*MockEnvironment_PortsStart_Call) RunAndReturn

type MockEnvironment_ReservePort_Call

type MockEnvironment_ReservePort_Call struct {
	*mock.Call
}

MockEnvironment_ReservePort_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReservePort'

func (*MockEnvironment_ReservePort_Call) Return

func (*MockEnvironment_ReservePort_Call) Run

func (*MockEnvironment_ReservePort_Call) RunAndReturn

type MockEnvironment_RootPath_Call

type MockEnvironment_RootPath_Call struct {
	*mock.Call
}

MockEnvironment_RootPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RootPath'

func (*MockEnvironment_RootPath_Call) Return

func (*MockEnvironment_RootPath_Call) Run

func (*MockEnvironment_RootPath_Call) RunAndReturn

type MockEnvironment_RunTask_Call

type MockEnvironment_RunTask_Call struct {
	*mock.Call
}

MockEnvironment_RunTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunTask'

func (*MockEnvironment_RunTask_Call) Return

func (*MockEnvironment_RunTask_Call) Run

func (*MockEnvironment_RunTask_Call) RunAndReturn

type MockEnvironment_ServiceLocalAddress_Call

type MockEnvironment_ServiceLocalAddress_Call struct {
	*mock.Call
}

MockEnvironment_ServiceLocalAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServiceLocalAddress'

func (*MockEnvironment_ServiceLocalAddress_Call) Return

func (*MockEnvironment_ServiceLocalAddress_Call) Run

func (_c *MockEnvironment_ServiceLocalAddress_Call) Run(run func(serviceName string, servicePort int32, serverPort int32)) *MockEnvironment_ServiceLocalAddress_Call

func (*MockEnvironment_ServiceLocalAddress_Call) RunAndReturn

type MockEnvironment_ServicePrivateAddress_Call

type MockEnvironment_ServicePrivateAddress_Call struct {
	*mock.Call
}

MockEnvironment_ServicePrivateAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServicePrivateAddress'

func (*MockEnvironment_ServicePrivateAddress_Call) Return

func (*MockEnvironment_ServicePrivateAddress_Call) Run

func (_c *MockEnvironment_ServicePrivateAddress_Call) Run(run func(serviceName string, servicePort int32, serverPort int32)) *MockEnvironment_ServicePrivateAddress_Call

func (*MockEnvironment_ServicePrivateAddress_Call) RunAndReturn

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

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