evecommon

package
v0.0.0-...-e77357d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyExchangeScheme_name = map[int32]string{
		0: "KEA_NONE",
		1: "KEA_ECDH",
	}
	KeyExchangeScheme_value = map[string]int32{
		"KEA_NONE": 0,
		"KEA_ECDH": 1,
	}
)

Enum value maps for KeyExchangeScheme.

View Source
var (
	EncryptionScheme_name = map[int32]string{
		0: "SA_NONE",
		1: "SA_AES_256_CFB",
	}
	EncryptionScheme_value = map[string]int32{
		"SA_NONE":        0,
		"SA_AES_256_CFB": 1,
	}
)

Enum value maps for EncryptionScheme.

View Source
var (
	PhyIoType_name = map[int32]string{
		0:   "PhyIoNoop",
		1:   "PhyIoNetEth",
		2:   "PhyIoUSB",
		3:   "PhyIoCOM",
		4:   "PhyIoAudio",
		5:   "PhyIoNetWLAN",
		6:   "PhyIoNetWWAN",
		7:   "PhyIoHDMI",
		9:   "PhyIoNVMEStorage",
		10:  "PhyIoSATAStorage",
		11:  "PhyIoNetEthPF",
		12:  "PhyIoNetEthVF",
		13:  "PhyIoUSBController",
		14:  "PhyIoUSBDevice",
		15:  "PhyIoCAN",
		16:  "PhyIoVCAN",
		17:  "PhyIoLCAN",
		255: "PhyIoOther",
	}
	PhyIoType_value = map[string]int32{
		"PhyIoNoop":          0,
		"PhyIoNetEth":        1,
		"PhyIoUSB":           2,
		"PhyIoCOM":           3,
		"PhyIoAudio":         4,
		"PhyIoNetWLAN":       5,
		"PhyIoNetWWAN":       6,
		"PhyIoHDMI":          7,
		"PhyIoNVMEStorage":   9,
		"PhyIoSATAStorage":   10,
		"PhyIoNetEthPF":      11,
		"PhyIoNetEthVF":      12,
		"PhyIoUSBController": 13,
		"PhyIoUSBDevice":     14,
		"PhyIoCAN":           15,
		"PhyIoVCAN":          16,
		"PhyIoLCAN":          17,
		"PhyIoOther":         255,
	}
)

Enum value maps for PhyIoType.

View Source
var (
	PhyIoMemberUsage_name = map[int32]string{
		0: "PhyIoUsageNone",
		1: "PhyIoUsageMgmtAndApps",
		2: "PhyIoUsageShared",
		3: "PhyIoUsageDedicated",
		4: "PhyIoUsageDisabled",
		5: "PhyIoUsageMgmtOnly",
	}
	PhyIoMemberUsage_value = map[string]int32{
		"PhyIoUsageNone":        0,
		"PhyIoUsageMgmtAndApps": 1,
		"PhyIoUsageShared":      2,
		"PhyIoUsageDedicated":   3,
		"PhyIoUsageDisabled":    4,
		"PhyIoUsageMgmtOnly":    5,
	}
)

Enum value maps for PhyIoMemberUsage.

View Source
var (
	HashAlgorithm_name = map[int32]string{
		0: "HASH_ALGORITHM_INVALID",
		1: "HASH_ALGORITHM_SHA256_16BYTES",
		2: "HASH_ALGORITHM_SHA256_32BYTES",
	}
	HashAlgorithm_value = map[string]int32{
		"HASH_ALGORITHM_INVALID":        0,
		"HASH_ALGORITHM_SHA256_16BYTES": 1,
		"HASH_ALGORITHM_SHA256_32BYTES": 2,
	}
)

Enum value maps for HashAlgorithm.

