Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentToType ¶
func ContentToType(content interface{}) string
ContentToType returns string representation for type of the content.
Types ¶
type Config ¶
type Config struct {
// NoStandardMounts tells to not mount standard mounts like /proc, /dev, /tmp ... inside new root.
NoStandardMounts bool
// Mounts is the list of bindings to apply inside container
Mounts []Mount
}
Config stores configuration of executor
type DecoderFunc ¶
type DecoderFunc func() (interface{}, error)
DecoderFunc is the decoding function.
func NewDecoder ¶
func NewDecoder(r io.Reader, types []interface{}) DecoderFunc
NewDecoder creates new message decoder.
type EncoderFunc ¶
type EncoderFunc func(content interface{}) error
EncoderFunc is the encoding function.
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
Click to show internal directories.
Click to hide internal directories.