Documentation ¶
Index ¶
Constants ¶
View Source
const (
//ServiceID Google cloudkms Service ID.
ServiceID = "gcp/kms"
)
Variables ¶
This section is empty.
Functions ¶
func InitRequest ¶
Types ¶
type CtxClient ¶
type CtxClient struct { *gcp.AbstractClient // contains filtered or unexported fields }
CtxClient represents context client
func (*CtxClient) SetService ¶
type DecryptRequest ¶
type DecryptRequest struct { KeyInfo CipherData []byte CipherBase64Text string Source *url.Resource }
DecryptRequest represents decrypt response
func NewDecryptRequest ¶
func NewDecryptRequest(region, ring, keyId string, data []byte) *DecryptRequest
NewEncryptRequest creates a new DecryptRequest
type DecryptResponse ¶
DecryptResponse represents decrypt response
type DeployKeyRequest ¶
type DeployKeyRequest struct { KeyInfo Labels map[string]string Purpose string // contains filtered or unexported fields }
DeployKeyRequest represents a deploy KeyInfo request
func NewDeployKeyRequest ¶
func NewDeployKeyRequest(region, ring, keyId, purpose string) *DeployKeyRequest
NewDeployKeyRequest creates a new DeployKeyRequest
func (*DeployKeyRequest) Init ¶
func (r *DeployKeyRequest) Init() error
func (*DeployKeyRequest) Validate ¶
func (r *DeployKeyRequest) Validate() error
type DeployKeyResponse ¶
type DeployKeyResponse struct {
*cloudkms.CryptoKey
}
DeployKeyRequest represents a deploy KeyInfo response
type EncryptRequest ¶
EncryptRequest represents encrypt request
func NewEncryptRequest ¶
func NewEncryptRequest(region, ring, keyId string, plainData []byte) *EncryptRequest
NewEncryptRequest creates a new EncryptRequest
func (*EncryptRequest) Validate ¶
func (r *EncryptRequest) Validate() error
type EncryptResponse ¶
EncryptResponse represents encrypt response
Click to show internal directories.
Click to hide internal directories.