Created
December 28, 2019 23:53
-
-
Save hiranya911/c4d702c467ca94f14ca659fe110cd9d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iter := client.TenantManager.Tenants(ctx, "") | |
| for { | |
| tenant, err := iter.Next() | |
| if err == iterator.Done { | |
| break | |
| } | |
| if err != nil { | |
| log.Fatalf("error listing tenants: %v\n", err) | |
| } | |
| log.Printf("Retrieved tenant: %q\n", tenant.ID) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment