Documentation ¶
Index ¶
- type PalletOneDocker
- func (pD *PalletOneDocker) CreateDefaultUserContractNetWork()
- func (pD *PalletOneDocker) GetAllContainers() ([]docker.APIContainers, error)
- func (pD *PalletOneDocker) GetAllContainersAddrsWithStatus(cons []docker.APIContainers, status string) ([]string, error)
- func (pD *PalletOneDocker) PullUserContractImages(n chan<- struct{})
- func (pD *PalletOneDocker) RemoveExpiredContainers(cons []docker.APIContainers)
- func (pD *PalletOneDocker) RestartExitedAndUnExpiredContainers(cons []docker.APIContainers)
- func (pD *PalletOneDocker) RestartUserContractsWhenStartGptn(n1 <-chan struct{}, n2 chan<- struct{})
- func (pD *PalletOneDocker) RetrieveExpiredContainers(containers []docker.APIContainers) map[string]common.Address
- func (pD *PalletOneDocker) RmConsOverDisk(cc *list.CCInfo) (sizeRW int64, disk int64, isOver bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PalletOneDocker ¶ added in v1.0.5
type PalletOneDocker struct { DockerClient *docker.Client // contains filtered or unexported fields }
func NewPalletOneDocker ¶ added in v1.0.5
func NewPalletOneDocker(dag dboperation.IContractDag, jury core2.IAdapterJury) *PalletOneDocker
func (*PalletOneDocker) CreateDefaultUserContractNetWork ¶ added in v1.0.5
func (pD *PalletOneDocker) CreateDefaultUserContractNetWork()
func (*PalletOneDocker) GetAllContainers ¶ added in v1.0.5
func (pD *PalletOneDocker) GetAllContainers() ([]docker.APIContainers, error)
func (*PalletOneDocker) GetAllContainersAddrsWithStatus ¶ added in v1.0.5
func (pD *PalletOneDocker) GetAllContainersAddrsWithStatus(cons []docker.APIContainers, status string) ([]string, error)
获取用户合约异常退出的监听函数
status: Up, Exited
func (*PalletOneDocker) PullUserContractImages ¶ added in v1.0.5
func (pD *PalletOneDocker) PullUserContractImages(n chan<- struct{})
func (*PalletOneDocker) RemoveExpiredContainers ¶ added in v1.0.5
func (pD *PalletOneDocker) RemoveExpiredContainers(cons []docker.APIContainers)
删除所有过期容器
func (*PalletOneDocker) RestartExitedAndUnExpiredContainers ¶ added in v1.0.5
func (pD *PalletOneDocker) RestartExitedAndUnExpiredContainers(cons []docker.APIContainers)
func (*PalletOneDocker) RestartUserContractsWhenStartGptn ¶ added in v1.0.5
func (pD *PalletOneDocker) RestartUserContractsWhenStartGptn(n1 <-chan struct{}, n2 chan<- struct{})
func (*PalletOneDocker) RetrieveExpiredContainers ¶ added in v1.0.5
func (pD *PalletOneDocker) RetrieveExpiredContainers(containers []docker.APIContainers) map[string]common.Address
func (*PalletOneDocker) RmConsOverDisk ¶ added in v1.0.5
调用的时候,若调用完发现磁盘使用超过系统上限,则kill掉并移除
Click to show internal directories.
Click to hide internal directories.