Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: dmi/sw_management_service.proto |
| 3 | |
| 4 | package dmi |
| 5 | |
| 6 | import ( |
| 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
| 10 | grpc "google.golang.org/grpc" |
| 11 | math "math" |
| 12 | ) |
| 13 | |
| 14 | // Reference imports to suppress errors if they are not otherwise used. |
| 15 | var _ = proto.Marshal |
| 16 | var _ = fmt.Errorf |
| 17 | var _ = math.Inf |
| 18 | |
| 19 | // This is a compile-time assertion to ensure that this generated file |
| 20 | // is compatible with the proto package it is being compiled against. |
| 21 | // A compilation error at this line likely means your copy of the |
| 22 | // proto package needs to be updated. |
| 23 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 24 | |
| 25 | type SoftwareVersionInformation struct { |
| 26 | ActiveVersions []*ImageVersion `protobuf:"bytes,1,rep,name=active_versions,json=activeVersions,proto3" json:"active_versions,omitempty"` |
| 27 | StandbyVersions []*ImageVersion `protobuf:"bytes,2,rep,name=standby_versions,json=standbyVersions,proto3" json:"standby_versions,omitempty"` |
| 28 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 29 | XXX_unrecognized []byte `json:"-"` |
| 30 | XXX_sizecache int32 `json:"-"` |
| 31 | } |
| 32 | |
| 33 | func (m *SoftwareVersionInformation) Reset() { *m = SoftwareVersionInformation{} } |
| 34 | func (m *SoftwareVersionInformation) String() string { return proto.CompactTextString(m) } |
| 35 | func (*SoftwareVersionInformation) ProtoMessage() {} |
| 36 | func (*SoftwareVersionInformation) Descriptor() ([]byte, []int) { |
| 37 | return fileDescriptor_000929e4bec891d7, []int{0} |
| 38 | } |
| 39 | |
| 40 | func (m *SoftwareVersionInformation) XXX_Unmarshal(b []byte) error { |
| 41 | return xxx_messageInfo_SoftwareVersionInformation.Unmarshal(m, b) |
| 42 | } |
| 43 | func (m *SoftwareVersionInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 44 | return xxx_messageInfo_SoftwareVersionInformation.Marshal(b, m, deterministic) |
| 45 | } |
| 46 | func (m *SoftwareVersionInformation) XXX_Merge(src proto.Message) { |
| 47 | xxx_messageInfo_SoftwareVersionInformation.Merge(m, src) |
| 48 | } |
| 49 | func (m *SoftwareVersionInformation) XXX_Size() int { |
| 50 | return xxx_messageInfo_SoftwareVersionInformation.Size(m) |
| 51 | } |
| 52 | func (m *SoftwareVersionInformation) XXX_DiscardUnknown() { |
| 53 | xxx_messageInfo_SoftwareVersionInformation.DiscardUnknown(m) |
| 54 | } |
| 55 | |
| 56 | var xxx_messageInfo_SoftwareVersionInformation proto.InternalMessageInfo |
| 57 | |
| 58 | func (m *SoftwareVersionInformation) GetActiveVersions() []*ImageVersion { |
| 59 | if m != nil { |
| 60 | return m.ActiveVersions |
| 61 | } |
| 62 | return nil |
| 63 | } |
| 64 | |
| 65 | func (m *SoftwareVersionInformation) GetStandbyVersions() []*ImageVersion { |
| 66 | if m != nil { |
| 67 | return m.StandbyVersions |
| 68 | } |
| 69 | return nil |
| 70 | } |
| 71 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 72 | type GetSoftwareVersionInformationResponse struct { |
| 73 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 74 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 75 | Info *SoftwareVersionInformation `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` |
| 76 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 77 | XXX_unrecognized []byte `json:"-"` |
| 78 | XXX_sizecache int32 `json:"-"` |
| 79 | } |
| 80 | |
| 81 | func (m *GetSoftwareVersionInformationResponse) Reset() { *m = GetSoftwareVersionInformationResponse{} } |
| 82 | func (m *GetSoftwareVersionInformationResponse) String() string { return proto.CompactTextString(m) } |
| 83 | func (*GetSoftwareVersionInformationResponse) ProtoMessage() {} |
| 84 | func (*GetSoftwareVersionInformationResponse) Descriptor() ([]byte, []int) { |
| 85 | return fileDescriptor_000929e4bec891d7, []int{1} |
| 86 | } |
| 87 | |
| 88 | func (m *GetSoftwareVersionInformationResponse) XXX_Unmarshal(b []byte) error { |
| 89 | return xxx_messageInfo_GetSoftwareVersionInformationResponse.Unmarshal(m, b) |
| 90 | } |
| 91 | func (m *GetSoftwareVersionInformationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 92 | return xxx_messageInfo_GetSoftwareVersionInformationResponse.Marshal(b, m, deterministic) |
| 93 | } |
| 94 | func (m *GetSoftwareVersionInformationResponse) XXX_Merge(src proto.Message) { |
| 95 | xxx_messageInfo_GetSoftwareVersionInformationResponse.Merge(m, src) |
| 96 | } |
| 97 | func (m *GetSoftwareVersionInformationResponse) XXX_Size() int { |
| 98 | return xxx_messageInfo_GetSoftwareVersionInformationResponse.Size(m) |
| 99 | } |
| 100 | func (m *GetSoftwareVersionInformationResponse) XXX_DiscardUnknown() { |
| 101 | xxx_messageInfo_GetSoftwareVersionInformationResponse.DiscardUnknown(m) |
| 102 | } |
| 103 | |
| 104 | var xxx_messageInfo_GetSoftwareVersionInformationResponse proto.InternalMessageInfo |
| 105 | |
| 106 | func (m *GetSoftwareVersionInformationResponse) GetStatus() Status { |
| 107 | if m != nil { |
| 108 | return m.Status |
| 109 | } |
| 110 | return Status_UNDEFINED_STATUS |
| 111 | } |
| 112 | |
| 113 | func (m *GetSoftwareVersionInformationResponse) GetReason() Reason { |
| 114 | if m != nil { |
| 115 | return m.Reason |
| 116 | } |
| 117 | return Reason_UNDEFINED_REASON |
| 118 | } |
| 119 | |
| 120 | func (m *GetSoftwareVersionInformationResponse) GetInfo() *SoftwareVersionInformation { |
| 121 | if m != nil { |
| 122 | return m.Info |
| 123 | } |
| 124 | return nil |
| 125 | } |
| 126 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 127 | type DownloadImageRequest struct { |
| 128 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 129 | ImageInfo *ImageInformation `protobuf:"bytes,2,opt,name=image_info,json=imageInfo,proto3" json:"image_info,omitempty"` |
| 130 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 131 | XXX_unrecognized []byte `json:"-"` |
| 132 | XXX_sizecache int32 `json:"-"` |
| 133 | } |
| 134 | |
| 135 | func (m *DownloadImageRequest) Reset() { *m = DownloadImageRequest{} } |
| 136 | func (m *DownloadImageRequest) String() string { return proto.CompactTextString(m) } |
| 137 | func (*DownloadImageRequest) ProtoMessage() {} |
| 138 | func (*DownloadImageRequest) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 139 | return fileDescriptor_000929e4bec891d7, []int{2} |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 140 | } |
| 141 | |
| 142 | func (m *DownloadImageRequest) XXX_Unmarshal(b []byte) error { |
| 143 | return xxx_messageInfo_DownloadImageRequest.Unmarshal(m, b) |
| 144 | } |
| 145 | func (m *DownloadImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 146 | return xxx_messageInfo_DownloadImageRequest.Marshal(b, m, deterministic) |
| 147 | } |
| 148 | func (m *DownloadImageRequest) XXX_Merge(src proto.Message) { |
| 149 | xxx_messageInfo_DownloadImageRequest.Merge(m, src) |
| 150 | } |
| 151 | func (m *DownloadImageRequest) XXX_Size() int { |
| 152 | return xxx_messageInfo_DownloadImageRequest.Size(m) |
| 153 | } |
| 154 | func (m *DownloadImageRequest) XXX_DiscardUnknown() { |
| 155 | xxx_messageInfo_DownloadImageRequest.DiscardUnknown(m) |
| 156 | } |
| 157 | |
| 158 | var xxx_messageInfo_DownloadImageRequest proto.InternalMessageInfo |
| 159 | |
| 160 | func (m *DownloadImageRequest) GetDeviceUuid() *Uuid { |
| 161 | if m != nil { |
| 162 | return m.DeviceUuid |
| 163 | } |
| 164 | return nil |
| 165 | } |
| 166 | |
| 167 | func (m *DownloadImageRequest) GetImageInfo() *ImageInformation { |
| 168 | if m != nil { |
| 169 | return m.ImageInfo |
| 170 | } |
| 171 | return nil |
| 172 | } |
| 173 | |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 174 | type ConfigRequest struct { |
| 175 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 176 | // Location of the configuration file, authentication (user/pass) if any should be in the url string |
| 177 | // The config_url would contain the protocol, credentials, the IP address/DNS of the server and the path of the file |
| 178 | // e.g. sftp://download_user:download_pass@192.168.0.1:22/OLT-configs/config-v1.2.3.xml |
| 179 | ConfigUrl string `protobuf:"bytes,2,opt,name=config_url,json=configUrl,proto3" json:"config_url,omitempty"` |
| 180 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 181 | XXX_unrecognized []byte `json:"-"` |
| 182 | XXX_sizecache int32 `json:"-"` |
| 183 | } |
| 184 | |
| 185 | func (m *ConfigRequest) Reset() { *m = ConfigRequest{} } |
| 186 | func (m *ConfigRequest) String() string { return proto.CompactTextString(m) } |
| 187 | func (*ConfigRequest) ProtoMessage() {} |
| 188 | func (*ConfigRequest) Descriptor() ([]byte, []int) { |
| 189 | return fileDescriptor_000929e4bec891d7, []int{3} |
| 190 | } |
| 191 | |
| 192 | func (m *ConfigRequest) XXX_Unmarshal(b []byte) error { |
| 193 | return xxx_messageInfo_ConfigRequest.Unmarshal(m, b) |
| 194 | } |
| 195 | func (m *ConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 196 | return xxx_messageInfo_ConfigRequest.Marshal(b, m, deterministic) |
| 197 | } |
| 198 | func (m *ConfigRequest) XXX_Merge(src proto.Message) { |
| 199 | xxx_messageInfo_ConfigRequest.Merge(m, src) |
| 200 | } |
| 201 | func (m *ConfigRequest) XXX_Size() int { |
| 202 | return xxx_messageInfo_ConfigRequest.Size(m) |
| 203 | } |
| 204 | func (m *ConfigRequest) XXX_DiscardUnknown() { |
| 205 | xxx_messageInfo_ConfigRequest.DiscardUnknown(m) |
| 206 | } |
| 207 | |
| 208 | var xxx_messageInfo_ConfigRequest proto.InternalMessageInfo |
| 209 | |
| 210 | func (m *ConfigRequest) GetDeviceUuid() *Uuid { |
| 211 | if m != nil { |
| 212 | return m.DeviceUuid |
| 213 | } |
| 214 | return nil |
| 215 | } |
| 216 | |
| 217 | func (m *ConfigRequest) GetConfigUrl() string { |
| 218 | if m != nil { |
| 219 | return m.ConfigUrl |
| 220 | } |
| 221 | return "" |
| 222 | } |
| 223 | |
| 224 | type ConfigResponse struct { |
| 225 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 226 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 227 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 228 | XXX_unrecognized []byte `json:"-"` |
| 229 | XXX_sizecache int32 `json:"-"` |
| 230 | } |
| 231 | |
| 232 | func (m *ConfigResponse) Reset() { *m = ConfigResponse{} } |
| 233 | func (m *ConfigResponse) String() string { return proto.CompactTextString(m) } |
| 234 | func (*ConfigResponse) ProtoMessage() {} |
| 235 | func (*ConfigResponse) Descriptor() ([]byte, []int) { |
| 236 | return fileDescriptor_000929e4bec891d7, []int{4} |
| 237 | } |
| 238 | |
| 239 | func (m *ConfigResponse) XXX_Unmarshal(b []byte) error { |
| 240 | return xxx_messageInfo_ConfigResponse.Unmarshal(m, b) |
| 241 | } |
| 242 | func (m *ConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 243 | return xxx_messageInfo_ConfigResponse.Marshal(b, m, deterministic) |
| 244 | } |
| 245 | func (m *ConfigResponse) XXX_Merge(src proto.Message) { |
| 246 | xxx_messageInfo_ConfigResponse.Merge(m, src) |
| 247 | } |
| 248 | func (m *ConfigResponse) XXX_Size() int { |
| 249 | return xxx_messageInfo_ConfigResponse.Size(m) |
| 250 | } |
| 251 | func (m *ConfigResponse) XXX_DiscardUnknown() { |
| 252 | xxx_messageInfo_ConfigResponse.DiscardUnknown(m) |
| 253 | } |
| 254 | |
| 255 | var xxx_messageInfo_ConfigResponse proto.InternalMessageInfo |
| 256 | |
| 257 | func (m *ConfigResponse) GetStatus() Status { |
| 258 | if m != nil { |
| 259 | return m.Status |
| 260 | } |
| 261 | return Status_UNDEFINED_STATUS |
| 262 | } |
| 263 | |
| 264 | func (m *ConfigResponse) GetReason() Reason { |
| 265 | if m != nil { |
| 266 | return m.Reason |
| 267 | } |
| 268 | return Reason_UNDEFINED_REASON |
| 269 | } |
| 270 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 271 | func init() { |
| 272 | proto.RegisterType((*SoftwareVersionInformation)(nil), "dmi.SoftwareVersionInformation") |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 273 | proto.RegisterType((*GetSoftwareVersionInformationResponse)(nil), "dmi.GetSoftwareVersionInformationResponse") |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 274 | proto.RegisterType((*DownloadImageRequest)(nil), "dmi.DownloadImageRequest") |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 275 | proto.RegisterType((*ConfigRequest)(nil), "dmi.ConfigRequest") |
| 276 | proto.RegisterType((*ConfigResponse)(nil), "dmi.ConfigResponse") |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 277 | } |
| 278 | |
| 279 | func init() { proto.RegisterFile("dmi/sw_management_service.proto", fileDescriptor_000929e4bec891d7) } |
| 280 | |
| 281 | var fileDescriptor_000929e4bec891d7 = []byte{ |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 282 | // 528 bytes of a gzipped FileDescriptorProto |
| 283 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xd1, 0x8a, 0x13, 0x3d, |
| 284 | 0x14, 0x66, 0xda, 0x9f, 0x85, 0x9e, 0xfe, 0x6d, 0x77, 0xe3, 0x0a, 0x75, 0x40, 0xba, 0x54, 0x84, |
| 285 | 0xb2, 0xb0, 0x9d, 0xa5, 0xdd, 0x1b, 0x5d, 0x11, 0xd4, 0x85, 0xb5, 0x17, 0x0a, 0x4e, 0xad, 0x17, |
| 286 | 0xbd, 0x19, 0xd2, 0x49, 0x3a, 0x1b, 0x68, 0x92, 0x31, 0xc9, 0x4c, 0xf5, 0x45, 0x7c, 0x04, 0x9f, |
| 287 | 0xcf, 0x47, 0x90, 0x24, 0x53, 0xbb, 0x65, 0xb7, 0xa0, 0xe2, 0xdd, 0xe4, 0x3b, 0xe7, 0xfb, 0xce, |
| 288 | 0xc9, 0x39, 0xdf, 0x04, 0x7a, 0x84, 0xb3, 0x48, 0xaf, 0x13, 0x8e, 0x05, 0xce, 0x28, 0xa7, 0xc2, |
| 289 | 0x24, 0x9a, 0xaa, 0x92, 0xa5, 0x74, 0x98, 0x2b, 0x69, 0x24, 0xaa, 0x13, 0xce, 0xc2, 0x23, 0x9b, |
| 290 | 0x95, 0x4a, 0xce, 0xa5, 0xd0, 0x1e, 0x0f, 0xff, 0xb7, 0xd0, 0xcd, 0xba, 0x3a, 0xa1, 0x4a, 0x86, |
| 291 | 0x71, 0x9c, 0x55, 0xcc, 0xfe, 0xb7, 0x00, 0xc2, 0xa9, 0x5c, 0x9a, 0x35, 0x56, 0xf4, 0x13, 0x55, |
| 292 | 0x9a, 0x49, 0x31, 0x11, 0x4b, 0xa9, 0x38, 0x36, 0x4c, 0x0a, 0xf4, 0x1c, 0x3a, 0x38, 0x35, 0xac, |
| 293 | 0xa4, 0x49, 0xe9, 0x83, 0xba, 0x1b, 0x9c, 0xd4, 0x07, 0xcd, 0xd1, 0xd1, 0x90, 0x70, 0x36, 0x9c, |
| 294 | 0x58, 0xa5, 0x8a, 0x16, 0xb7, 0x7d, 0x66, 0x75, 0xd4, 0xe8, 0x05, 0x1c, 0x6a, 0x83, 0x05, 0x59, |
| 295 | 0x7c, 0xdd, 0x92, 0x6b, 0xfb, 0xc8, 0x9d, 0x2a, 0x75, 0xc3, 0xee, 0x7f, 0x0f, 0xe0, 0xe9, 0x35, |
| 296 | 0x35, 0xfb, 0x7b, 0x8b, 0xa9, 0xce, 0xa5, 0xd0, 0x14, 0x3d, 0x81, 0x03, 0x6d, 0xb0, 0x29, 0x6c, |
| 297 | 0x6b, 0xc1, 0xa0, 0x3d, 0x6a, 0x3a, 0xf5, 0xa9, 0x83, 0xe2, 0x2a, 0x64, 0x93, 0x14, 0xc5, 0x5a, |
| 298 | 0x8a, 0x6e, 0xed, 0x56, 0x52, 0xec, 0xa0, 0xb8, 0x0a, 0xa1, 0x31, 0xfc, 0xc7, 0xc4, 0x52, 0x76, |
| 299 | 0xeb, 0x27, 0xc1, 0xa0, 0x39, 0xea, 0x79, 0x9d, 0xfd, 0x0d, 0xb8, 0xe4, 0xfe, 0x17, 0x38, 0xbe, |
| 300 | 0x92, 0x6b, 0xb1, 0x92, 0x98, 0xb8, 0x1b, 0xc5, 0xf4, 0x73, 0x41, 0xb5, 0x41, 0xa7, 0xd0, 0x24, |
| 301 | 0xd4, 0xee, 0x28, 0x29, 0x0a, 0x46, 0x5c, 0x6f, 0xcd, 0x51, 0xc3, 0x69, 0xce, 0x0a, 0x46, 0x62, |
| 302 | 0xf0, 0x51, 0xfb, 0x8d, 0x2e, 0x00, 0xdc, 0x52, 0x12, 0x57, 0xbe, 0xe6, 0x52, 0x1f, 0x6e, 0x87, |
| 303 | 0x74, 0xbb, 0x68, 0x83, 0x6d, 0x90, 0xfe, 0x1c, 0x5a, 0x6f, 0xa4, 0x58, 0xb2, 0xec, 0x6f, 0x4a, |
| 304 | 0x3e, 0x06, 0x48, 0x1d, 0x39, 0x29, 0xd4, 0xca, 0x95, 0x6c, 0xc4, 0x0d, 0x8f, 0xcc, 0xd4, 0xaa, |
| 305 | 0x3f, 0x87, 0xf6, 0x46, 0xfb, 0x5f, 0x8f, 0x79, 0xf4, 0xa3, 0x06, 0xbd, 0xf7, 0xd8, 0x7a, 0x65, |
| 306 | 0x33, 0xdc, 0x77, 0xbf, 0x8c, 0x3d, 0xf5, 0xbe, 0x46, 0x1f, 0x00, 0xdd, 0xdd, 0x3e, 0xea, 0x38, |
| 307 | 0xb9, 0xb7, 0x58, 0x11, 0x8b, 0x4e, 0xae, 0xc2, 0x53, 0x07, 0xfc, 0x9e, 0x4f, 0x5e, 0x42, 0x6b, |
| 308 | 0x67, 0x51, 0xe8, 0x91, 0x23, 0xdf, 0xb7, 0xbc, 0xf0, 0x70, 0x3b, 0x7c, 0x7f, 0xc3, 0xf3, 0x00, |
| 309 | 0x5d, 0x40, 0xeb, 0x95, 0x75, 0x38, 0x36, 0xd4, 0xf3, 0xef, 0x74, 0x73, 0x1f, 0xeb, 0x12, 0x8e, |
| 310 | 0x63, 0x5a, 0x52, 0x65, 0x3e, 0xca, 0xa9, 0xb7, 0xf8, 0x1f, 0x90, 0xaf, 0x21, 0x9c, 0xe5, 0x04, |
| 311 | 0x1b, 0x8b, 0x28, 0x53, 0xe4, 0x7e, 0x25, 0x85, 0xf2, 0x3f, 0x27, 0x72, 0x8c, 0x1d, 0x0b, 0x84, |
| 312 | 0x0f, 0x76, 0x30, 0x7f, 0xf3, 0xf3, 0xe0, 0xf5, 0xe5, 0xfc, 0x59, 0xc6, 0xcc, 0x4d, 0xb1, 0x18, |
| 313 | 0xa6, 0x92, 0x47, 0x32, 0xa7, 0x22, 0x95, 0x8a, 0x44, 0xde, 0x0f, 0x67, 0xdb, 0x77, 0xe5, 0x8c, |
| 314 | 0x09, 0x43, 0xd5, 0x12, 0xa7, 0x34, 0x2a, 0xc7, 0x51, 0x26, 0x23, 0xc2, 0xd9, 0xe2, 0xc0, 0x3d, |
| 315 | 0x15, 0xe3, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9c, 0xd0, 0x0a, 0x81, 0x87, 0x04, 0x00, 0x00, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 316 | } |
| 317 | |
| 318 | // Reference imports to suppress errors if they are not otherwise used. |
| 319 | var _ context.Context |
| 320 | var _ grpc.ClientConn |
| 321 | |
| 322 | // This is a compile-time assertion to ensure that this generated file |
| 323 | // is compatible with the grpc package it is being compiled against. |
| 324 | const _ = grpc.SupportPackageIsVersion4 |
| 325 | |
| 326 | // NativeSoftwareManagementServiceClient is the client API for NativeSoftwareManagementService service. |
| 327 | // |
| 328 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 329 | type NativeSoftwareManagementServiceClient interface { |
| 330 | // Get the software version information of the Active and Standby images |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 331 | GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 332 | // Downloads and installs the image in the standby partition, returns the status/progress of the Install |
| 333 | DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error) |
| 334 | // Activates and runs the OLT with the image in the standby partition. If things are fine this image will |
| 335 | // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition. |
| 336 | // Any possibly required (sub-)steps like "commit" are left to the "Device Manager" |
| 337 | ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error) |
| 338 | // Marks the image in the Standby as Active and reboots the device, so that it boots from that image which was in the standby. |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 339 | // This API is to be used if operator wants to go back to the previous software |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 340 | RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error) |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 341 | // This API can be used to let the devices pickup their properitary configuration which they need at startup. |
| 342 | UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 343 | } |
| 344 | |
| 345 | type nativeSoftwareManagementServiceClient struct { |
| 346 | cc *grpc.ClientConn |
| 347 | } |
| 348 | |
| 349 | func NewNativeSoftwareManagementServiceClient(cc *grpc.ClientConn) NativeSoftwareManagementServiceClient { |
| 350 | return &nativeSoftwareManagementServiceClient{cc} |
| 351 | } |
| 352 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 353 | func (c *nativeSoftwareManagementServiceClient) GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error) { |
| 354 | out := new(GetSoftwareVersionInformationResponse) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 355 | err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", in, out, opts...) |
| 356 | if err != nil { |
| 357 | return nil, err |
| 358 | } |
| 359 | return out, nil |
| 360 | } |
| 361 | |
| 362 | func (c *nativeSoftwareManagementServiceClient) DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error) { |
| 363 | stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[0], "/dmi.NativeSoftwareManagementService/DownloadImage", opts...) |
| 364 | if err != nil { |
| 365 | return nil, err |
| 366 | } |
| 367 | x := &nativeSoftwareManagementServiceDownloadImageClient{stream} |
| 368 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 369 | return nil, err |
| 370 | } |
| 371 | if err := x.ClientStream.CloseSend(); err != nil { |
| 372 | return nil, err |
| 373 | } |
| 374 | return x, nil |
| 375 | } |
| 376 | |
| 377 | type NativeSoftwareManagementService_DownloadImageClient interface { |
| 378 | Recv() (*ImageStatus, error) |
| 379 | grpc.ClientStream |
| 380 | } |
| 381 | |
| 382 | type nativeSoftwareManagementServiceDownloadImageClient struct { |
| 383 | grpc.ClientStream |
| 384 | } |
| 385 | |
| 386 | func (x *nativeSoftwareManagementServiceDownloadImageClient) Recv() (*ImageStatus, error) { |
| 387 | m := new(ImageStatus) |
| 388 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 389 | return nil, err |
| 390 | } |
| 391 | return m, nil |
| 392 | } |
| 393 | |
| 394 | func (c *nativeSoftwareManagementServiceClient) ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error) { |
| 395 | stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[1], "/dmi.NativeSoftwareManagementService/ActivateImage", opts...) |
| 396 | if err != nil { |
| 397 | return nil, err |
| 398 | } |
| 399 | x := &nativeSoftwareManagementServiceActivateImageClient{stream} |
| 400 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 401 | return nil, err |
| 402 | } |
| 403 | if err := x.ClientStream.CloseSend(); err != nil { |
| 404 | return nil, err |
| 405 | } |
| 406 | return x, nil |
| 407 | } |
| 408 | |
| 409 | type NativeSoftwareManagementService_ActivateImageClient interface { |
| 410 | Recv() (*ImageStatus, error) |
| 411 | grpc.ClientStream |
| 412 | } |
| 413 | |
| 414 | type nativeSoftwareManagementServiceActivateImageClient struct { |
| 415 | grpc.ClientStream |
| 416 | } |
| 417 | |
| 418 | func (x *nativeSoftwareManagementServiceActivateImageClient) Recv() (*ImageStatus, error) { |
| 419 | m := new(ImageStatus) |
| 420 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 421 | return nil, err |
| 422 | } |
| 423 | return m, nil |
| 424 | } |
| 425 | |
| 426 | func (c *nativeSoftwareManagementServiceClient) RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error) { |
| 427 | stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[2], "/dmi.NativeSoftwareManagementService/RevertToStandbyImage", opts...) |
| 428 | if err != nil { |
| 429 | return nil, err |
| 430 | } |
| 431 | x := &nativeSoftwareManagementServiceRevertToStandbyImageClient{stream} |
| 432 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 433 | return nil, err |
| 434 | } |
| 435 | if err := x.ClientStream.CloseSend(); err != nil { |
| 436 | return nil, err |
| 437 | } |
| 438 | return x, nil |
| 439 | } |
| 440 | |
| 441 | type NativeSoftwareManagementService_RevertToStandbyImageClient interface { |
| 442 | Recv() (*ImageStatus, error) |
| 443 | grpc.ClientStream |
| 444 | } |
| 445 | |
| 446 | type nativeSoftwareManagementServiceRevertToStandbyImageClient struct { |
| 447 | grpc.ClientStream |
| 448 | } |
| 449 | |
| 450 | func (x *nativeSoftwareManagementServiceRevertToStandbyImageClient) Recv() (*ImageStatus, error) { |
| 451 | m := new(ImageStatus) |
| 452 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 453 | return nil, err |
| 454 | } |
| 455 | return m, nil |
| 456 | } |
| 457 | |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 458 | func (c *nativeSoftwareManagementServiceClient) UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error) { |
| 459 | stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[3], "/dmi.NativeSoftwareManagementService/UpdateStartupConfiguration", opts...) |
| 460 | if err != nil { |
| 461 | return nil, err |
| 462 | } |
| 463 | x := &nativeSoftwareManagementServiceUpdateStartupConfigurationClient{stream} |
| 464 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 465 | return nil, err |
| 466 | } |
| 467 | if err := x.ClientStream.CloseSend(); err != nil { |
| 468 | return nil, err |
| 469 | } |
| 470 | return x, nil |
| 471 | } |
| 472 | |
| 473 | type NativeSoftwareManagementService_UpdateStartupConfigurationClient interface { |
| 474 | Recv() (*ConfigResponse, error) |
| 475 | grpc.ClientStream |
| 476 | } |
| 477 | |
| 478 | type nativeSoftwareManagementServiceUpdateStartupConfigurationClient struct { |
| 479 | grpc.ClientStream |
| 480 | } |
| 481 | |
| 482 | func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationClient) Recv() (*ConfigResponse, error) { |
| 483 | m := new(ConfigResponse) |
| 484 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 485 | return nil, err |
| 486 | } |
| 487 | return m, nil |
| 488 | } |
| 489 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 490 | // NativeSoftwareManagementServiceServer is the server API for NativeSoftwareManagementService service. |
| 491 | type NativeSoftwareManagementServiceServer interface { |
| 492 | // Get the software version information of the Active and Standby images |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 493 | GetSoftwareVersion(context.Context, *HardwareID) (*GetSoftwareVersionInformationResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 494 | // Downloads and installs the image in the standby partition, returns the status/progress of the Install |
| 495 | DownloadImage(*DownloadImageRequest, NativeSoftwareManagementService_DownloadImageServer) error |
| 496 | // Activates and runs the OLT with the image in the standby partition. If things are fine this image will |
| 497 | // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition. |
| 498 | // Any possibly required (sub-)steps like "commit" are left to the "Device Manager" |
| 499 | ActivateImage(*HardwareID, NativeSoftwareManagementService_ActivateImageServer) error |
| 500 | // Marks the image in the Standby as Active and reboots the device, so that it boots from that image which was in the standby. |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 501 | // This API is to be used if operator wants to go back to the previous software |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 502 | RevertToStandbyImage(*HardwareID, NativeSoftwareManagementService_RevertToStandbyImageServer) error |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 503 | // This API can be used to let the devices pickup their properitary configuration which they need at startup. |
| 504 | UpdateStartupConfiguration(*ConfigRequest, NativeSoftwareManagementService_UpdateStartupConfigurationServer) error |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 505 | } |
| 506 | |
| 507 | func RegisterNativeSoftwareManagementServiceServer(s *grpc.Server, srv NativeSoftwareManagementServiceServer) { |
| 508 | s.RegisterService(&_NativeSoftwareManagementService_serviceDesc, srv) |
| 509 | } |
| 510 | |
| 511 | func _NativeSoftwareManagementService_GetSoftwareVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 512 | in := new(HardwareID) |
| 513 | if err := dec(in); err != nil { |
| 514 | return nil, err |
| 515 | } |
| 516 | if interceptor == nil { |
| 517 | return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, in) |
| 518 | } |
| 519 | info := &grpc.UnaryServerInfo{ |
| 520 | Server: srv, |
| 521 | FullMethod: "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", |
| 522 | } |
| 523 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 524 | return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, req.(*HardwareID)) |
| 525 | } |
| 526 | return interceptor(ctx, in, info, handler) |
| 527 | } |
| 528 | |
| 529 | func _NativeSoftwareManagementService_DownloadImage_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 530 | m := new(DownloadImageRequest) |
| 531 | if err := stream.RecvMsg(m); err != nil { |
| 532 | return err |
| 533 | } |
| 534 | return srv.(NativeSoftwareManagementServiceServer).DownloadImage(m, &nativeSoftwareManagementServiceDownloadImageServer{stream}) |
| 535 | } |
| 536 | |
| 537 | type NativeSoftwareManagementService_DownloadImageServer interface { |
| 538 | Send(*ImageStatus) error |
| 539 | grpc.ServerStream |
| 540 | } |
| 541 | |
| 542 | type nativeSoftwareManagementServiceDownloadImageServer struct { |
| 543 | grpc.ServerStream |
| 544 | } |
| 545 | |
| 546 | func (x *nativeSoftwareManagementServiceDownloadImageServer) Send(m *ImageStatus) error { |
| 547 | return x.ServerStream.SendMsg(m) |
| 548 | } |
| 549 | |
| 550 | func _NativeSoftwareManagementService_ActivateImage_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 551 | m := new(HardwareID) |
| 552 | if err := stream.RecvMsg(m); err != nil { |
| 553 | return err |
| 554 | } |
| 555 | return srv.(NativeSoftwareManagementServiceServer).ActivateImage(m, &nativeSoftwareManagementServiceActivateImageServer{stream}) |
| 556 | } |
| 557 | |
| 558 | type NativeSoftwareManagementService_ActivateImageServer interface { |
| 559 | Send(*ImageStatus) error |
| 560 | grpc.ServerStream |
| 561 | } |
| 562 | |
| 563 | type nativeSoftwareManagementServiceActivateImageServer struct { |
| 564 | grpc.ServerStream |
| 565 | } |
| 566 | |
| 567 | func (x *nativeSoftwareManagementServiceActivateImageServer) Send(m *ImageStatus) error { |
| 568 | return x.ServerStream.SendMsg(m) |
| 569 | } |
| 570 | |
| 571 | func _NativeSoftwareManagementService_RevertToStandbyImage_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 572 | m := new(HardwareID) |
| 573 | if err := stream.RecvMsg(m); err != nil { |
| 574 | return err |
| 575 | } |
| 576 | return srv.(NativeSoftwareManagementServiceServer).RevertToStandbyImage(m, &nativeSoftwareManagementServiceRevertToStandbyImageServer{stream}) |
| 577 | } |
| 578 | |
| 579 | type NativeSoftwareManagementService_RevertToStandbyImageServer interface { |
| 580 | Send(*ImageStatus) error |
| 581 | grpc.ServerStream |
| 582 | } |
| 583 | |
| 584 | type nativeSoftwareManagementServiceRevertToStandbyImageServer struct { |
| 585 | grpc.ServerStream |
| 586 | } |
| 587 | |
| 588 | func (x *nativeSoftwareManagementServiceRevertToStandbyImageServer) Send(m *ImageStatus) error { |
| 589 | return x.ServerStream.SendMsg(m) |
| 590 | } |
| 591 | |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 592 | func _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 593 | m := new(ConfigRequest) |
| 594 | if err := stream.RecvMsg(m); err != nil { |
| 595 | return err |
| 596 | } |
| 597 | return srv.(NativeSoftwareManagementServiceServer).UpdateStartupConfiguration(m, &nativeSoftwareManagementServiceUpdateStartupConfigurationServer{stream}) |
| 598 | } |
| 599 | |
| 600 | type NativeSoftwareManagementService_UpdateStartupConfigurationServer interface { |
| 601 | Send(*ConfigResponse) error |
| 602 | grpc.ServerStream |
| 603 | } |
| 604 | |
| 605 | type nativeSoftwareManagementServiceUpdateStartupConfigurationServer struct { |
| 606 | grpc.ServerStream |
| 607 | } |
| 608 | |
| 609 | func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationServer) Send(m *ConfigResponse) error { |
| 610 | return x.ServerStream.SendMsg(m) |
| 611 | } |
| 612 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 613 | var _NativeSoftwareManagementService_serviceDesc = grpc.ServiceDesc{ |
| 614 | ServiceName: "dmi.NativeSoftwareManagementService", |
| 615 | HandlerType: (*NativeSoftwareManagementServiceServer)(nil), |
| 616 | Methods: []grpc.MethodDesc{ |
| 617 | { |
| 618 | MethodName: "GetSoftwareVersion", |
| 619 | Handler: _NativeSoftwareManagementService_GetSoftwareVersion_Handler, |
| 620 | }, |
| 621 | }, |
| 622 | Streams: []grpc.StreamDesc{ |
| 623 | { |
| 624 | StreamName: "DownloadImage", |
| 625 | Handler: _NativeSoftwareManagementService_DownloadImage_Handler, |
| 626 | ServerStreams: true, |
| 627 | }, |
| 628 | { |
| 629 | StreamName: "ActivateImage", |
| 630 | Handler: _NativeSoftwareManagementService_ActivateImage_Handler, |
| 631 | ServerStreams: true, |
| 632 | }, |
| 633 | { |
| 634 | StreamName: "RevertToStandbyImage", |
| 635 | Handler: _NativeSoftwareManagementService_RevertToStandbyImage_Handler, |
| 636 | ServerStreams: true, |
| 637 | }, |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 638 | { |
| 639 | StreamName: "UpdateStartupConfiguration", |
| 640 | Handler: _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler, |
| 641 | ServerStreams: true, |
| 642 | }, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 643 | }, |
| 644 | Metadata: "dmi/sw_management_service.proto", |
| 645 | } |