Documentation ¶
Index ¶
- Constants
- Variables
- func RemoveContainerIfExistsByName(ctx context.Context, containerName string)
- type Container
- func (c *Container) AddPreStage(stage Stage)
- func (c *Container) Cleanup()
- func (c *Container) Create() error
- func (c *Container) Protect(ctx context.Context, cli *client.Client)
- func (c *Container) Remove() error
- func (c *Container) Start(ctx context.Context) error
- func (c *Container) Stop() error
- func (c *Container) TailLogs()
- type Image
- type Stage
Constants ¶
View Source
const ( RootUser = "root" NonRootUser = "deploy" )
Variables ¶
View Source
var ( // NonRootUserHomeDir defines the non root user's home directory NonRootUserHomeDir = "/home/" + NonRootUser )
Functions ¶
Types ¶
type Container ¶
type Container struct { Ctx context.Context ID string Name string ImageReference string Stages []Stage Mounts map[string]string HostConfig container.HostConfig FilesToCopy []string Protected bool // contains filtered or unexported fields }
func (*Container) AddPreStage ¶
type Image ¶
func BuildImage ¶ added in v0.0.7
Click to show internal directories.
Click to hide internal directories.