cm15/examples/rsssh/main.go
func fetchDetails(client *cm15.API, envName string, envDetail EnvironmentDetail, sshConfig *[]SSHConfig) {
	for nickname, name := range envDetail.ServerArrays {
		// Obtain the resource
		instances := serverArray(client, name)
		// Obtain the IP address of the first instance (only one instance is considered here -- for now)
		for _, instance := range instances {
			ipAddress := instance.PublicIpAddresses[0]
			number := getInstanceNumber(instance.Name)
			*sshConfig = append(*sshConfig, SSHConfig{Name: envName + "_" + nickname + number, IPAddress: ipAddress})
		}
	}
	for nickname, name := range envDetail.Servers {
		instance := server(client, name)
		ipAddress := instance.PublicIpAddresses[0]
		*sshConfig = append(*sshConfig, SSHConfig{Name: envName + "_" + nickname, IPAddress: ipAddress})
	}
}
func fetchDetails(client *cm15.API, envName string, envDetail EnvironmentDetail, sshConfig *[]SSHConfig) {
	for nickname, name := range envDetail.ServerArrays {
		// Obtain the resource
		instances := serverArray(client, name)
		// Obtain the IP address of the first instance (only one instance is considered here -- for now)
		for _, instance := range instances {
			ipAddress := instance.PublicIpAddresses[0]
			number := getInstanceNumber(instance.Name)
			*sshConfig = append(*sshConfig, SSHConfig{Name: envName + "_" + nickname + number, IPAddress: ipAddress})
		}
	}
	for nickname, name := range envDetail.Servers {
		instance := server(client, name)
		ipAddress := instance.PublicIpAddresses[0]
		*sshConfig = append(*sshConfig, SSHConfig{Name: envName + "_" + nickname, IPAddress: ipAddress})
	}
}
// Fetch details about all servers and server arrays in an environment