Documentation
¶
Index ¶
- Constants
- func MaybeRunInUserns(config types.StackerConfig, userCmd []string) error
- type Container
- func (c *Container) BindMount(source string, dest string, extraOpts string) error
- func (c *Container) Close()
- func (c *Container) Execute(args string, stdin io.Reader) error
- func (c *Container) SaveConfigFile(p string) error
- func (c *Container) SetConfig(name string, value string) error
- func (c *Container) SetConfigs(config map[string]string) error
Constants ¶
View Source
const (
ReasonableDefaultPath = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
)
Variables ¶
This section is empty.
Functions ¶
func MaybeRunInUserns ¶
func MaybeRunInUserns(config types.StackerConfig, userCmd []string) error
A wrapper which runs things in a userns if we're an unprivileged user with an idmap, or runs things on the host if we're root and don't.
Types ¶
Click to show internal directories.
Click to hide internal directories.