dockerutil

package
v0.0.0-...-b0d2146 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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, t *testing.T, dc *dockerclient.Client) ([]dockertypes.Container, error)

GetTestContainers returns all docker containers that have been created by interchain test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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