blob: c62b5870d11ad1aeabfebdd4cc558e27fe7168d1 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: dmi/sw_image.proto
package dmi
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ImageStatus_ImageState int32
const (
ImageStatus_UNDEFINED_STATE ImageStatus_ImageState = 0
ImageStatus_COPYING_IMAGE ImageStatus_ImageState = 1
ImageStatus_INSTALLING_IMAGE ImageStatus_ImageState = 2
ImageStatus_COMMITTING_IMAGE ImageStatus_ImageState = 3
ImageStatus_REBOOTING_DEVICE ImageStatus_ImageState = 4
ImageStatus_UPGRADE_COMPLETE ImageStatus_ImageState = 5
ImageStatus_UPGRADE_FAILED ImageStatus_ImageState = 6
ImageStatus_ACTIVATION_COMPLETE ImageStatus_ImageState = 7
ImageStatus_ACTIVATION_FAILED ImageStatus_ImageState = 8
)
var ImageStatus_ImageState_name = map[int32]string{
0: "UNDEFINED_STATE",
1: "COPYING_IMAGE",
2: "INSTALLING_IMAGE",
3: "COMMITTING_IMAGE",
4: "REBOOTING_DEVICE",
5: "UPGRADE_COMPLETE",
6: "UPGRADE_FAILED",
7: "ACTIVATION_COMPLETE",
8: "ACTIVATION_FAILED",
}
var ImageStatus_ImageState_value = map[string]int32{
"UNDEFINED_STATE": 0,
"COPYING_IMAGE": 1,
"INSTALLING_IMAGE": 2,
"COMMITTING_IMAGE": 3,
"REBOOTING_DEVICE": 4,
"UPGRADE_COMPLETE": 5,
"UPGRADE_FAILED": 6,
"ACTIVATION_COMPLETE": 7,
"ACTIVATION_FAILED": 8,
}
func (x ImageStatus_ImageState) String() string {
return proto.EnumName(ImageStatus_ImageState_name, int32(x))
}
func (ImageStatus_ImageState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3d058607a829baf4, []int{2, 0}
}
type ImageStatus_Reason int32
const (
ImageStatus_UNDEFINED_REASON ImageStatus_Reason = 0
ImageStatus_ERROR_IN_REQUEST ImageStatus_Reason = 1
ImageStatus_INTERNAL_ERROR ImageStatus_Reason = 2
ImageStatus_DEVICE_IN_WRONG_STATE ImageStatus_Reason = 3
ImageStatus_INVALID_IMAGE ImageStatus_Reason = 4
ImageStatus_WRONG_IMAGE_CHECKSUM ImageStatus_Reason = 5
)
var ImageStatus_Reason_name = map[int32]string{
0: "UNDEFINED_REASON",
1: "ERROR_IN_REQUEST",
2: "INTERNAL_ERROR",
3: "DEVICE_IN_WRONG_STATE",
4: "INVALID_IMAGE",
5: "WRONG_IMAGE_CHECKSUM",
}
var ImageStatus_Reason_value = map[string]int32{
"UNDEFINED_REASON": 0,
"ERROR_IN_REQUEST": 1,
"INTERNAL_ERROR": 2,
"DEVICE_IN_WRONG_STATE": 3,
"INVALID_IMAGE": 4,
"WRONG_IMAGE_CHECKSUM": 5,
}
func (x ImageStatus_Reason) String() string {
return proto.EnumName(ImageStatus_Reason_name, int32(x))
}
func (ImageStatus_Reason) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3d058607a829baf4, []int{2, 1}
}
type ImageVersion struct {
ImageName string `protobuf:"bytes,1,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImageVersion) Reset() { *m = ImageVersion{} }
func (m *ImageVersion) String() string { return proto.CompactTextString(m) }
func (*ImageVersion) ProtoMessage() {}
func (*ImageVersion) Descriptor() ([]byte, []int) {
return fileDescriptor_3d058607a829baf4, []int{0}
}
func (m *ImageVersion) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImageVersion.Unmarshal(m, b)
}
func (m *ImageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImageVersion.Marshal(b, m, deterministic)
}
func (m *ImageVersion) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImageVersion.Merge(m, src)
}
func (m *ImageVersion) XXX_Size() int {
return xxx_messageInfo_ImageVersion.Size(m)
}
func (m *ImageVersion) XXX_DiscardUnknown() {
xxx_messageInfo_ImageVersion.DiscardUnknown(m)
}
var xxx_messageInfo_ImageVersion proto.InternalMessageInfo
func (m *ImageVersion) GetImageName() string {
if m != nil {
return m.ImageName
}
return ""
}
func (m *ImageVersion) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
type ImageInformation struct {
Image *ImageVersion `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
// Script used by the device specific managers to install the image.
// Script must be included in the object downloaded from the image_url
ImageInstallScript string `protobuf:"bytes,2,opt,name=image_install_script,json=imageInstallScript,proto3" json:"image_install_script,omitempty"`
// Location of the image and installation script, authentication (user/pass) if any should be in the url string
// The image_url would contain the protocol, credentials, the IP address/DNS of the server and the path of the file
// e.g. sftp://download_user:download_pass@192.168.0.1:22/images/image1
ImageUrl string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
// SHA-256 sum of the image (sha256sum on Linux)
Sha256Sum string `protobuf:"bytes,5,opt,name=sha256sum,proto3" json:"sha256sum,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImageInformation) Reset() { *m = ImageInformation{} }
func (m *ImageInformation) String() string { return proto.CompactTextString(m) }
func (*ImageInformation) ProtoMessage() {}
func (*ImageInformation) Descriptor() ([]byte, []int) {
return fileDescriptor_3d058607a829baf4, []int{1}
}
func (m *ImageInformation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImageInformation.Unmarshal(m, b)
}
func (m *ImageInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImageInformation.Marshal(b, m, deterministic)
}
func (m *ImageInformation) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImageInformation.Merge(m, src)
}
func (m *ImageInformation) XXX_Size() int {
return xxx_messageInfo_ImageInformation.Size(m)
}
func (m *ImageInformation) XXX_DiscardUnknown() {
xxx_messageInfo_ImageInformation.DiscardUnknown(m)
}
var xxx_messageInfo_ImageInformation proto.InternalMessageInfo
func (m *ImageInformation) GetImage() *ImageVersion {
if m != nil {
return m.Image
}
return nil
}
func (m *ImageInformation) GetImageInstallScript() string {
if m != nil {
return m.ImageInstallScript
}
return ""
}
func (m *ImageInformation) GetImageUrl() string {
if m != nil {
return m.ImageUrl
}
return ""
}
func (m *ImageInformation) GetSha256Sum() string {
if m != nil {
return m.Sha256Sum
}
return ""
}
type ImageStatus struct {
Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
Reason ImageStatus_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ImageStatus_Reason" json:"reason,omitempty"`
State ImageStatus_ImageState `protobuf:"varint,3,opt,name=state,proto3,enum=dmi.ImageStatus_ImageState" json:"state,omitempty"`
// description contains more information about the current state of the procedure and is device dependant
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImageStatus) Reset() { *m = ImageStatus{} }
func (m *ImageStatus) String() string { return proto.CompactTextString(m) }
func (*ImageStatus) ProtoMessage() {}
func (*ImageStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_3d058607a829baf4, []int{2}
}
func (m *ImageStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImageStatus.Unmarshal(m, b)
}
func (m *ImageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImageStatus.Marshal(b, m, deterministic)
}
func (m *ImageStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImageStatus.Merge(m, src)
}
func (m *ImageStatus) XXX_Size() int {
return xxx_messageInfo_ImageStatus.Size(m)
}
func (m *ImageStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ImageStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ImageStatus proto.InternalMessageInfo
func (m *ImageStatus) GetStatus() Status {
if m != nil {
return m.Status
}
return Status_UNDEFINED_STATUS
}
func (m *ImageStatus) GetReason() ImageStatus_Reason {
if m != nil {
return m.Reason
}
return ImageStatus_UNDEFINED_REASON
}
func (m *ImageStatus) GetState() ImageStatus_ImageState {
if m != nil {
return m.State
}
return ImageStatus_UNDEFINED_STATE
}
func (m *ImageStatus) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func init() {
proto.RegisterEnum("dmi.ImageStatus_ImageState", ImageStatus_ImageState_name, ImageStatus_ImageState_value)
proto.RegisterEnum("dmi.ImageStatus_Reason", ImageStatus_Reason_name, ImageStatus_Reason_value)
proto.RegisterType((*ImageVersion)(nil), "dmi.ImageVersion")
proto.RegisterType((*ImageInformation)(nil), "dmi.ImageInformation")
proto.RegisterType((*ImageStatus)(nil), "dmi.ImageStatus")
}
func init() { proto.RegisterFile("dmi/sw_image.proto", fileDescriptor_3d058607a829baf4) }
var fileDescriptor_3d058607a829baf4 = []byte{
// 572 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x93, 0xcf, 0x6e, 0xd3, 0x4c,
0x14, 0xc5, 0xeb, 0xe6, 0x4f, 0xdb, 0x9b, 0xef, 0x0b, 0xce, 0xb4, 0x55, 0x03, 0x05, 0xa9, 0x0a,
0x0b, 0xd8, 0x34, 0x86, 0x54, 0x20, 0x21, 0x56, 0xae, 0x33, 0x0d, 0x23, 0x92, 0x71, 0x19, 0x3b,
0x41, 0xb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