EnvContainer

abstract class EnvContainer

Wrapper class representing a container in a virtualization environment.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract suspend fun exec()

Executes this container.

Link copied to clipboard
abstract suspend fun inspect(): Any?

Inspects the information of this virutalized container.

Link copied to clipboard
abstract suspend fun log(): ContainerLogger

Retrieves the logs for this container.

Link copied to clipboard
abstract suspend fun <T> readPath(path: Path, mapper: suspend (InputStream) -> T): Option<T>

Reads a path from the container environment into the host.

Link copied to clipboard
abstract suspend fun remove(): Boolean

Removes this container from the virtualization engine.

Link copied to clipboard
abstract suspend fun wait(timeout: Duration): Int

Waits for the container to exit.

Link copied to clipboard
abstract suspend fun writePath(inputStream: InputStream, path: Path)

Writes the content of an InputStream to the container.