| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: server.proto |
| |
| package chrome_chromeos_infra_skylab_proto_inventory |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // NEXT TAG: 4 |
| type Server_Status int32 |
| |
| const ( |
| Server_STATUS_INVALID Server_Status = 0 |
| Server_STATUS_PRIMARY Server_Status = 1 |
| Server_STATUS_BACKUP Server_Status = 2 |
| Server_STATUS_REPAIR_REQUIRED Server_Status = 3 |
| ) |
| |
| var Server_Status_name = map[int32]string{ |
| 0: "STATUS_INVALID", |
| 1: "STATUS_PRIMARY", |
| 2: "STATUS_BACKUP", |
| 3: "STATUS_REPAIR_REQUIRED", |
| } |
| var Server_Status_value = map[string]int32{ |
| "STATUS_INVALID": 0, |
| "STATUS_PRIMARY": 1, |
| "STATUS_BACKUP": 2, |
| "STATUS_REPAIR_REQUIRED": 3, |
| } |
| |
| func (x Server_Status) Enum() *Server_Status { |
| p := new(Server_Status) |
| *p = x |
| return p |
| } |
| func (x Server_Status) String() string { |
| return proto.EnumName(Server_Status_name, int32(x)) |
| } |
| func (x *Server_Status) UnmarshalJSON(data []byte) error { |
| value, err := proto.UnmarshalJSONEnum(Server_Status_value, data, "Server_Status") |
| if err != nil { |
| return err |
| } |
| *x = Server_Status(value) |
| return nil |
| } |
| func (Server_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor4, []int{0, 0} } |
| |
| // NEXT TAG: 14 |
| // Note: Update ROLE_MAP in skylab_inventory/translation_utils.py accordingly |
| type Server_Role int32 |
| |
| const ( |
| Server_ROLE_INVALID Server_Role = 0 |
| Server_ROLE_AFE Server_Role = 1 |
| Server_ROLE_CRASH_SERVER Server_Role = 2 |
| Server_ROLE_DATABASE Server_Role = 3 |
| Server_ROLE_DATABASE_SLAVE Server_Role = 4 |
| Server_ROLE_DEVSERVER Server_Role = 5 |
| Server_ROLE_DRONE Server_Role = 6 |
| Server_ROLE_GOLO_PROXY Server_Role = 7 |
| Server_ROLE_HOST_SCHEDULER Server_Role = 8 |
| Server_ROLE_SCHEDULER Server_Role = 9 |
| Server_ROLE_SENTINEL Server_Role = 10 |
| Server_ROLE_SHARD Server_Role = 11 |
| Server_ROLE_SUITE_SCHEDULER Server_Role = 12 |
| Server_ROLE_SKYLAB_DRONE Server_Role = 13 |
| Server_ROLE_SKYLAB_SUITE_PROXY Server_Role = 14 |
| ) |
| |
| var Server_Role_name = map[int32]string{ |
| 0: "ROLE_INVALID", |
| 1: "ROLE_AFE", |
| 2: "ROLE_CRASH_SERVER", |
| 3: "ROLE_DATABASE", |
| 4: "ROLE_DATABASE_SLAVE", |
| 5: "ROLE_DEVSERVER", |
| 6: "ROLE_DRONE", |
| 7: "ROLE_GOLO_PROXY", |
| 8: "ROLE_HOST_SCHEDULER", |
| 9: "ROLE_SCHEDULER", |
| 10: "ROLE_SENTINEL", |
| 11: "ROLE_SHARD", |
| 12: "ROLE_SUITE_SCHEDULER", |
| 13: "ROLE_SKYLAB_DRONE", |
| 14: "ROLE_SKYLAB_SUITE_PROXY", |
| } |
| var Server_Role_value = map[string]int32{ |
| "ROLE_INVALID": 0, |
| "ROLE_AFE": 1, |
| "ROLE_CRASH_SERVER": 2, |
| "ROLE_DATABASE": 3, |
| "ROLE_DATABASE_SLAVE": 4, |
| "ROLE_DEVSERVER": 5, |
| "ROLE_DRONE": 6, |
| "ROLE_GOLO_PROXY": 7, |
| "ROLE_HOST_SCHEDULER": 8, |
| "ROLE_SCHEDULER": 9, |
| "ROLE_SENTINEL": 10, |
| "ROLE_SHARD": 11, |
| "ROLE_SUITE_SCHEDULER": 12, |
| "ROLE_SKYLAB_DRONE": 13, |
| "ROLE_SKYLAB_SUITE_PROXY": 14, |
| } |
| |
| func (x Server_Role) Enum() *Server_Role { |
| p := new(Server_Role) |
| *p = x |
| return p |
| } |
| func (x Server_Role) String() string { |
| return proto.EnumName(Server_Role_name, int32(x)) |
| } |
| func (x *Server_Role) UnmarshalJSON(data []byte) error { |
| value, err := proto.UnmarshalJSONEnum(Server_Role_value, data, "Server_Role") |
| if err != nil { |
| return err |
| } |
| *x = Server_Role(value) |
| return nil |
| } |
| func (Server_Role) EnumDescriptor() ([]byte, []int) { return fileDescriptor4, []int{0, 1} } |
| |
| // NEXT TAG: 9 |
| type Server struct { |
| Hostname *string `protobuf:"bytes,1,req,name=hostname" json:"hostname,omitempty"` |
| Cname *string `protobuf:"bytes,2,opt,name=cname" json:"cname,omitempty"` |
| Environment *Environment `protobuf:"varint,3,req,name=environment,enum=chrome.chromeos_infra.skylab.proto.inventory.Environment" json:"environment,omitempty"` |
| Status *Server_Status `protobuf:"varint,4,req,name=status,enum=chrome.chromeos_infra.skylab.proto.inventory.Server_Status" json:"status,omitempty"` |
| Roles []Server_Role `protobuf:"varint,5,rep,name=roles,enum=chrome.chromeos_infra.skylab.proto.inventory.Server_Role" json:"roles,omitempty"` |
| Attributes *Attributes `protobuf:"bytes,6,opt,name=attributes" json:"attributes,omitempty"` |
| Notes *string `protobuf:"bytes,7,opt,name=notes" json:"notes,omitempty"` |
| // List of dut_uids serviced by this server. |
| // This can mean different things for different roles. |
| // skylab-drone: These are the DUTs owned by the drone. |
| DutUids []string `protobuf:"bytes,8,rep,name=dut_uids,json=dutUids" json:"dut_uids,omitempty"` |
| XXX_unrecognized []byte `json:"-"` |
| } |
| |
| func (m *Server) Reset() { *m = Server{} } |
| func (m *Server) String() string { return proto.CompactTextString(m) } |
| func (*Server) ProtoMessage() {} |
| func (*Server) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} } |
| |
| func (m *Server) GetHostname() string { |
| if m != nil && m.Hostname != nil { |
| return *m.Hostname |
| } |
| return "" |
| } |
| |
| func (m *Server) GetCname() string { |
| if m != nil && m.Cname != nil { |
| return *m.Cname |
| } |
| return "" |
| } |
| |
| func (m *Server) GetEnvironment() Environment { |
| if m != nil && m.Environment != nil { |
| return *m.Environment |
| } |
| return Environment_ENVIRONMENT_INVALID |
| } |
| |
| func (m *Server) GetStatus() Server_Status { |
| if m != nil && m.Status != nil { |
| return *m.Status |
| } |
| return Server_STATUS_INVALID |
| } |
| |
| func (m *Server) GetRoles() []Server_Role { |
| if m != nil { |
| return m.Roles |
| } |
| return nil |
| } |
| |
| func (m *Server) GetAttributes() *Attributes { |
| if m != nil { |
| return m.Attributes |
| } |
| return nil |
| } |
| |
| func (m *Server) GetNotes() string { |
| if m != nil && m.Notes != nil { |
| return *m.Notes |
| } |
| return "" |
| } |
| |
| func (m *Server) GetDutUids() []string { |
| if m != nil { |
| return m.DutUids |
| } |
| return nil |
| } |
| |
| // NOTE: Please update SERVER_ATTRIBUTE_TYPE_MAP in |
| // skylab_inventory/translation_utils.py accordingly. |
| // NEXT TAG: 6 |
| type Attributes struct { |
| Ip *string `protobuf:"bytes,1,opt,name=ip" json:"ip,omitempty"` |
| MaxProcesses *int32 `protobuf:"varint,2,opt,name=max_processes,json=maxProcesses" json:"max_processes,omitempty"` |
| MysqlServerId *string `protobuf:"bytes,3,opt,name=mysql_server_id,json=mysqlServerId" json:"mysql_server_id,omitempty"` |
| DevserverRestrictedSubnet *string `protobuf:"bytes,4,opt,name=devserver_restricted_subnet,json=devserverRestrictedSubnet" json:"devserver_restricted_subnet,omitempty"` |
| DevserverPort *int32 `protobuf:"varint,5,opt,name=devserver_port,json=devserverPort" json:"devserver_port,omitempty"` |
| XXX_unrecognized []byte `json:"-"` |
| } |
| |
| func (m *Attributes) Reset() { *m = Attributes{} } |
| func (m *Attributes) String() string { return proto.CompactTextString(m) } |
| func (*Attributes) ProtoMessage() {} |
| func (*Attributes) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} } |
| |
| func (m *Attributes) GetIp() string { |
| if m != nil && m.Ip != nil { |
| return *m.Ip |
| } |
| return "" |
| } |
| |
| func (m *Attributes) GetMaxProcesses() int32 { |
| if m != nil && m.MaxProcesses != nil { |
| return *m.MaxProcesses |
| } |
| return 0 |
| } |
| |
| func (m *Attributes) GetMysqlServerId() string { |
| if m != nil && m.MysqlServerId != nil { |
| return *m.MysqlServerId |
| } |
| return "" |
| } |
| |
| func (m *Attributes) GetDevserverRestrictedSubnet() string { |
| if m != nil && m.DevserverRestrictedSubnet != nil { |
| return *m.DevserverRestrictedSubnet |
| } |
| return "" |
| } |
| |
| func (m *Attributes) GetDevserverPort() int32 { |
| if m != nil && m.DevserverPort != nil { |
| return *m.DevserverPort |
| } |
| return 0 |
| } |
| |
| func init() { |
| proto.RegisterType((*Server)(nil), "chrome.chromeos_infra.skylab.proto.inventory.Server") |
| proto.RegisterType((*Attributes)(nil), "chrome.chromeos_infra.skylab.proto.inventory.Attributes") |
| proto.RegisterEnum("chrome.chromeos_infra.skylab.proto.inventory.Server_Status", Server_Status_name, Server_Status_value) |
| proto.RegisterEnum("chrome.chromeos_infra.skylab.proto.inventory.Server_Role", Server_Role_name, Server_Role_value) |
| } |
| |
| func init() { proto.RegisterFile("server.proto", fileDescriptor4) } |
| |
| var fileDescriptor4 = []byte{ |
| // 616 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdf, 0x6e, 0xda, 0x3c, |
| 0x14, 0xc0, 0x3f, 0xc2, 0x9f, 0xc2, 0x29, 0x50, 0xd7, 0xed, 0xb7, 0xa6, 0xed, 0x0d, 0x62, 0xda, |
| 0xc4, 0xc5, 0xc4, 0x45, 0xaf, 0x36, 0x4d, 0x9a, 0xe4, 0x16, 0x6f, 0x44, 0x65, 0xc0, 0x6c, 0x40, |
| 0xad, 0x76, 0x11, 0x51, 0xe2, 0xa9, 0xd1, 0x48, 0xcc, 0x6c, 0x83, 0xda, 0xb7, 0xdb, 0x23, 0xec, |
| 0x41, 0xf6, 0x10, 0x13, 0x36, 0x0b, 0xec, 0x92, 0xab, 0xe8, 0xfc, 0x7c, 0x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