Versions in this module Expand all Collapse all v0 v0.1.1 Mar 31, 2013 Changes in this version type Container + func (container *Container) ShortId() string type Graph + func (graph *Graph) IsNotExist(err error) bool + type TruncIndex struct + func NewTruncIndex() *TruncIndex + func (idx *TruncIndex) Add(id string) error + func (idx *TruncIndex) Delete(id string) error + func (idx *TruncIndex) Get(s string) (string, error) v0.1.0 Mar 24, 2013 Changes in this version + const ChangeAdd + const ChangeDelete + const ChangeModify + const DEFAULT_TAG + const LxcTemplate + const REGISTRY_ENDPOINT + const VERSION + var LxcTemplateCompiled *template.Template + func CmdStream(cmd *exec.Cmd) (io.Reader, error) + func ComputeId(content io.Reader) (string, error) + func Debugf(format string, a ...interface{}) + func Download(url string, stderr io.Writer) (*http.Response, error) + func GenerateId() string + func Go(f func() error) chan error + func HumanDuration(d time.Duration) string + func MountAUFS(ro []string, rw string, target string) error + func Mounted(mountpoint string) (bool, error) + func NopWriteCloser(w io.Writer) io.WriteCloser + func ProgressReader(r io.ReadCloser, size int, output io.Writer) *progressReader + func SelfPath() string + func StoreImage(img *Image, layerData Archive, root string) error + func SysInit() + func Tar(path string, compression Compression) (io.Reader, error) + func Trunc(s string, maxlen int) string + func Unmount(target string) error + func Untar(archive io.Reader, path string) error + func ValidateId(id string) error + type Archive io.Reader + type Change struct + Kind ChangeType + Path string + func Changes(layers []string, rw string) ([]Change, error) + func (change *Change) String() string + type ChangeType int + type Compression uint32 + const Bzip2 + const Gzip + const Uncompressed + func (compression *Compression) Flag() string + type Config struct + Cmd []string + Detach bool + Env []string + Hostname string + Image string + Memory int64 + MemorySwap int64 + OpenStdin bool + Ports []int + Tty bool + User string + func ParseRun(args []string) (*Config, error) + type Container struct + Args []string + Config *Config + Created time.Time + Id string + Image string + NetworkSettings *NetworkSettings + Path string + State State + SysInitPath string + func (container *Container) Changes() ([]Change, error) + func (container *Container) Cmd() *exec.Cmd + func (container *Container) EnsureMounted() error + func (container *Container) Export() (Archive, error) + func (container *Container) ExportRw() (Archive, error) + func (container *Container) FromDisk() error + func (container *Container) GetImage() (*Image, error) + func (container *Container) Kill() error + func (container *Container) Mount() error + func (container *Container) Mounted() (bool, error) + func (container *Container) Output() (output []byte, err error) + func (container *Container) ReadLog(name string) (io.Reader, error) + func (container *Container) Restart() error + func (container *Container) RootfsPath() string + func (container *Container) Run() error + func (container *Container) Start() error + func (container *Container) StderrPipe() (io.ReadCloser, error) + func (container *Container) StdinPipe() (io.WriteCloser, error) + func (container *Container) StdoutPipe() (io.ReadCloser, error) + func (container *Container) Stop() error + func (container *Container) ToDisk() (err error) + func (container *Container) Unmount() error + func (container *Container) Wait() int + func (container *Container) WaitTimeout(timeout time.Duration) error + func (container *Container) When() time.Time + type Graph struct + Root string + func NewGraph(root string) (*Graph, error) + func (graph *Graph) All() ([]*Image, error) + func (graph *Graph) ByParent() (map[string][]*Image, error) + func (graph *Graph) Create(layerData Archive, container *Container, comment string) (*Image, error) + func (graph *Graph) Delete(id string) error + func (graph *Graph) Exists(id string) bool + func (graph *Graph) Garbage() (*Graph, error) + func (graph *Graph) GarbageCollect() error + func (graph *Graph) Get(id string) (*Image, error) + func (graph *Graph) Heads() (map[string]*Image, error) + func (graph *Graph) LookupRemoteImage(imgId string, authConfig *auth.AuthConfig) bool + func (graph *Graph) LookupRemoteRepository(remote string, authConfig *auth.AuthConfig) bool + func (graph *Graph) Map() (map[string]*Image, error) + func (graph *Graph) Mktemp(id string) (string, error) + func (graph *Graph) PullImage(imgId string, authConfig *auth.AuthConfig) error + func (graph *Graph) PullRepository(stdout io.Writer, remote, askedTag string, repositories *TagStore, ...) error + func (graph *Graph) PushImage(stdout io.Writer, imgOrig *Image, authConfig *auth.AuthConfig) error + func (graph *Graph) PushRepository(stdout io.Writer, remote string, localRepo Repository, ...) error + func (graph *Graph) Register(layerData Archive, img *Image) error + func (graph *Graph) Undelete(id string) error + func (graph *Graph) WalkAll(handler func(*Image)) error + type History []*Container + func (history *History) Add(container *Container) + func (history *History) Len() int + func (history *History) Less(i, j int) bool + func (history *History) Swap(i, j int) + type IPAllocator struct + func (alloc *IPAllocator) Acquire() (net.IP, error) + func (alloc *IPAllocator) Release(ip net.IP) error + type Image struct + Comment string + Container string + ContainerConfig Config + Created time.Time + Id string + Parent string + func LoadImage(root string) (*Image, error) + func NewImgJson(src []byte) (*Image, error) + func NewMultipleImgJson(src []byte) ([]*Image, error) + func (image *Image) Changes(rw string) ([]Change, error) + func (image *Image) Mount(root, rw string) error + func (img *Image) GetParent() (*Image, error) + func (img *Image) History() ([]*Image, error) + func (img *Image) WalkHistory(handler func(*Image) error) (err error) + type ListOpts []string + func (opts *ListOpts) Set(value string) error + func (opts *ListOpts) String() string + type NetworkInterface struct + Gateway net.IP + IPNet net.IPNet + func (iface *NetworkInterface) AllocatePort(port int) (int, error) + func (iface *NetworkInterface) Release() error + type NetworkManager struct + func (manager *NetworkManager) Allocate() (*NetworkInterface, error) + type NetworkSettings struct + Gateway string + IpAddress string + IpPrefixLen int + PortMapping map[string]string + type PortAllocator struct + func (alloc *PortAllocator) Acquire() (int, error) + func (alloc *PortAllocator) Release(port int) error + type PortMapper struct + func (mapper *PortMapper) Map(port int, dest net.TCPAddr) error + func (mapper *PortMapper) Unmap(port int) error + type Repository map[string]string + type Runtime struct + func NewRuntime() (*Runtime, error) + func NewRuntimeFromDirectory(root string) (*Runtime, error) + func (runtime *Runtime) Commit(id, repository, tag string) (*Image, error) + func (runtime *Runtime) Create(config *Config) (*Container, error) + func (runtime *Runtime) Destroy(container *Container) error + func (runtime *Runtime) Exists(id string) bool + func (runtime *Runtime) Get(id string) *Container + func (runtime *Runtime) List() []*Container + func (runtime *Runtime) Load(id string) (*Container, error) + func (runtime *Runtime) LogToDisk(src *writeBroadcaster, dst string) error + func (runtime *Runtime) Register(container *Container) error + type Server struct + func NewServer() (*Server, error) + func (srv *Server) CmdAttach(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdCommit(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdDiff(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdExport(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdHistory(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdImages(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdImport(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdInfo(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdInspect(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdKill(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdLogs(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdPort(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdPs(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdPull(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdPush(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdRestart(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdRm(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdRmi(stdin io.ReadCloser, stdout io.Writer, args ...string) (err error) + func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdStart(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdStop(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdTag(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdVersion(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) CmdWait(stdin io.ReadCloser, stdout io.Writer, args ...string) error + func (srv *Server) Help() string + func (srv *Server) Name() string + type State struct + ExitCode int + Pid int + Running bool + StartedAt time.Time + func (s *State) String() string + type TagStore struct + Repositories map[string]Repository + func NewTagStore(path string, graph *Graph) (*TagStore, error) + func (store *TagStore) ById() map[string][]string + func (store *TagStore) Get(repoName string) (Repository, error) + func (store *TagStore) GetImage(repoName, tag string) (*Image, error) + func (store *TagStore) ImageName(id string) string + func (store *TagStore) LookupImage(name string) (*Image, error) + func (store *TagStore) Reload() error + func (store *TagStore) Save() error + func (store *TagStore) Set(repoName, tag, imageName string, force bool) error