Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is the random reader.
func NewReader ¶
NewReader creates a new random reader. It establishes a connection to Google Cloud KMS with the provided parameters. The location is specified as the "project/<project>/locations/<location>".
Example ¶
package main import ( gcpkmsrand "github.com/sethvargo/gcpkms-rand" ) func main() { r, err := gcpkmsrand.NewReader("projects/my-project/locations/us-east1") if err != nil { // handle error } _ = r }
Output:
Click to show internal directories.
Click to hide internal directories.