Documentation
¶
Index ¶
- Constants
- Variables
- func ValidReference(ref string) error
- type KMS
- func (g *KMS) CreateKey(ctx context.Context) (*ecdsa.PublicKey, error)
- func (g *KMS) ECDSAPublicKey(ctx context.Context) (*ecdsa.PublicKey, error)
- func (g *KMS) PublicKey(ctx context.Context) (crypto.PublicKey, error)
- func (g *KMS) Sign(ctx context.Context, payload []byte) (signature []byte, err error)
- func (g *KMS) Verify(ctx context.Context, payload, signature []byte) error
Constants ¶
View Source
const ReferenceScheme = "gcpkms://"
schemes for various KMS services are copied from https://github.com/google/go-cloud/tree/master/secrets
Variables ¶
View Source
var (
ErrKMSReference = errors.New("kms specification should be in the format gcpkms://projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEY_RING]/cryptoKeys/[KEY]")
)
Functions ¶
func ValidReference ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.