Skip to content

cgroschupp/go-client-confluent-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-client-confluent-cloud

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)
	}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages