Documentation ¶
Index ¶
- func GetContainerLogs(ctx context.Context, dc *dockerclient.Client, containerName string) ([]byte, error)
- func GetFileContentsFromContainer(ctx context.Context, dc *dockerclient.Client, containerID, absolutePath string) ([]byte, error)
- func GetTestContainers(ctx context.Context, suiteName string, dc *dockerclient.Client) ([]dockertypes.Container, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContainerLogs ¶
func GetContainerLogs(ctx context.Context, dc *dockerclient.Client, containerName string) ([]byte, error)
GetContainerLogs returns the logs of a container as a byte array.
func GetFileContentsFromContainer ¶
func GetFileContentsFromContainer(ctx context.Context, dc *dockerclient.Client, containerID, absolutePath string) ([]byte, error)
GetFileContentsFromContainer reads the contents of a specific file from a container.
func GetTestContainers ¶
func GetTestContainers(ctx context.Context, suiteName string, dc *dockerclient.Client) ([]dockertypes.Container, error)
GetTestContainers returns all docker containers that have been created by interchain test. note: the test suite name must be passed as the chains are created in SetupSuite which will label them with the name of the test suite rather than the test.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.