Exemple #1
0
func listRegions(p provisioner.Provisioner) {
	regions, err := p.ListRegions()
	if err != nil {
		log.Fatal(err)
	}

	log.Println("Available regions:")
	for _, r := range regions {
		log.Printf("%s -> %s", r.Name, r.Description)
	}
}
Exemple #2
0
func backgroundRunner(p provisioner.Provisioner) {
	select {
	case <-p.Signal():
		log.Debugf("Signal from provisioner.")
	}
}