Documentation ¶
Index ¶
- Variables
- func DisplayVersion(_ *cobra.Command, _ []string) error
- func Exec(ctrDigest string, args []string, detach bool) error
- func Fork(ctr *container.Container, args []string, detach bool) error
- func FullVersion() string
- func Images(_ *cobra.Command, _ []string) error
- func Ps(cmd *cobra.Command, _ []string) error
- func Pull(cmd *cobra.Command, args []string) error
- func Rm(force bool, args ...string) error
- func Rmi(cmd *cobra.Command, args []string) error
- func Run(cmd *cobra.Command, args []string) error
- func Stop(kill bool, args ...string) error
Constants ¶
This section is empty.
Variables ¶
var ( // Version release version Version = "0.0.1" // Commit will be overwritten automatically by the build system Commit = "HEAD" )
Functions ¶
func DisplayVersion ¶
DisplayVersion displays the version of box and exits
func Exec ¶
Exec runs a command inside an existing container.
It asks for container digest, command and arg to run, and a detach bool. Container digest can be a prefix of digest.
If detach is true, Exec never wait for command to get done and returns.
func Fork ¶
Fork will call by Run. It is a hack to fork a whole new Go process inside a new namespace.
If detach was enable function returns immediately after starting the command and never wait for result
func FullVersion ¶
func FullVersion() string
FullVersion returns the full version, build and commit hash
func Rm ¶
Rm removes an existing container.
It asks for container digest of a container to remove, and a force bool. Container digest can be a prefix of digest.
If force is true, Rm kills the container before removing it.
Types ¶
This section is empty.