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 }
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 }