View Source
var (
	RadioAccessTechnology_name = map[int32]string{
		0: "RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED",
		1: "RADIO_ACCESS_TECHNOLOGY_GSM",
		2: "RADIO_ACCESS_TECHNOLOGY_UMTS",
		3: "RADIO_ACCESS_TECHNOLOGY_LTE",
		4: "RADIO_ACCESS_TECHNOLOGY_5GNR",
	}
	RadioAccessTechnology_value = map[string]int32{
		"RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED": 0,
		"RADIO_ACCESS_TECHNOLOGY_GSM":         1,
		"RADIO_ACCESS_TECHNOLOGY_UMTS":        2,
		"RADIO_ACCESS_TECHNOLOGY_LTE":         3,
		"RADIO_ACCESS_TECHNOLOGY_5GNR":        4,
	}
)

Enum value maps for RadioAccessTechnology.

View Source
var File_evecommon_acipherinfo_proto protoreflect.FileDescriptor
View Source
var File_evecommon_devmodelcommon_proto protoreflect.FileDescriptor
View Source
var File_evecommon_evecommon_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CipherBlock

type CipherBlock struct {

	// cipher context id
	CipherContextId string `protobuf:"bytes,1,opt,name=cipherContextId,proto3" json:"cipherContextId,omitempty"`
	// Initial Value for Symmetric Key derivation
	InitialValue []byte `protobuf:"bytes,2,opt,name=initialValue,proto3" json:"initialValue,omitempty"`
	// encrypted sensitive data
	CipherData []byte `protobuf:"bytes,3,opt,name=cipherData,proto3" json:"cipherData,omitempty"`
	// sha256 of the plaintext sensitive data
	ClearTextSha256 []byte `protobuf:"bytes,4,opt,name=clearTextSha256,proto3" json:"clearTextSha256,omitempty"`
	// contains filtered or unexported fields
}

Encrypted sensitive data information

func (*CipherBlock) Descriptor deprecated

func (*CipherBlock) Descriptor() ([]byte, []int)

Deprecated: Use CipherBlock.ProtoReflect.Descriptor instead.

func (*CipherBlock) GetCipherContextId

func (x *CipherBlock) GetCipherContextId() string

func (*CipherBlock) GetCipherData

func (x *CipherBlock) GetCipherData() []byte

func (*CipherBlock) GetClearTextSha256

func (x *CipherBlock) GetClearTextSha256() []byte

func (*CipherBlock) GetInitialValue

func (x *CipherBlock) GetInitialValue() []byte

func (*CipherBlock) ProtoMessage

func (*CipherBlock) ProtoMessage()

func (*CipherBlock) ProtoReflect

func (x *CipherBlock) ProtoReflect() protoreflect.Message

func (*CipherBlock) Reset

func (x *CipherBlock) Reset()

func (*CipherBlock) String

func (x *CipherBlock) String() string

type CipherContext

type CipherContext struct {

	// cipher context id, key to this structure
	ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"`
	// algorithm used to compute hash for certificates
	HashScheme HashAlgorithm `protobuf:"varint,2,opt,name=hashScheme,proto3,enum=org.lfedge.eve.common.HashAlgorithm" json:"hashScheme,omitempty"`
	// for key exchange scheme, like ECDH etc.
	KeyExchangeScheme KeyExchangeScheme `` /* 133-byte string literal not displayed */
	// for encrypting sensitive data, like AES256 etc.
	EncryptionScheme EncryptionScheme `` /* 130-byte string literal not displayed */
	// device public certificate hash
	DeviceCertHash []byte `protobuf:"bytes,5,opt,name=deviceCertHash,proto3" json:"deviceCertHash,omitempty"`
	// controller certificate hash
	ControllerCertHash []byte `protobuf:"bytes,6,opt,name=controllerCertHash,proto3" json:"controllerCertHash,omitempty"`
	// contains filtered or unexported fields
}

Cipher information to decrypt Sensitive Data

func (*CipherContext) Descriptor deprecated

func (*CipherContext) Descriptor() ([]byte, []int)

Deprecated: Use CipherContext.ProtoReflect.Descriptor instead.

func (*CipherContext) GetContextId

func (x *CipherContext) GetContextId() string

func (*CipherContext) GetControllerCertHash

func (x *CipherContext) GetControllerCertHash() []byte

func (*CipherContext) GetDeviceCertHash

