Documentation ¶
Index ¶
- Constants
- func InitRequest(context *endly.Context, rawRequest map[string]interface{}) error
- func New() endly.Service
- func ShallUpdatePolicy(prev, policy *Policy) bool
- type CtxClient
- type DecryptRequest
- type DecryptResponse
- type DeployKeyRequest
- type DeployKeyResponse
- type EncryptRequest
- type EncryptResponse
- type KeyInfo
- type Policy
Constants ¶
View Source
const (
//ServiceID Google cloudkms Service ID.
ServiceID = "gcp/kms"
)
Variables ¶
This section is empty.
Functions ¶
func InitRequest ¶
func ShallUpdatePolicy ¶
ShallUpdatePolicy returns true if policy needs to be updated
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 *location.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 *Policy PolicyVersion int64 // 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 Policy *Policy }
DeployKeyRequest represents a deploy KeyInfo response
type EncryptRequest ¶
type EncryptRequest struct { KeyInfo PlainBase64Text string PlainData []byte Source *location.Resource Dest *location.Resource }
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.