Example #1
0
func IsChainRunning(chain *definitions.Chain) bool {
	cName := util.FindChainContainer(chain.Name, chain.Operations.ContainerNumber, false)
	if cName == nil {
		return false
	}
	chain.Operations.SrvContainerID = cName.ContainerID
	return true

}
Example #2
0
func IsChainExisting(chain *definitions.Chain) bool {
	logger.Debugf("Does Chain Exist? =>\t\t%s:%d\n", chain.Name, chain.Operations.ContainerNumber)
	cName := util.FindChainContainer(chain.Name, chain.Operations.ContainerNumber, true)
	if cName == nil {
		return false
	}
	chain.Operations.SrvContainerID = cName.ContainerID
	return true
}
Example #3
0
func IsChainRunning(chain *definitions.Chain) bool {
	log.WithField("=>", fmt.Sprintf("%s:%d", chain.Name, chain.Operations.ContainerNumber)).Debug("Checking chain running")
	cName := util.FindChainContainer(chain.Name, chain.Operations.ContainerNumber, false)
	if cName == nil {
		return false
	}
	chain.Operations.SrvContainerID = cName.ContainerID
	return true
}