github.phpd.cn/hashicorp/packer@v1.3.2/builder/alicloud/ecs/ssh_helper.go (about) 1 package ecs 2 3 import ( 4 "time" 5 6 "github.com/hashicorp/packer/helper/multistep" 7 ) 8 9 var ( 10 // modified in tests 11 sshHostSleepDuration = time.Second 12 ) 13 14 type alicloudSSHHelper interface { 15 } 16 17 // SSHHost returns a function that can be given to the SSH communicator 18 func SSHHost(e alicloudSSHHelper, private bool) func(multistep.StateBag) (string, error) { 19 return func(state multistep.StateBag) (string, error) { 20 ipAddress := state.Get("ipaddress").(string) 21 return ipAddress, nil 22 } 23 }