dockerutil

package
v0.0.0-...-f29db43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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