add more VM fields
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
8b054816ff
commit
623ebe4403
107
events.pb.go
107
events.pb.go
|
@ -295,10 +295,15 @@ func (m *Event_Network) GetLoginUrl() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Event_VM struct {
|
type Event_VM struct {
|
||||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
|
Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
||||||
BaseImage string `protobuf:"bytes,4,opt,name=baseImage,proto3" json:"baseImage,omitempty"`
|
Cpus int64 `protobuf:"varint,4,opt,name=cpus,proto3" json:"cpus,omitempty"`
|
||||||
|
Memory int64 `protobuf:"varint,5,opt,name=memory,proto3" json:"memory,omitempty"`
|
||||||
|
Disk int64 `protobuf:"varint,6,opt,name=disk,proto3" json:"disk,omitempty"`
|
||||||
|
IPv6 string `protobuf:"bytes,7,opt,name=IPv6,proto3" json:"IPv6,omitempty"`
|
||||||
|
Role string `protobuf:"bytes,8,opt,name=role,proto3" json:"role,omitempty"`
|
||||||
|
BaseImage string `protobuf:"bytes,9,opt,name=baseImage,proto3" json:"baseImage,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
@ -329,7 +334,7 @@ func (m *Event_VM) XXX_DiscardUnknown() {
|
||||||
|
|
||||||
var xxx_messageInfo_Event_VM proto.InternalMessageInfo
|
var xxx_messageInfo_Event_VM proto.InternalMessageInfo
|
||||||
|
|
||||||
func (m *Event_VM) GetId() int32 {
|
func (m *Event_VM) GetId() int64 {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
return m.Id
|
return m.Id
|
||||||
}
|
}
|
||||||
|
@ -343,6 +348,41 @@ func (m *Event_VM) GetName() string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *Event_VM) GetHostname() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Hostname
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Event_VM) GetCpus() int64 {
|
||||||
|
if m != nil {
|
||||||
|
return m.Cpus
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Event_VM) GetMemory() int64 {
|
||||||
|
if m != nil {
|
||||||
|
return m.Memory
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Event_VM) GetDisk() int64 {
|
||||||
|
if m != nil {
|
||||||
|
return m.Disk
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Event_VM) GetIPv6() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.IPv6
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (m *Event_VM) GetRole() string {
|
func (m *Event_VM) GetRole() string {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
return m.Role
|
return m.Role
|
||||||
|
@ -368,32 +408,35 @@ func init() {
|
||||||
func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) }
|
func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) }
|
||||||
|
|
||||||
var fileDescriptor_8f22242cb04491f9 = []byte{
|
var fileDescriptor_8f22242cb04491f9 = []byte{
|
||||||
// 424 bytes of a gzipped FileDescriptorProto
|
// 478 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x4d, 0x6b, 0xdb, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xdf, 0x6e, 0xd3, 0x30,
|
||||||
0x10, 0xad, 0xbe, 0x2c, 0x69, 0x9c, 0x06, 0x31, 0xb4, 0xb0, 0x28, 0x39, 0x88, 0x5c, 0xaa, 0x93,
|
0x14, 0xc6, 0x49, 0xd2, 0xfc, 0x3b, 0x1d, 0x53, 0x64, 0x01, 0xb2, 0xb2, 0x5d, 0x44, 0xbb, 0x21,
|
||||||
0x29, 0x29, 0xed, 0x3d, 0xad, 0x95, 0xd6, 0x50, 0x3b, 0x61, 0x71, 0x13, 0xe8, 0x25, 0xc8, 0xc9,
|
0x57, 0x15, 0x1a, 0x62, 0xf7, 0x83, 0x66, 0x50, 0x89, 0x76, 0x95, 0x55, 0xb6, 0xcb, 0x29, 0x6d,
|
||||||
0x36, 0x88, 0x6a, 0xb5, 0x62, 0x77, 0x95, 0x90, 0x7b, 0x7f, 0x41, 0x7f, 0x6c, 0xcf, 0x65, 0x57,
|
0xcd, 0x88, 0x16, 0xc7, 0x91, 0xed, 0x74, 0xea, 0x3d, 0x4f, 0xc0, 0x63, 0xf1, 0x22, 0xbc, 0x06,
|
||||||
0x96, 0x12, 0xa8, 0x0f, 0xbd, 0xe4, 0x22, 0xe6, 0xbd, 0x79, 0xc3, 0x9b, 0x79, 0x62, 0x61, 0x8f,
|
0xb2, 0x93, 0x74, 0x95, 0x28, 0x97, 0xbb, 0x89, 0xce, 0xf7, 0x9d, 0xdf, 0xd1, 0x77, 0x6c, 0x2b,
|
||||||
0xdd, 0xb1, 0x46, 0xab, 0x59, 0x2b, 0x85, 0x16, 0x38, 0xbd, 0xaf, 0xf4, 0xb9, 0xa9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f, 0x15, 0xe8,
|
||||||
0x25, 0x53, 0x5d, 0xad, 0x15, 0x99, 0x64, 0x5e, 0x3e, 0x3d, 0x3e, 0xd8, 0xb1, 0x08, 0x65, 0xaa,
|
0x03, 0xf8, 0x82, 0xca, 0xa6, 0x54, 0x12, 0x7b, 0x89, 0x93, 0x0e, 0xcf, 0x4f, 0x0e, 0x2c, 0x42,
|
||||||
0x15, 0x8d, 0x62, 0x74, 0xd0, 0xe2, 0x07, 0x88, 0x1a, 0xa6, 0xef, 0x85, 0xfc, 0xa9, 0x48, 0x68,
|
0xa8, 0xac, 0x79, 0x25, 0x29, 0xe9, 0x59, 0x74, 0x01, 0x41, 0x45, 0xd5, 0x23, 0x17, 0x0f, 0x12,
|
||||||
0xe7, 0xd2, 0x1d, 0x73, 0xab, 0x5e, 0x42, 0x47, 0x2d, 0xbe, 0x01, 0xef, 0x8e, 0x2b, 0x12, 0xd9,
|
0xfb, 0x66, 0x2e, 0x3e, 0x30, 0x37, 0x6b, 0x11, 0xb2, 0x63, 0xd1, 0x5b, 0x70, 0x36, 0x4c, 0xe2,
|
||||||
0x91, 0xd7, 0x3b, 0x46, 0x2e, 0x96, 0xd4, 0x28, 0xd2, 0xdf, 0x0e, 0x44, 0x83, 0xed, 0x33, 0x45,
|
0xc0, 0x8c, 0xbc, 0x3e, 0x30, 0x72, 0x33, 0x25, 0x9a, 0x88, 0x7f, 0x59, 0x10, 0xf4, 0xb1, 0xcf,
|
||||||
0x65, 0x02, 0x91, 0x52, 0xc8, 0x6d, 0x50, 0x3d, 0xc0, 0x14, 0x22, 0xd5, 0x54, 0x6d, 0xcb, 0xb4,
|
0x74, 0x55, 0xfa, 0x42, 0x84, 0xe0, 0xa2, 0xbb, 0xa8, 0x56, 0xa0, 0x18, 0x02, 0x59, 0x15, 0x75,
|
||||||
0x22, 0x41, 0xe6, 0xe5, 0x31, 0x1d, 0x71, 0xfa, 0xcb, 0x81, 0x70, 0x7b, 0xd3, 0xd6, 0xc1, 0xf9,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, 0x19,
|
||||||
0x82, 0x77, 0x32, 0x9f, 0x27, 0x2f, 0x10, 0x60, 0x32, 0x2f, 0xbe, 0x16, 0xeb, 0x22, 0x71, 0x70,
|
0x17, 0x5b, 0x13, 0xea, 0x90, 0x4e, 0x69, 0x76, 0x5d, 0xc8, 0x07, 0xec, 0xb5, 0xac, 0xae, 0xb5,
|
||||||
0x0a, 0xe1, 0xf9, 0xd9, 0x65, 0x41, 0xcf, 0x56, 0x89, 0x8b, 0x7b, 0x10, 0xf5, 0xe0, 0xf4, 0x34,
|
0x37, 0x99, 0x6f, 0x2e, 0xb0, 0xdf, 0xe6, 0xe9, 0x5a, 0x7b, 0x82, 0x97, 0x14, 0x07, 0xad, 0xa7,
|
||||||
0xf1, 0xf0, 0x25, 0xc4, 0x5f, 0x16, 0x1f, 0x0b, 0xba, 0x3a, 0x59, 0x17, 0x89, 0x6f, 0x94, 0xcb,
|
0x6b, 0x74, 0x0a, 0xe1, 0x32, 0x97, 0x74, 0xc2, 0xf2, 0x7b, 0x8a, 0x43, 0xd3, 0x78, 0x32, 0xce,
|
||||||
0xc5, 0x67, 0x6a, 0x40, 0xb0, 0x99, 0xd8, 0xc7, 0xf0, 0xee, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff,
|
0x6e, 0x21, 0xdc, 0x3d, 0x1e, 0xf2, 0xc1, 0xb9, 0x1c, 0x8f, 0xa3, 0x17, 0x08, 0xc0, 0x1b, 0x67,
|
||||||
0xce, 0x8e, 0xb5, 0x00, 0x1c, 0x03, 0x00, 0x00,
|
0x5f, 0xb3, 0x45, 0x16, 0x59, 0x68, 0x08, 0xfe, 0xfc, 0xfa, 0x36, 0x23, 0xd7, 0xb3, 0xc8, 0x46,
|
||||||
|
0x47, 0x10, 0xb4, 0xe2, 0xea, 0x2a, 0x72, 0xd0, 0x4b, 0x08, 0xbf, 0x4c, 0x3e, 0x66, 0x64, 0x76,
|
||||||
|
0xb9, 0xc8, 0xa2, 0x81, 0x26, 0xa7, 0x93, 0xcf, 0x44, 0x0b, 0x77, 0xe9, 0x99, 0xbf, 0xef, 0xfd,
|
||||||
|
0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbe, 0xdf, 0x6f, 0xa4, 0x8d, 0x03, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
11
events.proto
11
events.proto
|
@ -38,9 +38,14 @@ message Event {
|
||||||
}
|
}
|
||||||
|
|
||||||
message VM {
|
message VM {
|
||||||
int32 id = 1;
|
int64 id = 1;
|
||||||
string name = 2;
|
string name = 2;
|
||||||
string role = 3;
|
string hostname = 3;
|
||||||
string baseImage = 4;
|
int64 cpus = 4;
|
||||||
|
int64 memory = 5;
|
||||||
|
int64 disk = 6;
|
||||||
|
string IPv6 = 7;
|
||||||
|
string role = 8;
|
||||||
|
string baseImage = 9;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,6 @@ func CreateSampleEvent() *Event {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue