v1alpha2

package
v0.2.3-dev Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommandId_name = map[int32]string{
		0: "IDENTIFY_HARDWARE",
		1: "IDENTIFY_FIRMWARE",
		2: "LOAD_FIRMWARE_CHUNK",
		3: "PROGRAM_HARDWARE_IDENTIFICATION",
		4: "RESTART",
		5: "SET_PERSISTENT_PARAMETER",
		6: "GET_PERSISTENT_PARAMETER",
	}
	CommandId_value = map[string]int32{
		"IDENTIFY_HARDWARE":               0,
		"IDENTIFY_FIRMWARE":               1,
		"LOAD_FIRMWARE_CHUNK":             2,
		"PROGRAM_HARDWARE_IDENTIFICATION": 3,
		"RESTART":                         4,
		"SET_PERSISTENT_PARAMETER":        5,
		"GET_PERSISTENT_PARAMETER":        6,
	}
)

Enum value maps for CommandId.

View Source
var (
	Status_name = map[int32]string{
		0: "OK",
		1: "UNKNOWN_COMMAND",
		2: "ILLEGAL_PARAMETER",
		3: "BAD_CHUNK_SEQ",
		4: "BAD_CHUNK_SIZE",
		5: "NOT_COMPATIBLE",
		6: "INTERNAL_ERROR",
		7: "PROGRAMMING_ERROR",
		8: "NO_HW_INVENTORY",
		9: "THIS_VERSION_FAILED_ALREADY",
	}
	Status_value = map[string]int32{
		"OK":                          0,
		"UNKNOWN_COMMAND":             1,
		"ILLEGAL_PARAMETER":           2,
		"BAD_CHUNK_SEQ":               3,
		"BAD_CHUNK_SIZE":              4,
		"NOT_COMPATIBLE":              5,
		"INTERNAL_ERROR":              6,
		"PROGRAMMING_ERROR":           7,
		"NO_HW_INVENTORY":             8,
		"THIS_VERSION_FAILED_ALREADY": 9,
	}
)

Enum value maps for Status.

View Source
var File_io4edge_core_api_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CommandId

type CommandId int32
const (
	CommandId_IDENTIFY_HARDWARE               CommandId = 0
	CommandId_IDENTIFY_FIRMWARE               CommandId = 1
	CommandId_LOAD_FIRMWARE_CHUNK             CommandId = 2
	CommandId_PROGRAM_HARDWARE_IDENTIFICATION CommandId = 3
	CommandId_RESTART                         CommandId = 4
	CommandId_SET_PERSISTENT_PARAMETER        CommandId = 5
	CommandId_GET_PERSISTENT_PARAMETER        CommandId = 6
)

func (CommandId) Descriptor

func (CommandId) Descriptor() protoreflect.EnumDescriptor

func (CommandId) Enum

func (x CommandId) Enum() *CommandId

func (CommandId) EnumDescriptor deprecated

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

Deprecated: Use CommandId.Descriptor instead.

func (CommandId) Number

func (x CommandId) Number() protoreflect.EnumNumber

func (CommandId) String

func (x CommandId) String() string

func (CommandId) Type

type CoreCommand

