Documentation ¶
Index ¶
- func PrepareImage(cli *client.Client, ctx context.Context, imageName string) error
- func Run(dir string, r io.Reader, w io.Writer, ew io.Writer) error
- func RunTest(dir string, onContainer bool, timeout int, verbose bool) (bool, error)
- type ContainerTester
- type ExecResult
- type NativeTester
- type Result
- type Tester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareImage ¶
Types ¶
type ContainerTester ¶
type ContainerTester struct {
// contains filtered or unexported fields
}
func NewContainerTester ¶
type ExecResult ¶
func ExecWithStdin ¶
func ExecWithStdin(ctx context.Context, cli *client.Client, name string, cmd []string, stdin io.Reader) (*ExecResult, error)
Ref: https://stackoverflow.com/questions/52774830/docker-exec-command-from-golang-api
type NativeTester ¶
type NativeTester struct {
// contains filtered or unexported fields
}
func NewNativeTester ¶
func NewNativeTester(dir string, conf *files.Conf) (*NativeTester, error)
Click to show internal directories.
Click to hide internal directories.