Documentation
¶
Index ¶
- type Logger
- type MockDockerService
- func (m *MockDockerService) Destroy()
- func (m *MockDockerService) InitContainer(handler func(opts *docker.CreateContainerOptions)) error
- func (m *MockDockerService) InitContainerWithCmd(handler func(cmd *string)) error
- func (m *MockDockerService) WaitForReady(checkReadyCommand string, timeout time.Duration) bool
- type MockService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDockerService ¶
type MockDockerService struct {
// contains filtered or unexported fields
}
func NewMockDockerService ¶
func NewMockDockerService() *MockDockerService
func NewMockDockerServiceWithInit ¶
func NewMockDockerServiceWithInit(initDocker func() <-chan bool) *MockDockerService
func (*MockDockerService) InitContainer ¶
func (m *MockDockerService) InitContainer(handler func(opts *docker.CreateContainerOptions)) error
InitContainer 通过容器参数实例化容器
func (*MockDockerService) InitContainerWithCmd ¶
func (m *MockDockerService) InitContainerWithCmd(handler func(cmd *string)) error
InitContainerWithCmd 通过命令行参数初始化容器
func (*MockDockerService) WaitForReady ¶
func (m *MockDockerService) WaitForReady(checkReadyCommand string, timeout time.Duration) bool
WaitForReady 通过命令检测容器是否准备完成
type MockService ¶
type MockService interface { InitContainer(handler func(opts *docker.CreateContainerOptions)) error Destroy() }
Click to show internal directories.
Click to hide internal directories.