otasrvr

package
v0.0.0-...-2db16aa Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package otasrvr is a generated protocol buffer package.

It is generated from these files:

otasrvr/otasrvr.proto

It has these top-level messages:

AddressStruct
OtaZigbeeGenericCnf
OtaZigbeeGenericRspInd
OtaUpdateImageRegisterationReq
OtaUpdateEnableReq
OtaUpdateEnableCnf
OtaUpdateDlFinishedInd
OtaUpdateApplyImageReq

Index

Constants

This section is empty.

Variables

View Source
var AddressMode_name = map[int32]string{
	0: "UNICAST",
	1: "GROUPCAST",
	2: "BROADCAST",
	3: "SELF",
}
View Source
var AddressMode_value = map[string]int32{
	"UNICAST":   0,
	"GROUPCAST": 1,
	"BROADCAST": 2,
	"SELF":      3,
}
View Source
var GenericStatus_name = map[int32]string{
	0: "SUCCESS",
	1: "FAILURE",
}
View Source
var GenericStatus_value = map[string]int32{
	"SUCCESS": 0,
	"FAILURE": 1,
}
View Source
var OtaEnableModes_name = map[int32]string{
	0: "DOWNLOAD_ENABLE",
	1: "NEW_DOWNLOAD_DISABLE",
	2: "DOWNLOAD_DISABLE",
}
View Source
var OtaEnableModes_value = map[string]int32{
	"DOWNLOAD_ENABLE":      0,
	"NEW_DOWNLOAD_DISABLE": 1,
	"DOWNLOAD_DISABLE":     2,
}
View Source
var OtaExecuteType_name = map[int32]string{
	0:   "IMMEDIATE",
	1:   "DELAY",
	2:   "TIME",
	3:   "HOLD",
	255: "NO_CHANGE",
}
View Source
var OtaExecuteType_value = map[string]int32{
	"IMMEDIATE": 0,
	"DELAY":     1,
	"TIME":      2,
	"HOLD":      3,
	"NO_CHANGE": 255,
}
View Source
var OtaMgrCmdIdT_name = map[int32]string{
	0: "ZIGBEE_GENERIC_CNF",
	1: "ZIGBEE_GENERIC_RSP_IND",
	2: "OTA_UPDATE_IMAGE_REGISTERATION_REQ",
	3: "OTA_UPDATE_ENABLE_REQ",
	4: "OTA_UPDATE_ENABLE_CNF",
	5: "OTA_UPDATE_DL_FINISHED_IND",
	6: "OTA_UPDATE_APPLY_IMAGE_REQ",
}
View Source
var OtaMgrCmdIdT_value = map[string]int32{
	"ZIGBEE_GENERIC_CNF":                 0,
	"ZIGBEE_GENERIC_RSP_IND":             1,
	"OTA_UPDATE_IMAGE_REGISTERATION_REQ": 2,
	"OTA_UPDATE_ENABLE_REQ":              3,
	"OTA_UPDATE_ENABLE_CNF":              4,
	"OTA_UPDATE_DL_FINISHED_IND":         5,
	"OTA_UPDATE_APPLY_IMAGE_REQ":         6,
}
View Source
var OtaNotificationType_name = map[int32]string{
	0: "DO_NOT_SEND",
	1: "BROADCAST_NOT",
	2: "UNICAST_NOT",
}
View Source
var OtaNotificationType_value = map[string]int32{
	"DO_NOT_SEND":   0,
	"BROADCAST_NOT": 1,
	"UNICAST_NOT":   2,
}
View Source
var OtaStatus_name = map[int32]string{
	0: "OTA_SUCCESS",
	1: "INVALID_IMAGE",
	2: "REQUIRE_MORE_IMAGE",
	3: "ABORT",
}
View Source
var OtaStatus_value = map[string]int32{
	"OTA_SUCCESS":        0,
	"INVALID_IMAGE":      1,
	"REQUIRE_MORE_IMAGE": 2,
	"ABORT":              3,
}
View Source
var OtaUpdateCnfStatus_name = map[int32]string{
	0: "UPDATE_SUCCESS",
	1: "BAD_FILE_FORMAT",
	2: "CANT_UNREGISTER",
	3: "OUT_OF_RESOURCES",
}
View Source
var OtaUpdateCnfStatus_value = map[string]int32{
	"UPDATE_SUCCESS":   0,
	"BAD_FILE_FORMAT":  1,
	"CANT_UNREGISTER":  2,
	"OUT_OF_RESOURCES": 3,
}
View Source
var ZStackOTASysIDs_name = map[int32]string{
	20: "RPC_SYS_PB_OTA_MGR",
}
View Source
var ZStackOTASysIDs_value = map[string]int32{
	"RPC_SYS_PB_OTA_MGR": 20,
}

