config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: Apache-2.0 Imports: 3 Imported by: 4 modules, 16 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Image      string   // Image Identifier, may be different across executors.
	User       string   // the currently configured user for this image.
	WorkDir    string   // the current working directory on entering a container
	Cmd        []string // the secondary execution form, it is provided to images if given to docker run, otherwise this is used.
	Entrypoint []string // the primary execution form, the first arguments and the exec() jumping-off point.
	Env        []string
}

Config is a basic configuration of an image at each step. It is kept in sync by commit routines in the executor. Setting properties here will propogate them to various image-manipulating commands when needed.

func NewConfig

func NewConfig() *Config

NewConfig initializes a new configuration.

func (*Config) FromDocker

func (c *Config) FromDocker(cont *container.Config)

FromDocker sets *Config properties from a docker *container.Config

func (*Config) ToDocker

func (c *Config) ToDocker(tty, stdin bool) *container.Config

ToDocker outputs a docker configuration suitable for running images.

func (*Config) ToImage

func (c *Config) ToImage(layers []string) map[string]interface{}

ToImage returns the config as an image manifest.

Jump to

Keyboard shortcuts

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