type CoreCommand struct {
	Id CommandId `protobuf:"varint,1,opt,name=id,proto3,enum=io4edgeCoreApi.CommandId" json:"id,omitempty"`
	// Types that are assignable to Data:
	//	*CoreCommand_LoadFirmwareChunk
	//	*CoreCommand_ProgramHardwareIdentification
	//	*CoreCommand_SetPersistentParameter
	//	*CoreCommand_GetPersistentParameter
	Data isCoreCommand_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

The common messages

func (*CoreCommand) Descriptor deprecated

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

Deprecated: Use CoreCommand.ProtoReflect.Descriptor instead.

func (*CoreCommand) GetData

func (m *CoreCommand) GetData() isCoreCommand_Data

func (*CoreCommand) GetGetPersistentParameter

func (x *CoreCommand) GetGetPersistentParameter() *GetPersistentParameterCommand

func (*CoreCommand) GetId

func (x *CoreCommand) GetId() CommandId

func (*CoreCommand) GetLoadFirmwareChunk

func (x *CoreCommand) GetLoadFirmwareChunk() *LoadFirmwareChunkCommand

func (*CoreCommand) GetProgramHardwareIdentification

func (x *CoreCommand) GetProgramHardwareIdentification() *ProgramHardwareIdentificationCommand

func (*CoreCommand) GetSetPersistentParameter

func (x *CoreCommand) GetSetPersistentParameter() *SetPersistentParameterCommand

func (*CoreCommand) ProtoMessage

func (*CoreCommand) ProtoMessage()

func (*CoreCommand) ProtoReflect

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

func (*CoreCommand) Reset

func (x *CoreCommand) Reset()

func (*CoreCommand) String

func (x *CoreCommand) String() string

type CoreCommand_GetPersistentParameter

type CoreCommand_GetPersistentParameter struct {
	GetPersistentParameter *GetPersistentParameterCommand `protobuf:"bytes,5,opt,name=get_persistent_parameter,json=getPersistentParameter,proto3,oneof"`
}

type CoreCommand_LoadFirmwareChunk

type CoreCommand_LoadFirmwareChunk struct {
	LoadFirmwareChunk *LoadFirmwareChunkCommand `protobuf:"bytes,2,opt,name=load_firmware_chunk,json=loadFirmwareChunk,proto3,oneof"`
}

type CoreCommand_ProgramHardwareIdentification

type CoreCommand_ProgramHardwareIdentification struct {
	ProgramHardwareIdentification *ProgramHardwareIdentificationCommand `protobuf:"bytes,3,opt,name=program_hardware_identification,json=programHardwareIdentification,proto3,oneof"`
}

type CoreCommand_SetPersistentParameter

type CoreCommand_SetPersistentParameter struct {
	SetPersistentParameter *SetPersistentParameterCommand `protobuf:"bytes,4,opt,name=set_persistent_parameter,json=setPersistentParameter,proto3,oneof"`
}

type CoreResponse

type CoreResponse struct {
	Id            CommandId `protobuf:"varint,1,opt,name=id,proto3,enum=io4edgeCoreApi.CommandId" json:"id,omitempty"`
	Status        Status    `protobuf:"varint,2,opt,name=status,proto3,enum=io4edgeCoreApi.Status" json:"status,omitempty"`
	RestartingNow bool      `protobuf:"varint,3,opt,name=restarting_now,json=restartingNow,proto3" json:"restarting_now,omitempty"`
	// Types that are assignable to Data:
	//	*CoreResponse_IdentifyHardware
	//	*CoreResponse_IdentifyFirmware
	//	*CoreResponse_PersistentParameter
	Data isCoreResponse_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*CoreResponse) Descriptor deprecated

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

Deprecated: Use CoreResponse.ProtoReflect.Descriptor instead.

func (*CoreResponse) GetData

func (m *CoreResponse) GetData() isCoreResponse_Data

func (*CoreResponse) GetId

func (x *CoreResponse) GetId() CommandId

func (*CoreResponse) GetIdentifyFirmware

func (x *CoreResponse) GetIdentifyFirmware() *IdentifyFirmwareResponse

func (*CoreResponse) GetIdentifyHardware

func (x *CoreResponse) GetIdentifyHardware() *IdentifyHardwareResponse

func (*CoreResponse) GetPersistentParameter

func (x *CoreResponse) GetPersistentParameter() *GetPersistentParameterResponse

func (*CoreResponse) GetRestartingNow

func (x *CoreResponse) GetRestartingNow() bool

func (*CoreResponse) GetStatus

func (x *CoreResponse) GetStatus() Status

func (*CoreResponse) ProtoMessage

func (*CoreResponse) ProtoMessage()

func (*CoreResponse) ProtoReflect

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

func (*CoreResponse) Reset

func (x *CoreResponse) Reset()

func (*CoreResponse) String

func (x *CoreResponse) String() string

type CoreResponse_IdentifyFirmware

type CoreResponse_IdentifyFirmware struct {
	IdentifyFirmware *IdentifyFirmwareResponse `protobuf:"bytes,5,opt,name=identify_firmware,json=identifyFirmware,proto3,oneof"`
}

type CoreResponse_IdentifyHardware

type CoreResponse_IdentifyHardware struct {
	IdentifyHardware *IdentifyHardwareResponse `protobuf:"bytes,4,opt,name=identify_hardware,json=identifyHardware,proto3,oneof"`
}

type CoreResponse_PersistentParameter

type CoreResponse_PersistentParameter struct {
	PersistentParameter *GetPersistentParameterResponse `protobuf:"bytes,6,opt,name=persistent_parameter,json=persistentParameter,proto3,oneof"`
}

type GetPersistentParameterCommand

type GetPersistentParameterCommand struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPersistentParameterCommand) Descriptor deprecated

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

