Versions in this module Expand all Collapse all v0 v0.1.8 Apr 21, 2013 Changes in this version + const ChangeAdd + const ChangeDelete + const ChangeModify + const DEFAULT_TAG + const DefaultNetworkBridge + const LxcTemplate + const REGISTRY_ENDPOINT + const VERSION + var GIT_COMMIT string + var LxcTemplateCompiled *template.Template + var NetworkBridgeIface string + func CmdStream(cmd *exec.Cmd) (io.Reader, error) + func CompareKernelVersion(a, b *KernelVersionInfo) int + func CopyEscapable(dst io.Writer, src io.ReadCloser) (written int64, err error) + func CreateBridgeIface(ifaceName string) error + func Debugf(format string, a ...interface{}) + func Download(url string, stderr io.Writer) (*http.Response, error) + func FindCgroupMountpoint(cgroupType string) (string, 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, template string) *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 TruncateId(id string) string + func Unmount(target string) error + func Untar(archive io.Reader, path string) error + func ValidateId(id string) error + type Archive io.Reader + type AttachOpts map[string]bool + func NewAttachOpts() AttachOpts + func (opts AttachOpts) Get(val string) bool + func (opts AttachOpts) Set(val string) error + func (opts AttachOpts) String() string + type Capabilities struct + MemoryLimit bool + SwapLimit bool + 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 + const Xz + func (compression *Compression) Flag() string + type Config struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + Dns []string + Env []string + Hostname string + Image string + Memory int64 + MemorySwap int64 + OpenStdin bool + PortSpecs []string + StdinOnce bool + Tty bool + User string + func ParseRun(args []string, stdout io.Writer, capabilities *Capabilities) (*Config, error) + type Container struct + Args []string + Config *Config + Created time.Time + Id string + Image string + NetworkSettings *NetworkSettings + Path string + ResolvConfPath string + State State + SysInitPath string + func (container *Container) Attach(stdin io.ReadCloser, stdinCloser io.Closer, stdout io.Writer, stderr io.Writer) chan error + 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(seconds int) error + func (container *Container) RootfsPath() string + func (container *Container) Run() error + func (container *Container) ShortId() string + 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(seconds int) 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, author string) (*Image, error) + func (graph *Graph) Delete(name string) error + func (graph *Graph) Exists(id string) bool + func (graph *Graph) Get(name string) (*Image, error) + func (graph *Graph) Heads() (map[string]*Image, error) + func (graph *Graph) IsNotExist(err error) bool + 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(stdout io.Writer, 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) TempLayerArchive(id string, compression Compression, output io.Writer) (*TempArchive, 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) + type Image struct + Author string + Comment string + Container string + ContainerConfig Config + Created time.Time + DockerVersion string + 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 (image *Image) ShortId() string + func (image *Image) TarLayer(compression Compression) (Archive, error) + func (img *Image) GetParent() (*Image, error) + func (img *Image) History() ([]*Image, error) + func (img *Image) WalkHistory(handler func(*Image) error) (err error) + type KernelVersionInfo struct + Kernel int + Major int + Minor int + Specific int + func GetKernelVersion() (*KernelVersionInfo, error) + func (k *KernelVersionInfo) String() string + type ListOpts []string + func (opts *ListOpts) Set(value string) error + func (opts *ListOpts) String() string + type Nat struct + Backend int + Frontend int + Proto string + type NetworkInterface struct + Gateway net.IP + IPNet net.IPNet + func (iface *NetworkInterface) AllocatePort(spec string) (*Nat, error) + func (iface *NetworkInterface) Release() + type NetworkManager struct + func (manager *NetworkManager) Allocate() (*NetworkInterface, error) + type NetworkSettings struct + Bridge string + Gateway string + IpAddress string + IpPrefixLen int + PortMapping map[string]string + func (settings *NetworkSettings) PortMappingHuman() string + type PortAllocator struct + func (alloc *PortAllocator) Acquire(port int) (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, comment, author 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(name 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 rcli.DockerConn, 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 rcli.DockerConn, 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 rcli.DockerConn, 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 rcli.DockerConn, 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 rcli.DockerConn, 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 + Ghost bool + 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 + type TempArchive struct + Size int64 + func NewTempArchive(src Archive, dir string) (*TempArchive, error) + func (archive *TempArchive) Read(data []byte) (int, error) + 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)