updatemanager

package
v0.0.0-...-4c73ccb Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UmState_name = map[int32]string{
		0: "IDLE",
		1: "PREPARED",
		2: "UPDATED",
		3: "FAILED",
	}
	UmState_value = map[string]int32{
		"IDLE":     0,
		"PREPARED": 1,
		"UPDATED":  2,
		"FAILED":   3,
	}
)

Enum value maps for UmState.

View Source
var (
	ComponentStatus_name = map[int32]string{
		0: "INSTALLED",
		1: "INSTALLING",
		2: "ERROR",
	}
	ComponentStatus_value = map[string]int32{
		"INSTALLED":  0,
		"INSTALLING": 1,
		"ERROR":      2,
	}
)

Enum value maps for ComponentStatus.

View Source
var File_updatemanager_v1_updatemanager_proto protoreflect.FileDescriptor
View Source
var UMService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "updatemanager.v1.UMService",
	HandlerType: (*UMServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "RegisterUM",
			Handler:       _UMService_RegisterUM_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "updatemanager/v1/updatemanager.proto",
}

UMService_ServiceDesc is the grpc.ServiceDesc for UMService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUMServiceServer

func RegisterUMServiceServer(s grpc.ServiceRegistrar, srv UMServiceServer)

Types

type ApplyUpdate

type ApplyUpdate struct {
	// contains filtered or unexported fields
}

func (*ApplyUpdate) Descriptor deprecated

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

Deprecated: Use ApplyUpdate.ProtoReflect.Descriptor instead.

func (*ApplyUpdate) ProtoMessage

func (*ApplyUpdate) ProtoMessage()

func (*ApplyUpdate) ProtoReflect

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

func (*ApplyUpdate) Reset

func (x *ApplyUpdate) Reset()

func (*ApplyUpdate) String

func (x *ApplyUpdate) String() string

type CMMessages

type CMMessages struct {

	// Types that are assignable to CMMessage:
	//	*CMMessages_PrepareUpdate
	//	*CMMessages_StartUpdate
	//	*CMMessages_ApplyUpdate
	//	*CMMessages_RevertUpdate
	CMMessage isCMMessages_CMMessage `protobuf_oneof:"CMMessage"`
	// contains filtered or unexported fields
}

func (*CMMessages) Descriptor deprecated

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

Deprecated: Use CMMessages.ProtoReflect.Descriptor instead.

func (*CMMessages) GetApplyUpdate

func (x *CMMessages) GetApplyUpdate() *ApplyUpdate

func (*CMMessages) GetCMMessage

func (m *CMMessages) GetCMMessage() isCMMessages_CMMessage

func (*CMMessages) GetPrepareUpdate

func (x *CMMessages) GetPrepareUpdate() *PrepareUpdate

func (*CMMessages) GetRevertUpdate

func (x *CMMessages) GetRevertUpdate() *RevertUpdate

func (*CMMessages) GetStartUpdate

func (x *CMMessages) GetStartUpdate() *StartUpdate

func (*CMMessages) ProtoMessage

func (*CMMessages) ProtoMessage()

func (*CMMessages) ProtoReflect

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

func (*CMMessages) Reset

func (x *CMMessages) Reset()

func (*CMMessages) String

func (x *CMMessages) String() string

type CMMessages_ApplyUpdate

type CMMessages_ApplyUpdate struct {
	ApplyUpdate *ApplyUpdate `protobuf:"bytes,3,opt,name=apply_update,json=applyUpdate,proto3,oneof"`
}

type CMMessages_PrepareUpdate

type CMMessages_PrepareUpdate struct {
	PrepareUpdate *PrepareUpdate `protobuf:"bytes,1,opt,name=prepare_update,json=prepareUpdate,proto3,oneof"`
}

type CMMessages_RevertUpdate

type CMMessages_RevertUpdate struct {
	RevertUpdate *RevertUpdate `protobuf:"bytes,4,opt,name=revert_update,json=revertUpdate,proto3,oneof"`
}

type CMMessages_StartUpdate

type CMMessages_StartUpdate struct {
	StartUpdate *StartUpdate `protobuf:"bytes,2,opt,name=start_update,json=startUpdate,proto3,oneof"`
}

type ComponentStatus

type ComponentStatus int32
const (
	ComponentStatus_INSTALLED  ComponentStatus = 0
	ComponentStatus_INSTALLING ComponentStatus = 1
	ComponentStatus_ERROR      ComponentStatus = 2
)

func (ComponentStatus) Descriptor