Functions

This section is empty.

Types

type AddressMode

type AddressMode int32
const (
	AddressMode_UNICAST   AddressMode = 0
	AddressMode_GROUPCAST AddressMode = 1
	AddressMode_BROADCAST AddressMode = 2
	AddressMode_SELF      AddressMode = 3
)

func (AddressMode) Enum

func (x AddressMode) Enum() *AddressMode

func (AddressMode) String

func (x AddressMode) String() string

func (*AddressMode) UnmarshalJSON

func (x *AddressMode) UnmarshalJSON(data []byte) error

type AddressStruct

type AddressStruct struct {
	AddrMode         *AddressMode `protobuf:"varint,1,req,name=addrMode,enum=AddressMode" json:"addrMode,omitempty"`
	IeeeAddr         *uint64      `protobuf:"fixed64,2,opt,name=ieeeAddr" json:"ieeeAddr,omitempty"`
	GroupAddr        *uint32      `protobuf:"varint,3,opt,name=groupAddr" json:"groupAddr,omitempty"`
	BroadcaseAddr    *uint32      `protobuf:"varint,4,opt,name=broadcaseAddr" json:"broadcaseAddr,omitempty"`
	EndpointID       *uint32      `protobuf:"varint,5,opt,name=endpointID" json:"endpointID,omitempty"`
	XXX_unrecognized []byte       `json:"-"`
}

func (*AddressStruct) GetAddrMode

func (m *AddressStruct) GetAddrMode() AddressMode

func (*AddressStruct) GetBroadcaseAddr

func (m *AddressStruct) GetBroadcaseAddr() uint32

func (*AddressStruct) GetEndpointID

func (m *AddressStruct) GetEndpointID() uint32

func (*AddressStruct) GetGroupAddr

func (m *AddressStruct) GetGroupAddr() uint32

func (*AddressStruct) GetIeeeAddr

func (m *AddressStruct) GetIeeeAddr() uint64

func (*AddressStruct) ProtoMessage

func (*AddressStruct) ProtoMessage()

func (*AddressStruct) Reset

func (m *AddressStruct) Reset()

func (*AddressStruct) String

func (m *AddressStruct) String() string

type GenericStatus

type GenericStatus int32
const (
	GenericStatus_SUCCESS GenericStatus = 0
	GenericStatus_FAILURE GenericStatus = 1
)

func (GenericStatus) Enum

func (x GenericStatus) Enum() *GenericStatus

func (GenericStatus) String

func (x GenericStatus) String() string

func (*GenericStatus) UnmarshalJSON

func (x *GenericStatus) UnmarshalJSON(data []byte) error

type OtaEnableModes

type OtaEnableModes int32
const (
	OtaEnableModes_DOWNLOAD_ENABLE      OtaEnableModes = 0
	OtaEnableModes_NEW_DOWNLOAD_DISABLE OtaEnableModes = 1
	OtaEnableModes_DOWNLOAD_DISABLE     OtaEnableModes = 2
)

func (OtaEnableModes) Enum

func (x OtaEnableModes) Enum() *OtaEnableModes

func (OtaEnableModes) String

func (x OtaEnableModes) String() string

func (*OtaEnableModes) UnmarshalJSON

func (x *OtaEnableModes) UnmarshalJSON(data []byte) error

type OtaExecuteType

type OtaExecuteType int32
const (
	OtaExecuteType_IMMEDIATE OtaExecuteType = 0
	OtaExecuteType_DELAY     OtaExecuteType = 1
	OtaExecuteType_TIME      OtaExecuteType = 2
	OtaExecuteType_HOLD      OtaExecuteType = 3
	OtaExecuteType_NO_CHANGE OtaExecuteType = 255
)

