cruntimes

package
v0.0.0-...-3511abf Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveMountPoints

func ArchiveMountPoints(ctx context.Context,
	req cproto.RunSpec,
	p events.Publisher[docker.Event],
	archivesPath string,
	log *logrus.Entry,
) ([]string, error)

ArchiveMountPoints places the experiment archives and returns a list of mount points to be made available inside the container.

func BaseTempDirName

func BaseTempDirName(id string) (string, error)

BaseTempDirName returns a per-user directory name that is unique for the use and specified id (agentID), but consistently named between agent runs to enable cleanup of earlier tmp files.

func CanonicalizeImage

func CanonicalizeImage(image string) string

CanonicalizeImage returns the canonicalized image name.

func PprintCommand

func PprintCommand(
	ctx context.Context,
	command string,
	args []string,
	p events.Publisher[docker.Event],
	log *logrus.Entry,
) error

PprintCommand provides pretty printing of the given command to trace & log outputs.

func PullImage

func PullImage(
	ctx context.Context,
	req docker.PullImage,
	p events.Publisher[docker.Event],
	wg *waitgroupx.Group,
	log *logrus.Entry,
	getPullCommand func(docker.PullImage, string) (string, []string),
) (err error)

PullImage implements code sharing for singularity & podman.

func ShipContainerCommandLogs

func ShipContainerCommandLogs(
	ctx context.Context,
	r io.ReadCloser,
	stdtype stdcopy.StdType,
	p events.Publisher[docker.Event],
)

ShipContainerCommandLogs forwards the given output stream to the specified publisher. It is used to reveal the result of container command lines, e.g. podman pull...

Types

This section is empty.

Jump to

Keyboard shortcuts

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