Versions in this module Expand all Collapse all v0 v0.0.1 Jan 15, 2015 Changes in this version + var ErrContainerIsEmpty = errors.New("Container is empty") + var ErrManyFound = stderrors.New("Multiple results found") + var ErrNotFound = stderrors.New("Not found") + var NoJailStatus = JailStatus + func ConsoleApp(username string) *types.App + func DecompressingReader(rd io.Reader) (io.Reader, error) + func UnpackImage(uri, path, saveAmiPath string) (hsh *types.Hash, err error) + type Container struct + Dataset *zfs.Dataset + Manager *ContainerManager + Manifest schema.ContainerRuntimeManifest + func GetContainer(ds *zfs.Dataset, mgr *ContainerManager) (*Container, error) + func NewContainer(ds *zfs.Dataset, mgr *ContainerManager) *Container + func (c *Container) Destroy() error + func (c *Container) GetImage() (*Image, error) + func (c *Container) GetJailStatus(refresh bool) (JailStatus, error) + func (c *Container) IsEmpty() bool + func (c *Container) IsLoaded() bool + func (c *Container) JailName() string + func (c *Container) Jid() int + func (c *Container) Kill() error + func (c *Container) Load() error + func (c *Container) Prep() error + func (c *Container) Run(app *types.App) (err1 error) + func (c *Container) Save() error + func (c *Container) Spawn() error + func (c *Container) Stage2(app *types.App) error + func (c *Container) Status() ContainerStatus + type ContainerManager struct + Dataset *zfs.Dataset + Host *Host + func (cmgr *ContainerManager) All() (ContainerSlice, error) + func (cmgr *ContainerManager) Clone(img *Image) (*Container, error) + func (cmgr *ContainerManager) Get(spec interface{}) (*Container, error) + type ContainerSlice []*Container + func (cc ContainerSlice) Len() int + func (cc ContainerSlice) Less(i, j int) bool + func (cc ContainerSlice) Swap(i, j int) + func (cc ContainerSlice) Table() [][]string + type ContainerStatus uint + const ContainerStatusDying + const ContainerStatusInvalid + const ContainerStatusRunning + const ContainerStatusStopped + func (cs ContainerStatus) String() string + type Destroyable interface + Destroy func() error + type Host struct + Containers ContainerManager + Dataset *zfs.Dataset + Images ImageManager + Properties *properties.Properties + func NewHost(configPath string) (*Host, error) + func (h *Host) Get(spec interface{}) (interface{}, error) + func (h *Host) GetJailStatus(name string, refresh bool) (JailStatus, error) + func (h *Host) Initialize() error + type Image struct + Dataset *zfs.Dataset + Hash *types.Hash + Manager *ImageManager + Manifest schema.ImageManifest + Origin string + Timestamp time.Time + UUID uuid.UUID + func GetImage(ds *zfs.Dataset, mgr *ImageManager) (img *Image, err error) + func NewImage(ds *zfs.Dataset, mgr *ImageManager) (*Image, error) + func (img *Image) Build(buildDir string, addFiles []string, buildExec []string) (*Image, error) + func (img *Image) Clone(snapshot, dest string) (*zfs.Dataset, error) + func (img *Image) Containers() (children ContainerSlice, _ error) + func (img *Image) Destroy() (err error) + func (img *Image) GetApp() *types.App + func (img *Image) IsEmpty() bool + func (img *Image) Load() error + func (img *Image) LoadManifest() error + func (img *Image) PrettyLabels() imageLabels + func (img *Image) Run(app *types.App, keep bool) (err1 error) + func (img *Image) RuntimeApp() schema.RuntimeApp + func (img *Image) Seal() error + type ImageManager struct + Dataset *zfs.Dataset + Host *Host + func (imgr *ImageManager) All() (ImageSlice, error) + func (imgr *ImageManager) Create() (*Image, error) + func (imgr *ImageManager) Find(query string) (ImageSlice, error) + func (imgr *ImageManager) Find1(query string) (*Image, error) + func (imgr *ImageManager) Get(spec interface{}) (*Image, error) + func (imgr *ImageManager) Import(imageUri, manifestUri string) (*Image, error) + type ImageSlice []*Image + func (ii ImageSlice) Len() int + func (ii ImageSlice) Less(i, j int) bool + func (ii ImageSlice) Swap(i, j int) + func (ii ImageSlice) Table() [][]string + type JailStatus struct + Dying bool + Jid int