func (OtaExecuteType) Enum

func (x OtaExecuteType) Enum() *OtaExecuteType

func (OtaExecuteType) String

func (x OtaExecuteType) String() string

func (*OtaExecuteType) UnmarshalJSON

func (x *OtaExecuteType) UnmarshalJSON(data []byte) error

type OtaMgrCmdIdT

type OtaMgrCmdIdT int32

Command IDs - each of these are associated with Request, Responses, Indications, and Confirm messages

const (
	OtaMgrCmdIdT_ZIGBEE_GENERIC_CNF                 OtaMgrCmdIdT = 0
	OtaMgrCmdIdT_ZIGBEE_GENERIC_RSP_IND             OtaMgrCmdIdT = 1
	OtaMgrCmdIdT_OTA_UPDATE_IMAGE_REGISTERATION_REQ OtaMgrCmdIdT = 2
	OtaMgrCmdIdT_OTA_UPDATE_ENABLE_REQ              OtaMgrCmdIdT = 3
	OtaMgrCmdIdT_OTA_UPDATE_ENABLE_CNF              OtaMgrCmdIdT = 4
	OtaMgrCmdIdT_OTA_UPDATE_DL_FINISHED_IND         OtaMgrCmdIdT = 5
	OtaMgrCmdIdT_OTA_UPDATE_APPLY_IMAGE_REQ         OtaMgrCmdIdT = 6
)
const Default_OtaUpdateApplyImageReq_CmdID OtaMgrCmdIdT = OtaMgrCmdIdT_OTA_UPDATE_ENABLE_REQ
const Default_OtaUpdateDlFinishedInd_CmdID OtaMgrCmdIdT = OtaMgrCmdIdT_OTA_UPDATE_DL_FINISHED_IND
const Default_OtaUpdateEnableCnf_CmdID OtaMgrCmdIdT = OtaMgrCmdIdT_OTA_UPDATE_ENABLE_CNF
const Default_OtaUpdateEnableReq_CmdID OtaMgrCmdIdT = OtaMgrCmdIdT_OTA_UPDATE_ENABLE_REQ
const Default_OtaUpdateImageRegisterationReq_CmdID OtaMgrCmdIdT = OtaMgrCmdIdT_OTA_UPDATE_IMAGE_REGISTERATION_REQ
const Default_OtaZigbeeGenericCnf_CmdId OtaMgrCmdIdT = OtaMgrCmdIdT_ZIGBEE_GENERIC_CNF
const Default_OtaZigbeeGenericRspInd_CmdId OtaMgrCmdIdT = OtaMgrCmdIdT_ZIGBEE_GENERIC_RSP_IND

func (OtaMgrCmdIdT) Enum

func (x OtaMgrCmdIdT) Enum() *OtaMgrCmdIdT

func (OtaMgrCmdIdT) String

func (x OtaMgrCmdIdT) String() string

func (*OtaMgrCmdIdT) UnmarshalJSON

func (x *OtaMgrCmdIdT) UnmarshalJSON(data []byte) error

type OtaNotificationType

type OtaNotificationType int32
const (
	OtaNotificationType_DO_NOT_SEND   OtaNotificationType = 0
	OtaNotificationType_BROADCAST_NOT OtaNotificationType = 1
	OtaNotificationType_UNICAST_NOT   OtaNotificationType = 2
)

func (OtaNotificationType) Enum

func (OtaNotificationType) String

func (x OtaNotificationType) String() string

func (*OtaNotificationType) UnmarshalJSON

func (x *OtaNotificationType) UnmarshalJSON(data []byte) error

type OtaStatus

type OtaStatus int32
const (
	OtaStatus_OTA_SUCCESS        OtaStatus = 0
	OtaStatus_INVALID_IMAGE      OtaStatus = 1
	OtaStatus_REQUIRE_MORE_IMAGE OtaStatus = 2
	OtaStatus_ABORT              OtaStatus = 3
)

func (OtaStatus) Enum

func (x OtaStatus) Enum() *OtaStatus

func (OtaStatus) String

