utils

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2020 License: GPL-3.0, GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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

func (pD *PalletOneDocker) RmConsOverDisk(cc *list.CCInfo) (sizeRW int64, disk int64, isOver bool)

调用的时候,若调用完发现磁盘使用超过系统上限,则kill掉并移除

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL