wire

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Chroot tells if chroot should be used instead of pivoting
	Chroot bool

	// Mounts is the list of bindings to apply inside container
	Mounts []Mount
}

Config stores configuration of executor

type Copy

type Copy struct {
	// Src points to source location
	Src string

	// Dst points to destination location
	Dst string
}

Copy copies rsc to dst

type Execute

type Execute struct {
	// Command is a command to execute
	Command string
}

Execute is sent to execute a shell command

type InitFromDocker

type InitFromDocker struct {
	// Image is the name of the image
	Image string

	// Tag is the tag of the image
	Tag string
}

InitFromDocker initializes filesystem by downloading and integrating docker image

type Log

type Log struct {
	// Stream is the type of stream where log was produced
	Stream Stream

	// Text is text printed by command
	Text string
}

Log is the log message printed by executed command

type Mount

type Mount struct {
	// Location on Host
	Host string

	// Mountpoint inside container
	Container string

	// Writable makes mount writable inside container
	Writable bool
}

Mount defines directories to mount inside container

type Result

type Result struct {
	// Error is the error returned by command
	Error string
}

Result is sent once command finishes

type Stream

type Stream int

Stream is the type of stream where log was produced

const (
	// StreamOut represents stdout
	StreamOut Stream = iota

	// StreamErr represents stderr
	StreamErr
)

Jump to

Keyboard shortcuts

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