func (x OtaStatus) String() string

func (*OtaStatus) UnmarshalJSON

func (x *OtaStatus) UnmarshalJSON(data []byte) error

type OtaUpdateApplyImageReq

type OtaUpdateApplyImageReq struct {
	CmdID            *OtaMgrCmdIdT  `protobuf:"varint,1,req,name=cmdID,enum=OtaMgrCmdIdT,def=3" json:"cmdID,omitempty"`
	Address          *AddressStruct `protobuf:"bytes,2,req,name=address" json:"address,omitempty"`
	XXX_unrecognized []byte         `json:"-"`
}

func (*OtaUpdateApplyImageReq) GetAddress

func (m *OtaUpdateApplyImageReq) GetAddress() *AddressStruct

func (*OtaUpdateApplyImageReq) GetCmdID

func (m *OtaUpdateApplyImageReq) GetCmdID() OtaMgrCmdIdT

func (*OtaUpdateApplyImageReq) ProtoMessage

func (*OtaUpdateApplyImageReq) ProtoMessage()

func (*OtaUpdateApplyImageReq) Reset

func (m *OtaUpdateApplyImageReq) Reset()

func (*OtaUpdateApplyImageReq) String

func (m *OtaUpdateApplyImageReq) String() string

type OtaUpdateCnfStatus

type OtaUpdateCnfStatus int32
const (
	OtaUpdateCnfStatus_UPDATE_SUCCESS   OtaUpdateCnfStatus = 0
	OtaUpdateCnfStatus_BAD_FILE_FORMAT  OtaUpdateCnfStatus = 1
	OtaUpdateCnfStatus_CANT_UNREGISTER  OtaUpdateCnfStatus = 2
	OtaUpdateCnfStatus_OUT_OF_RESOURCES OtaUpdateCnfStatus = 3
)

func (OtaUpdateCnfStatus) Enum

func (OtaUpdateCnfStatus) String

func (x OtaUpdateCnfStatus) String() string

func (*OtaUpdateCnfStatus) UnmarshalJSON

func (x *OtaUpdateCnfStatus) UnmarshalJSON(data []byte) error

type OtaUpdateDlFinishedInd

type OtaUpdateDlFinishedInd struct {
	CmdID            *OtaMgrCmdIdT  `protobuf:"varint,1,req,name=cmdID,enum=OtaMgrCmdIdT,def=5" json:"cmdID,omitempty"`
	Status           *OtaStatus     `protobuf:"varint,2,req,name=status,enum=OtaStatus" json:"status,omitempty"`
	Address          *AddressStruct `protobuf:"bytes,3,req,name=address" json:"address,omitempty"`
	XXX_unrecognized []byte         `json:"-"`
}

func (*OtaUpdateDlFinishedInd) GetAddress

func (m *OtaUpdateDlFinishedInd) GetAddress() *AddressStruct

func (*OtaUpdateDlFinishedInd) GetCmdID

func (m *OtaUpdateDlFinishedInd) GetCmdID() OtaMgrCmdIdT

func (*OtaUpdateDlFinishedInd) GetStatus

func (m *OtaUpdateDlFinishedInd) GetStatus() OtaStatus

func (*OtaUpdateDlFinishedInd) ProtoMessage

func (*OtaUpdateDlFinishedInd) ProtoMessage()

func (*OtaUpdateDlFinishedInd) Reset

func (m *OtaUpdateDlFinishedInd) Reset()

func (*OtaUpdateDlFinishedInd) String

func (m *OtaUpdateDlFinishedInd) String() string

type OtaUpdateEnableCnf

type OtaUpdateEnableCnf struct {
	CmdID            *OtaMgrCmdIdT `protobuf:"varint,1,req,name=cmdID,enum=OtaMgrCmdIdT,def=4" json:"cmdID,omitempty"`
	Status           *bool         `protobuf:"varint,2,req,name=status" json:"status,omitempty"`
	XXX_unrecognized []byte        `json:"-"`
}

func (*OtaUpdateEnableCnf) GetCmdID

func (m *OtaUpdateEnableCnf) GetCmdID() OtaMgrCmdIdT

func (*OtaUpdateEnableCnf) GetStatus