func (x *CipherContext) GetDeviceCertHash() []byte

func (*CipherContext) GetEncryptionScheme

func (x *CipherContext) GetEncryptionScheme() EncryptionScheme

func (*CipherContext) GetHashScheme

func (x *CipherContext) GetHashScheme() HashAlgorithm

func (*CipherContext) GetKeyExchangeScheme

func (x *CipherContext) GetKeyExchangeScheme() KeyExchangeScheme

func (*CipherContext) ProtoMessage

func (*CipherContext) ProtoMessage()

func (*CipherContext) ProtoReflect

func (x *CipherContext) ProtoReflect() protoreflect.Message

func (*CipherContext) Reset

func (x *CipherContext) Reset()

func (*CipherContext) String

func (x *CipherContext) String() string

type DiskDescription

type DiskDescription struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                                  // bus-related name, for example: /dev/sdc
	LogicalName string `protobuf:"bytes,2,opt,name=logical_name,json=logicalName,proto3" json:"logical_name,omitempty"` // logical name, for example: disk3
	Serial      string `protobuf:"bytes,3,opt,name=serial,proto3" json:"serial,omitempty"`                              // serial number of disk
	// contains filtered or unexported fields
}

DiskDescription describes disk we can use different data to locate disk in the system

func (*DiskDescription) Descriptor deprecated

func (*DiskDescription) Descriptor() ([]byte, []int)

Deprecated: Use DiskDescription.ProtoReflect.Descriptor instead.

func (*DiskDescription) GetLogicalName

func (x *DiskDescription) GetLogicalName() string

func (*DiskDescription) GetName

func (x *DiskDescription) GetName() string

func (*DiskDescription) GetSerial

func (x *DiskDescription) GetSerial() string

func (*DiskDescription) ProtoMessage

func (*DiskDescription) ProtoMessage()

func (*DiskDescription) ProtoReflect

func (x *DiskDescription) ProtoReflect() protoreflect.Message

func (*DiskDescription) Reset

func (x *DiskDescription) Reset()

func (*DiskDescription) String

func (x *DiskDescription) String() string

type EncryptionBlock

type EncryptionBlock struct {
	DsAPIKey          string `protobuf:"bytes,1,opt,name=dsAPIKey,proto3" json:"dsAPIKey,omitempty"`
	DsPassword        string `protobuf:"bytes,2,opt,name=dsPassword,proto3" json:"dsPassword,omitempty"`
	WifiUserName      string `protobuf:"bytes,3,opt,name=wifiUserName,proto3" json:"wifiUserName,omitempty"` // If the authentication type is EAP
	WifiPassword      string `protobuf:"bytes,4,opt,name=wifiPassword,proto3" json:"wifiPassword,omitempty"`
	ProtectedUserData string `protobuf:"bytes,5,opt,name=protectedUserData,proto3" json:"protectedUserData,omitempty"`
	// Username for cellular network.
	CellularNetUsername string `protobuf:"bytes,6,opt,name=cellular_net_username,json=cellularNetUsername,proto3" json:"cellular_net_username,omitempty"`
	// Password for cellular network.
	CellularNetPassword string `protobuf:"bytes,7,opt,name=cellular_net_password,json=cellularNetPassword,proto3" json:"cellular_net_password,omitempty"`
	// Cluster token
	ClusterToken string `protobuf:"bytes,8,opt,name=cluster_token,json=clusterToken,proto3" json:"cluster_token,omitempty"`
	// contains filtered or unexported fields
}

This message will be filled with the details to be encrypted and shared across wire for data in transit, by the controller for encryption

func (*EncryptionBlock) Descriptor deprecated

func (*EncryptionBlock) Descriptor() ([]byte, []int)

Deprecated: Use EncryptionBlock.ProtoReflect.Descriptor instead.

func (*EncryptionBlock) GetCellularNetPassword

func (x *EncryptionBlock) GetCellularNetPassword() string

func (*EncryptionBlock) GetCellularNetUsername

func (x *EncryptionBlock) GetCellularNetUsername() string

