Esempio n. 1
0
func (s Service) Ping(path string, name string) error {
	err := utils.Ping(path)

	if err != nil {
		return errors.New(name + " is not up!")

	}
	log.Printf(name + " is up!")
	return nil
}
Esempio n. 2
0
func (image DockerImage) isReachable() error {
	if err := utils.Ping(formatURI(image.Registry)); err != nil {
		return errors.New("Registry is not reachable: " + err.Error())
	}
	return nil
}