blob: 5bdb5430fa3507402f86de935fefe7289a5f2790 [file] [log] [blame]
Amit Ghosh09f28362020-06-12 21:52:19 +01001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: dmi/sw_image.proto
3
4package dmi
5
6import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 math "math"
10)
11
12// Reference imports to suppress errors if they are not otherwise used.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = math.Inf
16
17// This is a compile-time assertion to ensure that this generated file
18// is compatible with the proto package it is being compiled against.
19// A compilation error at this line likely means your copy of the
20// proto package needs to be updated.
21const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
22
23type ImageStatus_ImageState int32
24
25const (
26 ImageStatus_UNDEFINED_STATE ImageStatus_ImageState = 0
27 ImageStatus_COPYING_IMAGE ImageStatus_ImageState = 1
28 ImageStatus_INSTALLING_IMAGE ImageStatus_ImageState = 2
aghoshc301dcd2020-09-03 16:55:34 +010029 ImageStatus_COMMITTING_IMAGE ImageStatus_ImageState = 3
Amit Ghosh09f28362020-06-12 21:52:19 +010030 ImageStatus_REBOOTING_DEVICE ImageStatus_ImageState = 4
31 ImageStatus_UPGRADE_COMPLETE ImageStatus_ImageState = 5
32 ImageStatus_UPGRADE_FAILED ImageStatus_ImageState = 6
33 ImageStatus_ACTIVATION_COMPLETE ImageStatus_ImageState = 7
34 ImageStatus_ACTIVATION_FAILED ImageStatus_ImageState = 8
35)
36
37var ImageStatus_ImageState_name = map[int32]string{
38 0: "UNDEFINED_STATE",
39 1: "COPYING_IMAGE",
40 2: "INSTALLING_IMAGE",
aghoshc301dcd2020-09-03 16:55:34 +010041 3: "COMMITTING_IMAGE",
Amit Ghosh09f28362020-06-12 21:52:19 +010042 4: "REBOOTING_DEVICE",
43 5: "UPGRADE_COMPLETE",
44 6: "UPGRADE_FAILED",
45 7: "ACTIVATION_COMPLETE",
46 8: "ACTIVATION_FAILED",
47}
48
49var ImageStatus_ImageState_value = map[string]int32{
50 "UNDEFINED_STATE": 0,
51 "COPYING_IMAGE": 1,
52 "INSTALLING_IMAGE": 2,
aghoshc301dcd2020-09-03 16:55:34 +010053 "COMMITTING_IMAGE": 3,
Amit Ghosh09f28362020-06-12 21:52:19 +010054 "REBOOTING_DEVICE": 4,
55 "UPGRADE_COMPLETE": 5,
56 "UPGRADE_FAILED": 6,
57 "ACTIVATION_COMPLETE": 7,
58 "ACTIVATION_FAILED": 8,
59}
60
61func (x ImageStatus_ImageState) String() string {
62 return proto.EnumName(ImageStatus_ImageState_name, int32(x))
63}
64
65func (ImageStatus_ImageState) EnumDescriptor() ([]byte, []int) {
66 return fileDescriptor_3d058607a829baf4, []int{2, 0}
67}
68
69type ImageStatus_Reason int32
70
71const (
amit.ghoshae473032021-01-10 11:59:10 +010072 ImageStatus_UNDEFINED_REASON ImageStatus_Reason = 0
73 ImageStatus_ERROR_IN_REQUEST ImageStatus_Reason = 1
74 ImageStatus_INTERNAL_ERROR ImageStatus_Reason = 2
75 ImageStatus_DEVICE_IN_WRONG_STATE ImageStatus_Reason = 3
76 ImageStatus_INVALID_IMAGE ImageStatus_Reason = 4
77 ImageStatus_WRONG_IMAGE_CHECKSUM ImageStatus_Reason = 5
78 ImageStatus_OPERATION_ALREADY_IN_PROGRESS ImageStatus_Reason = 6
79 ImageStatus_UNKNOWN_DEVICE ImageStatus_Reason = 7
80 // The DM implementations should have retry mechanisms (timeout values dependant on specific implementations)
81 // and even after those if the operation cannot be completed/reached then return error with reason as DEVICE_NOT_REACHABLE
82 ImageStatus_DEVICE_NOT_REACHABLE ImageStatus_Reason = 8
Amit Ghosh09f28362020-06-12 21:52:19 +010083)
84
85var ImageStatus_Reason_name = map[int32]string{
Amit Ghoshab6b2e42020-07-17 13:46:55 +010086 0: "UNDEFINED_REASON",
Amit Ghosh09f28362020-06-12 21:52:19 +010087 1: "ERROR_IN_REQUEST",
88 2: "INTERNAL_ERROR",
89 3: "DEVICE_IN_WRONG_STATE",
90 4: "INVALID_IMAGE",
91 5: "WRONG_IMAGE_CHECKSUM",
amit.ghoshae473032021-01-10 11:59:10 +010092 6: "OPERATION_ALREADY_IN_PROGRESS",
93 7: "UNKNOWN_DEVICE",
94 8: "DEVICE_NOT_REACHABLE",
Amit Ghosh09f28362020-06-12 21:52:19 +010095}
96
97var ImageStatus_Reason_value = map[string]int32{
amit.ghoshae473032021-01-10 11:59:10 +010098 "UNDEFINED_REASON": 0,
99 "ERROR_IN_REQUEST": 1,
100 "INTERNAL_ERROR": 2,
101 "DEVICE_IN_WRONG_STATE": 3,
102 "INVALID_IMAGE": 4,
103 "WRONG_IMAGE_CHECKSUM": 5,
104 "OPERATION_ALREADY_IN_PROGRESS": 6,
105 "UNKNOWN_DEVICE": 7,
106 "DEVICE_NOT_REACHABLE": 8,
Amit Ghosh09f28362020-06-12 21:52:19 +0100107}
108
109func (x ImageStatus_Reason) String() string {
110 return proto.EnumName(ImageStatus_Reason_name, int32(x))
111}
112
113func (ImageStatus_Reason) EnumDescriptor() ([]byte, []int) {
114 return fileDescriptor_3d058607a829baf4, []int{2, 1}
115}
116
117type ImageVersion struct {
118 ImageName string `protobuf:"bytes,1,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"`
119 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
120 XXX_NoUnkeyedLiteral struct{} `json:"-"`
121 XXX_unrecognized []byte `json:"-"`
122 XXX_sizecache int32 `json:"-"`
123}
124
125func (m *ImageVersion) Reset() { *m = ImageVersion{} }
126func (m *ImageVersion) String() string { return proto.CompactTextString(m) }
127func (*ImageVersion) ProtoMessage() {}
128func (*ImageVersion) Descriptor() ([]byte, []int) {
129 return fileDescriptor_3d058607a829baf4, []int{0}
130}
131
132func (m *ImageVersion) XXX_Unmarshal(b []byte) error {
133 return xxx_messageInfo_ImageVersion.Unmarshal(m, b)
134}
135func (m *ImageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
136 return xxx_messageInfo_ImageVersion.Marshal(b, m, deterministic)
137}
138func (m *ImageVersion) XXX_Merge(src proto.Message) {
139 xxx_messageInfo_ImageVersion.Merge(m, src)
140}
141func (m *ImageVersion) XXX_Size() int {
142 return xxx_messageInfo_ImageVersion.Size(m)
143}
144func (m *ImageVersion) XXX_DiscardUnknown() {
145 xxx_messageInfo_ImageVersion.DiscardUnknown(m)
146}
147
148var xxx_messageInfo_ImageVersion proto.InternalMessageInfo
149
150func (m *ImageVersion) GetImageName() string {
151 if m != nil {
152 return m.ImageName
153 }
154 return ""
155}
156
157func (m *ImageVersion) GetVersion() string {
158 if m != nil {
159 return m.Version
160 }
161 return ""
162}
163
164type ImageInformation struct {
165 Image *ImageVersion `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
166 // Script used by the device specific managers to install the image.
167 // Script must be included in the object downloaded from the image_url
168 ImageInstallScript string `protobuf:"bytes,2,opt,name=image_install_script,json=imageInstallScript,proto3" json:"image_install_script,omitempty"`
169 // Location of the image and installation script, authentication (user/pass) if any should be in the url string
Amit Ghoshab6b2e42020-07-17 13:46:55 +0100170 // The image_url would contain the protocol, credentials, the IP address/DNS of the server and the path of the file
171 // e.g. sftp://download_user:download_pass@192.168.0.1:22/images/image1
Amit Ghosh09f28362020-06-12 21:52:19 +0100172 ImageUrl string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
173 // SHA-256 sum of the image (sha256sum on Linux)
174 Sha256Sum string `protobuf:"bytes,5,opt,name=sha256sum,proto3" json:"sha256sum,omitempty"`
175 XXX_NoUnkeyedLiteral struct{} `json:"-"`
176 XXX_unrecognized []byte `json:"-"`
177 XXX_sizecache int32 `json:"-"`
178}
179
180func (m *ImageInformation) Reset() { *m = ImageInformation{} }
181func (m *ImageInformation) String() string { return proto.CompactTextString(m) }
182func (*ImageInformation) ProtoMessage() {}
183func (*ImageInformation) Descriptor() ([]byte, []int) {
184 return fileDescriptor_3d058607a829baf4, []int{1}
185}
186
187func (m *ImageInformation) XXX_Unmarshal(b []byte) error {
188 return xxx_messageInfo_ImageInformation.Unmarshal(m, b)
189}
190func (m *ImageInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
191 return xxx_messageInfo_ImageInformation.Marshal(b, m, deterministic)
192}
193func (m *ImageInformation) XXX_Merge(src proto.Message) {
194 xxx_messageInfo_ImageInformation.Merge(m, src)
195}
196func (m *ImageInformation) XXX_Size() int {
197 return xxx_messageInfo_ImageInformation.Size(m)
198}
199func (m *ImageInformation) XXX_DiscardUnknown() {
200 xxx_messageInfo_ImageInformation.DiscardUnknown(m)
201}
202
203var xxx_messageInfo_ImageInformation proto.InternalMessageInfo
204
205func (m *ImageInformation) GetImage() *ImageVersion {
206 if m != nil {
207 return m.Image
208 }
209 return nil
210}
211
212func (m *ImageInformation) GetImageInstallScript() string {
213 if m != nil {
214 return m.ImageInstallScript
215 }
216 return ""
217}
218
219func (m *ImageInformation) GetImageUrl() string {
220 if m != nil {
221 return m.ImageUrl
222 }
223 return ""
224}
225
226func (m *ImageInformation) GetSha256Sum() string {
227 if m != nil {
228 return m.Sha256Sum
229 }
230 return ""
231}
232
233type ImageStatus struct {
234 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
235 Reason ImageStatus_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ImageStatus_Reason" json:"reason,omitempty"`
236 State ImageStatus_ImageState `protobuf:"varint,3,opt,name=state,proto3,enum=dmi.ImageStatus_ImageState" json:"state,omitempty"`
237 // description contains more information about the current state of the procedure and is device dependant
238 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100239 ReasonDetail string `protobuf:"bytes,5,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100240 XXX_NoUnkeyedLiteral struct{} `json:"-"`
241 XXX_unrecognized []byte `json:"-"`
242 XXX_sizecache int32 `json:"-"`
243}
244
245func (m *ImageStatus) Reset() { *m = ImageStatus{} }
246func (m *ImageStatus) String() string { return proto.CompactTextString(m) }
247func (*ImageStatus) ProtoMessage() {}
248func (*ImageStatus) Descriptor() ([]byte, []int) {
249 return fileDescriptor_3d058607a829baf4, []int{2}
250}
251
252func (m *ImageStatus) XXX_Unmarshal(b []byte) error {
253 return xxx_messageInfo_ImageStatus.Unmarshal(m, b)
254}
255func (m *ImageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
256 return xxx_messageInfo_ImageStatus.Marshal(b, m, deterministic)
257}
258func (m *ImageStatus) XXX_Merge(src proto.Message) {
259 xxx_messageInfo_ImageStatus.Merge(m, src)
260}
261func (m *ImageStatus) XXX_Size() int {
262 return xxx_messageInfo_ImageStatus.Size(m)
263}
264func (m *ImageStatus) XXX_DiscardUnknown() {
265 xxx_messageInfo_ImageStatus.DiscardUnknown(m)
266}
267
268var xxx_messageInfo_ImageStatus proto.InternalMessageInfo
269
270func (m *ImageStatus) GetStatus() Status {
271 if m != nil {
272 return m.Status
273 }
274 return Status_UNDEFINED_STATUS
275}
276
277func (m *ImageStatus) GetReason() ImageStatus_Reason {
278 if m != nil {
279 return m.Reason
280 }
Amit Ghoshab6b2e42020-07-17 13:46:55 +0100281 return ImageStatus_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100282}
283
284func (m *ImageStatus) GetState() ImageStatus_ImageState {
285 if m != nil {
286 return m.State
287 }
288 return ImageStatus_UNDEFINED_STATE
289}
290
291func (m *ImageStatus) GetDescription() string {
292 if m != nil {
293 return m.Description
294 }
295 return ""
296}
297
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100298func (m *ImageStatus) GetReasonDetail() string {
299 if m != nil {
300 return m.ReasonDetail
301 }
302 return ""
303}
304
Amit Ghosh09f28362020-06-12 21:52:19 +0100305func init() {
306 proto.RegisterEnum("dmi.ImageStatus_ImageState", ImageStatus_ImageState_name, ImageStatus_ImageState_value)
307 proto.RegisterEnum("dmi.ImageStatus_Reason", ImageStatus_Reason_name, ImageStatus_Reason_value)
308 proto.RegisterType((*ImageVersion)(nil), "dmi.ImageVersion")
309 proto.RegisterType((*ImageInformation)(nil), "dmi.ImageInformation")
310 proto.RegisterType((*ImageStatus)(nil), "dmi.ImageStatus")
311}
312
313func init() { proto.RegisterFile("dmi/sw_image.proto", fileDescriptor_3d058607a829baf4) }
314
315var fileDescriptor_3d058607a829baf4 = []byte{
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100316 // 636 bytes of a gzipped FileDescriptorProto
317 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x93, 0x51, 0x4e, 0xdb, 0x4a,
318 0x14, 0x86, 0x09, 0x21, 0x01, 0x4e, 0x20, 0xd7, 0x19, 0x40, 0xe4, 0x5e, 0x2e, 0x12, 0x0d, 0x0f,
319 0xed, 0x0b, 0x71, 0x1b, 0xd4, 0x4a, 0x55, 0x9f, 0x8c, 0x3d, 0x84, 0x11, 0xce, 0x38, 0x1d, 0x3b,
320 0x41, 0xf4, 0xc5, 0x32, 0xf1, 0x10, 0x2c, 0x65, 0x6c, 0x64, 0x3b, 0x74, 0x23, 0x5d, 0x44, 0x97,
321 0xd3, 0x2d, 0x74, 0x27, 0xd5, 0xcc, 0x18, 0x82, 0xd4, 0x37, 0xe7, 0xfb, 0xff, 0x39, 0xe7, 0xff,
322 0x8f, 0x14, 0x40, 0xb1, 0x48, 0xcc, 0xe2, 0x7b, 0x98, 0x88, 0x68, 0xce, 0xfb, 0x8f, 0x79, 0x56,
323 0x66, 0xa8, 0x1e, 0x8b, 0xe4, 0xbf, 0x8e, 0x14, 0x66, 0x99, 0x10, 0x59, 0x5a, 0x68, 0xde, 0x1b,
324 0xc2, 0x0e, 0x91, 0xb6, 0x29, 0xcf, 0x8b, 0x24, 0x4b, 0xd1, 0x31, 0x80, 0x7a, 0x16, 0xa6, 0x91,
325 0xe0, 0xdd, 0xda, 0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 0x08, 0x9d, 0xc2, 0xae, 0x1e, 0x1f, 0xc6, 0xbc, 0x8c,
337 0x92, 0x45, 0x55, 0x6e, 0x47, 0x43, 0x47, 0xb1, 0xde, 0xaf, 0x1a, 0xc0, 0x6a, 0x38, 0xda, 0x83,
338 0x7f, 0x26, 0xd4, 0xc1, 0x97, 0x84, 0x62, 0x27, 0xf4, 0x03, 0x2b, 0xc0, 0xc6, 0x1a, 0xea, 0xc0,
339 0xae, 0xed, 0x8d, 0x6f, 0x09, 0x1d, 0x86, 0x64, 0x64, 0x0d, 0xb1, 0x51, 0x43, 0xfb, 0x60, 0x10,
340 0xea, 0x07, 0x96, 0xeb, 0xae, 0xe8, 0xba, 0xa4, 0xb6, 0x37, 0x1a, 0x91, 0x20, 0x58, 0xd1, 0xba,
341 0xa4, 0x0c, 0x5f, 0x78, 0x9e, 0x82, 0x0e, 0x9e, 0x12, 0x1b, 0x1b, 0x1b, 0x92, 0x4e, 0xc6, 0x43,
342 0x66, 0x39, 0x38, 0xb4, 0xbd, 0xd1, 0xd8, 0xc5, 0x01, 0x36, 0x1a, 0x08, 0x41, 0xfb, 0x99, 0x5e,
343 0x5a, 0xc4, 0xc5, 0x8e, 0xd1, 0x44, 0x87, 0xb0, 0x67, 0xd9, 0x01, 0x99, 0x5a, 0x01, 0xf1, 0xe8,
344 0xca, 0xbc, 0x89, 0x0e, 0xa0, 0xf3, 0x4a, 0xa8, 0xfc, 0x5b, 0xbd, 0xdf, 0x35, 0x68, 0xea, 0xfb,
345 0xaa, 0x25, 0x2f, 0x75, 0x18, 0xb6, 0x7c, 0x8f, 0x1a, 0x6b, 0x92, 0x62, 0xc6, 0x3c, 0x16, 0x12,
346 0x1a, 0x32, 0xfc, 0x75, 0x82, 0xfd, 0xc0, 0xa8, 0xc9, 0xd5, 0x84, 0x06, 0x98, 0x51, 0xcb, 0x0d,
347 0x95, 0x6c, 0xac, 0xa3, 0x7f, 0xe1, 0x40, 0x07, 0x96, 0xd6, 0x1b, 0xe6, 0xd1, 0x61, 0x75, 0x94,
348 0xba, 0x3c, 0x0a, 0xa1, 0x53, 0xcb, 0x25, 0x4e, 0x55, 0x74, 0x03, 0x75, 0x61, 0x5f, 0x7b, 0x14,
349 0x08, 0xed, 0x2b, 0x6c, 0x5f, 0xfb, 0x93, 0x91, 0xd1, 0x40, 0x6f, 0xe0, 0xd8, 0x1b, 0x63, 0xa6,
350 0x83, 0x5a, 0x2e, 0xc3, 0x96, 0x73, 0x2b, 0x47, 0x8e, 0x99, 0x37, 0x64, 0xd8, 0xf7, 0x8d, 0xa6,
351 0x6a, 0x4e, 0xaf, 0xa9, 0x77, 0x43, 0x9f, 0x6f, 0xb4, 0x29, 0x07, 0x56, 0xeb, 0xa9, 0x17, 0xc8,
352 0xfc, 0xf6, 0x95, 0x75, 0xe1, 0x62, 0x63, 0xeb, 0xe2, 0xcb, 0xb7, 0xcf, 0xf3, 0xa4, 0x7c, 0x58,
353 0xde, 0xf5, 0x67, 0x99, 0x30, 0xb3, 0x47, 0x9e, 0xce, 0xb2, 0x3c, 0x36, 0x63, 0xfe, 0x94, 0xcc,
354 0xf8, 0x99, 0x88, 0xd2, 0x68, 0xce, 0x05, 0x4f, 0xcb, 0xb3, 0x24, 0x2d, 0x79, 0x7e, 0x1f, 0xcd,
355 0xb8, 0xf9, 0x74, 0x6e, 0xce, 0x33, 0x33, 0x16, 0xc9, 0x5d, 0x53, 0xfd, 0x9d, 0xcf, 0xff, 0x04,
356 0x00, 0x00, 0xff, 0xff, 0x2c, 0x3d, 0x59, 0x21, 0xfc, 0x03, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100357}