func (ComponentStatus) Enum

func (x ComponentStatus) Enum() *ComponentStatus

func (ComponentStatus) EnumDescriptor deprecated

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

Deprecated: Use ComponentStatus.Descriptor instead.

func (ComponentStatus) Number

func (ComponentStatus) String

func (x ComponentStatus) String() string

func (ComponentStatus) Type

type PrepareComponentInfo

type PrepareComponentInfo struct {
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	VendorVersion string `protobuf:"bytes,2,opt,name=vendor_version,json=vendorVersion,proto3" json:"vendor_version,omitempty"`
	AosVersion    uint64 `protobuf:"varint,3,opt,name=aos_version,json=aosVersion,proto3" json:"aos_version,omitempty"`
	Annotations   string `protobuf:"bytes,4,opt,name=annotations,proto3" json:"annotations,omitempty"`
	Url           string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	Sha256        []byte `protobuf:"bytes,6,opt,name=sha256,proto3" json:"sha256,omitempty"`
	Sha512        []byte `protobuf:"bytes,7,opt,name=sha512,proto3" json:"sha512,omitempty"`
	Size          uint64 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareComponentInfo) Descriptor deprecated

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

Deprecated: Use PrepareComponentInfo.ProtoReflect.Descriptor instead.

func (*PrepareComponentInfo) GetAnnotations

func (x *PrepareComponentInfo) GetAnnotations() string

func (*PrepareComponentInfo) GetAosVersion

func (x *PrepareComponentInfo) GetAosVersion() uint64

func (*PrepareComponentInfo) GetId

func (x *PrepareComponentInfo) GetId() string

func (*PrepareComponentInfo) GetSha256

func (x *PrepareComponentInfo) GetSha256() []byte

func (*PrepareComponentInfo) GetSha512

func (x *PrepareComponentInfo) GetSha512() []byte

func (*PrepareComponentInfo) GetSize

func (x *PrepareComponentInfo) GetSize() uint64

func (*PrepareComponentInfo) GetUrl

func (x *PrepareComponentInfo) GetUrl() string

func (*PrepareComponentInfo) GetVendorVersion

func (x *PrepareComponentInfo) GetVendorVersion() string

func (*PrepareComponentInfo) ProtoMessage

func (*PrepareComponentInfo) ProtoMessage()

func (*PrepareComponentInfo) ProtoReflect

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

func (*PrepareComponentInfo) Reset

func (x *PrepareComponentInfo) Reset()

func (*PrepareComponentInfo) String

func (x *PrepareComponentInfo) String() string

type PrepareUpdate

type PrepareUpdate struct {
	Components []*PrepareComponentInfo `protobuf:"bytes,1,rep,name=components,proto3" json:"components,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareUpdate) Descriptor deprecated

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

Deprecated: Use PrepareUpdate.ProtoReflect.Descriptor instead.

func (*PrepareUpdate) GetComponents

func (x *PrepareUpdate) GetComponents() []*PrepareComponentInfo

func (*PrepareUpdate) ProtoMessage

func (*PrepareUpdate) ProtoMessage()

func (*PrepareUpdate) ProtoReflect

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

func (*PrepareUpdate) Reset

func (x *PrepareUpdate) Reset()

func (*PrepareUpdate) String

func (x *PrepareUpdate) String() string

type RevertUpdate

type RevertUpdate struct {
	// contains filtered or unexported fields
}

func (*RevertUpdate) Descriptor deprecated

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

Deprecated: Use RevertUpdate.ProtoReflect.Descriptor instead.

func (*RevertUpdate) ProtoMessage

func (*RevertUpdate) ProtoMessage()

func (*RevertUpdate) ProtoReflect

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

func (*RevertUpdate) Reset

func (x *RevertUpdate) Reset()

func (*RevertUpdate) String

func (x *RevertUpdate) String() string

type StartUpdate

type StartUpdate struct {
	// contains filtered or unexported fields
}

func (*StartUpdate) Descriptor deprecated

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

Deprecated: Use StartUpdate.ProtoReflect.Descriptor instead.

func (*StartUpdate) ProtoMessage

func (*StartUpdate) ProtoMessage()

func (*StartUpdate) ProtoReflect

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

func (*StartUpdate) Reset

func (x *StartUpdate) Reset()

func (*StartUpdate) String

func (x *StartUpdate) String() string

type SystemComponent

type SystemComponent struct {
	Id            string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	VendorVersion string          `protobuf:"bytes,2,opt,name=vendor_version,json=vendorVersion,proto3" json:"vendor_version,omitempty"`
	AosVersion    uint64          `protobuf:"varint,3,opt,name=aos_version,json=aosVersion,proto3" json:"aos_version,omitempty"`
	Status        ComponentStatus `protobuf:"varint,4,opt,name=status,proto3,enum=updatemanager.v1.ComponentStatus" json:"status,omitempty"`
	Error         string          `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*SystemComponent) Descriptor deprecated

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