func (m *OtaUpdateEnableCnf) GetStatus() bool

func (*OtaUpdateEnableCnf) ProtoMessage

func (*OtaUpdateEnableCnf) ProtoMessage()

func (*OtaUpdateEnableCnf) Reset

func (m *OtaUpdateEnableCnf) Reset()

func (*OtaUpdateEnableCnf) String

func (m *OtaUpdateEnableCnf) String() string

type OtaUpdateEnableReq

type OtaUpdateEnableReq struct {
	CmdID            *OtaMgrCmdIdT   `protobuf:"varint,1,req,name=cmdID,enum=OtaMgrCmdIdT,def=3" json:"cmdID,omitempty"`
	Mode             *OtaEnableModes `protobuf:"varint,2,req,name=mode,enum=OtaEnableModes" json:"mode,omitempty"`
	XXX_unrecognized []byte          `json:"-"`
}

func (*OtaUpdateEnableReq) GetCmdID

func (m *OtaUpdateEnableReq) GetCmdID() OtaMgrCmdIdT

func (*OtaUpdateEnableReq) GetMode

func (m *OtaUpdateEnableReq) GetMode() OtaEnableModes

func (*OtaUpdateEnableReq) ProtoMessage

func (*OtaUpdateEnableReq) ProtoMessage()

func (*OtaUpdateEnableReq) Reset

func (m *OtaUpdateEnableReq) Reset()

func (*OtaUpdateEnableReq) String

func (m *OtaUpdateEnableReq) String() string

type OtaUpdateImageRegisterationReq

type OtaUpdateImageRegisterationReq struct {
	CmdID              *OtaMgrCmdIdT `protobuf:"varint,1,req,name=cmdID,enum=OtaMgrCmdIdT,def=2" json:"cmdID,omitempty"`
	ImagePath          *string       `protobuf:"bytes,2,req,name=imagePath" json:"imagePath,omitempty"`
	RegisterUnregister *bool         `protobuf:"varint,3,req,name=registerUnregister" json:"registerUnregister,omitempty"`
	// 1 – Registrer new image, or update the HoldExecution state.
	ExecuteTiming             *OtaExecuteType `protobuf:"varint,4,req,name=executeTiming,enum=OtaExecuteType" json:"executeTiming,omitempty"`
	ExecutionDelay            *uint32         `protobuf:"varint,5,opt,name=executionDelay" json:"executionDelay,omitempty"`
	ExecutionTime             *uint32         `protobuf:"varint,6,opt,name=executionTime" json:"executionTime,omitempty"`
	UpdateSupportedDeviceList *bool           `protobuf:"varint,7,req,name=updateSupportedDeviceList" json:"updateSupportedDeviceList,omitempty"`
	SupportedDeviceList       []uint64        `protobuf:"fixed64,8,rep,name=supportedDeviceList" json:"supportedDeviceList,omitempty"`
	// If there are no devices in the list, the image is intended for any applicable device,
	// or if the image already exists, there is not change to the existing device list.
	Notification     *OtaNotificationType `protobuf:"varint,9,req,name=notification,enum=OtaNotificationType" json:"notification,omitempty"`
	XXX_unrecognized []byte               `json:"-"`
}

func (*OtaUpdateImageRegisterationReq) GetCmdID

func (*OtaUpdateImageRegisterationReq) GetExecuteTiming

func (m *OtaUpdateImageRegisterationReq) GetExecuteTiming() OtaExecuteType

func (*OtaUpdateImageRegisterationReq) GetExecutionDelay

func (m *OtaUpdateImageRegisterationReq) GetExecutionDelay() uint32

func (*OtaUpdateImageRegisterationReq) GetExecutionTime

func (m *OtaUpdateImageRegisterationReq) GetExecutionTime() uint32

func (*OtaUpdateImageRegisterationReq) GetImagePath

func (m *OtaUpdateImageRegisterationReq) GetImagePath() string

func (*OtaUpdateImageRegisterationReq) GetNotification

func (*OtaUpdateImageRegisterationReq) GetRegisterUnregister

func (m *OtaUpdateImageRegisterationReq) GetRegisterUnregister() bool

func (*OtaUpdateImageRegisterationReq) GetSupportedDeviceList