Deprecated: Use GetPersistentParameterCommand.ProtoReflect.Descriptor instead.

func (*GetPersistentParameterCommand) GetName

func (*GetPersistentParameterCommand) ProtoMessage

func (*GetPersistentParameterCommand) ProtoMessage()

func (*GetPersistentParameterCommand) ProtoReflect

func (*GetPersistentParameterCommand) Reset

func (x *GetPersistentParameterCommand) Reset()

func (*GetPersistentParameterCommand) String

type GetPersistentParameterResponse

type GetPersistentParameterResponse struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPersistentParameterResponse) Descriptor deprecated

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

Deprecated: Use GetPersistentParameterResponse.ProtoReflect.Descriptor instead.

func (*GetPersistentParameterResponse) GetValue

func (x *GetPersistentParameterResponse) GetValue() string

func (*GetPersistentParameterResponse) ProtoMessage

func (*GetPersistentParameterResponse) ProtoMessage()

func (*GetPersistentParameterResponse) ProtoReflect

func (*GetPersistentParameterResponse) Reset

func (x *GetPersistentParameterResponse) Reset()

func (*GetPersistentParameterResponse) String

type IdentifyFirmwareResponse

type IdentifyFirmwareResponse struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*IdentifyFirmwareResponse) Descriptor deprecated

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

Deprecated: Use IdentifyFirmwareResponse.ProtoReflect.Descriptor instead.

func (*IdentifyFirmwareResponse) GetName

func (x *IdentifyFirmwareResponse) GetName() string

func (*IdentifyFirmwareResponse) GetVersion

func (x *IdentifyFirmwareResponse) GetVersion() string

func (*IdentifyFirmwareResponse) ProtoMessage

func (*IdentifyFirmwareResponse) ProtoMessage()

func (*IdentifyFirmwareResponse) ProtoReflect

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

func (*IdentifyFirmwareResponse) Reset

func (x *IdentifyFirmwareResponse) Reset()

func (*IdentifyFirmwareResponse) String

func (x *IdentifyFirmwareResponse) String() string

type IdentifyHardwareResponse

