blob: 04b287dd713fbbe884f6b4d7d2f9bbb369064618 [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
29 ImageStatus_COMMITING_IMAGE ImageStatus_ImageState = 3
30 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",
41 3: "COMMITING_IMAGE",
42 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,
53 "COMMITING_IMAGE": 3,
54 "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 Ghoshab6b2e42020-07-17 13:46:55 +010072 ImageStatus_UNDEFINED_REASON ImageStatus_Reason = 0
Amit Ghosh09f28362020-06-12 21:52:19 +010073 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)
79
80var ImageStatus_Reason_name = map[int32]string{
Amit Ghoshab6b2e42020-07-17 13:46:55 +010081 0: "UNDEFINED_REASON",
Amit Ghosh09f28362020-06-12 21:52:19 +010082 1: "ERROR_IN_REQUEST",
83 2: "INTERNAL_ERROR",
84 3: "DEVICE_IN_WRONG_STATE",
85 4: "INVALID_IMAGE",
86 5: "WRONG_IMAGE_CHECKSUM",
87}
88
89var ImageStatus_Reason_value = map[string]int32{
Amit Ghoshab6b2e42020-07-17 13:46:55 +010090 "UNDEFINED_REASON": 0,
Amit Ghosh09f28362020-06-12 21:52:19 +010091 "ERROR_IN_REQUEST": 1,
92 "INTERNAL_ERROR": 2,
93 "DEVICE_IN_WRONG_STATE": 3,
94 "INVALID_IMAGE": 4,
95 "WRONG_IMAGE_CHECKSUM": 5,
96}
97
98func (x ImageStatus_Reason) String() string {
99 return proto.EnumName(ImageStatus_Reason_name, int32(x))
100}
101
102func (ImageStatus_Reason) EnumDescriptor() ([]byte, []int) {
103 return fileDescriptor_3d058607a829baf4, []int{2, 1}
104}
105
106type ImageVersion struct {
107 ImageName string `protobuf:"bytes,1,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"`
108 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
109 XXX_NoUnkeyedLiteral struct{} `json:"-"`
110 XXX_unrecognized []byte `json:"-"`
111 XXX_sizecache int32 `json:"-"`
112}
113
114func (m *ImageVersion) Reset() { *m = ImageVersion{} }
115func (m *ImageVersion) String() string { return proto.CompactTextString(m) }
116func (*ImageVersion) ProtoMessage() {}
117func (*ImageVersion) Descriptor() ([]byte, []int) {
118 return fileDescriptor_3d058607a829baf4, []int{0}
119}
120
121func (m *ImageVersion) XXX_Unmarshal(b []byte) error {
122 return xxx_messageInfo_ImageVersion.Unmarshal(m, b)
123}
124func (m *ImageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
125 return xxx_messageInfo_ImageVersion.Marshal(b, m, deterministic)
126}
127func (m *ImageVersion) XXX_Merge(src proto.Message) {
128 xxx_messageInfo_ImageVersion.Merge(m, src)
129}
130func (m *ImageVersion) XXX_Size() int {
131 return xxx_messageInfo_ImageVersion.Size(m)
132}
133func (m *ImageVersion) XXX_DiscardUnknown() {
134 xxx_messageInfo_ImageVersion.DiscardUnknown(m)
135}
136
137var xxx_messageInfo_ImageVersion proto.InternalMessageInfo
138
139func (m *ImageVersion) GetImageName() string {
140 if m != nil {
141 return m.ImageName
142 }
143 return ""
144}
145
146func (m *ImageVersion) GetVersion() string {
147 if m != nil {
148 return m.Version
149 }
150 return ""
151}
152
153type ImageInformation struct {
154 Image *ImageVersion `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
155 // Script used by the device specific managers to install the image.
156 // Script must be included in the object downloaded from the image_url
157 ImageInstallScript string `protobuf:"bytes,2,opt,name=image_install_script,json=imageInstallScript,proto3" json:"image_install_script,omitempty"`
158 // 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 +0100159 // The image_url would contain the protocol, credentials, the IP address/DNS of the server and the path of the file
160 // e.g. sftp://download_user:download_pass@192.168.0.1:22/images/image1
Amit Ghosh09f28362020-06-12 21:52:19 +0100161 ImageUrl string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
162 // SHA-256 sum of the image (sha256sum on Linux)
163 Sha256Sum string `protobuf:"bytes,5,opt,name=sha256sum,proto3" json:"sha256sum,omitempty"`
164 XXX_NoUnkeyedLiteral struct{} `json:"-"`
165 XXX_unrecognized []byte `json:"-"`
166 XXX_sizecache int32 `json:"-"`
167}
168
169func (m *ImageInformation) Reset() { *m = ImageInformation{} }
170func (m *ImageInformation) String() string { return proto.CompactTextString(m) }
171func (*ImageInformation) ProtoMessage() {}
172func (*ImageInformation) Descriptor() ([]byte, []int) {
173 return fileDescriptor_3d058607a829baf4, []int{1}
174}
175
176func (m *ImageInformation) XXX_Unmarshal(b []byte) error {
177 return xxx_messageInfo_ImageInformation.Unmarshal(m, b)
178}
179func (m *ImageInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
180 return xxx_messageInfo_ImageInformation.Marshal(b, m, deterministic)
181}
182func (m *ImageInformation) XXX_Merge(src proto.Message) {
183 xxx_messageInfo_ImageInformation.Merge(m, src)
184}
185func (m *ImageInformation) XXX_Size() int {
186 return xxx_messageInfo_ImageInformation.Size(m)
187}
188func (m *ImageInformation) XXX_DiscardUnknown() {
189 xxx_messageInfo_ImageInformation.DiscardUnknown(m)
190}
191
192var xxx_messageInfo_ImageInformation proto.InternalMessageInfo
193
194func (m *ImageInformation) GetImage() *ImageVersion {
195 if m != nil {
196 return m.Image
197 }
198 return nil
199}
200
201func (m *ImageInformation) GetImageInstallScript() string {
202 if m != nil {
203 return m.ImageInstallScript
204 }
205 return ""
206}
207
208func (m *ImageInformation) GetImageUrl() string {
209 if m != nil {
210 return m.ImageUrl
211 }
212 return ""
213}
214
215func (m *ImageInformation) GetSha256Sum() string {
216 if m != nil {
217 return m.Sha256Sum
218 }
219 return ""
220}
221
222type ImageStatus struct {
223 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
224 Reason ImageStatus_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ImageStatus_Reason" json:"reason,omitempty"`
225 State ImageStatus_ImageState `protobuf:"varint,3,opt,name=state,proto3,enum=dmi.ImageStatus_ImageState" json:"state,omitempty"`
226 // description contains more information about the current state of the procedure and is device dependant
227 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
228 XXX_NoUnkeyedLiteral struct{} `json:"-"`
229 XXX_unrecognized []byte `json:"-"`
230 XXX_sizecache int32 `json:"-"`
231}
232
233func (m *ImageStatus) Reset() { *m = ImageStatus{} }
234func (m *ImageStatus) String() string { return proto.CompactTextString(m) }
235func (*ImageStatus) ProtoMessage() {}
236func (*ImageStatus) Descriptor() ([]byte, []int) {
237 return fileDescriptor_3d058607a829baf4, []int{2}
238}
239
240func (m *ImageStatus) XXX_Unmarshal(b []byte) error {
241 return xxx_messageInfo_ImageStatus.Unmarshal(m, b)
242}
243func (m *ImageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
244 return xxx_messageInfo_ImageStatus.Marshal(b, m, deterministic)
245}
246func (m *ImageStatus) XXX_Merge(src proto.Message) {
247 xxx_messageInfo_ImageStatus.Merge(m, src)
248}
249func (m *ImageStatus) XXX_Size() int {
250 return xxx_messageInfo_ImageStatus.Size(m)
251}
252func (m *ImageStatus) XXX_DiscardUnknown() {
253 xxx_messageInfo_ImageStatus.DiscardUnknown(m)
254}
255
256var xxx_messageInfo_ImageStatus proto.InternalMessageInfo
257
258func (m *ImageStatus) GetStatus() Status {
259 if m != nil {
260 return m.Status
261 }
262 return Status_UNDEFINED_STATUS
263}
264
265func (m *ImageStatus) GetReason() ImageStatus_Reason {
266 if m != nil {
267 return m.Reason
268 }
Amit Ghoshab6b2e42020-07-17 13:46:55 +0100269 return ImageStatus_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100270}
271
272func (m *ImageStatus) GetState() ImageStatus_ImageState {
273 if m != nil {
274 return m.State
275 }
276 return ImageStatus_UNDEFINED_STATE
277}
278
279func (m *ImageStatus) GetDescription() string {
280 if m != nil {
281 return m.Description
282 }
283 return ""
284}
285
286func init() {
287 proto.RegisterEnum("dmi.ImageStatus_ImageState", ImageStatus_ImageState_name, ImageStatus_ImageState_value)
288 proto.RegisterEnum("dmi.ImageStatus_Reason", ImageStatus_Reason_name, ImageStatus_Reason_value)
289 proto.RegisterType((*ImageVersion)(nil), "dmi.ImageVersion")
290 proto.RegisterType((*ImageInformation)(nil), "dmi.ImageInformation")
291 proto.RegisterType((*ImageStatus)(nil), "dmi.ImageStatus")
292}
293
294func init() { proto.RegisterFile("dmi/sw_image.proto", fileDescriptor_3d058607a829baf4) }
295
296var fileDescriptor_3d058607a829baf4 = []byte{
297 // 572 bytes of a gzipped FileDescriptorProto
298 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x93, 0xcf, 0x6e, 0xd3, 0x4c,
299 0x14, 0xc5, 0xeb, 0xe6, 0x4f, 0xdb, 0x9b, 0xef, 0x0b, 0xce, 0xb4, 0x55, 0x03, 0x05, 0xa9, 0x0a,
Amit Ghoshab6b2e42020-07-17 13:46:55 +0100300 0x0b, 0xd8, 0x34, 0x86, 0x54, 0x20, 0x21, 0x56, 0xae, 0x33, 0x0d, 0x23, 0x92, 0x71, 0x19, 0x3b,
Amit Ghosh09f28362020-06-12 21:52:19 +0100301 0x41, 0xb0, 0xb1, 0x5c, 0x7b, 0x9a, 0x8e, 0x94, 0xb1, 0x2b, 0xdb, 0x29, 0xaf, 0xc1, 0x0b, 0xb0,
302 0xe7, 0x6d, 0x78, 0x25, 0x34, 0x33, 0x6e, 0x53, 0x89, 0xdd, 0xf8, 0x9c, 0xdf, 0xbd, 0xf7, 0xdc,
303 0x2b, 0x19, 0x50, 0x2a, 0x85, 0x53, 0xfe, 0x88, 0x84, 0x8c, 0x97, 0x7c, 0x78, 0x5b, 0xe4, 0x55,
Amit Ghoshab6b2e42020-07-17 13:46:55 +0100304 0x8e, 0x1a, 0xa9, 0x14, 0xcf, 0x7a, 0xca, 0x48, 0x72, 0x29, 0xf3, 0xac, 0x34, 0xfa, 0x60, 0x02,
Amit Ghosh09f28362020-06-12 21:52:19 +0100305 0xff, 0x11, 0x85, 0x2d, 0x78, 0x51, 0x8a, 0x3c, 0x43, 0x2f, 0x00, 0x74, 0x59, 0x94, 0xc5, 0x92,
306 0xf7, 0xad, 0x13, 0xeb, 0xf5, 0x1e, 0xdb, 0xd3, 0x0a, 0x8d, 0x25, 0x47, 0x7d, 0xd8, 0xb9, 0x33,
307 0x64, 0x7f, 0x5b, 0x7b, 0xf7, 0x9f, 0x83, 0xdf, 0x16, 0xd8, 0xba, 0x13, 0xc9, 0xae, 0xf3, 0x42,
308 0xc6, 0x95, 0xea, 0xf6, 0x0a, 0x5a, 0xba, 0x56, 0x37, 0xea, 0x8c, 0x7a, 0xc3, 0x54, 0x8a, 0xe1,
309 0xe3, 0x79, 0xcc, 0xf8, 0xe8, 0x0d, 0x1c, 0x98, 0xb1, 0x22, 0x2b, 0xab, 0x78, 0xb5, 0x8a, 0xca,
Amit Ghoshab6b2e42020-07-17 13:46:55 +0100310 0xa4, 0x10, 0xb7, 0x55, 0x3d, 0x04, 0x09, 0xd3, 0x58, 0x5b, 0x81, 0x76, 0xd0, 0x31, 0x98, 0x58,
311 0xd1, 0xba, 0x58, 0xf5, 0x1b, 0x1a, 0xdb, 0xd5, 0xc2, 0xbc, 0x58, 0xa1, 0xe7, 0xb0, 0x57, 0xde,
312 0xc4, 0xa3, 0x77, 0xef, 0xcb, 0xb5, 0xec, 0xb7, 0xcc, 0x12, 0x0f, 0xc2, 0xe0, 0x57, 0x13, 0x3a,
313 0x3a, 0x44, 0x50, 0xc5, 0xd5, 0xba, 0x44, 0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x4f, 0x0b, 0xda, 0xe6, 0x72, 0x7a,
325 0xc8, 0xc3, 0x36, 0x0c, 0xbb, 0x81, 0x4f, 0xed, 0x2d, 0xa5, 0x62, 0xc6, 0x7c, 0x16, 0x11, 0x1a,
326 0x31, 0xfc, 0x65, 0x8e, 0x83, 0xd0, 0xb6, 0xd4, 0x68, 0x42, 0x43, 0xcc, 0xa8, 0x3b, 0x8d, 0xb4,
327 0x6d, 0x6f, 0xa3, 0xa7, 0x70, 0x68, 0x02, 0x2b, 0xf4, 0x2b, 0xf3, 0xe9, 0xa4, 0xbe, 0x49, 0x43,
328 0xdd, 0x84, 0xd0, 0x85, 0x3b, 0x25, 0xe3, 0x7a, 0xd1, 0x26, 0xea, 0xc3, 0x81, 0x61, 0xb4, 0x10,
329 0x79, 0x9f, 0xb0, 0xf7, 0x39, 0x98, 0xcf, 0xec, 0xd6, 0xf9, 0xc7, 0xef, 0x1f, 0x96, 0xa2, 0xba,
Amit Ghosh09f28362020-06-12 21:52:19 +0100330 0x59, 0x5f, 0x0d, 0x93, 0x5c, 0x3a, 0xf9, 0x2d, 0xcf, 0x92, 0xbc, 0x48, 0x9d, 0x94, 0xdf, 0x89,
331 0x84, 0x9f, 0xca, 0x38, 0x8b, 0x97, 0x5c, 0xf2, 0xac, 0x3a, 0x15, 0x59, 0xc5, 0x8b, 0xeb, 0x38,
332 0xe1, 0xce, 0xdd, 0x99, 0xb3, 0xcc, 0x9d, 0x54, 0x8a, 0xab, 0xb6, 0xfe, 0xaf, 0xce, 0xfe, 0x06,
Amit Ghoshab6b2e42020-07-17 13:46:55 +0100333 0x00, 0x00, 0xff, 0xff, 0x34, 0xd0, 0x41, 0x4a, 0x85, 0x03, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100334}