Documentation ¶
Index ¶
- Variables
- type ZCert
- func (*ZCert) Descriptor() ([]byte, []int)deprecated
- func (x *ZCert) GetAttributes() *ZCertAttr
- func (x *ZCert) GetCert() []byte
- func (x *ZCert) GetCertHash() []byte
- func (x *ZCert) GetHashAlgo() evecommon.HashAlgorithm
- func (x *ZCert) GetMetaDataItems() []*ZCertMetaData
- func (x *ZCert) GetType() ZCertType
- func (*ZCert) ProtoMessage()
- func (x *ZCert) ProtoReflect() protoreflect.Message
- func (x *ZCert) Reset()
- func (x *ZCert) String() string
- type ZCertAttr
- type ZCertMetaData
- func (*ZCertMetaData) Descriptor() ([]byte, []int)deprecated
- func (x *ZCertMetaData) GetMetaData() []byte
- func (x *ZCertMetaData) GetType() ZCertMetaDataType
- func (*ZCertMetaData) ProtoMessage()
- func (x *ZCertMetaData) ProtoReflect() protoreflect.Message
- func (x *ZCertMetaData) Reset()
- func (x *ZCertMetaData) String() string
- type ZCertMetaDataType
- func (ZCertMetaDataType) Descriptor() protoreflect.EnumDescriptor
- func (x ZCertMetaDataType) Enum() *ZCertMetaDataType
- func (ZCertMetaDataType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ZCertMetaDataType) Number() protoreflect.EnumNumber
- func (x ZCertMetaDataType) String() string
- func (ZCertMetaDataType) Type() protoreflect.EnumType
- type ZCertType
- type ZControllerCert
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ZCertMetaDataType_name = map[int32]string{ 0: "Z_CERT_META_DATA_TYPE_INVALID", 1: "Z_CERT_META_DATA_TYPE_TPM2_PUBLIC", } ZCertMetaDataType_value = map[string]int32{ "Z_CERT_META_DATA_TYPE_INVALID": 0, "Z_CERT_META_DATA_TYPE_TPM2_PUBLIC": 1, } )
Enum value maps for ZCertMetaDataType.
View Source
var ( ZCertType_name = map[int32]string{ 0: "CERT_TYPE_CONTROLLER_NONE", 1: "CERT_TYPE_CONTROLLER_SIGNING", 2: "CERT_TYPE_CONTROLLER_INTERMEDIATE", 3: "CERT_TYPE_CONTROLLER_ECDH_EXCHANGE", 10: "CERT_TYPE_DEVICE_ONBOARDING", 11: "CERT_TYPE_DEVICE_RESTRICTED_SIGNING", 12: "CERT_TYPE_DEVICE_ENDORSEMENT_RSA", 13: "CERT_TYPE_DEVICE_ECDH_EXCHANGE", } ZCertType_value = map[string]int32{ "CERT_TYPE_CONTROLLER_NONE": 0, "CERT_TYPE_CONTROLLER_SIGNING": 1, "CERT_TYPE_CONTROLLER_INTERMEDIATE": 2, "CERT_TYPE_CONTROLLER_ECDH_EXCHANGE": 3, "CERT_TYPE_DEVICE_ONBOARDING": 10, "CERT_TYPE_DEVICE_RESTRICTED_SIGNING": 11, "CERT_TYPE_DEVICE_ENDORSEMENT_RSA": 12, "CERT_TYPE_DEVICE_ECDH_EXCHANGE": 13, } )
Enum value maps for ZCertType.
View Source
var File_certs_certs_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ZCert ¶
type ZCert struct { HashAlgo evecommon.HashAlgorithm `protobuf:"varint,1,opt,name=hashAlgo,proto3,enum=org.lfedge.eve.common.HashAlgorithm" json:"hashAlgo,omitempty"` //hash method used to arrive at certHash CertHash []byte `protobuf:"bytes,2,opt,name=certHash,proto3" json:"certHash,omitempty"` //truncated hash of the cert, according to hashing scheme in hashAlgo Type ZCertType `protobuf:"varint,3,opt,name=type,proto3,enum=org.lfedge.eve.certs.ZCertType" json:"type,omitempty"` //what kind of certificate(to identify the target use case) Cert []byte `protobuf:"bytes,4,opt,name=cert,proto3" json:"cert,omitempty"` //X509 cert in .PEM format Attributes *ZCertAttr `protobuf:"bytes,5,opt,name=attributes,proto3" json:"attributes,omitempty"` //properties of this certificate MetaDataItems []*ZCertMetaData `protobuf:"bytes,6,rep,name=meta_data_items,json=metaDataItems,proto3" json:"meta_data_items,omitempty"` //Any meta-data associated with this certificate // contains filtered or unexported fields }
ZCert is used for both controller certificates and edge-node certificates
func (*ZCert) Descriptor
deprecated
func (*ZCert) GetAttributes ¶
func (*ZCert) GetCertHash ¶
func (*ZCert) GetHashAlgo ¶
func (x *ZCert) GetHashAlgo() evecommon.HashAlgorithm
func (*ZCert) GetMetaDataItems ¶
func (x *ZCert) GetMetaDataItems() []*ZCertMetaData
func (*ZCert) ProtoMessage ¶
func (*ZCert) ProtoMessage()
func (*ZCert) ProtoReflect ¶
func (x *ZCert) ProtoReflect() protoreflect.Message
type ZCertAttr ¶
type ZCertAttr struct { IsMutable bool `protobuf:"varint,1,opt,name=is_mutable,json=isMutable,proto3" json:"is_mutable,omitempty"` //set to false for immutable certificates IsTpm bool `protobuf:"varint,2,opt,name=is_tpm,json=isTpm,proto3" json:"is_tpm,omitempty"` //generated by a TPM // contains filtered or unexported fields }
func (*ZCertAttr) Descriptor
deprecated
func (*ZCertAttr) GetIsMutable ¶
func (*ZCertAttr) ProtoMessage ¶
func (*ZCertAttr) ProtoMessage()
func (*ZCertAttr) ProtoReflect ¶
func (x *ZCertAttr) ProtoReflect() protoreflect.Message
type ZCertMetaData ¶
type ZCertMetaData struct { Type ZCertMetaDataType `protobuf:"varint,1,opt,name=type,proto3,enum=org.lfedge.eve.certs.ZCertMetaDataType" json:"type,omitempty"` //meta-data type MetaData []byte `protobuf:"bytes,2,opt,name=meta_data,json=metaData,proto3" json:"meta_data,omitempty"` //blob for the meta data // contains filtered or unexported fields }
func (*ZCertMetaData) Descriptor
deprecated
func (*ZCertMetaData) Descriptor() ([]byte, []int)
Deprecated: Use ZCertMetaData.ProtoReflect.Descriptor instead.
func (*ZCertMetaData) GetMetaData ¶
func (x *ZCertMetaData) GetMetaData() []byte
func (*ZCertMetaData) GetType ¶
func (x *ZCertMetaData) GetType() ZCertMetaDataType
func (*ZCertMetaData) ProtoMessage ¶
func (*ZCertMetaData) ProtoMessage()
func (*ZCertMetaData) ProtoReflect ¶
func (x *ZCertMetaData) ProtoReflect() protoreflect.Message
func (*ZCertMetaData) Reset ¶
func (x *ZCertMetaData) Reset()
func (*ZCertMetaData) String ¶
func (x *ZCertMetaData) String() string
type ZCertMetaDataType ¶
type ZCertMetaDataType int32
const ( ZCertMetaDataType_Z_CERT_META_DATA_TYPE_INVALID ZCertMetaDataType = 0 ZCertMetaDataType_Z_CERT_META_DATA_TYPE_TPM2_PUBLIC ZCertMetaDataType = 1 //TPM2_PUBLIC blob from TPM2.0 )
func (ZCertMetaDataType) Descriptor ¶
func (ZCertMetaDataType) Descriptor() protoreflect.EnumDescriptor
func (ZCertMetaDataType) Enum ¶
func (x ZCertMetaDataType) Enum() *ZCertMetaDataType
func (ZCertMetaDataType) EnumDescriptor
deprecated
func (ZCertMetaDataType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ZCertMetaDataType.Descriptor instead.
func (ZCertMetaDataType) Number ¶
func (x ZCertMetaDataType) Number() protoreflect.EnumNumber
func (ZCertMetaDataType) String ¶
func (x ZCertMetaDataType) String() string
func (ZCertMetaDataType) Type ¶
func (ZCertMetaDataType) Type() protoreflect.EnumType
type ZCertType ¶
type ZCertType int32
const ( ZCertType_CERT_TYPE_CONTROLLER_NONE ZCertType = 0 // controller generated certificates ZCertType_CERT_TYPE_CONTROLLER_SIGNING ZCertType = 1 //set for the leaf certificate used by controller to sign payload envelopes ZCertType_CERT_TYPE_CONTROLLER_INTERMEDIATE ZCertType = 2 //set for intermediate certs used to validate the certificates ZCertType_CERT_TYPE_CONTROLLER_ECDH_EXCHANGE ZCertType = 3 //set for certificate used by controller to share any symmetric key using ECDH // device generated certificates ZCertType_CERT_TYPE_DEVICE_ONBOARDING ZCertType = 10 //for identifying the device ZCertType_CERT_TYPE_DEVICE_RESTRICTED_SIGNING ZCertType = 11 //node for attestation ZCertType_CERT_TYPE_DEVICE_ENDORSEMENT_RSA ZCertType = 12 //endorsement key certificate with RSASSA signing algorithm ZCertType_CERT_TYPE_DEVICE_ECDH_EXCHANGE ZCertType = 13 //to share symmetric key using ECDH )
func (ZCertType) Descriptor ¶
func (ZCertType) Descriptor() protoreflect.EnumDescriptor
func (ZCertType) EnumDescriptor
deprecated
func (ZCertType) Number ¶
func (x ZCertType) Number() protoreflect.EnumNumber
func (ZCertType) Type ¶
func (ZCertType) Type() protoreflect.EnumType
type ZControllerCert ¶
type ZControllerCert struct { Certs []*ZCert `protobuf:"bytes,1,rep,name=certs,proto3" json:"certs,omitempty"` //list of certificates sent by controller // contains filtered or unexported fields }
This is the response payload for GET /api/v1/edgeDevice/certs or /api/v2/edgeDevice/certs ZControllerCert carries a set of X.509 certificate and their properties from Controller to EVE.
func (*ZControllerCert) Descriptor
deprecated
func (*ZControllerCert) Descriptor() ([]byte, []int)
Deprecated: Use ZControllerCert.ProtoReflect.Descriptor instead.
func (*ZControllerCert) GetCerts ¶
func (x *ZControllerCert) GetCerts() []*ZCert
func (*ZControllerCert) ProtoMessage ¶
func (*ZControllerCert) ProtoMessage()
func (*ZControllerCert) ProtoReflect ¶
func (x *ZControllerCert) ProtoReflect() protoreflect.Message
func (*ZControllerCert) Reset ¶
func (x *ZControllerCert) Reset()
func (*ZControllerCert) String ¶
func (x *ZControllerCert) String() string
Click to show internal directories.
Click to hide internal directories.