func (*EncryptionBlock) GetClusterToken

func (x *EncryptionBlock) GetClusterToken() string

func (*EncryptionBlock) GetDsAPIKey

func (x *EncryptionBlock) GetDsAPIKey() string

func (*EncryptionBlock) GetDsPassword

func (x *EncryptionBlock) GetDsPassword() string

func (*EncryptionBlock) GetProtectedUserData

func (x *EncryptionBlock) GetProtectedUserData() string

func (*EncryptionBlock) GetWifiPassword

func (x *EncryptionBlock) GetWifiPassword() string

func (*EncryptionBlock) GetWifiUserName

func (x *EncryptionBlock) GetWifiUserName() string

func (*EncryptionBlock) ProtoMessage

func (*EncryptionBlock) ProtoMessage()

func (*EncryptionBlock) ProtoReflect

func (x *EncryptionBlock) ProtoReflect() protoreflect.Message

func (*EncryptionBlock) Reset

func (x *EncryptionBlock) Reset()

func (*EncryptionBlock) String

func (x *EncryptionBlock) String() string

type EncryptionScheme

type EncryptionScheme int32

Encryption Scheme for Cipher Payload

const (
	EncryptionScheme_SA_NONE        EncryptionScheme = 0
	EncryptionScheme_SA_AES_256_CFB EncryptionScheme = 1
)

func (EncryptionScheme) Descriptor

func (EncryptionScheme) Enum

func (EncryptionScheme) EnumDescriptor deprecated

func (EncryptionScheme) EnumDescriptor() ([]byte, []int)

Deprecated: Use EncryptionScheme.Descriptor instead.

func (EncryptionScheme) Number

func (EncryptionScheme) String

func (x EncryptionScheme) String() string

func (EncryptionScheme) Type

type HashAlgorithm

type HashAlgorithm int32
const (
	HashAlgorithm_HASH_ALGORITHM_INVALID        HashAlgorithm = 0
	HashAlgorithm_HASH_ALGORITHM_SHA256_16BYTES HashAlgorithm = 1 // hash with sha256, the 1st 16 bytes of result
	HashAlgorithm_HASH_ALGORITHM_SHA256_32BYTES HashAlgorithm = 2 // hash with sha256, the whole 32 bytes of result
)

func (HashAlgorithm) Descriptor

func (HashAlgorithm) Enum

func (x HashAlgorithm) Enum() *HashAlgorithm

func (HashAlgorithm) EnumDescriptor deprecated