type IdentifyHardwareResponse struct {
	RootArticle  string `protobuf:"bytes,1,opt,name=root_article,json=rootArticle,proto3" json:"root_article,omitempty"`
	MajorVersion uint32 `protobuf:"varint,2,opt,name=major_version,json=majorVersion,proto3" json:"major_version,omitempty"`
	SerialNumber string `protobuf:"bytes,3,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	// contains filtered or unexported fields
}

func (*IdentifyHardwareResponse) Descriptor deprecated

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

Deprecated: Use IdentifyHardwareResponse.ProtoReflect.Descriptor instead.

func (*IdentifyHardwareResponse) GetMajorVersion

func (x *IdentifyHardwareResponse) GetMajorVersion() uint32

func (*IdentifyHardwareResponse) GetRootArticle

func (x *IdentifyHardwareResponse) GetRootArticle() string

func (*IdentifyHardwareResponse) GetSerialNumber

func (x *IdentifyHardwareResponse) GetSerialNumber() string

func (*IdentifyHardwareResponse) ProtoMessage

func (*IdentifyHardwareResponse) ProtoMessage()

func (*IdentifyHardwareResponse) ProtoReflect

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

func (*IdentifyHardwareResponse) Reset

func (x *IdentifyHardwareResponse) Reset()

func (*IdentifyHardwareResponse) String

func (x *IdentifyHardwareResponse) String() string

type LoadFirmwareChunkCommand

type LoadFirmwareChunkCommand struct {
	ChunkNumber uint32 `protobuf:"varint,1,opt,name=chunk_number,json=chunkNumber,proto3" json:"chunk_number,omitempty"`
	IsLastChunk bool   `protobuf:"varint,2,opt,name=is_last_chunk,json=isLastChunk,proto3" json:"is_last_chunk,omitempty"`
	Data        []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

LoadFirmware Client sends sequence of CmdLoadFirmwareChunk commands, with increasing chunk numbers. Clients defines chunk size. Server must acknowledge each chunk with Response. Last chunk has is_last_chunk set to True, so server knows that programming has finished

func (*LoadFirmwareChunkCommand) Descriptor deprecated

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

Deprecated: Use LoadFirmwareChunkCommand.ProtoReflect.Descriptor instead.

func (*LoadFirmwareChunkCommand) GetChunkNumber

func (x *LoadFirmwareChunkCommand) GetChunkNumber() uint32

func (*LoadFirmwareChunkCommand) GetData

func (x *LoadFirmwareChunkCommand) GetData() []byte

func (*LoadFirmwareChunkCommand) GetIsLastChunk

func (x *LoadFirmwareChunkCommand) GetIsLastChunk() bool

func (*LoadFirmwareChunkCommand) ProtoMessage

func (*LoadFirmwareChunkCommand) ProtoMessage()

func (*LoadFirmwareChunkCommand) ProtoReflect

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

func (*LoadFirmwareChunkCommand) Reset

func (x *LoadFirmwareChunkCommand) Reset()

func (*LoadFirmwareChunkCommand) String

func (x *LoadFirmwareChunkCommand) String() string

type ProgramHardwareIdentificationCommand

type ProgramHardwareIdentificationCommand struct {
	Signature    string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	RootArticle  string `protobuf:"bytes,2,opt,name=root_article,json=rootArticle,proto3" json:"root_article,omitempty"`
	MajorVersion uint32 `protobuf:"varint,3,opt,name=major_version,json=majorVersion,proto3" json:"major_version,omitempty"`
	SerialNumber string `protobuf:"bytes,4,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	// contains filtered or unexported fields
}

func (*ProgramHardwareIdentificationCommand) Descriptor deprecated

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

Deprecated: Use ProgramHardwareIdentificationCommand.ProtoReflect.Descriptor instead.

func (*ProgramHardwareIdentificationCommand) GetMajorVersion

func (x *ProgramHardwareIdentificationCommand) GetMajorVersion() uint32

func (*ProgramHardwareIdentificationCommand) GetRootArticle

func (x *ProgramHardwareIdentificationCommand) GetRootArticle() string

func (*ProgramHardwareIdentificationCommand) GetSerialNumber

func (x *ProgramHardwareIdentificationCommand) GetSerialNumber() string

func (*ProgramHardwareIdentificationCommand) GetSignature

func (x *ProgramHardwareIdentificationCommand) GetSignature() string

func (*ProgramHardwareIdentificationCommand) ProtoMessage

func (*ProgramHardwareIdentificationCommand) ProtoMessage()

func (*ProgramHardwareIdentificationCommand) ProtoReflect

func (*ProgramHardwareIdentificationCommand) Reset

func (*ProgramHardwareIdentificationCommand) String

type SetPersistentParameterCommand

type SetPersistentParameterCommand struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*SetPersistentParameterCommand) Descriptor deprecated

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

Deprecated: Use SetPersistentParameterCommand.ProtoReflect.Descriptor instead.

func (*SetPersistentParameterCommand) GetName

func (*SetPersistentParameterCommand) GetValue

func (x *SetPersistentParameterCommand) GetValue() string

func (*SetPersistentParameterCommand) ProtoMessage

func (*SetPersistentParameterCommand) ProtoMessage()

func (*SetPersistentParameterCommand) ProtoReflect

func (*SetPersistentParameterCommand) Reset

func (x *SetPersistentParameterCommand) Reset()

func (*SetPersistentParameterCommand) String

type Status

type Status int32
const (
	Status_OK                          Status = 0
	Status_UNKNOWN_COMMAND             Status = 1
	Status_ILLEGAL_PARAMETER           Status = 2
	Status_BAD_CHUNK_SEQ               Status = 3
	Status_BAD_CHUNK_SIZE              Status = 4
	Status_NOT_COMPATIBLE              Status = 5
	Status_INTERNAL_ERROR              Status = 6
	Status_PROGRAMMING_ERROR           Status = 7
	Status_NO_HW_INVENTORY             Status = 8
	Status_THIS_VERSION_FAILED_ALREADY Status = 9
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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