Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
kms
✓ cloud.google.com/go/kms/apiv1
Create a KMS client and list key rings
package main
import (
"context"
"fmt"
kms "cloud.google.com/go/kms/apiv1"
kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1"
)
func main() {
ctx := context.Background()
client, err := kms.NewKeyManagementClient(ctx)
if err != nil {
panic(err)
}
defer client.Close()
fmt.Println(client.Connection())
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.31.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.