package main
import (
"fmt"
"log"
"github.com/cgroschupp/go-client-confluent-cloud/confluentcloud"
)
func main() {
client := confluentcloud.NewClient("<EMAIL>", "<PASSWORD>")
err := client.Login()
if err != nil {
log.Print(err)
return
}
userData, err := client.Me()
if err != nil {
log.Print(err)
return
}
clusters, err := client.ListClusters(userData.Account.ID)
if err != nil {
log.Print(err)
return
}
for _, cluster := range clusters {
fmt.Println(cluster.ID)
}
}
-
Notifications
You must be signed in to change notification settings - Fork 19
License
cgroschupp/go-client-confluent-cloud
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published