Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterKeyManagementServiceServer(s grpc.ServiceRegistrar, srv KeyManagementServiceServer)
- type BatchGetKeyMaterialsRequest
- func (*BatchGetKeyMaterialsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetKeyMaterialsRequest) GetNames() []string
- func (x *BatchGetKeyMaterialsRequest) GetParent() string
- func (*BatchGetKeyMaterialsRequest) ProtoMessage()
- func (x *BatchGetKeyMaterialsRequest) ProtoReflect() protoreflect.Message
- func (x *BatchGetKeyMaterialsRequest) Reset()
- func (x *BatchGetKeyMaterialsRequest) String() string
- type BatchGetKeyMaterialsResponse
- func (*BatchGetKeyMaterialsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetKeyMaterialsResponse) GetKeyMaterials() []*KeyMaterial
- func (*BatchGetKeyMaterialsResponse) ProtoMessage()
- func (x *BatchGetKeyMaterialsResponse) ProtoReflect() protoreflect.Message
- func (x *BatchGetKeyMaterialsResponse) Reset()
- func (x *BatchGetKeyMaterialsResponse) String() string
- type DecryptBlobRequest
- func (*DecryptBlobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DecryptBlobRequest) GetCipherText() []byte
- func (x *DecryptBlobRequest) GetName() string
- func (*DecryptBlobRequest) ProtoMessage()
- func (x *DecryptBlobRequest) ProtoReflect() protoreflect.Message
- func (x *DecryptBlobRequest) Reset()
- func (x *DecryptBlobRequest) String() string
- type DecryptBlobResponse
- func (*DecryptBlobResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DecryptBlobResponse) GetAlgorithm() crypto.EncryptionAlgorithm
- func (x *DecryptBlobResponse) GetBlob() []byte
- func (x *DecryptBlobResponse) GetKeyMaterial() string
- func (*DecryptBlobResponse) ProtoMessage()
- func (x *DecryptBlobResponse) ProtoReflect() protoreflect.Message
- func (x *DecryptBlobResponse) Reset()
- func (x *DecryptBlobResponse) String() string
- type DecryptContentRequest
- func (*DecryptContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DecryptContentRequest) GetEncryptedContent() *crypto.EncryptedContent
- func (x *DecryptContentRequest) GetName() string
- func (*DecryptContentRequest) ProtoMessage()
- func (x *DecryptContentRequest) ProtoReflect() protoreflect.Message
- func (x *DecryptContentRequest) Reset()
- func (x *DecryptContentRequest) String() string
- type DecryptContentResponse
- func (*DecryptContentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DecryptContentResponse) GetAlgorithm() crypto.EncryptionAlgorithm
- func (x *DecryptContentResponse) GetContent() []byte
- func (x *DecryptContentResponse) GetKeyMaterial() string
- func (*DecryptContentResponse) ProtoMessage()
- func (x *DecryptContentResponse) ProtoReflect() protoreflect.Message
- func (x *DecryptContentResponse) Reset()
- func (x *DecryptContentResponse) String() string
- type EncryptBlobRequest
- func (*EncryptBlobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptBlobRequest) GetBlob() []byte
- func (x *EncryptBlobRequest) GetKeyAlgorithm() crypto.KeyManagementAlgorithm
- func (x *EncryptBlobRequest) GetName() string
- func (*EncryptBlobRequest) ProtoMessage()
- func (x *EncryptBlobRequest) ProtoReflect() protoreflect.Message
- func (x *EncryptBlobRequest) Reset()
- func (x *EncryptBlobRequest) String() string
- type EncryptBlobResponse
- func (*EncryptBlobResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptBlobResponse) GetAlgorithm() crypto.EncryptionAlgorithm
- func (x *EncryptBlobResponse) GetCipherText() []byte
- func (x *EncryptBlobResponse) GetKeyMaterial() string
- func (*EncryptBlobResponse) ProtoMessage()
- func (x *EncryptBlobResponse) ProtoReflect() protoreflect.Message
- func (x *EncryptBlobResponse) Reset()
- func (x *EncryptBlobResponse) String() string
- type EncryptContentRequest
- func (*EncryptContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptContentRequest) GetContent() []byte
- func (x *EncryptContentRequest) GetName() string
- func (*EncryptContentRequest) ProtoMessage()
- func (x *EncryptContentRequest) ProtoReflect() protoreflect.Message
- func (x *EncryptContentRequest) Reset()
- func (x *EncryptContentRequest) String() string
- type EncryptContentResponse
- func (*EncryptContentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptContentResponse) GetAlgorithm() crypto.EncryptionAlgorithm
- func (x *EncryptContentResponse) GetEncryptedContent() *crypto.EncryptedContent
- func (x *EncryptContentResponse) GetKeyMaterial() string
- func (*EncryptContentResponse) ProtoMessage()
- func (x *EncryptContentResponse) ProtoReflect() protoreflect.Message
- func (x *EncryptContentResponse) Reset()
- func (x *EncryptContentResponse) String() string
- type GetKeyMaterialRequest
- func (*GetKeyMaterialRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeyMaterialRequest) GetName() string
- func (*GetKeyMaterialRequest) ProtoMessage()
- func (x *GetKeyMaterialRequest) ProtoReflect() protoreflect.Message
- func (x *GetKeyMaterialRequest) Reset()
- func (x *GetKeyMaterialRequest) String() string
- type GetKeyRequest
- type GetKeyRingRequest
- type Key
- func (*Key) Descriptor() ([]byte, []int)deprecated
- func (x *Key) GetAlgorithmParameters() *crypto.KeyAlgorithmParameters
- func (x *Key) GetAlgorithmType() crypto.KeyAlgorithmType
- func (x *Key) GetAliases() []string
- func (x *Key) GetCreateTime() *timestamppb.Timestamp
- func (x *Key) GetDestroyProtection() bool
- func (x *Key) GetDisplayName() string
- func (x *Key) GetEncryptionAlgorithms() []crypto.EncryptionAlgorithm
- func (x *Key) GetLastRotatedTime() *timestamppb.Timestamp
- func (x *Key) GetName() string
- func (x *Key) GetRotationInterval() *durationpb.Duration
- func (x *Key) GetSigningAlgorithms() []crypto.SignatureAlgorithm
- func (x *Key) GetUid() string
- func (x *Key) GetUpdateTime() *timestamppb.Timestamp
- func (*Key) ProtoMessage()
- func (x *Key) ProtoReflect() protoreflect.Message
- func (x *Key) Reset()
- func (x *Key) String() string
- type KeyManagementServiceClient
- type KeyManagementServiceServer
- type KeyMaterial
- func (*KeyMaterial) Descriptor() ([]byte, []int)deprecated
- func (x *KeyMaterial) GetCreateTime() *timestamppb.Timestamp
- func (x *KeyMaterial) GetName() string
- func (x *KeyMaterial) GetPublicKey() *crypto.KeyMaterial
- func (*KeyMaterial) ProtoMessage()
- func (x *KeyMaterial) ProtoReflect() protoreflect.Message
- func (x *KeyMaterial) Reset()
- func (x *KeyMaterial) String() string
- type KeyMaterialContent
- func (*KeyMaterialContent) Descriptor() ([]byte, []int)deprecated
- func (x *KeyMaterialContent) GetHeader() *KeyMaterialContent_Header
- func (x *KeyMaterialContent) GetMaterial() *crypto.KeyMaterial
- func (*KeyMaterialContent) ProtoMessage()
- func (x *KeyMaterialContent) ProtoReflect() protoreflect.Message
- func (x *KeyMaterialContent) Reset()
- func (x *KeyMaterialContent) String() string
- type KeyMaterialContent_Header
- func (*KeyMaterialContent_Header) Descriptor() ([]byte, []int)deprecated
- func (x *KeyMaterialContent_Header) GetKeyAlgorithmType() crypto.KeyAlgorithmType
- func (x *KeyMaterialContent_Header) GetKeyId() string
- func (x *KeyMaterialContent_Header) GetKeyManagementAlgorithms() []crypto.KeyManagementAlgorithm
- func (x *KeyMaterialContent_Header) GetKeyOps() []KeyOperations
- func (x *KeyMaterialContent_Header) GetKeyUse() KeyUse
- func (x *KeyMaterialContent_Header) GetMaterialId() string
- func (x *KeyMaterialContent_Header) GetSignatureAlgorithms() []crypto.SignatureAlgorithm
- func (*KeyMaterialContent_Header) ProtoMessage()
- func (x *KeyMaterialContent_Header) ProtoReflect() protoreflect.Message
- func (x *KeyMaterialContent_Header) Reset()
- func (x *KeyMaterialContent_Header) String() string
- type KeyOperations
- func (KeyOperations) Descriptor() protoreflect.EnumDescriptor
- func (x KeyOperations) Enum() *KeyOperations
- func (KeyOperations) EnumDescriptor() ([]byte, []int)deprecated
- func (x KeyOperations) Number() protoreflect.EnumNumber
- func (x KeyOperations) String() string
- func (KeyOperations) Type() protoreflect.EnumType
- type KeyRing
- func (*KeyRing) Descriptor() ([]byte, []int)deprecated
- func (x *KeyRing) GetAliases() []string
- func (x *KeyRing) GetCreateTime() *timestamppb.Timestamp
- func (x *KeyRing) GetDeleteProtection() bool
- func (x *KeyRing) GetDisplayName() string
- func (x *KeyRing) GetEtag() string
- func (x *KeyRing) GetKeys() []string
- func (x *KeyRing) GetName() string
- func (x *KeyRing) GetUid() string
- func (x *KeyRing) GetUpdateTime() *timestamppb.Timestamp
- func (*KeyRing) ProtoMessage()
- func (x *KeyRing) ProtoReflect() protoreflect.Message
- func (x *KeyRing) Reset()
- func (x *KeyRing) String() string
- type KeyUse
- type ListKeyMaterialsRequest
- func (*ListKeyMaterialsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeyMaterialsRequest) GetPageSize() int32
- func (x *ListKeyMaterialsRequest) GetPageToken() string
- func (x *ListKeyMaterialsRequest) GetParent() string
- func (*ListKeyMaterialsRequest) ProtoMessage()
- func (x *ListKeyMaterialsRequest) ProtoReflect() protoreflect.Message
- func (x *ListKeyMaterialsRequest) Reset()
- func (x *ListKeyMaterialsRequest) String() string
- type ListKeyMaterialsResponse
- func (*ListKeyMaterialsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeyMaterialsResponse) GetKeyMaterials() []*KeyMaterial
- func (x *ListKeyMaterialsResponse) GetNextPageToken() string
- func (*ListKeyMaterialsResponse) ProtoMessage()
- func (x *ListKeyMaterialsResponse) ProtoReflect() protoreflect.Message
- func (x *ListKeyMaterialsResponse) Reset()
- func (x *ListKeyMaterialsResponse) String() string
- type ListKeyRingKeyMaterialsRequest
- func (*ListKeyRingKeyMaterialsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeyRingKeyMaterialsRequest) GetPageSize() int32
- func (x *ListKeyRingKeyMaterialsRequest) GetPageToken() string
- func (*ListKeyRingKeyMaterialsRequest) ProtoMessage()
- func (x *ListKeyRingKeyMaterialsRequest) ProtoReflect() protoreflect.Message
- func (x *ListKeyRingKeyMaterialsRequest) Reset()
- func (x *ListKeyRingKeyMaterialsRequest) String() string
- type ListKeyRingKeyMaterialsResponse
- func (*ListKeyRingKeyMaterialsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeyRingKeyMaterialsResponse) GetKeyMaterials() []*KeyMaterial
- func (x *ListKeyRingKeyMaterialsResponse) GetNextPageToken() string
- func (*ListKeyRingKeyMaterialsResponse) ProtoMessage()
- func (x *ListKeyRingKeyMaterialsResponse) ProtoReflect() protoreflect.Message
- func (x *ListKeyRingKeyMaterialsResponse) Reset()
- func (x *ListKeyRingKeyMaterialsResponse) String() string
- type ListKeysRequest
- func (*ListKeysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeysRequest) GetPageSize() int32
- func (x *ListKeysRequest) GetPageToken() string
- func (*ListKeysRequest) ProtoMessage()
- func (x *ListKeysRequest) ProtoReflect() protoreflect.Message
- func (x *ListKeysRequest) Reset()
- func (x *ListKeysRequest) String() string
- type ListKeysResponse
- func (*ListKeysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeysResponse) GetKeys() []*Key
- func (x *ListKeysResponse) GetNextPageToken() string
- func (*ListKeysResponse) ProtoMessage()
- func (x *ListKeysResponse) ProtoReflect() protoreflect.Message
- func (x *ListKeysResponse) Reset()
- func (x *ListKeysResponse) String() string
- type SignBlobRequest
- func (*SignBlobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignBlobRequest) GetAlgorithm() crypto.SignatureAlgorithm
- func (x *SignBlobRequest) GetBlob() []byte
- func (x *SignBlobRequest) GetName() string
- func (*SignBlobRequest) ProtoMessage()
- func (x *SignBlobRequest) ProtoReflect() protoreflect.Message
- func (x *SignBlobRequest) Reset()
- func (x *SignBlobRequest) String() string
- type SignBlobResponse
- func (*SignBlobResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignBlobResponse) GetAlgorithm() crypto.SignatureAlgorithm
- func (x *SignBlobResponse) GetKeyMaterial() string
- func (x *SignBlobResponse) GetSignature() []byte
- func (*SignBlobResponse) ProtoMessage()
- func (x *SignBlobResponse) ProtoReflect() protoreflect.Message
- func (x *SignBlobResponse) Reset()
- func (x *SignBlobResponse) String() string
- type SignContentRequest
- func (*SignContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignContentRequest) GetAlgorithm() crypto.SignatureAlgorithm
- func (x *SignContentRequest) GetContent() []byte
- func (x *SignContentRequest) GetMeta() map[string]string
- func (x *SignContentRequest) GetName() string
- func (*SignContentRequest) ProtoMessage()
- func (x *SignContentRequest) ProtoReflect() protoreflect.Message
- func (x *SignContentRequest) Reset()
- func (x *SignContentRequest) String() string
- type UnimplementedKeyManagementServiceServer
- func (UnimplementedKeyManagementServiceServer) BatchGetKeyMaterials(context.Context, *BatchGetKeyMaterialsRequest) (*BatchGetKeyMaterialsResponse, error)
- func (UnimplementedKeyManagementServiceServer) DecryptBlob(context.Context, *DecryptBlobRequest) (*DecryptBlobResponse, error)
- func (UnimplementedKeyManagementServiceServer) DecryptContent(context.Context, *DecryptContentRequest) (*DecryptContentResponse, error)
- func (UnimplementedKeyManagementServiceServer) EncryptBlob(context.Context, *EncryptBlobRequest) (*EncryptBlobResponse, error)
- func (UnimplementedKeyManagementServiceServer) EncryptContent(context.Context, *EncryptContentRequest) (*EncryptContentResponse, error)
- func (UnimplementedKeyManagementServiceServer) GetKey(context.Context, *GetKeyRequest) (*Key, error)
- func (UnimplementedKeyManagementServiceServer) GetKeyMaterial(context.Context, *GetKeyMaterialRequest) (*KeyMaterial, error)
- func (UnimplementedKeyManagementServiceServer) GetKeyRing(context.Context, *GetKeyRingRequest) (*KeyRing, error)
- func (UnimplementedKeyManagementServiceServer) ListKeyMaterials(context.Context, *ListKeyMaterialsRequest) (*ListKeyMaterialsResponse, error)
- func (UnimplementedKeyManagementServiceServer) ListKeyRingKeyMaterials(context.Context, *ListKeyRingKeyMaterialsRequest) (*ListKeyRingKeyMaterialsResponse, error)
- func (UnimplementedKeyManagementServiceServer) ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error)
- func (UnimplementedKeyManagementServiceServer) SignBlob(context.Context, *SignBlobRequest) (*SignBlobResponse, error)
- func (UnimplementedKeyManagementServiceServer) SignContent(context.Context, *SignContentRequest) (*crypto.SignedContent, error)
- func (UnimplementedKeyManagementServiceServer) VerifyBlob(context.Context, *VerifyBlobRequest) (*VerifyBlobResponse, error)
- func (UnimplementedKeyManagementServiceServer) VerifySignedContent(context.Context, *VerifySignedContentRequest) (*VerifySignedContentResponse, error)
- type UnsafeKeyManagementServiceServer
- type VerifyBlobRequest
- func (*VerifyBlobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyBlobRequest) GetAlgorithm() crypto.SignatureAlgorithm
- func (x *VerifyBlobRequest) GetBlob() []byte
- func (x *VerifyBlobRequest) GetKeyMaterial() string
- func (x *VerifyBlobRequest) GetSignature() []byte
- func (*VerifyBlobRequest) ProtoMessage()
- func (x *VerifyBlobRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyBlobRequest) Reset()
- func (x *VerifyBlobRequest) String() string
- type VerifyBlobResponse
- type VerifySignedContentRequest
- func (*VerifySignedContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifySignedContentRequest) GetProject() string
- func (x *VerifySignedContentRequest) GetSignedContent() *crypto.SignedContent
- func (*VerifySignedContentRequest) ProtoMessage()
- func (x *VerifySignedContentRequest) ProtoReflect() protoreflect.Message
- func (x *VerifySignedContentRequest) Reset()
- func (x *VerifySignedContentRequest) String() string
- type VerifySignedContentResponse
- func (*VerifySignedContentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifySignedContentResponse) GetValid() bool
- func (*VerifySignedContentResponse) ProtoMessage()
- func (x *VerifySignedContentResponse) ProtoReflect() protoreflect.Message
- func (x *VerifySignedContentResponse) Reset()
- func (x *VerifySignedContentResponse) String() string
Constants ¶
const ( KeyManagementService_GetKey_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/GetKey" KeyManagementService_ListKeys_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/ListKeys" KeyManagementService_GetKeyMaterial_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/GetKeyMaterial" KeyManagementService_ListKeyMaterials_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/ListKeyMaterials" KeyManagementService_BatchGetKeyMaterials_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/BatchGetKeyMaterials" KeyManagementService_SignBlob_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/SignBlob" KeyManagementService_VerifyBlob_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/VerifyBlob" KeyManagementService_SignContent_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/SignContent" KeyManagementService_VerifySignedContent_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/VerifySignedContent" KeyManagementService_EncryptContent_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/EncryptContent" KeyManagementService_DecryptContent_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/DecryptContent" KeyManagementService_EncryptBlob_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/EncryptBlob" KeyManagementService_DecryptBlob_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/DecryptBlob" KeyManagementService_GetKeyRing_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/GetKeyRing" KeyManagementService_ListKeyRingKeyMaterials_FullMethodName = "/blocky.kms.v1alpha.KeyManagementService/ListKeyRingKeyMaterials" )
Variables ¶
var ( KeyUse_name = map[int32]string{ 0: "KEY_USE_UNSPECIFIED", 1: "SIGN_VERIFY", 2: "ENCRYPT_DECRYPT", 3: "SIGN_ENCRYPT_DECRYPT", } KeyUse_value = map[string]int32{ "KEY_USE_UNSPECIFIED": 0, "SIGN_VERIFY": 1, "ENCRYPT_DECRYPT": 2, "SIGN_ENCRYPT_DECRYPT": 3, } )
Enum value maps for KeyUse.
var ( KeyOperations_name = map[int32]string{ 0: "KEY_OPERATIONS_UNSPECIFIED", 1: "SIGN", 2: "VERIFY", 3: "ENCRYPT", 4: "DECRYPT", 5: "WRAP", 6: "UNWRAP", 7: "DERIVE_KEY", 8: "DERIVE_BITS", } KeyOperations_value = map[string]int32{ "KEY_OPERATIONS_UNSPECIFIED": 0, "SIGN": 1, "VERIFY": 2, "ENCRYPT": 3, "DECRYPT": 4, "WRAP": 5, "UNWRAP": 6, "DERIVE_KEY": 7, "DERIVE_BITS": 8, } )
Enum value maps for KeyOperations.
var File_blocky_kms_v1alpha_key_management_service_proto protoreflect.FileDescriptor
var File_blocky_kms_v1alpha_key_proto protoreflect.FileDescriptor
var File_blocky_kms_v1alpha_key_ring_proto protoreflect.FileDescriptor
var KeyManagementService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "blocky.kms.v1alpha.KeyManagementService", HandlerType: (*KeyManagementServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetKey", Handler: _KeyManagementService_GetKey_Handler, }, { MethodName: "ListKeys", Handler: _KeyManagementService_ListKeys_Handler, }, { MethodName: "GetKeyMaterial", Handler: _KeyManagementService_GetKeyMaterial_Handler, }, { MethodName: "ListKeyMaterials", Handler: _KeyManagementService_ListKeyMaterials_Handler, }, { MethodName: "BatchGetKeyMaterials", Handler: _KeyManagementService_BatchGetKeyMaterials_Handler, }, { MethodName: "SignBlob", Handler: _KeyManagementService_SignBlob_Handler, }, { MethodName: "VerifyBlob", Handler: _KeyManagementService_VerifyBlob_Handler, }, { MethodName: "SignContent", Handler: _KeyManagementService_SignContent_Handler, }, { MethodName: "VerifySignedContent", Handler: _KeyManagementService_VerifySignedContent_Handler, }, { MethodName: "EncryptContent", Handler: _KeyManagementService_EncryptContent_Handler, }, { MethodName: "DecryptContent", Handler: _KeyManagementService_DecryptContent_Handler, }, { MethodName: "EncryptBlob", Handler: _KeyManagementService_EncryptBlob_Handler, }, { MethodName: "DecryptBlob", Handler: _KeyManagementService_DecryptBlob_Handler, }, { MethodName: "GetKeyRing", Handler: _KeyManagementService_GetKeyRing_Handler, }, { MethodName: "ListKeyRingKeyMaterials", Handler: _KeyManagementService_ListKeyRingKeyMaterials_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "blocky/kms/v1alpha/key_management_service.proto", }
KeyManagementService_ServiceDesc is the grpc.ServiceDesc for KeyManagementService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKeyManagementServiceServer ¶
func RegisterKeyManagementServiceServer(s grpc.ServiceRegistrar, srv KeyManagementServiceServer)
Types ¶
type BatchGetKeyMaterialsRequest ¶
type BatchGetKeyMaterialsRequest struct { // The parent resource name to which new key ring should belong. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The names of the KeyMaterials to get. // A maximum of 1000 can be obtained in a batch. Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
Request message for KeyManagementService.BatchGetKeyMaterials.
func (*BatchGetKeyMaterialsRequest) Descriptor
deprecated
func (*BatchGetKeyMaterialsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetKeyMaterialsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetKeyMaterialsRequest) GetNames ¶
func (x *BatchGetKeyMaterialsRequest) GetNames() []string
func (*BatchGetKeyMaterialsRequest) GetParent ¶
func (x *BatchGetKeyMaterialsRequest) GetParent() string
func (*BatchGetKeyMaterialsRequest) ProtoMessage ¶
func (*BatchGetKeyMaterialsRequest) ProtoMessage()
func (*BatchGetKeyMaterialsRequest) ProtoReflect ¶
func (x *BatchGetKeyMaterialsRequest) ProtoReflect() protoreflect.Message
func (*BatchGetKeyMaterialsRequest) Reset ¶
func (x *BatchGetKeyMaterialsRequest) Reset()
func (*BatchGetKeyMaterialsRequest) String ¶
func (x *BatchGetKeyMaterialsRequest) String() string
type BatchGetKeyMaterialsResponse ¶
type BatchGetKeyMaterialsResponse struct { // The list of KeyMaterials. KeyMaterials []*KeyMaterial `protobuf:"bytes,1,rep,name=key_materials,json=keyMaterials,proto3" json:"key_materials,omitempty"` // contains filtered or unexported fields }
Response message for KeyManagementService.BatchGetKeyMaterialContents.
func (*BatchGetKeyMaterialsResponse) Descriptor
deprecated
func (*BatchGetKeyMaterialsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetKeyMaterialsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetKeyMaterialsResponse) GetKeyMaterials ¶
func (x *BatchGetKeyMaterialsResponse) GetKeyMaterials() []*KeyMaterial
func (*BatchGetKeyMaterialsResponse) ProtoMessage ¶
func (*BatchGetKeyMaterialsResponse) ProtoMessage()
func (*BatchGetKeyMaterialsResponse) ProtoReflect ¶
func (x *BatchGetKeyMaterialsResponse) ProtoReflect() protoreflect.Message
func (*BatchGetKeyMaterialsResponse) Reset ¶
func (x *BatchGetKeyMaterialsResponse) Reset()
func (*BatchGetKeyMaterialsResponse) String ¶
func (x *BatchGetKeyMaterialsResponse) String() string
type DecryptBlobRequest ¶
type DecryptBlobRequest struct { // Required. The resource name that should be used to decrypt the blob. // It may either be a: // [kms.blockyapis.com/Key] (in format: `keys/*`) // [kms.blockyapis.com/KeyMaterial] (in format: `keys/*/materials/*`) Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The cipher text of the encrypted blob. CipherText []byte `protobuf:"bytes,2,opt,name=cipher_text,json=cipherText,proto3" json:"cipher_text,omitempty"` // contains filtered or unexported fields }
DecryptBlobRequest is the request for the DecryptBlob method.
func (*DecryptBlobRequest) Descriptor
deprecated
func (*DecryptBlobRequest) Descriptor() ([]byte, []int)
Deprecated: Use DecryptBlobRequest.ProtoReflect.Descriptor instead.
func (*DecryptBlobRequest) GetCipherText ¶
func (x *DecryptBlobRequest) GetCipherText() []byte
func (*DecryptBlobRequest) GetName ¶
func (x *DecryptBlobRequest) GetName() string
func (*DecryptBlobRequest) ProtoMessage ¶
func (*DecryptBlobRequest) ProtoMessage()
func (*DecryptBlobRequest) ProtoReflect ¶
func (x *DecryptBlobRequest) ProtoReflect() protoreflect.Message
func (*DecryptBlobRequest) Reset ¶
func (x *DecryptBlobRequest) Reset()
func (*DecryptBlobRequest) String ¶
func (x *DecryptBlobRequest) String() string
type DecryptBlobResponse ¶
type DecryptBlobResponse struct { // The key material that was used to decrypt the blob. KeyMaterial string `protobuf:"bytes,1,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` // The algorithm that was used to decrypt the blob. Algorithm crypto.EncryptionAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=blocky.type.crypto.EncryptionAlgorithm" json:"algorithm,omitempty"` // The decrypted blob. Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"` // contains filtered or unexported fields }
DecryptBlobResponse is the response for the DecryptBlob method.
func (*DecryptBlobResponse) Descriptor
deprecated
func (*DecryptBlobResponse) Descriptor() ([]byte, []int)
Deprecated: Use DecryptBlobResponse.ProtoReflect.Descriptor instead.
func (*DecryptBlobResponse) GetAlgorithm ¶
func (x *DecryptBlobResponse) GetAlgorithm() crypto.EncryptionAlgorithm
func (*DecryptBlobResponse) GetBlob ¶
func (x *DecryptBlobResponse) GetBlob() []byte
func (*DecryptBlobResponse) GetKeyMaterial ¶
func (x *DecryptBlobResponse) GetKeyMaterial() string
func (*DecryptBlobResponse) ProtoMessage ¶
func (*DecryptBlobResponse) ProtoMessage()
func (*DecryptBlobResponse) ProtoReflect ¶
func (x *DecryptBlobResponse) ProtoReflect() protoreflect.Message
func (*DecryptBlobResponse) Reset ¶
func (x *DecryptBlobResponse) Reset()
func (*DecryptBlobResponse) String ¶
func (x *DecryptBlobResponse) String() string
type DecryptContentRequest ¶
type DecryptContentRequest struct { // Required. The resource name that should be used to decrypt the content. // It may either be a: // [kms.blockyapis.com/Key] (in format: `keys/*`) // [kms.blockyapis.com/KeyMaterial] (in format: `keys/*/materials/*`) Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The encrypted content to decrypt. EncryptedContent *crypto.EncryptedContent `protobuf:"bytes,2,opt,name=encrypted_content,json=encryptedContent,proto3" json:"encrypted_content,omitempty"` // contains filtered or unexported fields }
DecryptContentRequest is the request for the DecryptContent method.
func (*DecryptContentRequest) Descriptor
deprecated
func (*DecryptContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DecryptContentRequest.ProtoReflect.Descriptor instead.
func (*DecryptContentRequest) GetEncryptedContent ¶
func (x *DecryptContentRequest) GetEncryptedContent() *crypto.EncryptedContent
func (*DecryptContentRequest) GetName ¶
func (x *DecryptContentRequest) GetName() string
func (*DecryptContentRequest) ProtoMessage ¶
func (*DecryptContentRequest) ProtoMessage()
func (*DecryptContentRequest) ProtoReflect ¶
func (x *DecryptContentRequest) ProtoReflect() protoreflect.Message
func (*DecryptContentRequest) Reset ¶
func (x *DecryptContentRequest) Reset()
func (*DecryptContentRequest) String ¶
func (x *DecryptContentRequest) String() string
type DecryptContentResponse ¶
type DecryptContentResponse struct { // The key material that was used to decrypt the content. KeyMaterial string `protobuf:"bytes,1,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` // The algorithm that was used to decrypt the content. Algorithm crypto.EncryptionAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=blocky.type.crypto.EncryptionAlgorithm" json:"algorithm,omitempty"` // The decrypted content. Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
DecryptContentResponse is the response for the DecryptContent method.
func (*DecryptContentResponse) Descriptor
deprecated
func (*DecryptContentResponse) Descriptor() ([]byte, []int)
Deprecated: Use DecryptContentResponse.ProtoReflect.Descriptor instead.
func (*DecryptContentResponse) GetAlgorithm ¶
func (x *DecryptContentResponse) GetAlgorithm() crypto.EncryptionAlgorithm
func (*DecryptContentResponse) GetContent ¶
func (x *DecryptContentResponse) GetContent() []byte
func (*DecryptContentResponse) GetKeyMaterial ¶
func (x *DecryptContentResponse) GetKeyMaterial() string
func (*DecryptContentResponse) ProtoMessage ¶
func (*DecryptContentResponse) ProtoMessage()
func (*DecryptContentResponse) ProtoReflect ¶
func (x *DecryptContentResponse) ProtoReflect() protoreflect.Message
func (*DecryptContentResponse) Reset ¶
func (x *DecryptContentResponse) Reset()
func (*DecryptContentResponse) String ¶
func (x *DecryptContentResponse) String() string
type EncryptBlobRequest ¶
type EncryptBlobRequest struct { // Required. The resource name that should be used to encrypt the blob. // It may either be a: // [kms.blockyapis.com/Key] (in format: `keys/*`) // [kms.blockyapis.com/KeyMaterial] (in format: `keys/*/materials/*`) Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The blob to encrypt. Blob []byte `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"` // An optional key algorithm used to encrypt the data. KeyAlgorithm crypto.KeyManagementAlgorithm `` /* 145-byte string literal not displayed */ // contains filtered or unexported fields }
EncryptBlobRequest is the request for the EncryptBlob method.
func (*EncryptBlobRequest) Descriptor
deprecated
func (*EncryptBlobRequest) Descriptor() ([]byte, []int)
Deprecated: Use EncryptBlobRequest.ProtoReflect.Descriptor instead.
func (*EncryptBlobRequest) GetBlob ¶
func (x *EncryptBlobRequest) GetBlob() []byte
func (*EncryptBlobRequest) GetKeyAlgorithm ¶
func (x *EncryptBlobRequest) GetKeyAlgorithm() crypto.KeyManagementAlgorithm
func (*EncryptBlobRequest) GetName ¶
func (x *EncryptBlobRequest) GetName() string
func (*EncryptBlobRequest) ProtoMessage ¶
func (*EncryptBlobRequest) ProtoMessage()
func (*EncryptBlobRequest) ProtoReflect ¶
func (x *EncryptBlobRequest) ProtoReflect() protoreflect.Message
func (*EncryptBlobRequest) Reset ¶
func (x *EncryptBlobRequest) Reset()
func (*EncryptBlobRequest) String ¶
func (x *EncryptBlobRequest) String() string
type EncryptBlobResponse ¶
type EncryptBlobResponse struct { // The key material that was used to encrypt the blob. KeyMaterial string `protobuf:"bytes,1,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` // The algorithm that was used to encrypt the blob. Algorithm crypto.EncryptionAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=blocky.type.crypto.EncryptionAlgorithm" json:"algorithm,omitempty"` // The cipher text of the encrypted blob. CipherText []byte `protobuf:"bytes,3,opt,name=cipher_text,json=cipherText,proto3" json:"cipher_text,omitempty"` // contains filtered or unexported fields }
EncryptBlobResponse is the response for the EncryptBlob method.
func (*EncryptBlobResponse) Descriptor
deprecated
func (*EncryptBlobResponse) Descriptor() ([]byte, []int)
Deprecated: Use EncryptBlobResponse.ProtoReflect.Descriptor instead.
func (*EncryptBlobResponse) GetAlgorithm ¶
func (x *EncryptBlobResponse) GetAlgorithm() crypto.EncryptionAlgorithm
func (*EncryptBlobResponse) GetCipherText ¶
func (x *EncryptBlobResponse) GetCipherText() []byte
func (*EncryptBlobResponse) GetKeyMaterial ¶
func (x *EncryptBlobResponse) GetKeyMaterial() string
func (*EncryptBlobResponse) ProtoMessage ¶
func (*EncryptBlobResponse) ProtoMessage()
func (*EncryptBlobResponse) ProtoReflect ¶
func (x *EncryptBlobResponse) ProtoReflect() protoreflect.Message
func (*EncryptBlobResponse) Reset ¶
func (x *EncryptBlobResponse) Reset()
func (*EncryptBlobResponse) String ¶
func (x *EncryptBlobResponse) String() string
type EncryptContentRequest ¶
type EncryptContentRequest struct { // Required. The resource name that should be used to encrypt the content. // It may either be a: // [kms.blockyapis.com/Key] (in format: `keys/*`) // [kms.blockyapis.com/KeyMaterial] (in format: `keys/*/materials/*`) Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The content to encrypt. Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
EncryptContentRequest is the request for the EncryptContent method.
func (*EncryptContentRequest) Descriptor
deprecated
func (*EncryptContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use EncryptContentRequest.ProtoReflect.Descriptor instead.
func (*EncryptContentRequest) GetContent ¶
func (x *EncryptContentRequest) GetContent() []byte
func (*EncryptContentRequest) GetName ¶
func (x *EncryptContentRequest) GetName() string
func (*EncryptContentRequest) ProtoMessage ¶
func (*EncryptContentRequest) ProtoMessage()
func (*EncryptContentRequest) ProtoReflect ¶
func (x *EncryptContentRequest) ProtoReflect() protoreflect.Message
func (*EncryptContentRequest) Reset ¶
func (x *EncryptContentRequest) Reset()
func (*EncryptContentRequest) String ¶
func (x *EncryptContentRequest) String() string
type EncryptContentResponse ¶
type EncryptContentResponse struct { // The key material that was used to encrypt the content. KeyMaterial string `protobuf:"bytes,1,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` // The algorithm that was used to encrypt the content. Algorithm crypto.EncryptionAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=blocky.type.crypto.EncryptionAlgorithm" json:"algorithm,omitempty"` // The encrypted content. EncryptedContent *crypto.EncryptedContent `protobuf:"bytes,3,opt,name=encrypted_content,json=encryptedContent,proto3" json:"encrypted_content,omitempty"` // contains filtered or unexported fields }
EncryptContentResponse is the response for the EncryptContent method.
func (*EncryptContentResponse) Descriptor
deprecated
func (*EncryptContentResponse) Descriptor() ([]byte, []int)
Deprecated: Use EncryptContentResponse.ProtoReflect.Descriptor instead.
func (*EncryptContentResponse) GetAlgorithm ¶
func (x *EncryptContentResponse) GetAlgorithm() crypto.EncryptionAlgorithm
func (*EncryptContentResponse) GetEncryptedContent ¶
func (x *EncryptContentResponse) GetEncryptedContent() *crypto.EncryptedContent
func (*EncryptContentResponse) GetKeyMaterial ¶
func (x *EncryptContentResponse) GetKeyMaterial() string
func (*EncryptContentResponse) ProtoMessage ¶
func (*EncryptContentResponse) ProtoMessage()
func (*EncryptContentResponse) ProtoReflect ¶
func (x *EncryptContentResponse) ProtoReflect() protoreflect.Message
func (*EncryptContentResponse) Reset ¶
func (x *EncryptContentResponse) Reset()
func (*EncryptContentResponse) String ¶
func (x *EncryptContentResponse) String() string
type GetKeyMaterialRequest ¶
type GetKeyMaterialRequest struct { // Required. The resource name of the Key whose key material to get. // Format: `keys/*/materials/*` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for KeyManagementService.GetKeyMaterial.
func (*GetKeyMaterialRequest) Descriptor
deprecated
func (*GetKeyMaterialRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyMaterialRequest.ProtoReflect.Descriptor instead.
func (*GetKeyMaterialRequest) GetName ¶
func (x *GetKeyMaterialRequest) GetName() string
func (*GetKeyMaterialRequest) ProtoMessage ¶
func (*GetKeyMaterialRequest) ProtoMessage()
func (*GetKeyMaterialRequest) ProtoReflect ¶
func (x *GetKeyMaterialRequest) ProtoReflect() protoreflect.Message
func (*GetKeyMaterialRequest) Reset ¶
func (x *GetKeyMaterialRequest) Reset()
func (*GetKeyMaterialRequest) String ¶
func (x *GetKeyMaterialRequest) String() string
type GetKeyRequest ¶
type GetKeyRequest struct { // Required. The resource name of the Key to get. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for KeyManagementService.GetKey.
func (*GetKeyRequest) Descriptor
deprecated
func (*GetKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyRequest.ProtoReflect.Descriptor instead.
func (*GetKeyRequest) GetName ¶
func (x *GetKeyRequest) GetName() string
func (*GetKeyRequest) ProtoMessage ¶
func (*GetKeyRequest) ProtoMessage()
func (*GetKeyRequest) ProtoReflect ¶
func (x *GetKeyRequest) ProtoReflect() protoreflect.Message
func (*GetKeyRequest) Reset ¶
func (x *GetKeyRequest) Reset()
func (*GetKeyRequest) String ¶
func (x *GetKeyRequest) String() string
type GetKeyRingRequest ¶
type GetKeyRingRequest struct { // Required. The resource name of the key ring to retrieve. // Format: 'keyRings/{key_ring}'. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
The request message for GetKeyRing.
func (*GetKeyRingRequest) Descriptor
deprecated
func (*GetKeyRingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyRingRequest.ProtoReflect.Descriptor instead.
func (*GetKeyRingRequest) GetName ¶
func (x *GetKeyRingRequest) GetName() string
func (*GetKeyRingRequest) ProtoMessage ¶
func (*GetKeyRingRequest) ProtoMessage()
func (*GetKeyRingRequest) ProtoReflect ¶
func (x *GetKeyRingRequest) ProtoReflect() protoreflect.Message
func (*GetKeyRingRequest) Reset ¶
func (x *GetKeyRingRequest) Reset()
func (*GetKeyRingRequest) String ¶
func (x *GetKeyRingRequest) String() string
type Key ¶
type Key struct { // Resource name of the Key. // The format of the key resource name: // `keys/*` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The unique server-generated UUID identifier for the key. // It could be used as the key identifier in its resource name. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // The aliases that can be used to refer to the key. // The full path of the alias is: // 'keys/{key_alias}' Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"` // The key algorithm type AlgorithmType crypto.KeyAlgorithmType `` /* 142-byte string literal not displayed */ // The parameters used to generate the key material. AlgorithmParameters *crypto.KeyAlgorithmParameters `protobuf:"bytes,5,opt,name=algorithm_parameters,json=algorithmParameters,proto3" json:"algorithm_parameters,omitempty"` // Supported signing algorithms of the key. SigningAlgorithms []crypto.SignatureAlgorithm `` /* 163-byte string literal not displayed */ // Supported encryption algorithms of the key. EncryptionAlgorithms []crypto.EncryptionAlgorithm `` /* 173-byte string literal not displayed */ // The display name of the key. DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Time when the key was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Time when the key was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Time when the key was last rotated. LastRotatedTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=last_rotated_time,json=lastRotatedTime,proto3" json:"last_rotated_time,omitempty"` // Rotation interval of the material derived from this key. // If not provided, the key will not be rotated automatically. RotationInterval *durationpb.Duration `protobuf:"bytes,12,opt,name=rotation_interval,json=rotationInterval,proto3" json:"rotation_interval,omitempty"` // Determines if a key is protected against accidental deletion. // If not provided, the key will not be protected. DestroyProtection bool `protobuf:"varint,13,opt,name=destroy_protection,json=destroyProtection,proto3" json:"destroy_protection,omitempty"` // contains filtered or unexported fields }
Key represents a cryptographic key.
func (*Key) Descriptor
deprecated
func (*Key) GetAlgorithmParameters ¶
func (x *Key) GetAlgorithmParameters() *crypto.KeyAlgorithmParameters
func (*Key) GetAlgorithmType ¶
func (x *Key) GetAlgorithmType() crypto.KeyAlgorithmType
func (*Key) GetAliases ¶
func (*Key) GetCreateTime ¶
func (x *Key) GetCreateTime() *timestamppb.Timestamp
func (*Key) GetDestroyProtection ¶
func (*Key) GetDisplayName ¶
func (*Key) GetEncryptionAlgorithms ¶
func (x *Key) GetEncryptionAlgorithms() []crypto.EncryptionAlgorithm
func (*Key) GetLastRotatedTime ¶
func (x *Key) GetLastRotatedTime() *timestamppb.Timestamp
func (*Key) GetRotationInterval ¶
func (x *Key) GetRotationInterval() *durationpb.Duration
func (*Key) GetSigningAlgorithms ¶
func (x *Key) GetSigningAlgorithms() []crypto.SignatureAlgorithm
func (*Key) GetUpdateTime ¶
func (x *Key) GetUpdateTime() *timestamppb.Timestamp
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶
func (x *Key) ProtoReflect() protoreflect.Message
type KeyManagementServiceClient ¶
type KeyManagementServiceClient interface { // Gets a key from the service. GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*Key, error) // Lists Keys. ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error) // Gets the key material of a Key. GetKeyMaterial(ctx context.Context, in *GetKeyMaterialRequest, opts ...grpc.CallOption) (*KeyMaterial, error) // Lists cryptographic keys that matches given query. ListKeyMaterials(ctx context.Context, in *ListKeyMaterialsRequest, opts ...grpc.CallOption) (*ListKeyMaterialsResponse, error) // Gets a batch of key materials by the input identifiers. BatchGetKeyMaterials(ctx context.Context, in *BatchGetKeyMaterialsRequest, opts ...grpc.CallOption) (*BatchGetKeyMaterialsResponse, error) // SignBlob signs the given data with the given key. // The client is responsible for either hard-coding the pair of key and algorithm or // encode specific metadata into the blob to be signed. // This might be used for the needs of creating a JWT token by storing storing the algorithm and key id in the // tokens header. SignBlob(ctx context.Context, in *SignBlobRequest, opts ...grpc.CallOption) (*SignBlobResponse, error) // VerifyBlob verifies the given signature with the given key. VerifyBlob(ctx context.Context, in *VerifyBlobRequest, opts ...grpc.CallOption) (*VerifyBlobResponse, error) // SignContent signs the given data with the given key. // Compared to the SignBlob, this method encodes required metadata into the signature header. // This can be used as a generic signing operation which results with well-known structure of the signature. SignContent(ctx context.Context, in *SignContentRequest, opts ...grpc.CallOption) (*crypto.SignedContent, error) // Verify signed content verifies the given signature with the given key. VerifySignedContent(ctx context.Context, in *VerifySignedContentRequest, opts ...grpc.CallOption) (*VerifySignedContentResponse, error) // Encrypts the input content with the given key. EncryptContent(ctx context.Context, in *EncryptContentRequest, opts ...grpc.CallOption) (*EncryptContentResponse, error) // Decrypts the input content with the given key. DecryptContent(ctx context.Context, in *DecryptContentRequest, opts ...grpc.CallOption) (*DecryptContentResponse, error) // EncryptBlob encrypts the input blob with the given key. EncryptBlob(ctx context.Context, in *EncryptBlobRequest, opts ...grpc.CallOption) (*EncryptBlobResponse, error) // DecryptBlob decrypts the input blob with the given key. DecryptBlob(ctx context.Context, in *DecryptBlobRequest, opts ...grpc.CallOption) (*DecryptBlobResponse, error) // Get key ring. GetKeyRing(ctx context.Context, in *GetKeyRingRequest, opts ...grpc.CallOption) (*KeyRing, error) // ListKeyRingKeyMaterials lists the asymmetric public keys for a given key rings key materials. ListKeyRingKeyMaterials(ctx context.Context, in *ListKeyRingKeyMaterialsRequest, opts ...grpc.CallOption) (*ListKeyRingKeyMaterialsResponse, error) }
KeyManagementServiceClient is the client API for KeyManagementService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewKeyManagementServiceClient ¶
func NewKeyManagementServiceClient(cc grpc.ClientConnInterface) KeyManagementServiceClient
type KeyManagementServiceServer ¶
type KeyManagementServiceServer interface { // Gets a key from the service. GetKey(context.Context, *GetKeyRequest) (*Key, error) // Lists Keys. ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error) // Gets the key material of a Key. GetKeyMaterial(context.Context, *GetKeyMaterialRequest) (*KeyMaterial, error) // Lists cryptographic keys that matches given query. ListKeyMaterials(context.Context, *ListKeyMaterialsRequest) (*ListKeyMaterialsResponse, error) // Gets a batch of key materials by the input identifiers. BatchGetKeyMaterials(context.Context, *BatchGetKeyMaterialsRequest) (*BatchGetKeyMaterialsResponse, error) // SignBlob signs the given data with the given key. // The client is responsible for either hard-coding the pair of key and algorithm or // encode specific metadata into the blob to be signed. // This might be used for the needs of creating a JWT token by storing storing the algorithm and key id in the // tokens header. SignBlob(context.Context, *SignBlobRequest) (*SignBlobResponse, error) // VerifyBlob verifies the given signature with the given key. VerifyBlob(context.Context, *VerifyBlobRequest) (*VerifyBlobResponse, error) // SignContent signs the given data with the given key. // Compared to the SignBlob, this method encodes required metadata into the signature header. // This can be used as a generic signing operation which results with well-known structure of the signature. SignContent(context.Context, *SignContentRequest) (*crypto.SignedContent, error) // Verify signed content verifies the given signature with the given key. VerifySignedContent(context.Context, *VerifySignedContentRequest) (*VerifySignedContentResponse, error) // Encrypts the input content with the given key. EncryptContent(context.Context, *EncryptContentRequest) (*EncryptContentResponse, error) // Decrypts the input content with the given key. DecryptContent(context.Context, *DecryptContentRequest) (*DecryptContentResponse, error) // EncryptBlob encrypts the input blob with the given key. EncryptBlob(context.Context, *EncryptBlobRequest) (*EncryptBlobResponse, error) // DecryptBlob decrypts the input blob with the given key. DecryptBlob(context.Context, *DecryptBlobRequest) (*DecryptBlobResponse, error) // Get key ring. GetKeyRing(context.Context, *GetKeyRingRequest) (*KeyRing, error) // ListKeyRingKeyMaterials lists the asymmetric public keys for a given key rings key materials. ListKeyRingKeyMaterials(context.Context, *ListKeyRingKeyMaterialsRequest) (*ListKeyRingKeyMaterialsResponse, error) // contains filtered or unexported methods }
KeyManagementServiceServer is the server API for KeyManagementService service. All implementations must embed UnimplementedKeyManagementServiceServer for forward compatibility
type KeyMaterial ¶
type KeyMaterial struct { // The resource name of the key material. // The format of the key material resource name: // - `keys/*/materials/*` // - `projects/*/keys/*/materials/*` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The creation time of the key material. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Public key material content. PublicKey *crypto.KeyMaterial `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
Is a cryptographic key material directly used for the cryptographic operations. The parameters of the material are derived from the key.
func (*KeyMaterial) Descriptor
deprecated
func (*KeyMaterial) Descriptor() ([]byte, []int)
Deprecated: Use KeyMaterial.ProtoReflect.Descriptor instead.
func (*KeyMaterial) GetCreateTime ¶
func (x *KeyMaterial) GetCreateTime() *timestamppb.Timestamp
func (*KeyMaterial) GetName ¶
func (x *KeyMaterial) GetName() string
func (*KeyMaterial) GetPublicKey ¶
func (x *KeyMaterial) GetPublicKey() *crypto.KeyMaterial
func (*KeyMaterial) ProtoMessage ¶
func (*KeyMaterial) ProtoMessage()
func (*KeyMaterial) ProtoReflect ¶
func (x *KeyMaterial) ProtoReflect() protoreflect.Message
func (*KeyMaterial) Reset ¶
func (x *KeyMaterial) Reset()
func (*KeyMaterial) String ¶
func (x *KeyMaterial) String() string
type KeyMaterialContent ¶
type KeyMaterialContent struct { // Header of the crypto key. Header *KeyMaterialContent_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // The key material. Material *crypto.KeyMaterial `protobuf:"bytes,2,opt,name=material,proto3" json:"material,omitempty"` // contains filtered or unexported fields }
Describes the content of a key with details, that allows to use it for cryptographic operations. It contains not only cryptographic key metadata, but also the identifiers of the key and its material, which allows to match the content with the key and its material resource.
func (*KeyMaterialContent) Descriptor
deprecated
func (*KeyMaterialContent) Descriptor() ([]byte, []int)
Deprecated: Use KeyMaterialContent.ProtoReflect.Descriptor instead.
func (*KeyMaterialContent) GetHeader ¶
func (x *KeyMaterialContent) GetHeader() *KeyMaterialContent_Header
func (*KeyMaterialContent) GetMaterial ¶
func (x *KeyMaterialContent) GetMaterial() *crypto.KeyMaterial
func (*KeyMaterialContent) ProtoMessage ¶
func (*KeyMaterialContent) ProtoMessage()
func (*KeyMaterialContent) ProtoReflect ¶
func (x *KeyMaterialContent) ProtoReflect() protoreflect.Message
func (*KeyMaterialContent) Reset ¶
func (x *KeyMaterialContent) Reset()
func (*KeyMaterialContent) String ¶
func (x *KeyMaterialContent) String() string
type KeyMaterialContent_Header ¶
type KeyMaterialContent_Header struct { // It identifies the cryptographic algorithm family used with the key. KeyAlgorithmType crypto.KeyAlgorithmType `` /* 140-byte string literal not displayed */ // Intended use of the key. KeyUse KeyUse `protobuf:"varint,2,opt,name=key_use,json=use,proto3,enum=blocky.kms.v1alpha.KeyUse" json:"key_use,omitempty"` // The key can be used for the operations specified in this field. KeyOps []KeyOperations `protobuf:"varint,3,rep,packed,name=key_ops,proto3,enum=blocky.kms.v1alpha.KeyOperations" json:"key_ops,omitempty"` // The algorithm intended for use with the key. SignatureAlgorithms []crypto.SignatureAlgorithm `` /* 169-byte string literal not displayed */ // The encryption key management algorithms intended for use with the key. KeyManagementAlgorithms []crypto.KeyManagementAlgorithm `` /* 187-byte string literal not displayed */ // The identifier for the key. KeyId string `protobuf:"bytes,6,opt,name=key_id,json=kid,proto3" json:"key_id,omitempty"` // The identifier of the key material. MaterialId string `protobuf:"bytes,7,opt,name=material_id,json=mid,proto3" json:"material_id,omitempty"` // contains filtered or unexported fields }
A header of the cryptography key. It contains necessary information to identify the key.
func (*KeyMaterialContent_Header) Descriptor
deprecated
func (*KeyMaterialContent_Header) Descriptor() ([]byte, []int)
Deprecated: Use KeyMaterialContent_Header.ProtoReflect.Descriptor instead.
func (*KeyMaterialContent_Header) GetKeyAlgorithmType ¶
func (x *KeyMaterialContent_Header) GetKeyAlgorithmType() crypto.KeyAlgorithmType
func (*KeyMaterialContent_Header) GetKeyId ¶
func (x *KeyMaterialContent_Header) GetKeyId() string
func (*KeyMaterialContent_Header) GetKeyManagementAlgorithms ¶
func (x *KeyMaterialContent_Header) GetKeyManagementAlgorithms() []crypto.KeyManagementAlgorithm
func (*KeyMaterialContent_Header) GetKeyOps ¶
func (x *KeyMaterialContent_Header) GetKeyOps() []KeyOperations
func (*KeyMaterialContent_Header) GetKeyUse ¶
func (x *KeyMaterialContent_Header) GetKeyUse() KeyUse
func (*KeyMaterialContent_Header) GetMaterialId ¶
func (x *KeyMaterialContent_Header) GetMaterialId() string
func (*KeyMaterialContent_Header) GetSignatureAlgorithms ¶
func (x *KeyMaterialContent_Header) GetSignatureAlgorithms() []crypto.SignatureAlgorithm
func (*KeyMaterialContent_Header) ProtoMessage ¶
func (*KeyMaterialContent_Header) ProtoMessage()
func (*KeyMaterialContent_Header) ProtoReflect ¶
func (x *KeyMaterialContent_Header) ProtoReflect() protoreflect.Message
func (*KeyMaterialContent_Header) Reset ¶
func (x *KeyMaterialContent_Header) Reset()
func (*KeyMaterialContent_Header) String ¶
func (x *KeyMaterialContent_Header) String() string
type KeyOperations ¶
type KeyOperations int32
The operations that the key can be used for.
const ( // Default value. This value is unused. KeyOperations_KEY_OPERATIONS_UNSPECIFIED KeyOperations = 0 // The key can be used for signing operations. KeyOperations_SIGN KeyOperations = 1 // The key can be used for verifying operations. KeyOperations_VERIFY KeyOperations = 2 // The key can be used for encrypting operations. KeyOperations_ENCRYPT KeyOperations = 3 // The key can be used for decrypting operations. KeyOperations_DECRYPT KeyOperations = 4 // The key can be used for wrapping operations. KeyOperations_WRAP KeyOperations = 5 // The key can be used for unwrapping operations. KeyOperations_UNWRAP KeyOperations = 6 // The key can be used for deriving operations. KeyOperations_DERIVE_KEY KeyOperations = 7 // The key can be used for deriving operations. KeyOperations_DERIVE_BITS KeyOperations = 8 )
func (KeyOperations) Descriptor ¶
func (KeyOperations) Descriptor() protoreflect.EnumDescriptor
func (KeyOperations) Enum ¶
func (x KeyOperations) Enum() *KeyOperations
func (KeyOperations) EnumDescriptor
deprecated
func (KeyOperations) EnumDescriptor() ([]byte, []int)
Deprecated: Use KeyOperations.Descriptor instead.
func (KeyOperations) Number ¶
func (x KeyOperations) Number() protoreflect.EnumNumber
func (KeyOperations) String ¶
func (x KeyOperations) String() string
func (KeyOperations) Type ¶
func (KeyOperations) Type() protoreflect.EnumType
type KeyRing ¶
type KeyRing struct { // The resource name of the key ring. // Key ring names have the form `projects/*/keyRings/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The unique id of the key ring. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // The display name of the key ring. DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The aliases of the key ring. Aliases []string `protobuf:"bytes,4,rep,name=aliases,proto3" json:"aliases,omitempty"` // Creation time of the key ring. CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Update time of the key ring. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The resource names of the keys in this key ring. Keys []string `protobuf:"bytes,7,rep,name=keys,proto3" json:"keys,omitempty"` // Delete protection of the key ring. // When the delete protection is set to true, the key ring cannot be deleted, // and no keys in the key ring can be deleted either. DeleteProtection bool `protobuf:"varint,8,opt,name=delete_protection,json=deleteProtection,proto3" json:"delete_protection,omitempty"` // ETag of the key ring. Etag string `protobuf:"bytes,9,opt,name=etag,proto3" json:"etag,omitempty"` // contains filtered or unexported fields }
Is a ring of cryptographic keys, that can be combined and used for multiple purposes.
func (*KeyRing) Descriptor
deprecated
func (*KeyRing) GetAliases ¶
func (*KeyRing) GetCreateTime ¶
func (x *KeyRing) GetCreateTime() *timestamppb.Timestamp
func (*KeyRing) GetDeleteProtection ¶
func (*KeyRing) GetDisplayName ¶
func (*KeyRing) GetUpdateTime ¶
func (x *KeyRing) GetUpdateTime() *timestamppb.Timestamp
func (*KeyRing) ProtoMessage ¶
func (*KeyRing) ProtoMessage()
func (*KeyRing) ProtoReflect ¶
func (x *KeyRing) ProtoReflect() protoreflect.Message
type KeyUse ¶
type KeyUse int32
KeyUse is an algorithm used to generate and verify JSON Web Keys (JWK) as defined in RFC 7518.
const ( // Unspecified key use. KeyUse_KEY_USE_UNSPECIFIED KeyUse = 0 // Indicates that the key is used for signing. KeyUse_SIGN_VERIFY KeyUse = 1 // Indicates that the key is used for encryption. KeyUse_ENCRYPT_DECRYPT KeyUse = 2 // Indicates that the key is used for both signing and encryption. KeyUse_SIGN_ENCRYPT_DECRYPT KeyUse = 3 )
func (KeyUse) Descriptor ¶
func (KeyUse) Descriptor() protoreflect.EnumDescriptor
func (KeyUse) EnumDescriptor
deprecated
func (KeyUse) Number ¶
func (x KeyUse) Number() protoreflect.EnumNumber
func (KeyUse) Type ¶
func (KeyUse) Type() protoreflect.EnumType
type ListKeyMaterialsRequest ¶
type ListKeyMaterialsRequest struct { // Required. The resource name of the Key whose key materials to list. // Format: `keys/*` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of key materials to return. The service may return fewer // than this value. If unspecified, at most 50 key materials will be returned. // The maximum value is 1000; values above 1000 will be coerced to 1000. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A pagination token returned from a previous call to // ListKeyMaterials that indicates where this listing should continue from. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request message for KeyManagementService.ListKeyMaterials.
func (*ListKeyMaterialsRequest) Descriptor
deprecated
func (*ListKeyMaterialsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListKeyMaterialsRequest.ProtoReflect.Descriptor instead.
func (*ListKeyMaterialsRequest) GetPageSize ¶
func (x *ListKeyMaterialsRequest) GetPageSize() int32
func (*ListKeyMaterialsRequest) GetPageToken ¶
func (x *ListKeyMaterialsRequest) GetPageToken() string
func (*ListKeyMaterialsRequest) GetParent ¶
func (x *ListKeyMaterialsRequest) GetParent() string
func (*ListKeyMaterialsRequest) ProtoMessage ¶
func (*ListKeyMaterialsRequest) ProtoMessage()
func (*ListKeyMaterialsRequest) ProtoReflect ¶
func (x *ListKeyMaterialsRequest) ProtoReflect() protoreflect.Message
func (*ListKeyMaterialsRequest) Reset ¶
func (x *ListKeyMaterialsRequest) Reset()
func (*ListKeyMaterialsRequest) String ¶
func (x *ListKeyMaterialsRequest) String() string
type ListKeyMaterialsResponse ¶
type ListKeyMaterialsResponse struct { // The list of KeyMaterials. KeyMaterials []*KeyMaterial `protobuf:"bytes,1,rep,name=key_materials,json=keyMaterials,proto3" json:"key_materials,omitempty"` // A token to retrieve next page of results. Pass this value in // ListKeyMaterialsRequest.page_token to retrieve the next page of results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for KeyManagementService.ListKeyMaterials.
func (*ListKeyMaterialsResponse) Descriptor
deprecated
func (*ListKeyMaterialsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListKeyMaterialsResponse.ProtoReflect.Descriptor instead.
func (*ListKeyMaterialsResponse) GetKeyMaterials ¶
func (x *ListKeyMaterialsResponse) GetKeyMaterials() []*KeyMaterial
func (*ListKeyMaterialsResponse) GetNextPageToken ¶
func (x *ListKeyMaterialsResponse) GetNextPageToken() string
func (*ListKeyMaterialsResponse) ProtoMessage ¶
func (*ListKeyMaterialsResponse) ProtoMessage()
func (*ListKeyMaterialsResponse) ProtoReflect ¶
func (x *ListKeyMaterialsResponse) ProtoReflect() protoreflect.Message
func (*ListKeyMaterialsResponse) Reset ¶
func (x *ListKeyMaterialsResponse) Reset()
func (*ListKeyMaterialsResponse) String ¶
func (x *ListKeyMaterialsResponse) String() string
type ListKeyRingKeyMaterialsRequest ¶
type ListKeyRingKeyMaterialsRequest struct { // Optional. The maximum number of key materials to return in the response. The // server allows a maximum of 300 key materials to return. If unspecified, the // server will use 50 as the default, unless its configuration specifies // a smaller default. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A pagination token returned from a previous call to // ListKeyRingKeyMaterialsRequest that indicates where this listing should continue from. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
The request message for ListKeyRingKeyMaterials.
func (*ListKeyRingKeyMaterialsRequest) Descriptor
deprecated
func (*ListKeyRingKeyMaterialsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListKeyRingKeyMaterialsRequest.ProtoReflect.Descriptor instead.
func (*ListKeyRingKeyMaterialsRequest) GetPageSize ¶
func (x *ListKeyRingKeyMaterialsRequest) GetPageSize() int32
func (*ListKeyRingKeyMaterialsRequest) GetPageToken ¶
func (x *ListKeyRingKeyMaterialsRequest) GetPageToken() string
func (*ListKeyRingKeyMaterialsRequest) ProtoMessage ¶
func (*ListKeyRingKeyMaterialsRequest) ProtoMessage()
func (*ListKeyRingKeyMaterialsRequest) ProtoReflect ¶
func (x *ListKeyRingKeyMaterialsRequest) ProtoReflect() protoreflect.Message
func (*ListKeyRingKeyMaterialsRequest) Reset ¶
func (x *ListKeyRingKeyMaterialsRequest) Reset()
func (*ListKeyRingKeyMaterialsRequest) String ¶
func (x *ListKeyRingKeyMaterialsRequest) String() string
type ListKeyRingKeyMaterialsResponse ¶
type ListKeyRingKeyMaterialsResponse struct { // List of key materials matching the request. KeyMaterials []*KeyMaterial `protobuf:"bytes,1,rep,name=key_materials,json=keyMaterials,proto3" json:"key_materials,omitempty"` // Token to retrieve the next page of results, or empty if there are no // more results in the list. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
The response message for ListKeyRingKeyMaterials.
func (*ListKeyRingKeyMaterialsResponse) Descriptor
deprecated
func (*ListKeyRingKeyMaterialsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListKeyRingKeyMaterialsResponse.ProtoReflect.Descriptor instead.
func (*ListKeyRingKeyMaterialsResponse) GetKeyMaterials ¶
func (x *ListKeyRingKeyMaterialsResponse) GetKeyMaterials() []*KeyMaterial
func (*ListKeyRingKeyMaterialsResponse) GetNextPageToken ¶
func (x *ListKeyRingKeyMaterialsResponse) GetNextPageToken() string
func (*ListKeyRingKeyMaterialsResponse) ProtoMessage ¶
func (*ListKeyRingKeyMaterialsResponse) ProtoMessage()
func (*ListKeyRingKeyMaterialsResponse) ProtoReflect ¶
func (x *ListKeyRingKeyMaterialsResponse) ProtoReflect() protoreflect.Message
func (*ListKeyRingKeyMaterialsResponse) Reset ¶
func (x *ListKeyRingKeyMaterialsResponse) Reset()
func (*ListKeyRingKeyMaterialsResponse) String ¶
func (x *ListKeyRingKeyMaterialsResponse) String() string
type ListKeysRequest ¶
type ListKeysRequest struct { // The maximum number of keys to return. The service may return fewer than // this value. If unspecified, at most 50 keys will be returned. The maximum // value is 1000; values above 1000 will be coerced to 1000. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A pagination token returned from a previous call to ListKeys // that indicates where this listing should continue from. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request message for KeyManagementService.ListKeys.
func (*ListKeysRequest) Descriptor
deprecated
func (*ListKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListKeysRequest.ProtoReflect.Descriptor instead.
func (*ListKeysRequest) GetPageSize ¶
func (x *ListKeysRequest) GetPageSize() int32
func (*ListKeysRequest) GetPageToken ¶
func (x *ListKeysRequest) GetPageToken() string
func (*ListKeysRequest) ProtoMessage ¶
func (*ListKeysRequest) ProtoMessage()
func (*ListKeysRequest) ProtoReflect ¶
func (x *ListKeysRequest) ProtoReflect() protoreflect.Message
func (*ListKeysRequest) Reset ¶
func (x *ListKeysRequest) Reset()
func (*ListKeysRequest) String ¶
func (x *ListKeysRequest) String() string
type ListKeysResponse ¶
type ListKeysResponse struct { // The list of Keys. Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // A token to retrieve next page of results. Pass this value in // ListKeysRequest.page_token to retrieve the next page of results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for KeyManagementService.ListKeys.
func (*ListKeysResponse) Descriptor
deprecated
func (*ListKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListKeysResponse.ProtoReflect.Descriptor instead.
func (*ListKeysResponse) GetKeys ¶
func (x *ListKeysResponse) GetKeys() []*Key
func (*ListKeysResponse) GetNextPageToken ¶
func (x *ListKeysResponse) GetNextPageToken() string
func (*ListKeysResponse) ProtoMessage ¶
func (*ListKeysResponse) ProtoMessage()
func (*ListKeysResponse) ProtoReflect ¶
func (x *ListKeysResponse) ProtoReflect() protoreflect.Message
func (*ListKeysResponse) Reset ¶
func (x *ListKeysResponse) Reset()
func (*ListKeysResponse) String ¶
func (x *ListKeysResponse) String() string
type SignBlobRequest ¶
type SignBlobRequest struct { // Required. The resource name that should be used to sign the blob. // It may either be a: // [kms.blockyapis.com/Key] (in format: `keys/*`, `projects/*/keys/*) // [kms.blockyapis.com/KeyMaterial] (in format: `keys/*/material/*`, `projects/*/keys/*`) Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Algorithm used to sign the blob. Algorithm crypto.SignatureAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=blocky.type.crypto.SignatureAlgorithm" json:"algorithm,omitempty"` // The blob to sign. Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"` // contains filtered or unexported fields }
SignBlobRequest is the request for the SignBlob method. This request is not embedding any metadata, but simply signs the blob using the key. The key is identified by the resource name. This can be directly used for some custom signing operations like signing a JWT.
func (*SignBlobRequest) Descriptor
deprecated
func (*SignBlobRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignBlobRequest.ProtoReflect.Descriptor instead.
func (*SignBlobRequest) GetAlgorithm ¶
func (x *SignBlobRequest) GetAlgorithm() crypto.SignatureAlgorithm
func (*SignBlobRequest) GetBlob ¶
func (x *SignBlobRequest) GetBlob() []byte
func (*SignBlobRequest) GetName ¶
func (x *SignBlobRequest) GetName() string
func (*SignBlobRequest) ProtoMessage ¶
func (*SignBlobRequest) ProtoMessage()
func (*SignBlobRequest) ProtoReflect ¶
func (x *SignBlobRequest) ProtoReflect() protoreflect.Message
func (*SignBlobRequest) Reset ¶
func (x *SignBlobRequest) Reset()
func (*SignBlobRequest) String ¶
func (x *SignBlobRequest) String() string
type SignBlobResponse ¶
type SignBlobResponse struct { // The key material that was used to sign the blob. KeyMaterial string `protobuf:"bytes,1,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` // The algorithm that was used to sign the blob. // If not specified, the algorithm will be derived from the key. Algorithm crypto.SignatureAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=blocky.type.crypto.SignatureAlgorithm" json:"algorithm,omitempty"` // The signature of the blob. Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
SignBlobResponse is the response for the SignBlob method.
func (*SignBlobResponse) Descriptor
deprecated
func (*SignBlobResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignBlobResponse.ProtoReflect.Descriptor instead.
func (*SignBlobResponse) GetAlgorithm ¶
func (x *SignBlobResponse) GetAlgorithm() crypto.SignatureAlgorithm
func (*SignBlobResponse) GetKeyMaterial ¶
func (x *SignBlobResponse) GetKeyMaterial() string
func (*SignBlobResponse) GetSignature ¶
func (x *SignBlobResponse) GetSignature() []byte
func (*SignBlobResponse) ProtoMessage ¶
func (*SignBlobResponse) ProtoMessage()
func (*SignBlobResponse) ProtoReflect ¶
func (x *SignBlobResponse) ProtoReflect() protoreflect.Message
func (*SignBlobResponse) Reset ¶
func (x *SignBlobResponse) Reset()
func (*SignBlobResponse) String ¶
func (x *SignBlobResponse) String() string
type SignContentRequest ¶
type SignContentRequest struct { // Required. The resource name that should be used to sign the content. // It may either be a: // - [kms.blockyapis.com/Key] (in format: `keys/*`, `projects/*/keys/*`) // - [kms.blockyapis.com/KeyMaterial] (in format: `keys/*/material/*`, `projects/*/keys/*`) Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Algorithm used to sign the content. Algorithm crypto.SignatureAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=blocky.type.crypto.SignatureAlgorithm" json:"algorithm,omitempty"` // The content to sign. Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // Metadata to embed in to signature header. Meta map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
SignContentRequest is the request for the Sign method.
func (*SignContentRequest) Descriptor
deprecated
func (*SignContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignContentRequest.ProtoReflect.Descriptor instead.
func (*SignContentRequest) GetAlgorithm ¶
func (x *SignContentRequest) GetAlgorithm() crypto.SignatureAlgorithm
func (*SignContentRequest) GetContent ¶
func (x *SignContentRequest) GetContent() []byte
func (*SignContentRequest) GetMeta ¶
func (x *SignContentRequest) GetMeta() map[string]string
func (*SignContentRequest) GetName ¶
func (x *SignContentRequest) GetName() string
func (*SignContentRequest) ProtoMessage ¶
func (*SignContentRequest) ProtoMessage()
func (*SignContentRequest) ProtoReflect ¶
func (x *SignContentRequest) ProtoReflect() protoreflect.Message
func (*SignContentRequest) Reset ¶
func (x *SignContentRequest) Reset()
func (*SignContentRequest) String ¶
func (x *SignContentRequest) String() string
type UnimplementedKeyManagementServiceServer ¶
type UnimplementedKeyManagementServiceServer struct { }
UnimplementedKeyManagementServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedKeyManagementServiceServer) BatchGetKeyMaterials ¶
func (UnimplementedKeyManagementServiceServer) BatchGetKeyMaterials(context.Context, *BatchGetKeyMaterialsRequest) (*BatchGetKeyMaterialsResponse, error)
func (UnimplementedKeyManagementServiceServer) DecryptBlob ¶
func (UnimplementedKeyManagementServiceServer) DecryptBlob(context.Context, *DecryptBlobRequest) (*DecryptBlobResponse, error)
func (UnimplementedKeyManagementServiceServer) DecryptContent ¶
func (UnimplementedKeyManagementServiceServer) DecryptContent(context.Context, *DecryptContentRequest) (*DecryptContentResponse, error)
func (UnimplementedKeyManagementServiceServer) EncryptBlob ¶
func (UnimplementedKeyManagementServiceServer) EncryptBlob(context.Context, *EncryptBlobRequest) (*EncryptBlobResponse, error)
func (UnimplementedKeyManagementServiceServer) EncryptContent ¶
func (UnimplementedKeyManagementServiceServer) EncryptContent(context.Context, *EncryptContentRequest) (*EncryptContentResponse, error)
func (UnimplementedKeyManagementServiceServer) GetKey ¶
func (UnimplementedKeyManagementServiceServer) GetKey(context.Context, *GetKeyRequest) (*Key, error)
func (UnimplementedKeyManagementServiceServer) GetKeyMaterial ¶
func (UnimplementedKeyManagementServiceServer) GetKeyMaterial(context.Context, *GetKeyMaterialRequest) (*KeyMaterial, error)
func (UnimplementedKeyManagementServiceServer) GetKeyRing ¶
func (UnimplementedKeyManagementServiceServer) GetKeyRing(context.Context, *GetKeyRingRequest) (*KeyRing, error)
func (UnimplementedKeyManagementServiceServer) ListKeyMaterials ¶
func (UnimplementedKeyManagementServiceServer) ListKeyMaterials(context.Context, *ListKeyMaterialsRequest) (*ListKeyMaterialsResponse, error)
func (UnimplementedKeyManagementServiceServer) ListKeyRingKeyMaterials ¶
func (UnimplementedKeyManagementServiceServer) ListKeyRingKeyMaterials(context.Context, *ListKeyRingKeyMaterialsRequest) (*ListKeyRingKeyMaterialsResponse, error)
func (UnimplementedKeyManagementServiceServer) ListKeys ¶
func (UnimplementedKeyManagementServiceServer) ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error)
func (UnimplementedKeyManagementServiceServer) SignBlob ¶
func (UnimplementedKeyManagementServiceServer) SignBlob(context.Context, *SignBlobRequest) (*SignBlobResponse, error)
func (UnimplementedKeyManagementServiceServer) SignContent ¶
func (UnimplementedKeyManagementServiceServer) SignContent(context.Context, *SignContentRequest) (*crypto.SignedContent, error)
func (UnimplementedKeyManagementServiceServer) VerifyBlob ¶
func (UnimplementedKeyManagementServiceServer) VerifyBlob(context.Context, *VerifyBlobRequest) (*VerifyBlobResponse, error)
func (UnimplementedKeyManagementServiceServer) VerifySignedContent ¶
func (UnimplementedKeyManagementServiceServer) VerifySignedContent(context.Context, *VerifySignedContentRequest) (*VerifySignedContentResponse, error)
type UnsafeKeyManagementServiceServer ¶
type UnsafeKeyManagementServiceServer interface {
// contains filtered or unexported methods
}
UnsafeKeyManagementServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyManagementServiceServer will result in compilation errors.
type VerifyBlobRequest ¶
type VerifyBlobRequest struct { // The key material that was used to sign the blob. KeyMaterial string `protobuf:"bytes,1,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` // The algorithm used to sign the blob. Algorithm crypto.SignatureAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=blocky.type.crypto.SignatureAlgorithm" json:"algorithm,omitempty"` // The blob to verify. Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"` // The signature of the blob. Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
VerifyBlobRequest is the request for the VerifyBlob method. This request is not embedding any metadata, but simply verifies the blob using the key. The key is identified by the resource name. This can be directly used for some custom signing operations like verifying a JWT.
func (*VerifyBlobRequest) Descriptor
deprecated
func (*VerifyBlobRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyBlobRequest.ProtoReflect.Descriptor instead.
func (*VerifyBlobRequest) GetAlgorithm ¶
func (x *VerifyBlobRequest) GetAlgorithm() crypto.SignatureAlgorithm
func (*VerifyBlobRequest) GetBlob ¶
func (x *VerifyBlobRequest) GetBlob() []byte
func (*VerifyBlobRequest) GetKeyMaterial ¶
func (x *VerifyBlobRequest) GetKeyMaterial() string
func (*VerifyBlobRequest) GetSignature ¶
func (x *VerifyBlobRequest) GetSignature() []byte
func (*VerifyBlobRequest) ProtoMessage ¶
func (*VerifyBlobRequest) ProtoMessage()
func (*VerifyBlobRequest) ProtoReflect ¶
func (x *VerifyBlobRequest) ProtoReflect() protoreflect.Message
func (*VerifyBlobRequest) Reset ¶
func (x *VerifyBlobRequest) Reset()
func (*VerifyBlobRequest) String ¶
func (x *VerifyBlobRequest) String() string
type VerifyBlobResponse ¶
type VerifyBlobResponse struct { // Defines if the signature was valid. Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` // contains filtered or unexported fields }
VerifyBlobResponse is the response for the VerifyBlob method.
func (*VerifyBlobResponse) Descriptor
deprecated
func (*VerifyBlobResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyBlobResponse.ProtoReflect.Descriptor instead.
func (*VerifyBlobResponse) GetValid ¶
func (x *VerifyBlobResponse) GetValid() bool
func (*VerifyBlobResponse) ProtoMessage ¶
func (*VerifyBlobResponse) ProtoMessage()
func (*VerifyBlobResponse) ProtoReflect ¶
func (x *VerifyBlobResponse) ProtoReflect() protoreflect.Message
func (*VerifyBlobResponse) Reset ¶
func (x *VerifyBlobResponse) Reset()
func (*VerifyBlobResponse) String ¶
func (x *VerifyBlobResponse) String() string
type VerifySignedContentRequest ¶
type VerifySignedContentRequest struct { // The project identifier that the key used to sign belongs to. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // Protobuf web signature SignedContent *crypto.SignedContent `protobuf:"bytes,2,opt,name=signed_content,json=signedContent,proto3" json:"signed_content,omitempty"` // contains filtered or unexported fields }
VerifySignatureRequest is the request for the Verify method.
func (*VerifySignedContentRequest) Descriptor
deprecated
func (*VerifySignedContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifySignedContentRequest.ProtoReflect.Descriptor instead.
func (*VerifySignedContentRequest) GetProject ¶
func (x *VerifySignedContentRequest) GetProject() string
func (*VerifySignedContentRequest) GetSignedContent ¶
func (x *VerifySignedContentRequest) GetSignedContent() *crypto.SignedContent
func (*VerifySignedContentRequest) ProtoMessage ¶
func (*VerifySignedContentRequest) ProtoMessage()
func (*VerifySignedContentRequest) ProtoReflect ¶
func (x *VerifySignedContentRequest) ProtoReflect() protoreflect.Message
func (*VerifySignedContentRequest) Reset ¶
func (x *VerifySignedContentRequest) Reset()
func (*VerifySignedContentRequest) String ¶
func (x *VerifySignedContentRequest) String() string
type VerifySignedContentResponse ¶
type VerifySignedContentResponse struct { // Defines if the signed content was valid. Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` // contains filtered or unexported fields }
VerifySignatureResponse is the response for the Verify method.
func (*VerifySignedContentResponse) Descriptor
deprecated
func (*VerifySignedContentResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifySignedContentResponse.ProtoReflect.Descriptor instead.
func (*VerifySignedContentResponse) GetValid ¶
func (x *VerifySignedContentResponse) GetValid() bool
func (*VerifySignedContentResponse) ProtoMessage ¶
func (*VerifySignedContentResponse) ProtoMessage()
func (*VerifySignedContentResponse) ProtoReflect ¶
func (x *VerifySignedContentResponse) ProtoReflect() protoreflect.Message
func (*VerifySignedContentResponse) Reset ¶
func (x *VerifySignedContentResponse) Reset()
func (*VerifySignedContentResponse) String ¶
func (x *VerifySignedContentResponse) String() string