Documentation
¶
Index ¶
- Constants
- Variables
- func CleanupExistingVolume(fstype, filepath, sharedDir string) error
- func GetMountIdByContainer(driver, cid string) (string, error)
- func InitDockerCfg(mirrors []string, insecureRegistries []string, graphdriver, root string)
- func ParseServiceDiscovery(id string, spec *pod.UserPod) error
- func ProbeExistingVolume(v *pod.UserVolume, sharedDir string) (*hypervisor.VolumeInfo, error)
- func ServiceDiscoveryContainerName(podName string) string
- type AufsStorage
- func (*AufsStorage) CleanUp() error
- func (a *AufsStorage) CleanupContainer(id, sharedDir string) error
- func (a *AufsStorage) CreateVolume(daemon *Daemon, podId, shortName string) (*hypervisor.VolumeInfo, error)
- func (*AufsStorage) Init() error
- func (a *AufsStorage) InjectFile(src io.Reader, containerId, target, rootDir string, perm, uid, gid int) error
- func (a *AufsStorage) PrepareContainer(id, sharedDir string) (*hypervisor.ContainerInfo, error)
- func (a *AufsStorage) RemoveVolume(podId string, record []byte) error
- func (a *AufsStorage) RootPath() string
- func (a *AufsStorage) Type() string
- type ContainerLogsConfig
- type Daemon
- func (daemon *Daemon) AddPod(pod *Pod, podArgs string) (err error)
- func (daemon *Daemon) AddService(podId, data string) error
- func (daemon *Daemon) AddVm(vm *hypervisor.Vm)
- func (daemon *Daemon) Attach(stdin io.ReadCloser, stdout io.WriteCloser, key, id, tag string) error
- func (daemon *Daemon) CleanPod(podId string) (int, string, error)
- func (daemon *Daemon) CmdAddService(podId, data string) (*engine.Env, error)
- func (daemon *Daemon) CmdAttach(stdin io.ReadCloser, stdout io.WriteCloser, key, id, tag string) error
- func (daemon *Daemon) CmdAuthenticateToRegistry(config *types.AuthConfig) (string, error)
- func (daemon *Daemon) CmdCleanPod(podId string) (*engine.Env, error)
- func (daemon *Daemon) CmdCommitImage(name string, cfg *types.ContainerCommitConfig) (*engine.Env, error)
- func (daemon *Daemon) CmdContainerRename(oldname, newname string) (*engine.Env, error)
- func (daemon *Daemon) CmdCreateContainer(params types.ContainerCreateConfig) (*engine.Env, error)
- func (daemon *Daemon) CmdCreatePod(podArgs string, autoremove bool) (*engine.Env, error)
- func (daemon *Daemon) CmdCreateVm(cpu, mem int, async bool) (*engine.Env, error)
- func (daemon *Daemon) CmdDeleteService(podId, data string) (*engine.Env, error)
- func (daemon *Daemon) CmdExec(stdin io.ReadCloser, stdout io.WriteCloser, key, id, cmd, tag string, ...) error
- func (daemon *Daemon) CmdExitCode(container, tag string) (int, error)
- func (daemon *Daemon) CmdGetContainerInfo(name string) (interface{}, error)
- func (daemon *Daemon) CmdGetContainerLogs(container string, config *ContainerLogsConfig) (err error)
- func (daemon *Daemon) CmdGetPodInfo(podName string) (interface{}, error)
- func (daemon *Daemon) CmdGetPodStats(podId string) (interface{}, error)
- func (daemon *Daemon) CmdGetServices(podId string) ([]pod.UserService, error)
- func (daemon *Daemon) CmdImageDelete(name string, force, prune bool) (*engine.Env, error)
- func (daemon *Daemon) CmdImages(args, filter string, all bool) (*engine.Env, error)
- func (daemon *Daemon) CmdKillContainer(name string, sig int64) (*engine.Env, error)
- func (daemon *Daemon) CmdKillPod(podId, container string, sig int64) (*engine.Env, error)
- func (daemon *Daemon) CmdKillVm(vmId string) (*engine.Env, error)
- func (daemon *Daemon) CmdList(item, podId, vmId string, auxiliary bool) (*engine.Env, error)
- func (daemon *Daemon) CmdPausePod(podId string) error
- func (daemon *Daemon) CmdSetPodLabels(podId string, override bool, labels map[string]string) (*engine.Env, error)
- func (daemon *Daemon) CmdStartPod(stdin io.ReadCloser, stdout io.WriteCloser, podId, vmId, tag string) (*engine.Env, error)
- func (daemon *Daemon) CmdStopPod(podId, stopVm string) (*engine.Env, error)
- func (daemon *Daemon) CmdSystemInfo() (*engine.Env, error)
- func (daemon *Daemon) CmdSystemVersion() *engine.Env
- func (daemon *Daemon) CmdTtyResize(podId, tag string, h, w int) error
- func (daemon *Daemon) CmdUnpausePod(podId string) error
- func (daemon *Daemon) CmdUpdateService(podId, data string) (*engine.Env, error)
- func (daemon *Daemon) ContainerRename(oldname, newname string) error
- func (daemon *Daemon) CreatePod(podId string, podSpec *apitypes.UserPod) (*Pod, error)
- func (daemon *Daemon) CreateVm(cpu, mem int, async bool) (*hypervisor.Vm, error)
- func (daemon *Daemon) DefaultLogCfg(driver string, cfg map[string]string)
- func (daemon *Daemon) DeleteService(podId, data string) error
- func (daemon *Daemon) DeleteVolumeId(podId string) error
- func (daemon *Daemon) DestroyAllVm() error
- func (daemon *Daemon) DestroyAndKeepVm() error
- func (daemon *Daemon) Exec(stdin io.ReadCloser, stdout io.WriteCloser, key, id, cmd, tag string, ...) error
- func (daemon *Daemon) ExitCode(container, tag string) (int, error)
- func (daemon *Daemon) GetContainerInfo(name string) (types.ContainerInfo, error)
- func (daemon *Daemon) GetContainerLogs(container string, config *ContainerLogsConfig) (err error)
- func (daemon *Daemon) GetPodByContainer(containerId string) (string, error)
- func (daemon *Daemon) GetPodByContainerIdOrName(name string) (pod *Pod, idx int, err error)
- func (daemon *Daemon) GetPodInfo(podName string) (types.PodInfo, error)
- func (daemon *Daemon) GetPodNum() int64
- func (daemon *Daemon) GetPodStats(podId string) (interface{}, error)
- func (daemon *Daemon) GetRunningPodNum() int64
- func (daemon *Daemon) GetServiceContainerInfo(podId string) (*hypervisor.Vm, string, error)
- func (daemon *Daemon) GetServices(podId string) ([]pod.UserService, error)
- func (daemon *Daemon) GetVM(vmId string, resource *pod.UserResource, lazy bool) (*hypervisor.Vm, error)
- func (daemon *Daemon) GetVmByPodId(podId string) (string, error)
- func (daemon *Daemon) GetVolumeId(podId, volName string) (int, error)
- func (daemon *Daemon) KillContainer(name string, sig int64) error
- func (daemon *Daemon) KillPodContainers(podName, container string, sig int64) error
- func (daemon *Daemon) KillVm(vmId string) (int, string, error)
- func (daemon *Daemon) List(item, podId, vmId string, auxiliary bool) (map[string][]string, error)
- func (daemon *Daemon) NewVm(id string, cpu, memory int, lazy bool) *hypervisor.Vm
- func (daemon Daemon) PauseContainer(container string) error
- func (daemon *Daemon) PodStopped(podId string)
- func (daemon *Daemon) PodWait(podId string)
- func (daemon *Daemon) ReleaseAllVms() (int, error)
- func (daemon *Daemon) RemovePod(podId string)
- func (daemon *Daemon) RemovePodContainer(p *Pod)
- func (daemon *Daemon) RemovePodResource(p *Pod)
- func (daemon *Daemon) RemoveVm(vmId string)
- func (daemon *Daemon) RestartPod(mypod *hypervisor.PodStatus) error
- func (daemon *Daemon) Restore() error
- func (daemon *Daemon) SetPodLabels(podId string, override bool, labels map[string]string) error
- func (daemon *Daemon) Shutdown() error
- func (daemon *Daemon) StartInternal(p *Pod, vmId string, config interface{}, lazy bool, ...) (int, string, error)
- func (daemon *Daemon) StartPod(stdin io.ReadCloser, stdout io.WriteCloser, podId, vmId, tag string) (int, string, error)
- func (daemon *Daemon) StartVm(vmId string, cpu, mem int, lazy bool) (vm *hypervisor.Vm, err error)
- func (daemon *Daemon) StopPod(podId string) (int, string, error)
- func (daemon *Daemon) StopPodWithinLock(pod *Pod) (int, string, error)
- func (daemon *Daemon) TtyResize(podId, tag string, h, w int) error
- func (daemon *Daemon) UnpauseContainer(container string) error
- func (daemon *Daemon) UpdateService(podId, data string) error
- func (daemon *Daemon) WaitVmStart(vm *hypervisor.Vm) error
- func (daemon *Daemon) WritePodAndContainers(podId string) error
- type DevMapperStorage
- func (dms *DevMapperStorage) CleanUp() error
- func (dms *DevMapperStorage) CleanupContainer(id, sharedDir string) error
- func (dms *DevMapperStorage) CreateVolume(daemon *Daemon, podId, shortName string) (*hypervisor.VolumeInfo, error)
- func (dms *DevMapperStorage) Init() error
- func (dms *DevMapperStorage) InjectFile(src io.Reader, containerId, target, rootDir string, perm, uid, gid int) error
- func (dms *DevMapperStorage) PrepareContainer(id, sharedDir string) (*hypervisor.ContainerInfo, error)
- func (dms *DevMapperStorage) RemoveVolume(podId string, record []byte) error
- func (dms *DevMapperStorage) RootPath() string
- func (dms *DevMapperStorage) Type() string
- type OverlayFsStorage
- func (*OverlayFsStorage) CleanUp() error
- func (o *OverlayFsStorage) CleanupContainer(id, sharedDir string) error
- func (o *OverlayFsStorage) CreateVolume(daemon *Daemon, podId, shortName string) (*hypervisor.VolumeInfo, error)
- func (*OverlayFsStorage) Init() error
- func (o *OverlayFsStorage) InjectFile(src io.Reader, containerId, target, rootDir string, perm, uid, gid int) error
- func (o *OverlayFsStorage) PrepareContainer(id, sharedDir string) (*hypervisor.ContainerInfo, error)
- func (o *OverlayFsStorage) RemoveVolume(podId string, record []byte) error
- func (o *OverlayFsStorage) RootPath() string
- func (o *OverlayFsStorage) Type() string
- type Pod
- func (p *Pod) AssociateVm(daemon *Daemon, vmId string) error
- func (p *Pod) AttachTtys(daemon *Daemon, streams []*hypervisor.TtyIO) (err error)
- func (p *Pod) Cleanup(daemon *Daemon)
- func (p *Pod) DoCreate(daemon *Daemon) error
- func (p *Pod) GetVM(daemon *Daemon, id string, lazy bool) (err error)
- func (p *Pod) InitializeFinished(daemon *Daemon) error
- func (p *Pod) KillVM(daemon *Daemon)
- func (p *Pod) Prepare(daemon *Daemon) (err error)
- func (p *Pod) SetVM(id string, vm *hypervisor.Vm)
- func (p *Pod) ShouldWaitCleanUp() bool
- func (p *Pod) Start(daemon *Daemon, vmId string, lazy bool, streams []*hypervisor.TtyIO) (*types.VmResponse, error)
- func (p *Pod) Status() *hypervisor.PodStatus
- func (p *Pod) TransitionLock(label string) bool
- func (p *Pod) TransitionUnlock(label string)
- type PodFilterOp
- type PodList
- func (pl *PodList) CountAll() int64
- func (pl *PodList) CountContainers() (num int64)
- func (pl *PodList) CountRunning() int64
- func (pl *PodList) CountStatus(status uint) (num int64)
- func (pl *PodList) Delete(id string)
- func (pl *PodList) Find(fn PodFilterOp) *Pod
- func (pl *PodList) Foreach(fn PodOp) error
- func (pl *PodList) Get(id string) (*Pod, bool)
- func (pl *PodList) GetByContainerId(cid string) (*Pod, bool)
- func (pl *PodList) GetByContainerIdOrName(cid string) (*Pod, int, bool)
- func (pl *PodList) GetByName(name string) *Pod
- func (pl *PodList) GetStatus(id string) (*hypervisor.PodStatus, bool)
- func (pl *PodList) Put(p *Pod)
- type PodOp
- type Record
- type Storage
- func AufsFactory(sysinfo *dockertypes.Info) (Storage, error)
- func DMFactory(sysinfo *dockertypes.Info) (Storage, error)
- func OverlayFsFactory(_ *dockertypes.Info) (Storage, error)
- func StorageFactory(sysinfo *dockertypes.Info) (Storage, error)
- func VBoxStorageFactory(_ *dockertypes.Info) (Storage, error)
- type VBoxStorage
- func (*VBoxStorage) CleanUp() error
- func (v *VBoxStorage) CleanupContainer(id, sharedDir string) error
- func (v *VBoxStorage) CreateVolume(daemon *Daemon, podId, shortName string) (*hypervisor.VolumeInfo, error)
- func (*VBoxStorage) Init() error
- func (v *VBoxStorage) InjectFile(src io.Reader, containerId, target, rootDir string, perm, uid, gid int) error
- func (v *VBoxStorage) PrepareContainer(id, sharedDir string) (*hypervisor.ContainerInfo, error)
- func (v *VBoxStorage) RemoveVolume(podId string, record []byte) error
- func (v *VBoxStorage) RootPath() string
- func (v *VBoxStorage) Type() string
Constants ¶
Variables ¶
View Source
var (
DefaultResourcePath string = "/var/run/hyper/Pods"
)
View Source
var StorageDrivers map[string]func(*dockertypes.Info) (Storage, error) = map[string]func(*dockertypes.Info) (Storage, error){ "devicemapper": DMFactory, "aufs": AufsFactory, "overlay": OverlayFsFactory, "vbox": VBoxStorageFactory, }
Functions ¶
func CleanupExistingVolume ¶ added in v0.6.0
func GetMountIdByContainer ¶ added in v0.6.0
func InitDockerCfg ¶ added in v0.6.0
func ParseServiceDiscovery ¶ added in v0.6.0
func ProbeExistingVolume ¶ added in v0.5.0
func ProbeExistingVolume(v *pod.UserVolume, sharedDir string) (*hypervisor.VolumeInfo, error)
func ServiceDiscoveryContainerName ¶ added in v0.5.0
Types ¶
type AufsStorage ¶ added in v0.5.0
type AufsStorage struct {
// contains filtered or unexported fields
}
func (*AufsStorage) CleanUp ¶ added in v0.5.0
func (*AufsStorage) CleanUp() error
func (*AufsStorage) CleanupContainer ¶ added in v0.6.0
func (a *AufsStorage) CleanupContainer(id, sharedDir string) error
func (*AufsStorage) CreateVolume ¶ added in v0.5.0
func (a *AufsStorage) CreateVolume(daemon *Daemon, podId, shortName string) (*hypervisor.VolumeInfo, error)
func (*AufsStorage) Init ¶ added in v0.5.0
func (*AufsStorage) Init() error
func (*AufsStorage) InjectFile ¶ added in v0.5.0
func (*AufsStorage) PrepareContainer ¶ added in v0.5.0
func (a *AufsStorage) PrepareContainer(id, sharedDir string) (*hypervisor.ContainerInfo, error)
func (*AufsStorage) RemoveVolume ¶ added in v0.5.0
func (a *AufsStorage) RemoveVolume(podId string, record []byte) error
func (*AufsStorage) RootPath ¶ added in v0.5.0
func (a *AufsStorage) RootPath() string
func (*AufsStorage) Type ¶ added in v0.5.0
func (a *AufsStorage) Type() string
type ContainerLogsConfig ¶ added in v0.6.0
type ContainerLogsConfig struct { // if true stream log output Follow bool // if true include timestamps for each line of log output Timestamps bool // return that many lines of log output from the end Tail string // filter logs by returning on those entries after this time Since time.Time // whether or not to show stdout and stderr as well as log entries. UseStdout, UseStderr bool OutStream io.Writer Stop <-chan bool }
ContainerLogsConfig holds configs for logging operations. Exists for users of the daemon to to pass it a logging configuration.
type Daemon ¶
type Daemon struct { *docker.Daemon ID string PodList *PodList VmList map[string]*hypervisor.Vm Factory factory.Factory Kernel string Initrd string Bios string Cbfs string VboxImage string BridgeIface string BridgeIP string Host string Storage Storage Hypervisor string DefaultLog *pod.PodLogConfig // contains filtered or unexported fields }
func NewDaemonFromDirectory ¶
func NewDaemonFromDirectory(cfg *goconfig.ConfigFile) (*Daemon, error)
func (*Daemon) AddService ¶ added in v0.5.0
func (*Daemon) AddVm ¶
func (daemon *Daemon) AddVm(vm *hypervisor.Vm)
func (*Daemon) Attach ¶ added in v0.6.0
func (daemon *Daemon) Attach(stdin io.ReadCloser, stdout io.WriteCloser, key, id, tag string) error
func (*Daemon) CmdAddService ¶ added in v0.6.0
func (*Daemon) CmdAttach ¶
func (daemon *Daemon) CmdAttach(stdin io.ReadCloser, stdout io.WriteCloser, key, id, tag string) error
func (*Daemon) CmdAuthenticateToRegistry ¶ added in v0.6.0
func (daemon *Daemon) CmdAuthenticateToRegistry(config *types.AuthConfig) (string, error)
func (*Daemon) CmdCleanPod ¶ added in v0.6.0
func (*Daemon) CmdCommitImage ¶ added in v0.6.0
func (*Daemon) CmdContainerRename ¶ added in v0.6.0
func (*Daemon) CmdCreateContainer ¶ added in v0.6.0
func (*Daemon) CmdCreatePod ¶ added in v0.6.0
FIXME: there was a `config` argument passed by docker/builder, but we never processed it.
func (*Daemon) CmdCreateVm ¶ added in v0.6.0
func (*Daemon) CmdDeleteService ¶ added in v0.6.0
func (*Daemon) CmdExec ¶
func (daemon *Daemon) CmdExec(stdin io.ReadCloser, stdout io.WriteCloser, key, id, cmd, tag string, terminal bool) error
func (*Daemon) CmdExitCode ¶ added in v0.5.0
func (*Daemon) CmdGetContainerInfo ¶ added in v0.6.0
func (*Daemon) CmdGetContainerLogs ¶ added in v0.6.0
func (daemon *Daemon) CmdGetContainerLogs(container string, config *ContainerLogsConfig) (err error)
func (*Daemon) CmdGetPodInfo ¶ added in v0.6.0
func (*Daemon) CmdGetPodStats ¶ added in v0.6.0
func (*Daemon) CmdGetServices ¶ added in v0.6.0
func (daemon *Daemon) CmdGetServices(podId string) ([]pod.UserService, error)
func (*Daemon) CmdImageDelete ¶ added in v0.6.0
func (*Daemon) CmdKillContainer ¶ added in v0.6.0
func (*Daemon) CmdKillPod ¶ added in v0.6.0
func (*Daemon) CmdPausePod ¶ added in v0.6.0
func (*Daemon) CmdSetPodLabels ¶ added in v0.6.0
func (*Daemon) CmdStartPod ¶ added in v0.6.0
func (daemon *Daemon) CmdStartPod(stdin io.ReadCloser, stdout io.WriteCloser, podId, vmId, tag string) (*engine.Env, error)
func (*Daemon) CmdStopPod ¶ added in v0.6.0
func (*Daemon) CmdSystemInfo ¶ added in v0.6.0
func (*Daemon) CmdSystemVersion ¶ added in v0.6.0
func (*Daemon) CmdTtyResize ¶ added in v0.6.0
func (*Daemon) CmdUnpausePod ¶ added in v0.6.0
func (*Daemon) CmdUpdateService ¶ added in v0.6.0
func (*Daemon) ContainerRename ¶ added in v0.6.0
func (*Daemon) DefaultLogCfg ¶ added in v0.5.0
func (*Daemon) DeleteService ¶ added in v0.5.0
func (*Daemon) DeleteVolumeId ¶
func (*Daemon) DestroyAllVm ¶
func (*Daemon) DestroyAndKeepVm ¶
func (*Daemon) Exec ¶ added in v0.6.0
func (daemon *Daemon) Exec(stdin io.ReadCloser, stdout io.WriteCloser, key, id, cmd, tag string, terminal bool) error
func (*Daemon) GetContainerInfo ¶ added in v0.6.0
func (daemon *Daemon) GetContainerInfo(name string) (types.ContainerInfo, error)
func (*Daemon) GetContainerLogs ¶ added in v0.6.0
func (daemon *Daemon) GetContainerLogs(container string, config *ContainerLogsConfig) (err error)
func (*Daemon) GetPodByContainer ¶
func (*Daemon) GetPodByContainerIdOrName ¶ added in v0.5.0
func (*Daemon) GetPodInfo ¶ added in v0.6.0
func (*Daemon) GetPodStats ¶ added in v0.6.0
func (*Daemon) GetRunningPodNum ¶
func (*Daemon) GetServiceContainerInfo ¶ added in v0.5.0
func (*Daemon) GetServices ¶ added in v0.5.0
func (daemon *Daemon) GetServices(podId string) ([]pod.UserService, error)
func (*Daemon) GetVM ¶ added in v0.5.0
func (daemon *Daemon) GetVM(vmId string, resource *pod.UserResource, lazy bool) (*hypervisor.Vm, error)
func (*Daemon) GetVmByPodId ¶ added in v0.5.0
func (*Daemon) KillContainer ¶ added in v0.6.0
func (*Daemon) KillPodContainers ¶ added in v0.6.0
func (Daemon) PauseContainer ¶ added in v0.5.0
func (*Daemon) PodStopped ¶ added in v0.5.0
func (*Daemon) ReleaseAllVms ¶
func (*Daemon) RemovePodContainer ¶ added in v0.6.0
func (*Daemon) RemovePodResource ¶ added in v0.6.0
func (*Daemon) RestartPod ¶
func (daemon *Daemon) RestartPod(mypod *hypervisor.PodStatus) error
The caller must make sure that the restart policy and the status is right to restart
func (*Daemon) SetPodLabels ¶ added in v0.6.0
func (*Daemon) StartInternal ¶ added in v0.6.0
func (*Daemon) StartPod ¶
func (daemon *Daemon) StartPod(stdin io.ReadCloser, stdout io.WriteCloser, podId, vmId, tag string) (int, string, error)
func (*Daemon) StopPodWithinLock ¶ added in v0.6.0
func (*Daemon) UnpauseContainer ¶ added in v0.5.0
func (*Daemon) UpdateService ¶ added in v0.5.0
func (*Daemon) WaitVmStart ¶ added in v0.5.0
func (daemon *Daemon) WaitVmStart(vm *hypervisor.Vm) error
func (*Daemon) WritePodAndContainers ¶
type DevMapperStorage ¶ added in v0.5.0
type DevMapperStorage struct { CtnPoolName string VolPoolName string DevPrefix string FsType string DmPoolData *dm.DeviceMapper // contains filtered or unexported fields }
func (*DevMapperStorage) CleanUp ¶ added in v0.5.0
func (dms *DevMapperStorage) CleanUp() error
func (*DevMapperStorage) CleanupContainer ¶ added in v0.6.0
func (dms *DevMapperStorage) CleanupContainer(id, sharedDir string) error
func (*DevMapperStorage) CreateVolume ¶ added in v0.5.0
func (dms *DevMapperStorage) CreateVolume(daemon *Daemon, podId, shortName string) (*hypervisor.VolumeInfo, error)
func (*DevMapperStorage) Init ¶ added in v0.5.0
func (dms *DevMapperStorage) Init() error
func (*DevMapperStorage) InjectFile ¶ added in v0.5.0
func (*DevMapperStorage) PrepareContainer ¶ added in v0.5.0
func (dms *DevMapperStorage) PrepareContainer(id, sharedDir string) (*hypervisor.ContainerInfo, error)
func (*DevMapperStorage) RemoveVolume ¶ added in v0.5.0
func (dms *DevMapperStorage) RemoveVolume(podId string, record []byte) error
func (*DevMapperStorage) RootPath ¶ added in v0.5.0
func (dms *DevMapperStorage) RootPath() string
func (*DevMapperStorage) Type ¶ added in v0.5.0
func (dms *DevMapperStorage) Type() string
type OverlayFsStorage ¶ added in v0.5.0
type OverlayFsStorage struct {
// contains filtered or unexported fields
}
func (*OverlayFsStorage) CleanUp ¶ added in v0.5.0
func (*OverlayFsStorage) CleanUp() error
func (*OverlayFsStorage) CleanupContainer ¶ added in v0.6.0
func (o *OverlayFsStorage) CleanupContainer(id, sharedDir string) error
func (*OverlayFsStorage) CreateVolume ¶ added in v0.5.0
func (o *OverlayFsStorage) CreateVolume(daemon *Daemon, podId, shortName string) (*hypervisor.VolumeInfo, error)
func (*OverlayFsStorage) Init ¶ added in v0.5.0
func (*OverlayFsStorage) Init() error
func (*OverlayFsStorage) InjectFile ¶ added in v0.5.0
func (*OverlayFsStorage) PrepareContainer ¶ added in v0.5.0
func (o *OverlayFsStorage) PrepareContainer(id, sharedDir string) (*hypervisor.ContainerInfo, error)
func (*OverlayFsStorage) RemoveVolume ¶ added in v0.5.0
func (o *OverlayFsStorage) RemoveVolume(podId string, record []byte) error
func (*OverlayFsStorage) RootPath ¶ added in v0.5.0
func (o *OverlayFsStorage) RootPath() string
func (*OverlayFsStorage) Type ¶ added in v0.5.0
func (o *OverlayFsStorage) Type() string
type Pod ¶
func (*Pod) AssociateVm ¶ added in v0.5.0
func (*Pod) AttachTtys ¶ added in v0.5.0
func (p *Pod) AttachTtys(daemon *Daemon, streams []*hypervisor.TtyIO) (err error)
func (*Pod) InitializeFinished ¶ added in v0.6.0
func (*Pod) ShouldWaitCleanUp ¶ added in v0.6.0
func (*Pod) Start ¶ added in v0.5.0
func (p *Pod) Start(daemon *Daemon, vmId string, lazy bool, streams []*hypervisor.TtyIO) (*types.VmResponse, error)
func (*Pod) Status ¶
func (p *Pod) Status() *hypervisor.PodStatus
func (*Pod) TransitionLock ¶ added in v0.6.0
func (*Pod) TransitionUnlock ¶ added in v0.6.0
type PodFilterOp ¶ added in v0.5.0
type PodList ¶ added in v0.5.0
type PodList struct {
// contains filtered or unexported fields
}
func NewPodList ¶ added in v0.5.0
func NewPodList() *PodList
func (*PodList) CountContainers ¶ added in v0.5.0
func (*PodList) CountRunning ¶ added in v0.5.0
func (*PodList) CountStatus ¶ added in v0.5.0
func (*PodList) Find ¶ added in v0.5.0
func (pl *PodList) Find(fn PodFilterOp) *Pod
func (*PodList) GetByContainerId ¶ added in v0.6.0
func (*PodList) GetByContainerIdOrName ¶ added in v0.6.0
type Storage ¶
type Storage interface { Type() string RootPath() string Init() error CleanUp() error PrepareContainer(id, sharedir string) (*hypervisor.ContainerInfo, error) CleanupContainer(id, sharedDir string) error InjectFile(src io.Reader, containerId, target, rootDir string, perm, uid, gid int) error CreateVolume(daemon *Daemon, podId, shortName string) (*hypervisor.VolumeInfo, error) RemoveVolume(podId string, record []byte) error }
func AufsFactory ¶ added in v0.5.0
func AufsFactory(sysinfo *dockertypes.Info) (Storage, error)
func OverlayFsFactory ¶ added in v0.5.0
func OverlayFsFactory(_ *dockertypes.Info) (Storage, error)
func StorageFactory ¶ added in v0.5.0
func StorageFactory(sysinfo *dockertypes.Info) (Storage, error)
func VBoxStorageFactory ¶ added in v0.5.0
func VBoxStorageFactory(_ *dockertypes.Info) (Storage, error)
type VBoxStorage ¶ added in v0.5.0
type VBoxStorage struct {
// contains filtered or unexported fields
}
func (*VBoxStorage) CleanUp ¶ added in v0.5.0
func (*VBoxStorage) CleanUp() error
func (*VBoxStorage) CleanupContainer ¶ added in v0.6.0
func (v *VBoxStorage) CleanupContainer(id, sharedDir string) error
func (*VBoxStorage) CreateVolume ¶ added in v0.5.0
func (v *VBoxStorage) CreateVolume(daemon *Daemon, podId, shortName string) (*hypervisor.VolumeInfo, error)
func (*VBoxStorage) Init ¶ added in v0.5.0
func (*VBoxStorage) Init() error
func (*VBoxStorage) InjectFile ¶ added in v0.5.0
func (*VBoxStorage) PrepareContainer ¶ added in v0.5.0
func (v *VBoxStorage) PrepareContainer(id, sharedDir string) (*hypervisor.ContainerInfo, error)
func (*VBoxStorage) RemoveVolume ¶ added in v0.5.0
func (v *VBoxStorage) RemoveVolume(podId string, record []byte) error
func (*VBoxStorage) RootPath ¶ added in v0.5.0
func (v *VBoxStorage) RootPath() string
func (*VBoxStorage) Type ¶ added in v0.5.0
func (v *VBoxStorage) Type() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.