Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PatchCloneTransientErrorInjectionChannel ¶
func PatchCloneTransientErrorInjectionChannel(c chan error) func()
PatchCloneTransientErrorInjectionChannel sets the cloneTransientInjectionError channel which can be used to inject errors into the Clone function for testing purposes.
func PatchCreateTransientErrorInjectionChannel ¶
func PatchCreateTransientErrorInjectionChannel(c chan error) func()
PatchCreateTransientErrorInjectionChannel sets the createTransientInjectionError channel which can be used to inject errors into the Create function for testing purposes.
func PatchStartTransientErrorInjectionChannel ¶
func PatchStartTransientErrorInjectionChannel(c chan error) func()
PatchStartTransientErrorInjectionChannel sets the startTransientInjectionError channel which can be used to inject errors into the Start function for testing purposes.
Types ¶
type ContainerFactory ¶
type ContainerFactory interface { golxc.ContainerFactory AddListener(chan<- Event) RemoveListener(chan<- Event) }
func MockFactory ¶
func MockFactory(containerDir string) ContainerFactory
Click to show internal directories.
Click to hide internal directories.