Deprecated: Use SystemComponent.ProtoReflect.Descriptor instead.

func (*SystemComponent) GetAosVersion

func (x *SystemComponent) GetAosVersion() uint64

func (*SystemComponent) GetError

func (x *SystemComponent) GetError() string

func (*SystemComponent) GetId

func (x *SystemComponent) GetId() string

func (*SystemComponent) GetStatus

func (x *SystemComponent) GetStatus() ComponentStatus

func (*SystemComponent) GetVendorVersion

func (x *SystemComponent) GetVendorVersion() string

func (*SystemComponent) ProtoMessage

func (*SystemComponent) ProtoMessage()

func (*SystemComponent) ProtoReflect

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

func (*SystemComponent) Reset

func (x *SystemComponent) Reset()

func (*SystemComponent) String

func (x *SystemComponent) String() string

type UMServiceClient

type UMServiceClient interface {
	RegisterUM(ctx context.Context, opts ...grpc.CallOption) (UMService_RegisterUMClient, error)
}

UMServiceClient is the client API for UMService 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 NewUMServiceClient

func NewUMServiceClient(cc grpc.ClientConnInterface) UMServiceClient

type UMServiceServer

type UMServiceServer interface {
	RegisterUM(UMService_RegisterUMServer) error
	// contains filtered or unexported methods
}

UMServiceServer is the server API for UMService service. All implementations must embed UnimplementedUMServiceServer for forward compatibility

type UMService_RegisterUMClient

type UMService_RegisterUMClient interface {
	Send(*UpdateStatus) error
	Recv() (*CMMessages, error)
	grpc.ClientStream
}

type UMService_RegisterUMServer

type UMService_RegisterUMServer interface {
	Send(*CMMessages) error
	Recv() (*UpdateStatus, error)
	grpc.ServerStream
}

type UmState

type UmState int32
const (
	UmState_IDLE     UmState = 0
	UmState_PREPARED UmState = 1
	UmState_UPDATED  UmState = 2
	UmState_FAILED   UmState = 3
)

func (UmState) Descriptor

func (UmState) Descriptor() protoreflect.EnumDescriptor

func (UmState) Enum

func (x UmState) Enum() *UmState

func (UmState) EnumDescriptor deprecated

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

Deprecated: Use UmState.Descriptor instead.

func (UmState) Number

func (x UmState) Number() protoreflect.EnumNumber

func (UmState) String

func (x UmState) String() string

func (UmState) Type

func (UmState) Type() protoreflect.EnumType

type UnimplementedUMServiceServer

type UnimplementedUMServiceServer struct {
}

UnimplementedUMServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUMServiceServer) RegisterUM

type UnsafeUMServiceServer

type UnsafeUMServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUMServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UMServiceServer will result in compilation errors.

type UpdateStatus

type UpdateStatus struct {
	UmId       string             `protobuf:"bytes,1,opt,name=um_id,json=umId,proto3" json:"um_id,omitempty"`
	UmState    UmState            `protobuf:"varint,2,opt,name=um_state,json=umState,proto3,enum=updatemanager.v1.UmState" json:"um_state,omitempty"`
	Error      string             `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	Components []*SystemComponent `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateStatus) Descriptor deprecated

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

Deprecated: Use UpdateStatus.ProtoReflect.Descriptor instead.

func (*UpdateStatus) GetComponents

func (x *UpdateStatus) GetComponents() []*SystemComponent

func (*UpdateStatus) GetError

func (x *UpdateStatus) GetError() string

func (*UpdateStatus) GetUmId

func (x *UpdateStatus) GetUmId() string

func (*UpdateStatus) GetUmState

func (x *UpdateStatus) GetUmState() UmState

func (*UpdateStatus) ProtoMessage

func (*UpdateStatus) ProtoMessage()

func (*UpdateStatus) ProtoReflect

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

func (*UpdateStatus) Reset

func (x *UpdateStatus) Reset()

func (*UpdateStatus) String

func (x *UpdateStatus) String() string

Jump to

Keyboard shortcuts

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