» fmt.Fprintf(os.Stderr, "vv Testing now.\n")
» config := ubuntu_sdk_tools.GetConfigOrDie()
» fmt.Fprintf(os.Stderr, "Got config: %s\n", config.DefaultRemote)
» client, lxdErr := lxd.NewClient(config, config.DefaultRemote)
» if lxdErr != nil {
» » fmt.Fprintf(os.Stderr, "Lxd connect error:\n", lxdErr)
» } else {
» » fmt.Fprintf(os.Stderr, "Client: %s\n", client.Name)
» » containers, listErr := client.ListContainers()
» » if listErr != nil {
» » » fmt.Fprintf(os.Stderr, "Lxd list error:\n", listErr)
» » } else {
» » » for i := range containers {
» » » » fmt.Fprintf(os.Stderr, "%s (%s)\n", containers[i].Name, containers[i].Status)
» » » }
» » }
» }
» fmt.Fprintf(os.Stderr, "^^ Testing concluded.\n")