SDKs
Go SDK
Install and use the Kaiten Go SDK.
Go SDK
The Go SDK is currently under development. This page will be updated when it is released. In the meantime, use the REST API directly or the OpenFeature Go OFREP provider.
Installation
go get github.com/kaitencloud/kaiten-goQuick Start
package main
import (
"context"
"fmt"
kaiten "github.com/kaitencloud/kaiten-go"
)
func main() {
client := kaiten.NewClient(
"http://localhost:6000/api",
kaiten.WithToken("ksh_your_token_here"),
)
// List customers
customers, err := client.Customers.List(context.Background())
if err != nil {
panic(err)
}
for _, c := range customers.Items {
fmt.Printf("Customer: %s (%s)\n", c.Name, c.Slug)
}
// Create a customer
customer, err := client.Customers.Create(context.Background(), &kaiten.CreateCustomerInput{
Name: "New Customer",
})
if err != nil {
panic(err)
}
fmt.Printf("Created: %s\n", customer.Slug)
}Available Methods
All REST API endpoints are available as typed methods:
client.Customers.List(),.Create(),.Get(),.Update(),.Delete()client.Instances.List(),.Create(),.Get(),.ReportUsage()client.Licenses.List(),.Create(),.AttachEntitlement()client.FeatureFlags.List(),.Create(),.Get(),.Update()client.Webhooks.List(),.Create(),.History()