func (HashAlgorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use HashAlgorithm.Descriptor instead.

func (HashAlgorithm) Number

func (HashAlgorithm) String

func (x HashAlgorithm) String() string

func (HashAlgorithm) Type

type KeyExchangeScheme

type KeyExchangeScheme int32

Security Key Exchange Method

const (
	KeyExchangeScheme_KEA_NONE KeyExchangeScheme = 0
	KeyExchangeScheme_KEA_ECDH KeyExchangeScheme = 1
)

func (KeyExchangeScheme) Descriptor

func (KeyExchangeScheme) Enum

func (KeyExchangeScheme) EnumDescriptor deprecated

func (KeyExchangeScheme) EnumDescriptor() ([]byte, []int)

Deprecated: Use KeyExchangeScheme.Descriptor instead.

func (KeyExchangeScheme) Number

func (KeyExchangeScheme) String

func (x KeyExchangeScheme) String() string

func (KeyExchangeScheme) Type

type PhyIoMemberUsage

type PhyIoMemberUsage int32

PhyIoMemberUsage - Indicates how each adaptor must be used by Eve.

const (
	PhyIoMemberUsage_PhyIoUsageNone PhyIoMemberUsage = 0
	// Used by both management and apps.
	PhyIoMemberUsage_PhyIoUsageMgmtAndApps PhyIoMemberUsage = 1
	// Shared by multiple apps
	PhyIoMemberUsage_PhyIoUsageShared PhyIoMemberUsage = 2
	// used by only one app
	PhyIoMemberUsage_PhyIoUsageDedicated PhyIoMemberUsage = 3
	// Adapter Blocked. Do not use the Adapter.
	PhyIoMemberUsage_PhyIoUsageDisabled PhyIoMemberUsage = 4
	// Used for Management traffic only. Cannot be used by Apps.
	PhyIoMemberUsage_PhyIoUsageMgmtOnly PhyIoMemberUsage = 5
)

func (PhyIoMemberUsage) Descriptor

func (PhyIoMemberUsage) Enum

func (PhyIoMemberUsage) EnumDescriptor deprecated

func (PhyIoMemberUsage) EnumDescriptor() ([]byte, []int)

Deprecated: Use PhyIoMemberUsage.Descriptor instead.

func (PhyIoMemberUsage) Number

func (PhyIoMemberUsage) String

func (x PhyIoMemberUsage) String() string

func (PhyIoMemberUsage) Type

type PhyIoType

type PhyIoType int32
const (
	PhyIoType_PhyIoNoop          PhyIoType = 0
	PhyIoType_PhyIoNetEth        PhyIoType = 1
	PhyIoType_PhyIoUSB           PhyIoType = 2
	PhyIoType_PhyIoCOM           PhyIoType = 3
	PhyIoType_PhyIoAudio         PhyIoType = 4
	PhyIoType_PhyIoNetWLAN       PhyIoType = 5
	PhyIoType_PhyIoNetWWAN       PhyIoType = 6
	PhyIoType_PhyIoHDMI          PhyIoType = 7
	PhyIoType_PhyIoNVMEStorage   PhyIoType = 9
	PhyIoType_PhyIoSATAStorage   PhyIoType = 10
	PhyIoType_PhyIoNetEthPF      PhyIoType = 11
	PhyIoType_PhyIoNetEthVF      PhyIoType = 12
	PhyIoType_PhyIoUSBController PhyIoType = 13
	PhyIoType_PhyIoUSBDevice     PhyIoType = 14
	PhyIoType_PhyIoCAN           PhyIoType = 15
	PhyIoType_PhyIoVCAN          PhyIoType = 16
	PhyIoType_PhyIoLCAN          PhyIoType = 17
	PhyIoType_PhyIoOther         PhyIoType = 255
)

func (PhyIoType) Descriptor

func (PhyIoType) Descriptor() protoreflect.EnumDescriptor

func (PhyIoType) Enum

func (x PhyIoType) Enum() *PhyIoType

func (PhyIoType) EnumDescriptor deprecated

func (PhyIoType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PhyIoType.Descriptor instead.

func (PhyIoType) Number

func (x PhyIoType) Number() protoreflect.EnumNumber

func (PhyIoType) String

func (x PhyIoType) String() string

func (PhyIoType) Type

type RadioAccessTechnology

type RadioAccessTechnology int32
const (
	RadioAccessTechnology_RADIO_ACCESS_TECHNOLOGY_UNSPECIFIED RadioAccessTechnology = 0
	// Global System for Mobile Communications (2G).
	RadioAccessTechnology_RADIO_ACCESS_TECHNOLOGY_GSM RadioAccessTechnology = 1
	// Universal Mobile Telecommunications System (3G).
	RadioAccessTechnology_RADIO_ACCESS_TECHNOLOGY_UMTS RadioAccessTechnology = 2
	// Long Term Evolution (4G).
	RadioAccessTechnology_RADIO_ACCESS_TECHNOLOGY_LTE RadioAccessTechnology = 3
	// 5G New Radio.
	RadioAccessTechnology_RADIO_ACCESS_TECHNOLOGY_5GNR RadioAccessTechnology = 4
)

func (RadioAccessTechnology) Descriptor

func (RadioAccessTechnology) Enum

func (RadioAccessTechnology) EnumDescriptor deprecated

func (RadioAccessTechnology) EnumDescriptor() ([]byte, []int)

Deprecated: Use RadioAccessTechnology.Descriptor instead.

func (RadioAccessTechnology) Number

func (RadioAccessTechnology) String

func (x RadioAccessTechnology) String() string

func (RadioAccessTechnology) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL