Documentation ¶
Index ¶
- func DriversProbe() hypervisor.HypervisorDriver
- type Container
- type Daemon
- func (daemon *Daemon) AddPod(pod *Pod)
- func (daemon *Daemon) AddVm(vm *Vm)
- func (daemon *Daemon) AssociateAllVms() error
- func (daemon *Daemon) CleanVolume(stop int) error
- func (daemon *Daemon) CmdAttach(job *engine.Job) (err error)
- func (daemon *Daemon) CmdCreate(job *engine.Job) error
- func (daemon *Daemon) CmdExec(job *engine.Job) (err error)
- func (daemon *Daemon) CmdInfo(job *engine.Job) error
- func (daemon *Daemon) CmdList(job *engine.Job) error
- func (daemon *Daemon) CmdPodCreate(job *engine.Job) error
- func (daemon *Daemon) CmdPodInfo(job *engine.Job) error
- func (daemon *Daemon) CmdPodRm(job *engine.Job) (err error)
- func (daemon *Daemon) CmdPodRun(job *engine.Job) error
- func (daemon *Daemon) CmdPodStart(job *engine.Job) error
- func (daemon *Daemon) CmdPodStop(job *engine.Job) error
- func (daemon *Daemon) CmdPull(job *engine.Job) error
- func (daemon *Daemon) CmdTty(job *engine.Job) (err error)
- func (daemon *Daemon) CmdVersion(job *engine.Job) error
- func (daemon *Daemon) CmdVmCreate(job *engine.Job) (err error)
- func (daemon *Daemon) CmdVmKill(job *engine.Job) error
- func (daemon *Daemon) CreatePod(podArgs, podId string, wg *sync.WaitGroup) error
- func (daemon *Daemon) CreateVolume(podId, volName, dev_id string, restore bool) error
- func (daemon *Daemon) DeletePodContainerFromDB(podName string) error
- func (daemon *Daemon) DeletePodFromDB(podName string) error
- func (daemon *Daemon) DeleteQemuChan(vmid string) error
- func (daemon *Daemon) DeleteVmByPod(podId string) error
- func (daemon *Daemon) DeleteVmData(vmId string) error
- func (daemon *Daemon) DeleteVolumeId(podId string) error
- func (daemon *Daemon) DestroyAllVm() error
- func (daemon *Daemon) DestroyAndKeepVm() error
- func (daemon *Daemon) GetMaxDeviceId() (int, error)
- func (daemon *Daemon) GetPodByContainer(containerId string) (string, error)
- func (daemon *Daemon) GetPodByName(podName string) ([]byte, error)
- func (daemon *Daemon) GetPodContainersByName(podName string) ([]string, error)
- func (daemon *Daemon) GetPodNum() int64
- func (daemon *Daemon) GetPodVmByName(podName string) (string, error)
- func (daemon *Daemon) GetQemuChan(vmid string) (interface{}, interface{}, interface{}, error)
- func (daemon *Daemon) GetRunningPodNum() int64
- func (daemon *Daemon) GetVmByPod(podId string) (string, error)
- func (daemon *Daemon) GetVmData(vmId string) ([]byte, error)
- func (daemon *Daemon) GetVolumeId(podId, volName string) (int, error)
- func (daemon *Daemon) Install(eng *engine.Engine) error
- func (daemon *Daemon) KillVm(vmId string) (int, string, error)
- func (daemon *Daemon) ReleaseAllVms() (int, error)
- func (daemon *Daemon) RemovePod(podId string)
- func (daemon *Daemon) RemoveVm(vmId string)
- func (daemon *Daemon) RestartPod(mypod *Pod) error
- func (daemon *Daemon) Restore() error
- func (daemon *Daemon) SetContainerStatus(podId string, status uint)
- func (daemon *Daemon) SetPodByContainer(containerId, podId, name, image string, cmds []string, status uint) error
- func (daemon *Daemon) SetPodContainerStatus(podId string, data []uint32)
- func (daemon *Daemon) SetQemuChan(vmid string, qemuchan, qemuclient, subQemuClient interface{}) error
- func (daemon *Daemon) SetVolumeId(podId, volName, dev_id string) error
- func (daemon *Daemon) StartPod(podId, vmId, podArgs string) (int, string, error)
- func (daemon *Daemon) StopPod(podId, stopVm string) (int, string, error)
- func (daemon *Daemon) UpdateVmByPod(podId, vmId string) error
- func (daemon *Daemon) UpdateVmData(vmId string, data []byte) error
- func (daemon *Daemon) WritePodAndContainers(podName string) error
- func (daemon *Daemon) WritePodToDB(podName string, podData []byte) error
- type Pod
- type Storage
- type Vm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DriversProbe ¶
func DriversProbe() hypervisor.HypervisorDriver
Types ¶
type Daemon ¶
type Daemon struct { ID string BridgeIface string BridgeIP string Host string Storage *Storage // contains filtered or unexported fields }
func (*Daemon) AssociateAllVms ¶
This function will only be invoked during daemon start
func (*Daemon) CleanVolume ¶
If the stop is 1, we do not delete the pool data. Or just delete it.
func (*Daemon) CreateVolume ¶
func (*Daemon) DeletePodContainerFromDB ¶
func (*Daemon) DeletePodFromDB ¶
func (*Daemon) DeleteQemuChan ¶
func (*Daemon) DeleteVmByPod ¶
func (*Daemon) DeleteVmData ¶
func (*Daemon) DeleteVolumeId ¶
func (*Daemon) DestroyAllVm ¶
func (*Daemon) DestroyAndKeepVm ¶
func (*Daemon) GetMaxDeviceId ¶
func (*Daemon) GetPodByContainer ¶
func (*Daemon) GetPodContainersByName ¶
func (*Daemon) GetPodVmByName ¶
func (*Daemon) GetQemuChan ¶
func (*Daemon) GetRunningPodNum ¶
func (*Daemon) ReleaseAllVms ¶
func (*Daemon) RestartPod ¶
The caller must make sure that the restart policy and the status is right to restart
func (*Daemon) SetContainerStatus ¶
func (*Daemon) SetPodByContainer ¶
func (*Daemon) SetPodContainerStatus ¶
func (*Daemon) SetQemuChan ¶
func (*Daemon) SetVolumeId ¶
func (*Daemon) UpdateVmByPod ¶
func (*Daemon) WritePodAndContainers ¶
Click to show internal directories.
Click to hide internal directories.