Documentation ¶
Index ¶
- Variables
- type Container
- func (c *Container) Attach(stdin, tty bool) (string, error)
- func (c *Container) Commit() (*storage.Image, error)
- func (c *Container) Create() error
- func (c *Container) Exec(cmd []string, tty bool, stdin bool) (string, error)
- func (c *Container) Export(path string) error
- func (c *Container) Kill(signal uint) error
- func (c *Container) Mount() (string, error)
- func (c *Container) Start() error
- func (c *Container) Status() error
- func (c *Container) Stop() error
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNotImplemented indicates that functionality is not yet implemented ErrNotImplemented = fmt.Errorf("NOT IMPLEMENTED") )
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { }
Container is a single OCI container
func (*Container) Attach ¶
Attach attaches to a container Returns fully qualified URL of streaming server for the container
func (*Container) Commit ¶
Commit commits the changes between a container and its image, creating a new image If the container was not created from an image (for example, WithRootFSFromPath will create a container from a directory on the system), a new base image will be created from the contents of the container's filesystem
func (*Container) Exec ¶
Exec starts a new process inside the container Returns fully qualified URL of streaming server for executed process
func (*Container) Export ¶
Export exports a container's root filesystem as a tar archive The archive will be saved as a file at the given path
func (*Container) Mount ¶
Mount mounts a container's filesystem on the host The path where the container has been mounted is returned