// Implementation of the Cloud interface
Implementation of the Cloud interface
// Implementation of the Cloud interface
func (cloud GCECloud) GetPublicIPAddress(name string, zone string) (string, error) {
	instance, err := cloud.service.Instances.Get(cloud.projectId, zone, name).Do()
	if err != nil {
		return "", err
	}
	return instance.NetworkInterfaces[0].AccessConfigs[0].NatIP, nil
}
func ( cloud GCECloud ) GetPublicIPAddress ( name string , zone string ) ( string , error ) { instance , err := cloud . service . Instances . Get ( cloud . projectId , zone , name ) . Do ( ) if err != nil { return " " , err } return instance . NetworkInterfaces [ 0 ] . AccessConfigs [ 0 ] . NatIP , nil }
Implementation of the Cloud interface
Implementation of the Cloud interface
// Found the instance, we're good.