func (m *OtaUpdateImageRegisterationReq) GetSupportedDeviceList() []uint64

func (*OtaUpdateImageRegisterationReq) GetUpdateSupportedDeviceList

func (m *OtaUpdateImageRegisterationReq) GetUpdateSupportedDeviceList() bool

func (*OtaUpdateImageRegisterationReq) ProtoMessage

func (*OtaUpdateImageRegisterationReq) ProtoMessage()

func (*OtaUpdateImageRegisterationReq) Reset

func (m *OtaUpdateImageRegisterationReq) Reset()

func (*OtaUpdateImageRegisterationReq) String

type OtaZigbeeGenericCnf

type OtaZigbeeGenericCnf struct {
	CmdId            *OtaMgrCmdIdT  `protobuf:"varint,1,req,name=cmdId,enum=OtaMgrCmdIdT,def=0" json:"cmdId,omitempty"`
	Status           *GenericStatus `protobuf:"varint,2,req,name=status,enum=GenericStatus" json:"status,omitempty"`
	SequenceNumber   *uint32        `protobuf:"varint,3,opt,name=sequenceNumber" json:"sequenceNumber,omitempty"`
	XXX_unrecognized []byte         `json:"-"`
}

ZIGBEE_GENERIC_CNF

func (*OtaZigbeeGenericCnf) GetCmdId

func (m *OtaZigbeeGenericCnf) GetCmdId() OtaMgrCmdIdT

func (*OtaZigbeeGenericCnf) GetSequenceNumber

func (m *OtaZigbeeGenericCnf) GetSequenceNumber() uint32

func (*OtaZigbeeGenericCnf) GetStatus

func (m *OtaZigbeeGenericCnf) GetStatus() GenericStatus

func (*OtaZigbeeGenericCnf) ProtoMessage

func (*OtaZigbeeGenericCnf) ProtoMessage()

func (*OtaZigbeeGenericCnf) Reset

func (m *OtaZigbeeGenericCnf) Reset()

func (*OtaZigbeeGenericCnf) String

func (m *OtaZigbeeGenericCnf) String() string

type OtaZigbeeGenericRspInd

type OtaZigbeeGenericRspInd struct {
	CmdId            *OtaMgrCmdIdT  `protobuf:"varint,1,req,name=cmdId,enum=OtaMgrCmdIdT,def=1" json:"cmdId,omitempty"`
	SequenceNumber   *uint32        `protobuf:"varint,2,req,name=sequenceNumber" json:"sequenceNumber,omitempty"`
	Status           *GenericStatus `protobuf:"varint,3,req,name=status,enum=GenericStatus" json:"status,omitempty"`
	XXX_unrecognized []byte         `json:"-"`
}

func (*OtaZigbeeGenericRspInd) GetCmdId

func (m *OtaZigbeeGenericRspInd) GetCmdId() OtaMgrCmdIdT

func (*OtaZigbeeGenericRspInd) GetSequenceNumber

func (m *OtaZigbeeGenericRspInd) GetSequenceNumber() uint32

func (*OtaZigbeeGenericRspInd) GetStatus

func (m *OtaZigbeeGenericRspInd) GetStatus() GenericStatus

func (*OtaZigbeeGenericRspInd) ProtoMessage

func (*OtaZigbeeGenericRspInd) ProtoMessage()

func (*OtaZigbeeGenericRspInd) Reset

func (m *OtaZigbeeGenericRspInd) Reset()

func (*OtaZigbeeGenericRspInd) String

func (m *OtaZigbeeGenericRspInd) String() string

type ZStackOTASysIDs

type ZStackOTASysIDs int32

MT System ID for ZStack Network Manager Protobuf sub-system ID

const (
	ZStackOTASysIDs_RPC_SYS_PB_OTA_MGR ZStackOTASysIDs = 20
)

func (ZStackOTASysIDs) Enum

func (x ZStackOTASysIDs) Enum() *ZStackOTASysIDs

func (ZStackOTASysIDs) String

func (x ZStackOTASysIDs) String() string

func (*ZStackOTASysIDs) UnmarshalJSON

func (x *ZStackOTASysIDs) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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