Registry /
cloud / ibm-keyprotect-go-client
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.
kp
✓ github.com/IBM/keyprotect-go-client
Creates a KeyProtect client and lists all keys in the instance.
package main
import (
"fmt"
"github.com/IBM/keyprotect-go-client"
)
func main() {
c, err := kp.New(kp.Config{
BaseURL: "https://us-south.kms.cloud.ibm.com",
APIKey: "your-api-key",
InstanceID: "your-instance-id",
})
if err != nil {
panic(err)
}
keys, err := c.GetKeys(nil)
if err != nil {
panic(err)
}
fmt.Printf("Found %d keys\n", len(keys))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.15.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.