env

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package env provides a unified method to create environment for envexec

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder(cinitPath, mountConf, tmpFsConf string, netShare bool, printLog func(v ...interface{})) (pool.EnvBuilder, error)

NewBuilder build a environment builder

Types

type Mount

type Mount struct {
	Type     string `yaml:"type"`
	Source   string `yaml:"source"`
	Target   string `yaml:"target"`
	Readonly bool   `yaml:"readonly"`
	Data     string `yaml:"data"`
}

Mount defines single mount point configuration. type could be bind / tmpfs

type Mounts

type Mounts struct {
	Mount []Mount `yaml:"mount"`
	Proc  bool    `yaml:"proc"`
}

Mounts defines mount points for the container.

Jump to

Keyboard shortcuts

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