Documentation ¶
Overview ¶
Package inventory implements Skylab inventory stuff.
Index ¶
- Variables
- func ConvertDeviceConfig(dc *device.Config, spec *CommonDeviceSpecs)
- func CopyDCAmongLabels(to *SchedulableLabels, from *SchedulableLabels)
- func LoadInfrastructureFromString(text string, infra *Infrastructure) error
- func LoadLabFromString(text string, lab *Lab) error
- func ReadSymlink(p string) (string, error)
- func SortLabels(labels *SchedulableLabels)
- func WriteInfrastructure(infrastructure *Infrastructure, dataDir string) error
- func WriteInfrastructureToString(infra *Infrastructure) (string, error)
- func WriteLab(lab *Lab, dataDir string) error
- func WriteLabToString(lab *Lab) (string, error)
- type Attributes
- func (*Attributes) Descriptor() ([]byte, []int)deprecated
- func (x *Attributes) GetDevserverPort() int32
- func (x *Attributes) GetDevserverRestrictedSubnet() string
- func (x *Attributes) GetIp() string
- func (x *Attributes) GetMaxProcesses() int32
- func (x *Attributes) GetMysqlServerId() string
- func (*Attributes) ProtoMessage()
- func (x *Attributes) ProtoReflect() protoreflect.Message
- func (x *Attributes) Reset()
- func (x *Attributes) String() string
- type ChameleonConnection
- func (*ChameleonConnection) Descriptor() ([]byte, []int)deprecated
- func (x *ChameleonConnection) GetChameleon() *ChameleonDevice
- func (x *ChameleonConnection) GetControlledDevice() *Device
- func (*ChameleonConnection) ProtoMessage()
- func (x *ChameleonConnection) ProtoReflect() protoreflect.Message
- func (x *ChameleonConnection) Reset()
- func (x *ChameleonConnection) String() string
- type ChameleonDevice
- type CommonDeviceSpecs
- func (*CommonDeviceSpecs) Descriptor() ([]byte, []int)deprecated
- func (x *CommonDeviceSpecs) GetAttributes() []*KeyValue
- func (x *CommonDeviceSpecs) GetDeviceLocks() []*DeviceLock
- func (x *CommonDeviceSpecs) GetEnvironment() Environment
- func (x *CommonDeviceSpecs) GetHostname() string
- func (x *CommonDeviceSpecs) GetHwid() string
- func (x *CommonDeviceSpecs) GetId() string
- func (x *CommonDeviceSpecs) GetLabels() *SchedulableLabels
- func (x *CommonDeviceSpecs) GetLocation() *Location
- func (x *CommonDeviceSpecs) GetOwnerShard() *Sharddeprecated
- func (x *CommonDeviceSpecs) GetSerialNumber() string
- func (x *CommonDeviceSpecs) GetUselessSwitch() bool
- func (*CommonDeviceSpecs) ProtoMessage()
- func (x *CommonDeviceSpecs) ProtoReflect() protoreflect.Message
- func (x *CommonDeviceSpecs) Reset()
- func (x *CommonDeviceSpecs) String() string
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetChameleon() *ChameleonDevice
- func (m *Device) GetDevice() isDevice_Device
- func (x *Device) GetDut() *DeviceUnderTest
- func (x *Device) GetServoHost() *ServoHostDevice
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type DeviceLock
- func (*DeviceLock) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceLock) GetBeginTime() *Timestamp
- func (x *DeviceLock) GetExpireTime() *Timestamp
- func (x *DeviceLock) GetId() string
- func (x *DeviceLock) GetLock() booldeprecated
- func (x *DeviceLock) GetLockId() int32deprecated
- func (x *DeviceLock) GetLockReason() string
- func (x *DeviceLock) GetLockedBy() string
- func (*DeviceLock) ProtoMessage()
- func (x *DeviceLock) ProtoReflect() protoreflect.Message
- func (x *DeviceLock) Reset()
- func (x *DeviceLock) String() string
- type DeviceUnderTest
- func (*DeviceUnderTest) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceUnderTest) GetCommon() *CommonDeviceSpecs
- func (x *DeviceUnderTest) GetRemovalReason() *RemovalReason
- func (*DeviceUnderTest) ProtoMessage()
- func (x *DeviceUnderTest) ProtoReflect() protoreflect.Message
- func (x *DeviceUnderTest) Reset()
- func (x *DeviceUnderTest) String() string
- type Device_Chameleon
- type Device_Dut
- type Device_ServoHost
- type Environment
- func (Environment) Descriptor() protoreflect.EnumDescriptor
- func (x Environment) Enum() *Environment
- func (Environment) EnumDescriptor() ([]byte, []int)deprecated
- func (x Environment) Number() protoreflect.EnumNumber
- func (x Environment) String() string
- func (Environment) Type() protoreflect.EnumType
- func (x *Environment) UnmarshalJSON(b []byte) errordeprecated
- type HardwareCapabilities
- func (*HardwareCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *HardwareCapabilities) GetAtrus() bool
- func (x *HardwareCapabilities) GetBluetooth() bool
- func (x *HardwareCapabilities) GetCarrier() HardwareCapabilities_Carrier
- func (x *HardwareCapabilities) GetDetachablebase() bool
- func (x *HardwareCapabilities) GetFingerprint() bool
- func (x *HardwareCapabilities) GetFlashrom() bool
- func (x *HardwareCapabilities) GetGpuFamily() string
- func (x *HardwareCapabilities) GetGraphics() string
- func (x *HardwareCapabilities) GetHotwording() bool
- func (x *HardwareCapabilities) GetInternalDisplay() bool
- func (x *HardwareCapabilities) GetLucidsleep() bool
- func (x *HardwareCapabilities) GetModem() string
- func (x *HardwareCapabilities) GetPower() string
- func (x *HardwareCapabilities) GetStorage() string
- func (x *HardwareCapabilities) GetTelephony() string
- func (x *HardwareCapabilities) GetTouchpad() bool
- func (x *HardwareCapabilities) GetTouchscreen() bool
- func (x *HardwareCapabilities) GetVideoAcceleration() []HardwareCapabilities_VideoAcceleration
- func (x *HardwareCapabilities) GetWebcam() bool
- func (*HardwareCapabilities) ProtoMessage()
- func (x *HardwareCapabilities) ProtoReflect() protoreflect.Message
- func (x *HardwareCapabilities) Reset()
- func (x *HardwareCapabilities) String() string
- type HardwareCapabilities_Carrier
- func (HardwareCapabilities_Carrier) Descriptor() protoreflect.EnumDescriptor
- func (x HardwareCapabilities_Carrier) Enum() *HardwareCapabilities_Carrier
- func (HardwareCapabilities_Carrier) EnumDescriptor() ([]byte, []int)deprecated
- func (x HardwareCapabilities_Carrier) Number() protoreflect.EnumNumber
- func (x HardwareCapabilities_Carrier) String() string
- func (HardwareCapabilities_Carrier) Type() protoreflect.EnumType
- func (x *HardwareCapabilities_Carrier) UnmarshalJSON(b []byte) errordeprecated
- type HardwareCapabilities_VideoAcceleration
- func (HardwareCapabilities_VideoAcceleration) Descriptor() protoreflect.EnumDescriptor
- func (x HardwareCapabilities_VideoAcceleration) Enum() *HardwareCapabilities_VideoAcceleration
- func (HardwareCapabilities_VideoAcceleration) EnumDescriptor() ([]byte, []int)deprecated
- func (x HardwareCapabilities_VideoAcceleration) Number() protoreflect.EnumNumber
- func (x HardwareCapabilities_VideoAcceleration) String() string
- func (HardwareCapabilities_VideoAcceleration) Type() protoreflect.EnumType
- func (x *HardwareCapabilities_VideoAcceleration) UnmarshalJSON(b []byte) errordeprecated
- type HardwareState
- func (HardwareState) Descriptor() protoreflect.EnumDescriptor
- func (x HardwareState) Enum() *HardwareState
- func (HardwareState) EnumDescriptor() ([]byte, []int)deprecated
- func (x HardwareState) Number() protoreflect.EnumNumber
- func (x HardwareState) String() string
- func (HardwareState) Type() protoreflect.EnumType
- func (x *HardwareState) UnmarshalJSON(b []byte) errordeprecated
- type Infrastructure
- type KeyValue
- type Lab
- func (*Lab) Descriptor() ([]byte, []int)deprecated
- func (x *Lab) GetChameleonConnections() []*ChameleonConnection
- func (x *Lab) GetChamelons() []*ChameleonDevice
- func (x *Lab) GetDuts() []*DeviceUnderTest
- func (x *Lab) GetServoHostConnections() []*ServoHostConnection
- func (x *Lab) GetServoHosts() []*ServoHostDevice
- func (*Lab) ProtoMessage()
- func (x *Lab) ProtoReflect() protoreflect.Message
- func (x *Lab) Reset()
- func (x *Lab) String() string
- type License
- type LicenseType
- func (LicenseType) Descriptor() protoreflect.EnumDescriptor
- func (x LicenseType) Enum() *LicenseType
- func (LicenseType) EnumDescriptor() ([]byte, []int)deprecated
- func (x LicenseType) Number() protoreflect.EnumNumber
- func (x LicenseType) String() string
- func (LicenseType) Type() protoreflect.EnumType
- func (x *LicenseType) UnmarshalJSON(b []byte) errordeprecated
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetHost() int32
- func (x *Location) GetLab() *PhysicalLab
- func (x *Location) GetRack() int32
- func (x *Location) GetRow() int32
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type PeripheralState
- func (PeripheralState) Descriptor() protoreflect.EnumDescriptor
- func (x PeripheralState) Enum() *PeripheralState
- func (PeripheralState) EnumDescriptor() ([]byte, []int)deprecated
- func (x PeripheralState) Number() protoreflect.EnumNumber
- func (x PeripheralState) String() string
- func (PeripheralState) Type() protoreflect.EnumType
- func (x *PeripheralState) UnmarshalJSON(b []byte) errordeprecated
- type Peripherals
- func (*Peripherals) Descriptor() ([]byte, []int)deprecated
- func (x *Peripherals) GetAudioBoard() bool
- func (x *Peripherals) GetAudioBox() bool
- func (x *Peripherals) GetAudioCable() bool
- func (x *Peripherals) GetAudioLoopbackDongle() bool
- func (x *Peripherals) GetBatteryState() HardwareState
- func (x *Peripherals) GetBluetoothState() HardwareState
- func (x *Peripherals) GetCamerabox() bool
- func (x *Peripherals) GetCameraboxFacing() Peripherals_CameraboxFacing
- func (x *Peripherals) GetCameraboxLight() Peripherals_CameraboxLight
- func (x *Peripherals) GetChameleon() bool
- func (x *Peripherals) GetChameleonType() []Peripherals_ChameleonType
- func (x *Peripherals) GetConductive() bool
- func (x *Peripherals) GetHuddly() bool
- func (x *Peripherals) GetMimo() bool
- func (x *Peripherals) GetPtzpro2() bool
- func (x *Peripherals) GetRouter_802_11Ax() bool
- func (x *Peripherals) GetRpmState() PeripheralState
- func (x *Peripherals) GetServo() bool
- func (x *Peripherals) GetServoFwChannel() ServoFwChannel
- func (x *Peripherals) GetServoState() PeripheralState
- func (x *Peripherals) GetServoTopology() *ServoTopology
- func (x *Peripherals) GetServoType() string
- func (x *Peripherals) GetServoUsbState() HardwareState
- func (x *Peripherals) GetSmartUsbhub() bool
- func (x *Peripherals) GetStorageState() HardwareState
- func (x *Peripherals) GetStylus() bool
- func (x *Peripherals) GetWifiState() HardwareState
- func (x *Peripherals) GetWificell() bool
- func (x *Peripherals) GetWorkingBluetoothBtpeer() int32
- func (*Peripherals) ProtoMessage()
- func (x *Peripherals) ProtoReflect() protoreflect.Message
- func (x *Peripherals) Reset()
- func (x *Peripherals) String() string
- type Peripherals_CameraboxFacing
- func (Peripherals_CameraboxFacing) Descriptor() protoreflect.EnumDescriptor
- func (x Peripherals_CameraboxFacing) Enum() *Peripherals_CameraboxFacing
- func (Peripherals_CameraboxFacing) EnumDescriptor() ([]byte, []int)deprecated
- func (x Peripherals_CameraboxFacing) Number() protoreflect.EnumNumber
- func (x Peripherals_CameraboxFacing) String() string
- func (Peripherals_CameraboxFacing) Type() protoreflect.EnumType
- func (x *Peripherals_CameraboxFacing) UnmarshalJSON(b []byte) errordeprecated
- type Peripherals_CameraboxLight
- func (Peripherals_CameraboxLight) Descriptor() protoreflect.EnumDescriptor
- func (x Peripherals_CameraboxLight) Enum() *Peripherals_CameraboxLight
- func (Peripherals_CameraboxLight) EnumDescriptor() ([]byte, []int)deprecated
- func (x Peripherals_CameraboxLight) Number() protoreflect.EnumNumber
- func (x Peripherals_CameraboxLight) String() string
- func (Peripherals_CameraboxLight) Type() protoreflect.EnumType
- func (x *Peripherals_CameraboxLight) UnmarshalJSON(b []byte) errordeprecated
- type Peripherals_ChameleonType
- func (Peripherals_ChameleonType) Descriptor() protoreflect.EnumDescriptor
- func (x Peripherals_ChameleonType) Enum() *Peripherals_ChameleonType
- func (Peripherals_ChameleonType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Peripherals_ChameleonType) Number() protoreflect.EnumNumber
- func (x Peripherals_ChameleonType) String() string
- func (Peripherals_ChameleonType) Type() protoreflect.EnumType
- func (x *Peripherals_ChameleonType) UnmarshalJSON(b []byte) errordeprecated
- type PhysicalLab
- type RemovalReason
- func (*RemovalReason) Descriptor() ([]byte, []int)deprecated
- func (x *RemovalReason) GetBug() string
- func (x *RemovalReason) GetComment() string
- func (x *RemovalReason) GetExpireTime() *Timestamp
- func (*RemovalReason) ProtoMessage()
- func (x *RemovalReason) ProtoReflect() protoreflect.Message
- func (x *RemovalReason) Reset()
- func (x *RemovalReason) String() string
- type SchedulableLabels
- func (*SchedulableLabels) Descriptor() ([]byte, []int)deprecated
- func (x *SchedulableLabels) GetArc() bool
- func (x *SchedulableLabels) GetBoard() string
- func (x *SchedulableLabels) GetBrand() string
- func (x *SchedulableLabels) GetCapabilities() *HardwareCapabilities
- func (x *SchedulableLabels) GetCr50Phase() SchedulableLabels_CR50_Phase
- func (x *SchedulableLabels) GetCr50RoKeyid() string
- func (x *SchedulableLabels) GetCr50RoVersion() string
- func (x *SchedulableLabels) GetCr50RwKeyid() string
- func (x *SchedulableLabels) GetCr50RwVersion() string
- func (x *SchedulableLabels) GetCriticalPools() []SchedulableLabels_DUTPool
- func (x *SchedulableLabels) GetCtsAbi() []SchedulableLabels_CTSABI
- func (x *SchedulableLabels) GetCtsCpu() []SchedulableLabels_CTSCPU
- func (x *SchedulableLabels) GetEcType() SchedulableLabels_ECType
- func (x *SchedulableLabels) GetHwidComponent() []string
- func (x *SchedulableLabels) GetHwidSku() string
- func (x *SchedulableLabels) GetLicenses() []*License
- func (x *SchedulableLabels) GetModel() string
- func (x *SchedulableLabels) GetOsType() SchedulableLabels_OSType
- func (x *SchedulableLabels) GetPeripherals() *Peripherals
- func (x *SchedulableLabels) GetPhase() SchedulableLabels_Phase
- func (x *SchedulableLabels) GetPlatform() string
- func (x *SchedulableLabels) GetReferenceDesign() string
- func (x *SchedulableLabels) GetSelfServePools() []string
- func (x *SchedulableLabels) GetSku() string
- func (x *SchedulableLabels) GetTestCoverageHints() *TestCoverageHints
- func (x *SchedulableLabels) GetUselessSwitch() bool
- func (x *SchedulableLabels) GetVariant() []string
- func (x *SchedulableLabels) GetWifiChip() string
- func (*SchedulableLabels) ProtoMessage()
- func (x *SchedulableLabels) ProtoReflect() protoreflect.Message
- func (x *SchedulableLabels) Reset()
- func (x *SchedulableLabels) String() string
- type SchedulableLabels_CR50_Phase
- func (SchedulableLabels_CR50_Phase) Descriptor() protoreflect.EnumDescriptor
- func (x SchedulableLabels_CR50_Phase) Enum() *SchedulableLabels_CR50_Phase
- func (SchedulableLabels_CR50_Phase) EnumDescriptor() ([]byte, []int)deprecated
- func (x SchedulableLabels_CR50_Phase) Number() protoreflect.EnumNumber
- func (x SchedulableLabels_CR50_Phase) String() string
- func (SchedulableLabels_CR50_Phase) Type() protoreflect.EnumType
- func (x *SchedulableLabels_CR50_Phase) UnmarshalJSON(b []byte) errordeprecated
- type SchedulableLabels_CTSABI
- func (SchedulableLabels_CTSABI) Descriptor() protoreflect.EnumDescriptor
- func (x SchedulableLabels_CTSABI) Enum() *SchedulableLabels_CTSABI
- func (SchedulableLabels_CTSABI) EnumDescriptor() ([]byte, []int)deprecated
- func (x SchedulableLabels_CTSABI) Number() protoreflect.EnumNumber
- func (x SchedulableLabels_CTSABI) String() string
- func (SchedulableLabels_CTSABI) Type() protoreflect.EnumType
- func (x *SchedulableLabels_CTSABI) UnmarshalJSON(b []byte) errordeprecated
- type SchedulableLabels_CTSCPU
- func (SchedulableLabels_CTSCPU) Descriptor() protoreflect.EnumDescriptor
- func (x SchedulableLabels_CTSCPU) Enum() *SchedulableLabels_CTSCPU
- func (SchedulableLabels_CTSCPU) EnumDescriptor() ([]byte, []int)deprecated
- func (x SchedulableLabels_CTSCPU) Number() protoreflect.EnumNumber
- func (x SchedulableLabels_CTSCPU) String() string
- func (SchedulableLabels_CTSCPU) Type() protoreflect.EnumType
- func (x *SchedulableLabels_CTSCPU) UnmarshalJSON(b []byte) errordeprecated
- type SchedulableLabels_DUTPool
- func (SchedulableLabels_DUTPool) Descriptor() protoreflect.EnumDescriptor
- func (x SchedulableLabels_DUTPool) Enum() *SchedulableLabels_DUTPool
- func (SchedulableLabels_DUTPool) EnumDescriptor() ([]byte, []int)deprecated
- func (x SchedulableLabels_DUTPool) Number() protoreflect.EnumNumber
- func (x SchedulableLabels_DUTPool) String() string
- func (SchedulableLabels_DUTPool) Type() protoreflect.EnumType
- func (x *SchedulableLabels_DUTPool) UnmarshalJSON(b []byte) errordeprecated
- type SchedulableLabels_ECType
- func (SchedulableLabels_ECType) Descriptor() protoreflect.EnumDescriptor
- func (x SchedulableLabels_ECType) Enum() *SchedulableLabels_ECType
- func (SchedulableLabels_ECType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SchedulableLabels_ECType) Number() protoreflect.EnumNumber
- func (x SchedulableLabels_ECType) String() string
- func (SchedulableLabels_ECType) Type() protoreflect.EnumType
- func (x *SchedulableLabels_ECType) UnmarshalJSON(b []byte) errordeprecated
- type SchedulableLabels_OSType
- func (SchedulableLabels_OSType) Descriptor() protoreflect.EnumDescriptor
- func (x SchedulableLabels_OSType) Enum() *SchedulableLabels_OSType
- func (SchedulableLabels_OSType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SchedulableLabels_OSType) Number() protoreflect.EnumNumber
- func (x SchedulableLabels_OSType) String() string
- func (SchedulableLabels_OSType) Type() protoreflect.EnumType
- func (x *SchedulableLabels_OSType) UnmarshalJSON(b []byte) errordeprecated
- type SchedulableLabels_Phase
- func (SchedulableLabels_Phase) Descriptor() protoreflect.EnumDescriptor
- func (x SchedulableLabels_Phase) Enum() *SchedulableLabels_Phase
- func (SchedulableLabels_Phase) EnumDescriptor() ([]byte, []int)deprecated
- func (x SchedulableLabels_Phase) Number() protoreflect.EnumNumber
- func (x SchedulableLabels_Phase) String() string
- func (SchedulableLabels_Phase) Type() protoreflect.EnumType
- func (x *SchedulableLabels_Phase) UnmarshalJSON(b []byte) errordeprecated
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetAttributes() *Attributes
- func (x *Server) GetCname() string
- func (x *Server) GetDutUids() []string
- func (x *Server) GetEnvironment() Environment
- func (x *Server) GetHostname() string
- func (x *Server) GetNotes() string
- func (x *Server) GetRoles() []Server_Role
- func (x *Server) GetStatus() Server_Status
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type Server_Role
- func (Server_Role) Descriptor() protoreflect.EnumDescriptor
- func (x Server_Role) Enum() *Server_Role
- func (Server_Role) EnumDescriptor() ([]byte, []int)deprecated
- func (x Server_Role) Number() protoreflect.EnumNumber
- func (x Server_Role) String() string
- func (Server_Role) Type() protoreflect.EnumType
- func (x *Server_Role) UnmarshalJSON(b []byte) errordeprecated
- type Server_Status
- func (Server_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Server_Status) Enum() *Server_Status
- func (Server_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Server_Status) Number() protoreflect.EnumNumber
- func (x Server_Status) String() string
- func (Server_Status) Type() protoreflect.EnumType
- func (x *Server_Status) UnmarshalJSON(b []byte) errordeprecated
- type ServoFwChannel
- func (ServoFwChannel) Descriptor() protoreflect.EnumDescriptor
- func (x ServoFwChannel) Enum() *ServoFwChannel
- func (ServoFwChannel) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServoFwChannel) Number() protoreflect.EnumNumber
- func (x ServoFwChannel) String() string
- func (ServoFwChannel) Type() protoreflect.EnumType
- func (x *ServoFwChannel) UnmarshalJSON(b []byte) errordeprecated
- type ServoHostConnection
- func (*ServoHostConnection) Descriptor() ([]byte, []int)deprecated
- func (x *ServoHostConnection) GetDutId() string
- func (x *ServoHostConnection) GetServoHostId() string
- func (x *ServoHostConnection) GetServoPort() int32
- func (x *ServoHostConnection) GetServoSerial() string
- func (x *ServoHostConnection) GetServoType() string
- func (*ServoHostConnection) ProtoMessage()
- func (x *ServoHostConnection) ProtoReflect() protoreflect.Message
- func (x *ServoHostConnection) Reset()
- func (x *ServoHostConnection) String() string
- type ServoHostDevice
- func (*ServoHostDevice) Descriptor() ([]byte, []int)deprecated
- func (x *ServoHostDevice) GetCommon() *CommonDeviceSpecs
- func (x *ServoHostDevice) GetVersion() string
- func (*ServoHostDevice) ProtoMessage()
- func (x *ServoHostDevice) ProtoReflect() protoreflect.Message
- func (x *ServoHostDevice) Reset()
- func (x *ServoHostDevice) String() string
- type ServoTopology
- func (*ServoTopology) Descriptor() ([]byte, []int)deprecated
- func (x *ServoTopology) GetChildren() []*ServoTopologyItem
- func (x *ServoTopology) GetMain() *ServoTopologyItem
- func (*ServoTopology) ProtoMessage()
- func (x *ServoTopology) ProtoReflect() protoreflect.Message
- func (x *ServoTopology) Reset()
- func (x *ServoTopology) String() string
- type ServoTopologyItem
- func (*ServoTopologyItem) Descriptor() ([]byte, []int)deprecated
- func (x *ServoTopologyItem) GetSerial() string
- func (x *ServoTopologyItem) GetSysfsProduct() string
- func (x *ServoTopologyItem) GetType() string
- func (x *ServoTopologyItem) GetUsbHubPort() string
- func (*ServoTopologyItem) ProtoMessage()
- func (x *ServoTopologyItem) ProtoReflect() protoreflect.Message
- func (x *ServoTopologyItem) Reset()
- func (x *ServoTopologyItem) String() string
- type Shard
- type StableVersion
- func (*StableVersion) Descriptor() ([]byte, []int)deprecated
- func (x *StableVersion) GetBoard() string
- func (x *StableVersion) GetVersion() string
- func (*StableVersion) ProtoMessage()
- func (x *StableVersion) ProtoReflect() protoreflect.Message
- func (x *StableVersion) Reset()
- func (x *StableVersion) String() string
- type StableVersions
- func (*StableVersions) Descriptor() ([]byte, []int)deprecated
- func (x *StableVersions) GetAndroidOsVersions() []*StableVersion
- func (x *StableVersions) GetChromeOsVersions() []*StableVersion
- func (x *StableVersions) GetFaftFirmwareVersions() []*StableVersion
- func (x *StableVersions) GetRwFirmwareVersions() []*StableVersion
- func (*StableVersions) ProtoMessage()
- func (x *StableVersions) ProtoReflect() protoreflect.Message
- func (x *StableVersions) Reset()
- func (x *StableVersions) String() string
- type TestCoverageHints
- func (*TestCoverageHints) Descriptor() ([]byte, []int)deprecated
- func (x *TestCoverageHints) GetChaosDut() bool
- func (x *TestCoverageHints) GetChaosNightly() bool
- func (x *TestCoverageHints) GetChromesign() bool
- func (x *TestCoverageHints) GetCtsSparse() []TestCoverageHints_CTSSparse
- func (x *TestCoverageHints) GetHangoutApp() bool
- func (x *TestCoverageHints) GetMeetApp() bool
- func (x *TestCoverageHints) GetRecoveryTest() bool
- func (x *TestCoverageHints) GetTestAudiojack() bool
- func (x *TestCoverageHints) GetTestHdmiaudio() bool
- func (x *TestCoverageHints) GetTestUsbaudio() bool
- func (x *TestCoverageHints) GetTestUsbprinting() bool
- func (x *TestCoverageHints) GetUsbDetect() bool
- func (x *TestCoverageHints) GetUseLid() bool
- func (*TestCoverageHints) ProtoMessage()
- func (x *TestCoverageHints) ProtoReflect() protoreflect.Message
- func (x *TestCoverageHints) Reset()
- func (x *TestCoverageHints) String() string
- type TestCoverageHints_CTSSparse
- func (TestCoverageHints_CTSSparse) Descriptor() protoreflect.EnumDescriptor
- func (x TestCoverageHints_CTSSparse) Enum() *TestCoverageHints_CTSSparse
- func (TestCoverageHints_CTSSparse) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestCoverageHints_CTSSparse) Number() protoreflect.EnumNumber
- func (x TestCoverageHints_CTSSparse) String() string
- func (TestCoverageHints_CTSSparse) Type() protoreflect.EnumType
- func (x *TestCoverageHints_CTSSparse) UnmarshalJSON(b []byte) errordeprecated
- type Timestamp
Constants ¶
This section is empty.
Variables ¶
var ( Environment_name = map[int32]string{ 0: "ENVIRONMENT_INVALID", 1: "ENVIRONMENT_PROD", 2: "ENVIRONMENT_STAGING", 3: "ENVIRONMENT_SKYLAB", } Environment_value = map[string]int32{ "ENVIRONMENT_INVALID": 0, "ENVIRONMENT_PROD": 1, "ENVIRONMENT_STAGING": 2, "ENVIRONMENT_SKYLAB": 3, } )
Enum value maps for Environment.
var ( ServoFwChannel_name = map[int32]string{ 0: "SERVO_FW_STABLE", 1: "SERVO_FW_PREV", 2: "SERVO_FW_DEV", 3: "SERVO_FW_ALPHA", } ServoFwChannel_value = map[string]int32{ "SERVO_FW_STABLE": 0, "SERVO_FW_PREV": 1, "SERVO_FW_DEV": 2, "SERVO_FW_ALPHA": 3, } )
Enum value maps for ServoFwChannel.
var ( PeripheralState_name = map[int32]string{ 0: "UNKNOWN", 1: "WORKING", 5: "MISSING_CONFIG", 4: "WRONG_CONFIG", 2: "NOT_CONNECTED", 6: "NO_SSH", 3: "BROKEN", 7: "NEED_REPLACEMENT", 13: "CR50_CONSOLE_MISSING", 8: "CCD_TESTLAB_ISSUE", 9: "SERVOD_ISSUE", 10: "LID_OPEN_FAILED", 11: "BAD_RIBBON_CABLE", 12: "EC_BROKEN", 14: "DUT_NOT_CONNECTED", 15: "TOPOLOGY_ISSUE", 16: "SBU_LOW_VOLTAGE", 17: "CR50_NOT_ENUMERATED", 18: "SERVO_SERIAL_MISMATCH", 19: "SERVOD_PROXY_ISSUE", 20: "SERVO_HOST_ISSUE", 21: "SERVO_UPDATER_ISSUE", } PeripheralState_value = map[string]int32{ "UNKNOWN": 0, "WORKING": 1, "MISSING_CONFIG": 5, "WRONG_CONFIG": 4, "NOT_CONNECTED": 2, "NO_SSH": 6, "BROKEN": 3, "NEED_REPLACEMENT": 7, "CR50_CONSOLE_MISSING": 13, "CCD_TESTLAB_ISSUE": 8, "SERVOD_ISSUE": 9, "LID_OPEN_FAILED": 10, "BAD_RIBBON_CABLE": 11, "EC_BROKEN": 12, "DUT_NOT_CONNECTED": 14, "TOPOLOGY_ISSUE": 15, "SBU_LOW_VOLTAGE": 16, "CR50_NOT_ENUMERATED": 17, "SERVO_SERIAL_MISMATCH": 18, "SERVOD_PROXY_ISSUE": 19, "SERVO_HOST_ISSUE": 20, "SERVO_UPDATER_ISSUE": 21, } )
Enum value maps for PeripheralState.
var ( HardwareState_name = map[int32]string{ 0: "HARDWARE_UNKNOWN", 1: "HARDWARE_NORMAL", 2: "HARDWARE_ACCEPTABLE", 3: "HARDWARE_NEED_REPLACEMENT", 4: "HARDWARE_NOT_DETECTED", } HardwareState_value = map[string]int32{ "HARDWARE_UNKNOWN": 0, "HARDWARE_NORMAL": 1, "HARDWARE_ACCEPTABLE": 2, "HARDWARE_NEED_REPLACEMENT": 3, "HARDWARE_NOT_DETECTED": 4, } )
Enum value maps for HardwareState.
var ( LicenseType_name = map[int32]string{ 0: "LICENSE_TYPE_UNSPECIFIED", 1: "LICENSE_TYPE_WINDOWS_10_PRO", 2: "LICENSE_TYPE_MS_OFFICE_STANDARD", } LicenseType_value = map[string]int32{ "LICENSE_TYPE_UNSPECIFIED": 0, "LICENSE_TYPE_WINDOWS_10_PRO": 1, "LICENSE_TYPE_MS_OFFICE_STANDARD": 2, } )
Enum value maps for LicenseType.
var ( SchedulableLabels_CR50_Phase_name = map[int32]string{ 0: "CR50_PHASE_INVALID", 1: "CR50_PHASE_PREPVT", 2: "CR50_PHASE_PVT", } SchedulableLabels_CR50_Phase_value = map[string]int32{ "CR50_PHASE_INVALID": 0, "CR50_PHASE_PREPVT": 1, "CR50_PHASE_PVT": 2, } )
Enum value maps for SchedulableLabels_CR50_Phase.
var ( SchedulableLabels_DUTPool_name = map[int32]string{ 0: "DUT_POOL_INVALID", 1: "DUT_POOL_CQ", 2: "DUT_POOL_BVT", 3: "DUT_POOL_SUITES", 4: "DUT_POOL_CTS", 5: "DUT_POOL_CTS_PERBUILD", 6: "DUT_POOL_CONTINUOUS", 7: "DUT_POOL_ARC_PRESUBMIT", 8: "DUT_POOL_QUOTA", } SchedulableLabels_DUTPool_value = map[string]int32{ "DUT_POOL_INVALID": 0, "DUT_POOL_CQ": 1, "DUT_POOL_BVT": 2, "DUT_POOL_SUITES": 3, "DUT_POOL_CTS": 4, "DUT_POOL_CTS_PERBUILD": 5, "DUT_POOL_CONTINUOUS": 6, "DUT_POOL_ARC_PRESUBMIT": 7, "DUT_POOL_QUOTA": 8, } )
Enum value maps for SchedulableLabels_DUTPool.
var ( SchedulableLabels_CTSABI_name = map[int32]string{ 0: "CTS_ABI_INVALID", 1: "CTS_ABI_ARM", 2: "CTS_ABI_X86", } SchedulableLabels_CTSABI_value = map[string]int32{ "CTS_ABI_INVALID": 0, "CTS_ABI_ARM": 1, "CTS_ABI_X86": 2, } )
Enum value maps for SchedulableLabels_CTSABI.
var ( SchedulableLabels_CTSCPU_name = map[int32]string{ 0: "CTS_CPU_INVALID", 1: "CTS_CPU_ARM", 2: "CTS_CPU_X86", } SchedulableLabels_CTSCPU_value = map[string]int32{ "CTS_CPU_INVALID": 0, "CTS_CPU_ARM": 1, "CTS_CPU_X86": 2, } )
Enum value maps for SchedulableLabels_CTSCPU.
var ( SchedulableLabels_ECType_name = map[int32]string{ 0: "EC_TYPE_INVALID", 1: "EC_TYPE_CHROME_OS", } SchedulableLabels_ECType_value = map[string]int32{ "EC_TYPE_INVALID": 0, "EC_TYPE_CHROME_OS": 1, } )
Enum value maps for SchedulableLabels_ECType.
var ( SchedulableLabels_OSType_name = map[int32]string{ 0: "OS_TYPE_INVALID", 1: "OS_TYPE_ANDROID", 2: "OS_TYPE_CROS", 3: "OS_TYPE_JETSTREAM", 4: "OS_TYPE_MOBLAB", 5: "OS_TYPE_LABSTATION", } SchedulableLabels_OSType_value = map[string]int32{ "OS_TYPE_INVALID": 0, "OS_TYPE_ANDROID": 1, "OS_TYPE_CROS": 2, "OS_TYPE_JETSTREAM": 3, "OS_TYPE_MOBLAB": 4, "OS_TYPE_LABSTATION": 5, } )
Enum value maps for SchedulableLabels_OSType.
var ( SchedulableLabels_Phase_name = map[int32]string{ 0: "PHASE_INVALID", 1: "PHASE_EVT", 2: "PHASE_EVT2", 3: "PHASE_DVT", 4: "PHASE_DVT2", 5: "PHASE_PVT", 6: "PHASE_PVT2", 7: "PHASE_PVT3", 8: "PHASE_MP", } SchedulableLabels_Phase_value = map[string]int32{ "PHASE_INVALID": 0, "PHASE_EVT": 1, "PHASE_EVT2": 2, "PHASE_DVT": 3, "PHASE_DVT2": 4, "PHASE_PVT": 5, "PHASE_PVT2": 6, "PHASE_PVT3": 7, "PHASE_MP": 8, } )
Enum value maps for SchedulableLabels_Phase.
var ( HardwareCapabilities_Carrier_name = map[int32]string{ 0: "CARRIER_INVALID", 1: "CARRIER_ATT", 2: "CARRIER_TMOBILE", 3: "CARRIER_VERIZON", 4: "CARRIER_SPRINT", 5: "CARRIER_TESTESIM", 6: "CARRIER_ESIM", 7: "CARRIER_MULTISIM", } HardwareCapabilities_Carrier_value = map[string]int32{ "CARRIER_INVALID": 0, "CARRIER_ATT": 1, "CARRIER_TMOBILE": 2, "CARRIER_VERIZON": 3, "CARRIER_SPRINT": 4, "CARRIER_TESTESIM": 5, "CARRIER_ESIM": 6, "CARRIER_MULTISIM": 7, } )
Enum value maps for HardwareCapabilities_Carrier.
var ( HardwareCapabilities_VideoAcceleration_name = map[int32]string{ 0: "VIDEO_ACCELERATION_INVALID", 1: "VIDEO_ACCELERATION_H264", 2: "VIDEO_ACCELERATION_ENC_H264", 3: "VIDEO_ACCELERATION_VP8", 4: "VIDEO_ACCELERATION_ENC_VP8", 5: "VIDEO_ACCELERATION_VP9", 6: "VIDEO_ACCELERATION_ENC_VP9", 7: "VIDEO_ACCELERATION_VP9_2", 8: "VIDEO_ACCELERATION_ENC_VP9_2", 9: "VIDEO_ACCELERATION_H265", 10: "VIDEO_ACCELERATION_ENC_H265", 11: "VIDEO_ACCELERATION_MJPG", 12: "VIDEO_ACCELERATION_ENC_MJPG", } HardwareCapabilities_VideoAcceleration_value = map[string]int32{ "VIDEO_ACCELERATION_INVALID": 0, "VIDEO_ACCELERATION_H264": 1, "VIDEO_ACCELERATION_ENC_H264": 2, "VIDEO_ACCELERATION_VP8": 3, "VIDEO_ACCELERATION_ENC_VP8": 4, "VIDEO_ACCELERATION_VP9": 5, "VIDEO_ACCELERATION_ENC_VP9": 6, "VIDEO_ACCELERATION_VP9_2": 7, "VIDEO_ACCELERATION_ENC_VP9_2": 8, "VIDEO_ACCELERATION_H265": 9, "VIDEO_ACCELERATION_ENC_H265": 10, "VIDEO_ACCELERATION_MJPG": 11, "VIDEO_ACCELERATION_ENC_MJPG": 12, } )
Enum value maps for HardwareCapabilities_VideoAcceleration.
var ( Peripherals_ChameleonType_name = map[int32]string{ 0: "CHAMELEON_TYPE_INVALID", 2: "CHAMELEON_TYPE_DP", 3: "CHAMELEON_TYPE_DP_HDMI", 4: "CHAMELEON_TYPE_VGA", 5: "CHAMELEON_TYPE_HDMI", } Peripherals_ChameleonType_value = map[string]int32{ "CHAMELEON_TYPE_INVALID": 0, "CHAMELEON_TYPE_DP": 2, "CHAMELEON_TYPE_DP_HDMI": 3, "CHAMELEON_TYPE_VGA": 4, "CHAMELEON_TYPE_HDMI": 5, } )
Enum value maps for Peripherals_ChameleonType.
var ( Peripherals_CameraboxFacing_name = map[int32]string{ 0: "CAMERABOX_FACING_UNKNOWN", 1: "CAMERABOX_FACING_BACK", 2: "CAMERABOX_FACING_FRONT", } Peripherals_CameraboxFacing_value = map[string]int32{ "CAMERABOX_FACING_UNKNOWN": 0, "CAMERABOX_FACING_BACK": 1, "CAMERABOX_FACING_FRONT": 2, } )
Enum value maps for Peripherals_CameraboxFacing.
var ( Peripherals_CameraboxLight_name = map[int32]string{ 0: "CAMERABOX_LIGHT_UNKNOWN", 1: "CAMERABOX_LIGHT_LED", 2: "CAMERABOX_LIGHT_NOLED", } Peripherals_CameraboxLight_value = map[string]int32{ "CAMERABOX_LIGHT_UNKNOWN": 0, "CAMERABOX_LIGHT_LED": 1, "CAMERABOX_LIGHT_NOLED": 2, } )
Enum value maps for Peripherals_CameraboxLight.
var ( TestCoverageHints_CTSSparse_name = map[int32]string{ 0: "CTS_SPARSE_INVALID", 1: "CTS_SPARSE_2", 2: "CTS_SPARSE_3", 3: "CTS_SPARSE_5", } TestCoverageHints_CTSSparse_value = map[string]int32{ "CTS_SPARSE_INVALID": 0, "CTS_SPARSE_2": 1, "CTS_SPARSE_3": 2, "CTS_SPARSE_5": 3, } )
Enum value maps for TestCoverageHints_CTSSparse.
var ( Server_Status_name = map[int32]string{ 0: "STATUS_INVALID", 1: "STATUS_PRIMARY", 2: "STATUS_BACKUP", 3: "STATUS_REPAIR_REQUIRED", } Server_Status_value = map[string]int32{ "STATUS_INVALID": 0, "STATUS_PRIMARY": 1, "STATUS_BACKUP": 2, "STATUS_REPAIR_REQUIRED": 3, } )
Enum value maps for Server_Status.
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", 15: "ROLE_RPMSERVER", } 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, "ROLE_RPMSERVER": 15, } )
Enum value maps for Server_Role.
var File_infra_libs_skylab_inventory_common_proto protoreflect.FileDescriptor
var File_infra_libs_skylab_inventory_connection_proto protoreflect.FileDescriptor
var File_infra_libs_skylab_inventory_device_proto protoreflect.FileDescriptor
var File_infra_libs_skylab_inventory_lab_proto protoreflect.FileDescriptor
var File_infra_libs_skylab_inventory_server_proto protoreflect.FileDescriptor
var File_infra_libs_skylab_inventory_stable_versions_proto protoreflect.FileDescriptor
Functions ¶
func ConvertDeviceConfig ¶
func ConvertDeviceConfig(dc *device.Config, spec *CommonDeviceSpecs)
ConvertDeviceConfig converts device configs to the git-based skylab inventory.
func CopyDCAmongLabels ¶
func CopyDCAmongLabels(to *SchedulableLabels, from *SchedulableLabels)
CopyDCAmongLabels copy device configs between two schedulable labels.
func LoadInfrastructureFromString ¶
func LoadInfrastructureFromString(text string, infra *Infrastructure) error
LoadInfrastructureFromString loads infrastructure inventory information from the given string.
func LoadLabFromString ¶
LoadLabFromString loads lab inventory information from the given string.
func ReadSymlink ¶
ReadSymlink dereferences the symlink pointing to the data directory. This symlink can be missing for small amounts of time on the servers, but once the symlink has been dereferenced, the target directory is guaranteed to exist for ~15 minutes.
func SortLabels ¶
func SortLabels(labels *SchedulableLabels)
SortLabels takes a SchedulableLabels and destructively canonicalizes it. If two SchedulableLabels are equal post-canonicalization, then they represent the "same" thing. An arbitrary SchedulableLabels is not necessarily in canonical form. For example, the VideoAcceleration labels are not guaranteed to be sorted. In order to use proto.Equal, we must canonicalize first.
func WriteInfrastructure ¶
func WriteInfrastructure(infrastructure *Infrastructure, dataDir string) error
WriteInfrastructure writes infrastructure information to the inventory data directory.
func WriteInfrastructureToString ¶
func WriteInfrastructureToString(infra *Infrastructure) (string, error)
WriteInfrastructureToString marshals infrastructure inventory information into a string.
func WriteLab ¶
WriteLab writes lab inventory information to the inventory data directory.
WriteLab serializes the proto in a format that can be loaded from both golang and python protobuf libraries.
func WriteLabToString ¶
WriteLabToString marshals lab inventory information into a string.
Types ¶
type Attributes ¶
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 `` /* 131-byte string literal not displayed */ DevserverPort *int32 `protobuf:"varint,5,opt,name=devserver_port,json=devserverPort" json:"devserver_port,omitempty"` // contains filtered or unexported fields }
NOTE: Please update SERVER_ATTRIBUTE_TYPE_MAP in skylab_inventory/translation_utils.py accordingly. NEXT TAG: 6
func (*Attributes) Descriptor
deprecated
func (*Attributes) Descriptor() ([]byte, []int)
Deprecated: Use Attributes.ProtoReflect.Descriptor instead.
func (*Attributes) GetDevserverPort ¶
func (x *Attributes) GetDevserverPort() int32
func (*Attributes) GetDevserverRestrictedSubnet ¶
func (x *Attributes) GetDevserverRestrictedSubnet() string
func (*Attributes) GetIp ¶
func (x *Attributes) GetIp() string
func (*Attributes) GetMaxProcesses ¶
func (x *Attributes) GetMaxProcesses() int32
func (*Attributes) GetMysqlServerId ¶
func (x *Attributes) GetMysqlServerId() string
func (*Attributes) ProtoMessage ¶
func (*Attributes) ProtoMessage()
func (*Attributes) ProtoReflect ¶
func (x *Attributes) ProtoReflect() protoreflect.Message
func (*Attributes) Reset ¶
func (x *Attributes) Reset()
func (*Attributes) String ¶
func (x *Attributes) String() string
type ChameleonConnection ¶
type ChameleonConnection struct { Chameleon *ChameleonDevice `protobuf:"bytes,1,req,name=chameleon" json:"chameleon,omitempty"` ControlledDevice *Device `protobuf:"bytes,2,req,name=controlled_device,json=controlledDevice" json:"controlled_device,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 3
func (*ChameleonConnection) Descriptor
deprecated
func (*ChameleonConnection) Descriptor() ([]byte, []int)
Deprecated: Use ChameleonConnection.ProtoReflect.Descriptor instead.
func (*ChameleonConnection) GetChameleon ¶
func (x *ChameleonConnection) GetChameleon() *ChameleonDevice
func (*ChameleonConnection) GetControlledDevice ¶
func (x *ChameleonConnection) GetControlledDevice() *Device
func (*ChameleonConnection) ProtoMessage ¶
func (*ChameleonConnection) ProtoMessage()
func (*ChameleonConnection) ProtoReflect ¶
func (x *ChameleonConnection) ProtoReflect() protoreflect.Message
func (*ChameleonConnection) Reset ¶
func (x *ChameleonConnection) Reset()
func (*ChameleonConnection) String ¶
func (x *ChameleonConnection) String() string
type ChameleonDevice ¶
type ChameleonDevice struct { Common *CommonDeviceSpecs `protobuf:"bytes,1,req,name=common" json:"common,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 2
func (*ChameleonDevice) Descriptor
deprecated
func (*ChameleonDevice) Descriptor() ([]byte, []int)
Deprecated: Use ChameleonDevice.ProtoReflect.Descriptor instead.
func (*ChameleonDevice) GetCommon ¶
func (x *ChameleonDevice) GetCommon() *CommonDeviceSpecs
func (*ChameleonDevice) ProtoMessage ¶
func (*ChameleonDevice) ProtoMessage()
func (*ChameleonDevice) ProtoReflect ¶
func (x *ChameleonDevice) ProtoReflect() protoreflect.Message
func (*ChameleonDevice) Reset ¶
func (x *ChameleonDevice) Reset()
func (*ChameleonDevice) String ¶
func (x *ChameleonDevice) String() string
type CommonDeviceSpecs ¶
type CommonDeviceSpecs struct { // These are opaque keyvals for skylab services. Devices may arbitrarily // define any attributes they want. Attributes []*KeyValue `protobuf:"bytes,9,rep,name=attributes" json:"attributes,omitempty"` // A device may be locked for multiple reasons by multiple people. All locks // need to be removed for the device to go back into circulation. DeviceLocks []*DeviceLock `protobuf:"bytes,6,rep,name=device_locks,json=deviceLocks" json:"device_locks,omitempty"` Environment *Environment `` /* 132-byte string literal not displayed */ Hostname *string `protobuf:"bytes,2,req,name=hostname" json:"hostname,omitempty"` // An invariant property corresponding to the hardware deployed for this // device. Hwid *string `protobuf:"bytes,3,opt,name=hwid" json:"hwid,omitempty"` Id *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` // The scheduling system uses these to target jobs at the right kinds of // devices. Labels *SchedulableLabels `protobuf:"bytes,8,opt,name=labels" json:"labels,omitempty"` Location *Location `protobuf:"bytes,5,opt,name=location" json:"location,omitempty"` // Deprecated: This is needed for the master AFE in the autotest infra to // forward RPCs to the relevant shard for a device. // Not to be used in skylab. // // Deprecated: Do not use. OwnerShard *Shard `protobuf:"bytes,7,opt,name=owner_shard,json=ownerShard" json:"owner_shard,omitempty"` // An invariant about the distros inventory tag associated with the device. // For ChromeOS devices, this can be read off of vboot. SerialNumber *string `protobuf:"bytes,4,opt,name=serial_number,json=serialNumber" json:"serial_number,omitempty"` // Similar to a useless machine, if set to true, automatic inventory // updates should set this back to false. This can be used to test // that automated updates are firing correctly. UselessSwitch *bool `protobuf:"varint,11,opt,name=useless_switch,json=uselessSwitch" json:"useless_switch,omitempty"` // contains filtered or unexported fields }
Keep sorted by field name.
NEXT TAG: 12
func (*CommonDeviceSpecs) Descriptor
deprecated
func (*CommonDeviceSpecs) Descriptor() ([]byte, []int)
Deprecated: Use CommonDeviceSpecs.ProtoReflect.Descriptor instead.
func (*CommonDeviceSpecs) GetAttributes ¶
func (x *CommonDeviceSpecs) GetAttributes() []*KeyValue
func (*CommonDeviceSpecs) GetDeviceLocks ¶
func (x *CommonDeviceSpecs) GetDeviceLocks() []*DeviceLock
func (*CommonDeviceSpecs) GetEnvironment ¶
func (x *CommonDeviceSpecs) GetEnvironment() Environment
func (*CommonDeviceSpecs) GetHostname ¶
func (x *CommonDeviceSpecs) GetHostname() string
func (*CommonDeviceSpecs) GetHwid ¶
func (x *CommonDeviceSpecs) GetHwid() string
func (*CommonDeviceSpecs) GetId ¶
func (x *CommonDeviceSpecs) GetId() string
func (*CommonDeviceSpecs) GetLabels ¶
func (x *CommonDeviceSpecs) GetLabels() *SchedulableLabels
func (*CommonDeviceSpecs) GetLocation ¶
func (x *CommonDeviceSpecs) GetLocation() *Location
func (*CommonDeviceSpecs) GetOwnerShard
deprecated
func (x *CommonDeviceSpecs) GetOwnerShard() *Shard
Deprecated: Do not use.
func (*CommonDeviceSpecs) GetSerialNumber ¶
func (x *CommonDeviceSpecs) GetSerialNumber() string
func (*CommonDeviceSpecs) GetUselessSwitch ¶
func (x *CommonDeviceSpecs) GetUselessSwitch() bool
func (*CommonDeviceSpecs) ProtoMessage ¶
func (*CommonDeviceSpecs) ProtoMessage()
func (*CommonDeviceSpecs) ProtoReflect ¶
func (x *CommonDeviceSpecs) ProtoReflect() protoreflect.Message
func (*CommonDeviceSpecs) Reset ¶
func (x *CommonDeviceSpecs) Reset()
func (*CommonDeviceSpecs) String ¶
func (x *CommonDeviceSpecs) String() string
type Device ¶
type Device struct { // Each of these must contain a 'CommonDeviceSpecs common' field. // We will use this informal composition based sharing rather than proto // extensions because extensions are unwieldy, and we really want composition // not inhertence. // // Types that are assignable to Device: // *Device_Dut // *Device_ServoHost // *Device_Chameleon Device isDevice_Device `protobuf_oneof:"device"` // contains filtered or unexported fields }
NEXT TAG: 4
func (*Device) Descriptor
deprecated
func (*Device) GetChameleon ¶
func (x *Device) GetChameleon() *ChameleonDevice
func (*Device) GetDut ¶
func (x *Device) GetDut() *DeviceUnderTest
func (*Device) GetServoHost ¶
func (x *Device) GetServoHost() *ServoHostDevice
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type DeviceLock ¶
type DeviceLock struct { // Deprecated: Do not use. Lock *bool `protobuf:"varint,1,req,name=lock" json:"lock,omitempty"` // This field is informational only. Do not assume this as a real user // identity in any auth domain. LockedBy *string `protobuf:"bytes,2,req,name=locked_by,json=lockedBy" json:"locked_by,omitempty"` LockReason *string `protobuf:"bytes,3,req,name=lock_reason,json=lockReason" json:"lock_reason,omitempty"` BeginTime *Timestamp `protobuf:"bytes,4,req,name=begin_time,json=beginTime" json:"begin_time,omitempty"` ExpireTime *Timestamp `protobuf:"bytes,5,req,name=expire_time,json=expireTime" json:"expire_time,omitempty"` // Deprecated: Do not use. LockId *int32 `protobuf:"varint,6,req,name=lock_id,json=lockId" json:"lock_id,omitempty"` Id *string `protobuf:"bytes,7,req,name=id" json:"id,omitempty"` // contains filtered or unexported fields }
A DeviceLock is a generic way of pulling any lab device out of commission temporarily. This allows us to quickly take out a device without deleting it from inventory. The exact effect of locking a device varies by the type of device and services involved. NEXT TAG: 6
func (*DeviceLock) Descriptor
deprecated
func (*DeviceLock) Descriptor() ([]byte, []int)
Deprecated: Use DeviceLock.ProtoReflect.Descriptor instead.
func (*DeviceLock) GetBeginTime ¶
func (x *DeviceLock) GetBeginTime() *Timestamp
func (*DeviceLock) GetExpireTime ¶
func (x *DeviceLock) GetExpireTime() *Timestamp
func (*DeviceLock) GetId ¶
func (x *DeviceLock) GetId() string
func (*DeviceLock) GetLock
deprecated
func (x *DeviceLock) GetLock() bool
Deprecated: Do not use.
func (*DeviceLock) GetLockId
deprecated
func (x *DeviceLock) GetLockId() int32
Deprecated: Do not use.
func (*DeviceLock) GetLockReason ¶
func (x *DeviceLock) GetLockReason() string
func (*DeviceLock) GetLockedBy ¶
func (x *DeviceLock) GetLockedBy() string
func (*DeviceLock) ProtoMessage ¶
func (*DeviceLock) ProtoMessage()
func (*DeviceLock) ProtoReflect ¶
func (x *DeviceLock) ProtoReflect() protoreflect.Message
func (*DeviceLock) Reset ¶
func (x *DeviceLock) Reset()
func (*DeviceLock) String ¶
func (x *DeviceLock) String() string
type DeviceUnderTest ¶
type DeviceUnderTest struct { Common *CommonDeviceSpecs `protobuf:"bytes,1,req,name=common" json:"common,omitempty"` RemovalReason *RemovalReason `protobuf:"bytes,2,opt,name=removal_reason,json=removalReason" json:"removal_reason,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 2
func (*DeviceUnderTest) Descriptor
deprecated
func (*DeviceUnderTest) Descriptor() ([]byte, []int)
Deprecated: Use DeviceUnderTest.ProtoReflect.Descriptor instead.
func (*DeviceUnderTest) GetCommon ¶
func (x *DeviceUnderTest) GetCommon() *CommonDeviceSpecs
func (*DeviceUnderTest) GetRemovalReason ¶
func (x *DeviceUnderTest) GetRemovalReason() *RemovalReason
func (*DeviceUnderTest) ProtoMessage ¶
func (*DeviceUnderTest) ProtoMessage()
func (*DeviceUnderTest) ProtoReflect ¶
func (x *DeviceUnderTest) ProtoReflect() protoreflect.Message
func (*DeviceUnderTest) Reset ¶
func (x *DeviceUnderTest) Reset()
func (*DeviceUnderTest) String ¶
func (x *DeviceUnderTest) String() string
type Device_Chameleon ¶
type Device_Chameleon struct {
Chameleon *ChameleonDevice `protobuf:"bytes,3,opt,name=chameleon,oneof"`
}
type Device_Dut ¶
type Device_Dut struct {
Dut *DeviceUnderTest `protobuf:"bytes,1,opt,name=dut,oneof"`
}
type Device_ServoHost ¶
type Device_ServoHost struct {
ServoHost *ServoHostDevice `protobuf:"bytes,2,opt,name=servo_host,json=servoHost,oneof"`
}
type Environment ¶
type Environment int32
NEXT TAG: 4
const ( Environment_ENVIRONMENT_INVALID Environment = 0 Environment_ENVIRONMENT_PROD Environment = 1 Environment_ENVIRONMENT_STAGING Environment = 2 // Deprecated: Do not use. Environment_ENVIRONMENT_SKYLAB Environment = 3 )
func (Environment) Descriptor ¶
func (Environment) Descriptor() protoreflect.EnumDescriptor
func (Environment) Enum ¶
func (x Environment) Enum() *Environment
func (Environment) EnumDescriptor
deprecated
func (Environment) EnumDescriptor() ([]byte, []int)
Deprecated: Use Environment.Descriptor instead.
func (Environment) Number ¶
func (x Environment) Number() protoreflect.EnumNumber
func (Environment) String ¶
func (x Environment) String() string
func (Environment) Type ¶
func (Environment) Type() protoreflect.EnumType
func (*Environment) UnmarshalJSON
deprecated
func (x *Environment) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type HardwareCapabilities ¶
type HardwareCapabilities struct { Atrus *bool `protobuf:"varint,17,opt,name=atrus" json:"atrus,omitempty"` Bluetooth *bool `protobuf:"varint,7,opt,name=bluetooth" json:"bluetooth,omitempty"` Carrier *HardwareCapabilities_Carrier `` /* 141-byte string literal not displayed */ Detachablebase *bool `protobuf:"varint,12,opt,name=detachablebase" json:"detachablebase,omitempty"` // Indicating if the device has fingerprint sensor. Fingerprint *bool `protobuf:"varint,19,opt,name=fingerprint" json:"fingerprint,omitempty"` Flashrom *bool `protobuf:"varint,14,opt,name=flashrom" json:"flashrom,omitempty"` GpuFamily *string `protobuf:"bytes,3,opt,name=gpu_family,json=gpuFamily" json:"gpu_family,omitempty"` Graphics *string `protobuf:"bytes,4,opt,name=graphics" json:"graphics,omitempty"` Hotwording *bool `protobuf:"varint,15,opt,name=hotwording" json:"hotwording,omitempty"` InternalDisplay *bool `protobuf:"varint,8,opt,name=internal_display,json=internalDisplay" json:"internal_display,omitempty"` Lucidsleep *bool `protobuf:"varint,13,opt,name=lucidsleep" json:"lucidsleep,omitempty"` Modem *string `protobuf:"bytes,1,opt,name=modem" json:"modem,omitempty"` Power *string `protobuf:"bytes,6,opt,name=power" json:"power,omitempty"` Storage *string `protobuf:"bytes,5,opt,name=storage" json:"storage,omitempty"` Telephony *string `protobuf:"bytes,2,opt,name=telephony" json:"telephony,omitempty"` Webcam *bool `protobuf:"varint,9,opt,name=webcam" json:"webcam,omitempty"` Touchpad *bool `protobuf:"varint,10,opt,name=touchpad" json:"touchpad,omitempty"` Touchscreen *bool `protobuf:"varint,18,opt,name=touchscreen" json:"touchscreen,omitempty"` VideoAcceleration []HardwareCapabilities_VideoAcceleration `` /* 196-byte string literal not displayed */ // contains filtered or unexported fields }
Keep sorted by field name.
NEXT TAG: 20
func (*HardwareCapabilities) Descriptor
deprecated
func (*HardwareCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use HardwareCapabilities.ProtoReflect.Descriptor instead.
func (*HardwareCapabilities) GetAtrus ¶
func (x *HardwareCapabilities) GetAtrus() bool
func (*HardwareCapabilities) GetBluetooth ¶
func (x *HardwareCapabilities) GetBluetooth() bool
func (*HardwareCapabilities) GetCarrier ¶
func (x *HardwareCapabilities) GetCarrier() HardwareCapabilities_Carrier
func (*HardwareCapabilities) GetDetachablebase ¶
func (x *HardwareCapabilities) GetDetachablebase() bool
func (*HardwareCapabilities) GetFingerprint ¶
func (x *HardwareCapabilities) GetFingerprint() bool
func (*HardwareCapabilities) GetFlashrom ¶
func (x *HardwareCapabilities) GetFlashrom() bool
func (*HardwareCapabilities) GetGpuFamily ¶
func (x *HardwareCapabilities) GetGpuFamily() string
func (*HardwareCapabilities) GetGraphics ¶
func (x *HardwareCapabilities) GetGraphics() string
func (*HardwareCapabilities) GetHotwording ¶
func (x *HardwareCapabilities) GetHotwording() bool
func (*HardwareCapabilities) GetInternalDisplay ¶
func (x *HardwareCapabilities) GetInternalDisplay() bool
func (*HardwareCapabilities) GetLucidsleep ¶
func (x *HardwareCapabilities) GetLucidsleep() bool
func (*HardwareCapabilities) GetModem ¶
func (x *HardwareCapabilities) GetModem() string
func (*HardwareCapabilities) GetPower ¶
func (x *HardwareCapabilities) GetPower() string
func (*HardwareCapabilities) GetStorage ¶
func (x *HardwareCapabilities) GetStorage() string
func (*HardwareCapabilities) GetTelephony ¶
func (x *HardwareCapabilities) GetTelephony() string
func (*HardwareCapabilities) GetTouchpad ¶
func (x *HardwareCapabilities) GetTouchpad() bool
func (*HardwareCapabilities) GetTouchscreen ¶
func (x *HardwareCapabilities) GetTouchscreen() bool
func (*HardwareCapabilities) GetVideoAcceleration ¶
func (x *HardwareCapabilities) GetVideoAcceleration() []HardwareCapabilities_VideoAcceleration
func (*HardwareCapabilities) GetWebcam ¶
func (x *HardwareCapabilities) GetWebcam() bool
func (*HardwareCapabilities) ProtoMessage ¶
func (*HardwareCapabilities) ProtoMessage()
func (*HardwareCapabilities) ProtoReflect ¶
func (x *HardwareCapabilities) ProtoReflect() protoreflect.Message
func (*HardwareCapabilities) Reset ¶
func (x *HardwareCapabilities) Reset()
func (*HardwareCapabilities) String ¶
func (x *HardwareCapabilities) String() string
type HardwareCapabilities_Carrier ¶
type HardwareCapabilities_Carrier int32
NEXT TAG: 8
const ( HardwareCapabilities_CARRIER_INVALID HardwareCapabilities_Carrier = 0 HardwareCapabilities_CARRIER_ATT HardwareCapabilities_Carrier = 1 HardwareCapabilities_CARRIER_TMOBILE HardwareCapabilities_Carrier = 2 HardwareCapabilities_CARRIER_VERIZON HardwareCapabilities_Carrier = 3 HardwareCapabilities_CARRIER_SPRINT HardwareCapabilities_Carrier = 4 HardwareCapabilities_CARRIER_TESTESIM HardwareCapabilities_Carrier = 5 HardwareCapabilities_CARRIER_ESIM HardwareCapabilities_Carrier = 6 HardwareCapabilities_CARRIER_MULTISIM HardwareCapabilities_Carrier = 7 )
func (HardwareCapabilities_Carrier) Descriptor ¶
func (HardwareCapabilities_Carrier) Descriptor() protoreflect.EnumDescriptor
func (HardwareCapabilities_Carrier) Enum ¶
func (x HardwareCapabilities_Carrier) Enum() *HardwareCapabilities_Carrier
func (HardwareCapabilities_Carrier) EnumDescriptor
deprecated
func (HardwareCapabilities_Carrier) EnumDescriptor() ([]byte, []int)
Deprecated: Use HardwareCapabilities_Carrier.Descriptor instead.
func (HardwareCapabilities_Carrier) Number ¶
func (x HardwareCapabilities_Carrier) Number() protoreflect.EnumNumber
func (HardwareCapabilities_Carrier) String ¶
func (x HardwareCapabilities_Carrier) String() string
func (HardwareCapabilities_Carrier) Type ¶
func (HardwareCapabilities_Carrier) Type() protoreflect.EnumType
func (*HardwareCapabilities_Carrier) UnmarshalJSON
deprecated
func (x *HardwareCapabilities_Carrier) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type HardwareCapabilities_VideoAcceleration ¶
type HardwareCapabilities_VideoAcceleration int32
NEXT TAG: 13
const ( HardwareCapabilities_VIDEO_ACCELERATION_INVALID HardwareCapabilities_VideoAcceleration = 0 HardwareCapabilities_VIDEO_ACCELERATION_H264 HardwareCapabilities_VideoAcceleration = 1 HardwareCapabilities_VIDEO_ACCELERATION_ENC_H264 HardwareCapabilities_VideoAcceleration = 2 HardwareCapabilities_VIDEO_ACCELERATION_VP8 HardwareCapabilities_VideoAcceleration = 3 HardwareCapabilities_VIDEO_ACCELERATION_ENC_VP8 HardwareCapabilities_VideoAcceleration = 4 HardwareCapabilities_VIDEO_ACCELERATION_VP9 HardwareCapabilities_VideoAcceleration = 5 HardwareCapabilities_VIDEO_ACCELERATION_ENC_VP9 HardwareCapabilities_VideoAcceleration = 6 HardwareCapabilities_VIDEO_ACCELERATION_VP9_2 HardwareCapabilities_VideoAcceleration = 7 HardwareCapabilities_VIDEO_ACCELERATION_ENC_VP9_2 HardwareCapabilities_VideoAcceleration = 8 HardwareCapabilities_VIDEO_ACCELERATION_H265 HardwareCapabilities_VideoAcceleration = 9 HardwareCapabilities_VIDEO_ACCELERATION_ENC_H265 HardwareCapabilities_VideoAcceleration = 10 HardwareCapabilities_VIDEO_ACCELERATION_MJPG HardwareCapabilities_VideoAcceleration = 11 HardwareCapabilities_VIDEO_ACCELERATION_ENC_MJPG HardwareCapabilities_VideoAcceleration = 12 )
func (HardwareCapabilities_VideoAcceleration) Descriptor ¶
func (HardwareCapabilities_VideoAcceleration) Descriptor() protoreflect.EnumDescriptor
func (HardwareCapabilities_VideoAcceleration) EnumDescriptor
deprecated
func (HardwareCapabilities_VideoAcceleration) EnumDescriptor() ([]byte, []int)
Deprecated: Use HardwareCapabilities_VideoAcceleration.Descriptor instead.
func (HardwareCapabilities_VideoAcceleration) Number ¶
func (x HardwareCapabilities_VideoAcceleration) Number() protoreflect.EnumNumber
func (HardwareCapabilities_VideoAcceleration) String ¶
func (x HardwareCapabilities_VideoAcceleration) String() string
func (HardwareCapabilities_VideoAcceleration) Type ¶
func (HardwareCapabilities_VideoAcceleration) Type() protoreflect.EnumType
func (*HardwareCapabilities_VideoAcceleration) UnmarshalJSON
deprecated
func (x *HardwareCapabilities_VideoAcceleration) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type HardwareState ¶
type HardwareState int32
copy of enum from dut_state.proto The states are using for DUT storage and USB-drive on servo. Next Tag: 5
const ( // keep for all unknown state by default. HardwareState_HARDWARE_UNKNOWN HardwareState = 0 // Hardware is in good shape and pass all verifiers. HardwareState_HARDWARE_NORMAL HardwareState = 1 // Hardware is still good but some not critical verifiers did not pass or provided border values. // (used for DUT storage when usage reached 98%) HardwareState_HARDWARE_ACCEPTABLE HardwareState = 2 // Hardware is broken or bad (did not pass verifiers). HardwareState_HARDWARE_NEED_REPLACEMENT HardwareState = 3 // Hardware is not detected to run verifiers. // (used for USB-drive when it expected but not detected on the device) HardwareState_HARDWARE_NOT_DETECTED HardwareState = 4 )
func (HardwareState) Descriptor ¶
func (HardwareState) Descriptor() protoreflect.EnumDescriptor
func (HardwareState) Enum ¶
func (x HardwareState) Enum() *HardwareState
func (HardwareState) EnumDescriptor
deprecated
func (HardwareState) EnumDescriptor() ([]byte, []int)
Deprecated: Use HardwareState.Descriptor instead.
func (HardwareState) Number ¶
func (x HardwareState) Number() protoreflect.EnumNumber
func (HardwareState) String ¶
func (x HardwareState) String() string
func (HardwareState) Type ¶
func (HardwareState) Type() protoreflect.EnumType
func (*HardwareState) UnmarshalJSON
deprecated
func (x *HardwareState) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Infrastructure ¶
type Infrastructure struct { Servers []*Server `protobuf:"bytes,1,rep,name=servers" json:"servers,omitempty"` // contains filtered or unexported fields }
func LoadInfrastructure ¶
func LoadInfrastructure(dataDir string) (*Infrastructure, error)
LoadInfrastructure loads infrastructure information from the inventory data directory.
func (*Infrastructure) Descriptor
deprecated
func (*Infrastructure) Descriptor() ([]byte, []int)
Deprecated: Use Infrastructure.ProtoReflect.Descriptor instead.
func (*Infrastructure) GetServers ¶
func (x *Infrastructure) GetServers() []*Server
func (*Infrastructure) ProtoMessage ¶
func (*Infrastructure) ProtoMessage()
func (*Infrastructure) ProtoReflect ¶
func (x *Infrastructure) ProtoReflect() protoreflect.Message
func (*Infrastructure) Reset ¶
func (x *Infrastructure) Reset()
func (*Infrastructure) String ¶
func (x *Infrastructure) String() string
type KeyValue ¶
type KeyValue struct { Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 3
func (*KeyValue) Descriptor
deprecated
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) ProtoReflect ¶
func (x *KeyValue) ProtoReflect() protoreflect.Message
type Lab ¶
type Lab struct { Duts []*DeviceUnderTest `protobuf:"bytes,1,rep,name=duts" json:"duts,omitempty"` ServoHosts []*ServoHostDevice `protobuf:"bytes,2,rep,name=servo_hosts,json=servoHosts" json:"servo_hosts,omitempty"` Chamelons []*ChameleonDevice `protobuf:"bytes,3,rep,name=chamelons" json:"chamelons,omitempty"` ServoHostConnections []*ServoHostConnection `protobuf:"bytes,4,rep,name=servo_host_connections,json=servoHostConnections" json:"servo_host_connections,omitempty"` ChameleonConnections []*ChameleonConnection `protobuf:"bytes,5,rep,name=chameleon_connections,json=chameleonConnections" json:"chameleon_connections,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 6
func (*Lab) Descriptor
deprecated
func (*Lab) GetChameleonConnections ¶
func (x *Lab) GetChameleonConnections() []*ChameleonConnection
func (*Lab) GetChamelons ¶
func (x *Lab) GetChamelons() []*ChameleonDevice
func (*Lab) GetDuts ¶
func (x *Lab) GetDuts() []*DeviceUnderTest
func (*Lab) GetServoHostConnections ¶
func (x *Lab) GetServoHostConnections() []*ServoHostConnection
func (*Lab) GetServoHosts ¶
func (x *Lab) GetServoHosts() []*ServoHostDevice
func (*Lab) ProtoMessage ¶
func (*Lab) ProtoMessage()
func (*Lab) ProtoReflect ¶
func (x *Lab) ProtoReflect() protoreflect.Message
type License ¶
type License struct { // The type of licenses (e.g. Windows) Type *LicenseType `protobuf:"varint,1,opt,name=type,enum=chrome.chromeos_infra.skylab.proto.inventory.LicenseType" json:"type,omitempty"` // An optional string to uniquely identify the license that was assigned, // for tracking purposes. Identifier *string `protobuf:"bytes,2,opt,name=identifier" json:"identifier,omitempty"` // contains filtered or unexported fields }
Represents a Software License assigned to a device. Next Tag: 2
func NewLicense ¶
func NewLicense() *License
NewLicense returns a new zero value instance of License.
func (*License) Descriptor
deprecated
func (*License) GetIdentifier ¶
func (*License) GetType ¶
func (x *License) GetType() LicenseType
func (*License) ProtoMessage ¶
func (*License) ProtoMessage()
func (*License) ProtoReflect ¶
func (x *License) ProtoReflect() protoreflect.Message
type LicenseType ¶
type LicenseType int32
Next Tag: 3
const ( LicenseType_LICENSE_TYPE_UNSPECIFIED LicenseType = 0 // Microsoft Windows 10 Professional Desktop Operating System. // Contact the Chrome OS Parallels team for license specifics. LicenseType_LICENSE_TYPE_WINDOWS_10_PRO LicenseType = 1 // Microsoft Office Standard. // Contact the Chrome OS Parallels team for license specifics. LicenseType_LICENSE_TYPE_MS_OFFICE_STANDARD LicenseType = 2 )
func (LicenseType) Descriptor ¶
func (LicenseType) Descriptor() protoreflect.EnumDescriptor
func (LicenseType) Enum ¶
func (x LicenseType) Enum() *LicenseType
func (LicenseType) EnumDescriptor
deprecated
func (LicenseType) EnumDescriptor() ([]byte, []int)
Deprecated: Use LicenseType.Descriptor instead.
func (LicenseType) Number ¶
func (x LicenseType) Number() protoreflect.EnumNumber
func (LicenseType) String ¶
func (x LicenseType) String() string
func (LicenseType) Type ¶
func (LicenseType) Type() protoreflect.EnumType
func (*LicenseType) UnmarshalJSON
deprecated
func (x *LicenseType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Location ¶
type Location struct { Lab *PhysicalLab `protobuf:"bytes,1,req,name=lab" json:"lab,omitempty"` Row *int32 `protobuf:"varint,2,req,name=row" json:"row,omitempty"` Rack *int32 `protobuf:"varint,3,req,name=rack" json:"rack,omitempty"` Host *int32 `protobuf:"varint,4,req,name=host" json:"host,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 5
func (*Location) Descriptor
deprecated
func (*Location) GetLab ¶
func (x *Location) GetLab() *PhysicalLab
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type PeripheralState ¶
type PeripheralState int32
copy of enum from dut_state.proto Next Tag: 22
const ( // Please keep for all unknown states. PeripheralState_UNKNOWN PeripheralState = 0 // Device and software on it is working as expected. PeripheralState_WORKING PeripheralState = 1 // Configuration for device is not provided. PeripheralState_MISSING_CONFIG PeripheralState = 5 // Configuration contains incorrect information. PeripheralState_WRONG_CONFIG PeripheralState = 4 // Device is not connected/plugged. PeripheralState_NOT_CONNECTED PeripheralState = 2 // Device is not reachable over ssh. PeripheralState_NO_SSH PeripheralState = 6 // Device is broken or not working as expected. the state used if no specified state for the issue. PeripheralState_BROKEN PeripheralState = 3 // Device cannot be repaired or required manual attention to fix/replace it. PeripheralState_NEED_REPLACEMENT PeripheralState = 7 // Servo specific states. // cr50 console missing or unresponsive. PeripheralState_CR50_CONSOLE_MISSING PeripheralState = 13 // Servod daemon cannot start on servo-host because cr50 testlab not enabled. PeripheralState_CCD_TESTLAB_ISSUE PeripheralState = 8 // Servod daemon cannot start on servo-host. PeripheralState_SERVOD_ISSUE PeripheralState = 9 // device lid is not open. PeripheralState_LID_OPEN_FAILED PeripheralState = 10 // the ribbon cable between servo and DUT is broken or not connected. PeripheralState_BAD_RIBBON_CABLE PeripheralState = 11 // the EC on the DUT has issue. PeripheralState_EC_BROKEN PeripheralState = 12 // Servo is not connected to the DUT. PeripheralState_DUT_NOT_CONNECTED PeripheralState = 14 // Some component in servo-topology missed or not detected. PeripheralState_TOPOLOGY_ISSUE PeripheralState = 15 // SBU voltage issues effect CR50 detection. PeripheralState_SBU_LOW_VOLTAGE PeripheralState = 16 // CR50 SBU voltage detected but device was not enumerated. PeripheralState_CR50_NOT_ENUMERATED PeripheralState = 17 // Servo serial mismatch, when servo not detected and another serial detected on previous used port. PeripheralState_SERVO_SERIAL_MISMATCH PeripheralState = 18 // Issue to connect to servod by XMLRPC proxy. PeripheralState_SERVOD_PROXY_ISSUE PeripheralState = 19 // Issue related to servo-host. Timeout to start servod or issue with detecting devices. PeripheralState_SERVO_HOST_ISSUE PeripheralState = 20 // Issue related to servo_updater. PeripheralState_SERVO_UPDATER_ISSUE PeripheralState = 21 )
func (PeripheralState) Descriptor ¶
func (PeripheralState) Descriptor() protoreflect.EnumDescriptor
func (PeripheralState) Enum ¶
func (x PeripheralState) Enum() *PeripheralState
func (PeripheralState) EnumDescriptor
deprecated
func (PeripheralState) EnumDescriptor() ([]byte, []int)
Deprecated: Use PeripheralState.Descriptor instead.
func (PeripheralState) Number ¶
func (x PeripheralState) Number() protoreflect.EnumNumber
func (PeripheralState) String ¶
func (x PeripheralState) String() string
func (PeripheralState) Type ¶
func (PeripheralState) Type() protoreflect.EnumType
func (*PeripheralState) UnmarshalJSON
deprecated
func (x *PeripheralState) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Peripherals ¶
type Peripherals struct { AudioBoard *bool `protobuf:"varint,6,opt,name=audio_board,json=audioBoard" json:"audio_board,omitempty"` // The DUT is housed in an audio box to record / replay audio for audio // testing. AudioBox *bool `protobuf:"varint,7,opt,name=audio_box,json=audioBox" json:"audio_box,omitempty"` // Is the DUT connected with a static 3.5mm audio cable. AudioCable *bool `protobuf:"varint,23,opt,name=audio_cable,json=audioCable" json:"audio_cable,omitempty"` AudioLoopbackDongle *bool `protobuf:"varint,1,opt,name=audio_loopback_dongle,json=audioLoopbackDongle" json:"audio_loopback_dongle,omitempty"` // Is this device connected to a chameleon (GVC head). Chameleon *bool `protobuf:"varint,5,opt,name=chameleon" json:"chameleon,omitempty"` ChameleonType []Peripherals_ChameleonType `` /* 171-byte string literal not displayed */ // Whether DUT WiFi antenna is connected conductively or OTA. Conductive *bool `protobuf:"varint,11,opt,name=conductive" json:"conductive,omitempty"` Huddly *bool `protobuf:"varint,9,opt,name=huddly" json:"huddly,omitempty"` Mimo *bool `protobuf:"varint,8,opt,name=mimo" json:"mimo,omitempty"` // Whether a DUT has a special camera (Logitech PTZ Pro 2) connected to it. Ptzpro2 *bool `protobuf:"varint,12,opt,name=ptzpro2" json:"ptzpro2,omitempty"` Servo *bool `protobuf:"varint,2,opt,name=servo" json:"servo,omitempty"` ServoState *PeripheralState `` /* 152-byte string literal not displayed */ ServoType *string `protobuf:"bytes,17,opt,name=servo_type,json=servoType" json:"servo_type,omitempty"` ServoTopology *ServoTopology `protobuf:"bytes,24,opt,name=servo_topology,json=servoTopology" json:"servo_topology,omitempty"` ServoFwChannel *ServoFwChannel `` /* 165-byte string literal not displayed */ SmartUsbhub *bool `protobuf:"varint,21,opt,name=smart_usbhub,json=smartUsbhub" json:"smart_usbhub,omitempty"` Stylus *bool `protobuf:"varint,3,opt,name=stylus" json:"stylus,omitempty"` Camerabox *bool `protobuf:"varint,13,opt,name=camerabox" json:"camerabox,omitempty"` // Is this device inside a hermetic wifi cell. Wificell *bool `protobuf:"varint,4,opt,name=wificell" json:"wificell,omitempty"` // Indicate if the device is in a pre-setup environment with 802.11ax routers. // crbug.com/1044786 Router_802_11Ax *bool `protobuf:"varint,14,opt,name=router_802_11ax,json=router80211ax" json:"router_802_11ax,omitempty"` // Indicate how many working btpeers for this device: crbug.com/1052511 WorkingBluetoothBtpeer *int32 `protobuf:"varint,16,opt,name=working_bluetooth_btpeer,json=workingBluetoothBtpeer" json:"working_bluetooth_btpeer,omitempty"` CameraboxFacing *Peripherals_CameraboxFacing `` /* 179-byte string literal not displayed */ CameraboxLight *Peripherals_CameraboxLight `` /* 175-byte string literal not displayed */ StorageState *HardwareState `` /* 156-byte string literal not displayed */ ServoUsbState *HardwareState `` /* 161-byte string literal not displayed */ BatteryState *HardwareState `` /* 156-byte string literal not displayed */ WifiState *HardwareState `` /* 147-byte string literal not displayed */ BluetoothState *HardwareState `` /* 162-byte string literal not displayed */ RpmState *PeripheralState `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
Peripherals list peripherals connected to the device in the lab.
These peripherals are not addressable as devices themselves. For peripherals that have complex connections with devices, create a separate device and connections with other devices.
Keep sorted by field names.
NEXT TAG: 30
func (*Peripherals) Descriptor
deprecated
func (*Peripherals) Descriptor() ([]byte, []int)
Deprecated: Use Peripherals.ProtoReflect.Descriptor instead.
func (*Peripherals) GetAudioBoard ¶
func (x *Peripherals) GetAudioBoard() bool
func (*Peripherals) GetAudioBox ¶
func (x *Peripherals) GetAudioBox() bool
func (*Peripherals) GetAudioCable ¶
func (x *Peripherals) GetAudioCable() bool
func (*Peripherals) GetAudioLoopbackDongle ¶
func (x *Peripherals) GetAudioLoopbackDongle() bool
func (*Peripherals) GetBatteryState ¶
func (x *Peripherals) GetBatteryState() HardwareState
func (*Peripherals) GetBluetoothState ¶
func (x *Peripherals) GetBluetoothState() HardwareState
func (*Peripherals) GetCamerabox ¶
func (x *Peripherals) GetCamerabox() bool
func (*Peripherals) GetCameraboxFacing ¶
func (x *Peripherals) GetCameraboxFacing() Peripherals_CameraboxFacing
func (*Peripherals) GetCameraboxLight ¶
func (x *Peripherals) GetCameraboxLight() Peripherals_CameraboxLight
func (*Peripherals) GetChameleon ¶
func (x *Peripherals) GetChameleon() bool
func (*Peripherals) GetChameleonType ¶
func (x *Peripherals) GetChameleonType() []Peripherals_ChameleonType
func (*Peripherals) GetConductive ¶
func (x *Peripherals) GetConductive() bool
func (*Peripherals) GetHuddly ¶
func (x *Peripherals) GetHuddly() bool
func (*Peripherals) GetMimo ¶
func (x *Peripherals) GetMimo() bool
func (*Peripherals) GetPtzpro2 ¶
func (x *Peripherals) GetPtzpro2() bool
func (*Peripherals) GetRouter_802_11Ax ¶
func (x *Peripherals) GetRouter_802_11Ax() bool
func (*Peripherals) GetRpmState ¶
func (x *Peripherals) GetRpmState() PeripheralState
func (*Peripherals) GetServo ¶
func (x *Peripherals) GetServo() bool
func (*Peripherals) GetServoFwChannel ¶
func (x *Peripherals) GetServoFwChannel() ServoFwChannel
func (*Peripherals) GetServoState ¶
func (x *Peripherals) GetServoState() PeripheralState
func (*Peripherals) GetServoTopology ¶
func (x *Peripherals) GetServoTopology() *ServoTopology
func (*Peripherals) GetServoType ¶
func (x *Peripherals) GetServoType() string
func (*Peripherals) GetServoUsbState ¶
func (x *Peripherals) GetServoUsbState() HardwareState
func (*Peripherals) GetSmartUsbhub ¶
func (x *Peripherals) GetSmartUsbhub() bool
func (*Peripherals) GetStorageState ¶
func (x *Peripherals) GetStorageState() HardwareState
func (*Peripherals) GetStylus ¶
func (x *Peripherals) GetStylus() bool
func (*Peripherals) GetWifiState ¶
func (x *Peripherals) GetWifiState() HardwareState
func (*Peripherals) GetWificell ¶
func (x *Peripherals) GetWificell() bool
func (*Peripherals) GetWorkingBluetoothBtpeer ¶
func (x *Peripherals) GetWorkingBluetoothBtpeer() int32
func (*Peripherals) ProtoMessage ¶
func (*Peripherals) ProtoMessage()
func (*Peripherals) ProtoReflect ¶
func (x *Peripherals) ProtoReflect() protoreflect.Message
func (*Peripherals) Reset ¶
func (x *Peripherals) Reset()
func (*Peripherals) String ¶
func (x *Peripherals) String() string
type Peripherals_CameraboxFacing ¶
type Peripherals_CameraboxFacing int32
Facing of DUT's camera to be tested whose FOV should cover chart tablet's screen in camerabox setup. NEXT TAG: 3
const ( Peripherals_CAMERABOX_FACING_UNKNOWN Peripherals_CameraboxFacing = 0 Peripherals_CAMERABOX_FACING_BACK Peripherals_CameraboxFacing = 1 Peripherals_CAMERABOX_FACING_FRONT Peripherals_CameraboxFacing = 2 )
func (Peripherals_CameraboxFacing) Descriptor ¶
func (Peripherals_CameraboxFacing) Descriptor() protoreflect.EnumDescriptor
func (Peripherals_CameraboxFacing) Enum ¶
func (x Peripherals_CameraboxFacing) Enum() *Peripherals_CameraboxFacing
func (Peripherals_CameraboxFacing) EnumDescriptor
deprecated
func (Peripherals_CameraboxFacing) EnumDescriptor() ([]byte, []int)
Deprecated: Use Peripherals_CameraboxFacing.Descriptor instead.
func (Peripherals_CameraboxFacing) Number ¶
func (x Peripherals_CameraboxFacing) Number() protoreflect.EnumNumber
func (Peripherals_CameraboxFacing) String ¶
func (x Peripherals_CameraboxFacing) String() string
func (Peripherals_CameraboxFacing) Type ¶
func (Peripherals_CameraboxFacing) Type() protoreflect.EnumType
func (*Peripherals_CameraboxFacing) UnmarshalJSON
deprecated
func (x *Peripherals_CameraboxFacing) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Peripherals_CameraboxLight ¶
type Peripherals_CameraboxLight int32
External light source in the camerabox, LED or NOLED. NEXT TAG: 3
const ( Peripherals_CAMERABOX_LIGHT_UNKNOWN Peripherals_CameraboxLight = 0 Peripherals_CAMERABOX_LIGHT_LED Peripherals_CameraboxLight = 1 Peripherals_CAMERABOX_LIGHT_NOLED Peripherals_CameraboxLight = 2 )
func (Peripherals_CameraboxLight) Descriptor ¶
func (Peripherals_CameraboxLight) Descriptor() protoreflect.EnumDescriptor
func (Peripherals_CameraboxLight) Enum ¶
func (x Peripherals_CameraboxLight) Enum() *Peripherals_CameraboxLight
func (Peripherals_CameraboxLight) EnumDescriptor
deprecated
func (Peripherals_CameraboxLight) EnumDescriptor() ([]byte, []int)
Deprecated: Use Peripherals_CameraboxLight.Descriptor instead.
func (Peripherals_CameraboxLight) Number ¶
func (x Peripherals_CameraboxLight) Number() protoreflect.EnumNumber
func (Peripherals_CameraboxLight) String ¶
func (x Peripherals_CameraboxLight) String() string
func (Peripherals_CameraboxLight) Type ¶
func (Peripherals_CameraboxLight) Type() protoreflect.EnumType
func (*Peripherals_CameraboxLight) UnmarshalJSON
deprecated
func (x *Peripherals_CameraboxLight) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Peripherals_ChameleonType ¶
type Peripherals_ChameleonType int32
NEXT TAG: 9
const ( Peripherals_CHAMELEON_TYPE_INVALID Peripherals_ChameleonType = 0 Peripherals_CHAMELEON_TYPE_DP Peripherals_ChameleonType = 2 Peripherals_CHAMELEON_TYPE_DP_HDMI Peripherals_ChameleonType = 3 Peripherals_CHAMELEON_TYPE_VGA Peripherals_ChameleonType = 4 Peripherals_CHAMELEON_TYPE_HDMI Peripherals_ChameleonType = 5 )
func (Peripherals_ChameleonType) Descriptor ¶
func (Peripherals_ChameleonType) Descriptor() protoreflect.EnumDescriptor
func (Peripherals_ChameleonType) Enum ¶
func (x Peripherals_ChameleonType) Enum() *Peripherals_ChameleonType
func (Peripherals_ChameleonType) EnumDescriptor
deprecated
func (Peripherals_ChameleonType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Peripherals_ChameleonType.Descriptor instead.
func (Peripherals_ChameleonType) Number ¶
func (x Peripherals_ChameleonType) Number() protoreflect.EnumNumber
func (Peripherals_ChameleonType) String ¶
func (x Peripherals_ChameleonType) String() string
func (Peripherals_ChameleonType) Type ¶
func (Peripherals_ChameleonType) Type() protoreflect.EnumType
func (*Peripherals_ChameleonType) UnmarshalJSON
deprecated
func (x *Peripherals_ChameleonType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type PhysicalLab ¶
type PhysicalLab struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 2
func (*PhysicalLab) Descriptor
deprecated
func (*PhysicalLab) Descriptor() ([]byte, []int)
Deprecated: Use PhysicalLab.ProtoReflect.Descriptor instead.
func (*PhysicalLab) GetName ¶
func (x *PhysicalLab) GetName() string
func (*PhysicalLab) ProtoMessage ¶
func (*PhysicalLab) ProtoMessage()
func (*PhysicalLab) ProtoReflect ¶
func (x *PhysicalLab) ProtoReflect() protoreflect.Message
func (*PhysicalLab) Reset ¶
func (x *PhysicalLab) Reset()
func (*PhysicalLab) String ¶
func (x *PhysicalLab) String() string
type RemovalReason ¶
type RemovalReason struct { // bug is a link to a bug in crbug.com or other bug tracker. Required. Bug *string `protobuf:"bytes,1,opt,name=bug" json:"bug,omitempty"` // comment should be a short comment to provide quick context for // the removal reason. This should not be used as a replacement for // keeping the bug up to date with context. Comment *string `protobuf:"bytes,2,opt,name=comment" json:"comment,omitempty"` // expire_time indicates when the reason for removal should be // revisited so that DUTs don't get forgotten. Required. ExpireTime *Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime" json:"expire_time,omitempty"` // contains filtered or unexported fields }
RemovalReason describes the reason for a DUT being removed from running tasks. See also go/skylab-dut-removal-reason NEXT TAG: 4
func (*RemovalReason) Descriptor
deprecated
func (*RemovalReason) Descriptor() ([]byte, []int)
Deprecated: Use RemovalReason.ProtoReflect.Descriptor instead.
func (*RemovalReason) GetBug ¶
func (x *RemovalReason) GetBug() string
func (*RemovalReason) GetComment ¶
func (x *RemovalReason) GetComment() string
func (*RemovalReason) GetExpireTime ¶
func (x *RemovalReason) GetExpireTime() *Timestamp
func (*RemovalReason) ProtoMessage ¶
func (*RemovalReason) ProtoMessage()
func (*RemovalReason) ProtoReflect ¶
func (x *RemovalReason) ProtoReflect() protoreflect.Message
func (*RemovalReason) Reset ¶
func (x *RemovalReason) Reset()
func (*RemovalReason) String ¶
func (x *RemovalReason) String() string
type SchedulableLabels ¶
type SchedulableLabels struct { // Whether this device supports ARC execution environment. Arc *bool `protobuf:"varint,20,opt,name=arc" json:"arc,omitempty"` // TODO(pprabhu) This should be an enum shared with stable_versions.proto // But there are 171 of them... Board *string `protobuf:"bytes,2,opt,name=board" json:"board,omitempty"` // This matches the brand id in chromiumos/infra/proto/src/device/brand_id.proto Brand *string `protobuf:"bytes,26,opt,name=brand" json:"brand,omitempty"` Capabilities *HardwareCapabilities `protobuf:"bytes,5,opt,name=capabilities" json:"capabilities,omitempty"` Cr50Phase *SchedulableLabels_CR50_Phase `` /* 162-byte string literal not displayed */ // Example: cr50-ro-keyid:prod // Example: cr50-ro-keyid:0xaa66150f Cr50RoKeyid *string `protobuf:"bytes,28,opt,name=cr50_ro_keyid,json=cr50RoKeyid" json:"cr50_ro_keyid,omitempty"` // Example: cr50-ro-version:0.0.10 Cr50RoVersion *string `protobuf:"bytes,29,opt,name=cr50_ro_version,json=cr50RoVersion" json:"cr50_ro_version,omitempty"` // Example: cr50-rw-keyid:prod // Example: cr50-rw-keyid:0xde88588d Cr50RwKeyid *string `protobuf:"bytes,30,opt,name=cr50_rw_keyid,json=cr50RwKeyid" json:"cr50_rw_keyid,omitempty"` // Example:cr50-rw-version:0.3.20 Cr50RwVersion *string `protobuf:"bytes,31,opt,name=cr50_rw_version,json=cr50RwVersion" json:"cr50_rw_version,omitempty"` CriticalPools []SchedulableLabels_DUTPool `` /* 170-byte string literal not displayed */ CtsAbi []SchedulableLabels_CTSABI `` /* 149-byte string literal not displayed */ CtsCpu []SchedulableLabels_CTSCPU `` /* 149-byte string literal not displayed */ EcType *SchedulableLabels_ECType `` /* 149-byte string literal not displayed */ HwidComponent []string `protobuf:"bytes,33,rep,name=hwid_component,json=hwidComponent" json:"hwid_component,omitempty"` // crbug.com/994200: this matches to label "sku" in autotest. HwidSku *string `protobuf:"bytes,27,opt,name=hwid_sku,json=hwidSku" json:"hwid_sku,omitempty"` // The set of software licenses assigned to the device. Licenses []*License `protobuf:"bytes,34,rep,name=licenses" json:"licenses,omitempty"` Model *string `protobuf:"bytes,13,opt,name=model" json:"model,omitempty"` Sku *string `protobuf:"bytes,25,opt,name=sku" json:"sku,omitempty"` OsType *SchedulableLabels_OSType `` /* 149-byte string literal not displayed */ Peripherals *Peripherals `protobuf:"bytes,19,opt,name=peripherals" json:"peripherals,omitempty"` Phase *SchedulableLabels_Phase `` /* 132-byte string literal not displayed */ // TODO(pprabhu) This should be an enum shared with stable_versions.proto // But there are 171 of them... Platform *string `protobuf:"bytes,1,opt,name=platform" json:"platform,omitempty"` ReferenceDesign *string `protobuf:"bytes,24,opt,name=reference_design,json=referenceDesign" json:"reference_design,omitempty"` SelfServePools []string `protobuf:"bytes,4,rep,name=self_serve_pools,json=selfServePools" json:"self_serve_pools,omitempty"` TestCoverageHints *TestCoverageHints `protobuf:"bytes,18,opt,name=test_coverage_hints,json=testCoverageHints" json:"test_coverage_hints,omitempty"` // useless_switch does nothing. Like a useless machine, if set to // true, automatic label updates should set this back to false. // This can be used to test that automated updates are firing // correctly. UselessSwitch *bool `protobuf:"varint,23,opt,name=useless_switch,json=uselessSwitch" json:"useless_switch,omitempty"` Variant []string `protobuf:"bytes,17,rep,name=variant" json:"variant,omitempty"` // Come from manufacturing config: crbug.com/1046971 WifiChip *string `protobuf:"bytes,32,opt,name=wifi_chip,json=wifiChip" json:"wifi_chip,omitempty"` // contains filtered or unexported fields }
These labels are used for scheduling decisions in skylab. They should be semantically known to the inventory service to allow filtering based on them. (i.e., no "extra_labels" field down here)
Keep sorted by field name.
NEXT TAG: 35
func NewSchedulableLabels ¶
func NewSchedulableLabels() *SchedulableLabels
NewSchedulableLabels returns a new zero value instance of SchedulableLabels.
func (*SchedulableLabels) Descriptor
deprecated
func (*SchedulableLabels) Descriptor() ([]byte, []int)
Deprecated: Use SchedulableLabels.ProtoReflect.Descriptor instead.
func (*SchedulableLabels) GetArc ¶
func (x *SchedulableLabels) GetArc() bool
func (*SchedulableLabels) GetBoard ¶
func (x *SchedulableLabels) GetBoard() string
func (*SchedulableLabels) GetBrand ¶
func (x *SchedulableLabels) GetBrand() string
func (*SchedulableLabels) GetCapabilities ¶
func (x *SchedulableLabels) GetCapabilities() *HardwareCapabilities
func (*SchedulableLabels) GetCr50Phase ¶
func (x *SchedulableLabels) GetCr50Phase() SchedulableLabels_CR50_Phase
func (*SchedulableLabels) GetCr50RoKeyid ¶
func (x *SchedulableLabels) GetCr50RoKeyid() string
func (*SchedulableLabels) GetCr50RoVersion ¶
func (x *SchedulableLabels) GetCr50RoVersion() string
func (*SchedulableLabels) GetCr50RwKeyid ¶
func (x *SchedulableLabels) GetCr50RwKeyid() string
func (*SchedulableLabels) GetCr50RwVersion ¶
func (x *SchedulableLabels) GetCr50RwVersion() string
func (*SchedulableLabels) GetCriticalPools ¶
func (x *SchedulableLabels) GetCriticalPools() []SchedulableLabels_DUTPool
func (*SchedulableLabels) GetCtsAbi ¶
func (x *SchedulableLabels) GetCtsAbi() []SchedulableLabels_CTSABI
func (*SchedulableLabels) GetCtsCpu ¶
func (x *SchedulableLabels) GetCtsCpu() []SchedulableLabels_CTSCPU
func (*SchedulableLabels) GetEcType ¶
func (x *SchedulableLabels) GetEcType() SchedulableLabels_ECType
func (*SchedulableLabels) GetHwidComponent ¶
func (x *SchedulableLabels) GetHwidComponent() []string
func (*SchedulableLabels) GetHwidSku ¶
func (x *SchedulableLabels) GetHwidSku() string
func (*SchedulableLabels) GetLicenses ¶
func (x *SchedulableLabels) GetLicenses() []*License
func (*SchedulableLabels) GetModel ¶
func (x *SchedulableLabels) GetModel() string
func (*SchedulableLabels) GetOsType ¶
func (x *SchedulableLabels) GetOsType() SchedulableLabels_OSType
func (*SchedulableLabels) GetPeripherals ¶
func (x *SchedulableLabels) GetPeripherals() *Peripherals
func (*SchedulableLabels) GetPhase ¶
func (x *SchedulableLabels) GetPhase() SchedulableLabels_Phase
func (*SchedulableLabels) GetPlatform ¶
func (x *SchedulableLabels) GetPlatform() string
func (*SchedulableLabels) GetReferenceDesign ¶
func (x *SchedulableLabels) GetReferenceDesign() string
func (*SchedulableLabels) GetSelfServePools ¶
func (x *SchedulableLabels) GetSelfServePools() []string
func (*SchedulableLabels) GetSku ¶
func (x *SchedulableLabels) GetSku() string
func (*SchedulableLabels) GetTestCoverageHints ¶
func (x *SchedulableLabels) GetTestCoverageHints() *TestCoverageHints
func (*SchedulableLabels) GetUselessSwitch ¶
func (x *SchedulableLabels) GetUselessSwitch() bool
func (*SchedulableLabels) GetVariant ¶
func (x *SchedulableLabels) GetVariant() []string
func (*SchedulableLabels) GetWifiChip ¶
func (x *SchedulableLabels) GetWifiChip() string
func (*SchedulableLabels) ProtoMessage ¶
func (*SchedulableLabels) ProtoMessage()
func (*SchedulableLabels) ProtoReflect ¶
func (x *SchedulableLabels) ProtoReflect() protoreflect.Message
func (*SchedulableLabels) Reset ¶
func (x *SchedulableLabels) Reset()
func (*SchedulableLabels) String ¶
func (x *SchedulableLabels) String() string
type SchedulableLabels_CR50_Phase ¶
type SchedulableLabels_CR50_Phase int32
Similar to device phases, but for the cr50 module onboard.
NEXT TAG: 3
const ( SchedulableLabels_CR50_PHASE_INVALID SchedulableLabels_CR50_Phase = 0 SchedulableLabels_CR50_PHASE_PREPVT SchedulableLabels_CR50_Phase = 1 SchedulableLabels_CR50_PHASE_PVT SchedulableLabels_CR50_Phase = 2 )
func (SchedulableLabels_CR50_Phase) Descriptor ¶
func (SchedulableLabels_CR50_Phase) Descriptor() protoreflect.EnumDescriptor
func (SchedulableLabels_CR50_Phase) Enum ¶
func (x SchedulableLabels_CR50_Phase) Enum() *SchedulableLabels_CR50_Phase
func (SchedulableLabels_CR50_Phase) EnumDescriptor
deprecated
func (SchedulableLabels_CR50_Phase) EnumDescriptor() ([]byte, []int)
Deprecated: Use SchedulableLabels_CR50_Phase.Descriptor instead.
func (SchedulableLabels_CR50_Phase) Number ¶
func (x SchedulableLabels_CR50_Phase) Number() protoreflect.EnumNumber
func (SchedulableLabels_CR50_Phase) String ¶
func (x SchedulableLabels_CR50_Phase) String() string
func (SchedulableLabels_CR50_Phase) Type ¶
func (SchedulableLabels_CR50_Phase) Type() protoreflect.EnumType
func (*SchedulableLabels_CR50_Phase) UnmarshalJSON
deprecated
func (x *SchedulableLabels_CR50_Phase) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type SchedulableLabels_CTSABI ¶
type SchedulableLabels_CTSABI int32
NEXT TAG: 3
const ( SchedulableLabels_CTS_ABI_INVALID SchedulableLabels_CTSABI = 0 SchedulableLabels_CTS_ABI_ARM SchedulableLabels_CTSABI = 1 SchedulableLabels_CTS_ABI_X86 SchedulableLabels_CTSABI = 2 )
func (SchedulableLabels_CTSABI) Descriptor ¶
func (SchedulableLabels_CTSABI) Descriptor() protoreflect.EnumDescriptor
func (SchedulableLabels_CTSABI) Enum ¶
func (x SchedulableLabels_CTSABI) Enum() *SchedulableLabels_CTSABI
func (SchedulableLabels_CTSABI) EnumDescriptor
deprecated
func (SchedulableLabels_CTSABI) EnumDescriptor() ([]byte, []int)
Deprecated: Use SchedulableLabels_CTSABI.Descriptor instead.
func (SchedulableLabels_CTSABI) Number ¶
func (x SchedulableLabels_CTSABI) Number() protoreflect.EnumNumber
func (SchedulableLabels_CTSABI) String ¶
func (x SchedulableLabels_CTSABI) String() string
func (SchedulableLabels_CTSABI) Type ¶
func (SchedulableLabels_CTSABI) Type() protoreflect.EnumType
func (*SchedulableLabels_CTSABI) UnmarshalJSON
deprecated
func (x *SchedulableLabels_CTSABI) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type SchedulableLabels_CTSCPU ¶
type SchedulableLabels_CTSCPU int32
NEXT TAG: 3
const ( SchedulableLabels_CTS_CPU_INVALID SchedulableLabels_CTSCPU = 0 SchedulableLabels_CTS_CPU_ARM SchedulableLabels_CTSCPU = 1 SchedulableLabels_CTS_CPU_X86 SchedulableLabels_CTSCPU = 2 )
func (SchedulableLabels_CTSCPU) Descriptor ¶
func (SchedulableLabels_CTSCPU) Descriptor() protoreflect.EnumDescriptor
func (SchedulableLabels_CTSCPU) Enum ¶
func (x SchedulableLabels_CTSCPU) Enum() *SchedulableLabels_CTSCPU
func (SchedulableLabels_CTSCPU) EnumDescriptor
deprecated
func (SchedulableLabels_CTSCPU) EnumDescriptor() ([]byte, []int)
Deprecated: Use SchedulableLabels_CTSCPU.Descriptor instead.
func (SchedulableLabels_CTSCPU) Number ¶
func (x SchedulableLabels_CTSCPU) Number() protoreflect.EnumNumber
func (SchedulableLabels_CTSCPU) String ¶
func (x SchedulableLabels_CTSCPU) String() string
func (SchedulableLabels_CTSCPU) Type ¶
func (SchedulableLabels_CTSCPU) Type() protoreflect.EnumType
func (*SchedulableLabels_CTSCPU) UnmarshalJSON
deprecated
func (x *SchedulableLabels_CTSCPU) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type SchedulableLabels_DUTPool ¶
type SchedulableLabels_DUTPool int32
critical_pools are pool labels that the builders are dependent on, and that the cros-infra team is responsible for managing explicitly. All other pool labels used for adhoc labeling of DUTs go into self_serve_pools.
NEXT TAG: 9
const ( SchedulableLabels_DUT_POOL_INVALID SchedulableLabels_DUTPool = 0 SchedulableLabels_DUT_POOL_CQ SchedulableLabels_DUTPool = 1 SchedulableLabels_DUT_POOL_BVT SchedulableLabels_DUTPool = 2 SchedulableLabels_DUT_POOL_SUITES SchedulableLabels_DUTPool = 3 SchedulableLabels_DUT_POOL_CTS SchedulableLabels_DUTPool = 4 SchedulableLabels_DUT_POOL_CTS_PERBUILD SchedulableLabels_DUTPool = 5 SchedulableLabels_DUT_POOL_CONTINUOUS SchedulableLabels_DUTPool = 6 SchedulableLabels_DUT_POOL_ARC_PRESUBMIT SchedulableLabels_DUTPool = 7 SchedulableLabels_DUT_POOL_QUOTA SchedulableLabels_DUTPool = 8 )
func (SchedulableLabels_DUTPool) Descriptor ¶
func (SchedulableLabels_DUTPool) Descriptor() protoreflect.EnumDescriptor
func (SchedulableLabels_DUTPool) Enum ¶
func (x SchedulableLabels_DUTPool) Enum() *SchedulableLabels_DUTPool
func (SchedulableLabels_DUTPool) EnumDescriptor
deprecated
func (SchedulableLabels_DUTPool) EnumDescriptor() ([]byte, []int)
Deprecated: Use SchedulableLabels_DUTPool.Descriptor instead.
func (SchedulableLabels_DUTPool) Number ¶
func (x SchedulableLabels_DUTPool) Number() protoreflect.EnumNumber
func (SchedulableLabels_DUTPool) String ¶
func (x SchedulableLabels_DUTPool) String() string
func (SchedulableLabels_DUTPool) Type ¶
func (SchedulableLabels_DUTPool) Type() protoreflect.EnumType
func (*SchedulableLabels_DUTPool) UnmarshalJSON
deprecated
func (x *SchedulableLabels_DUTPool) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type SchedulableLabels_ECType ¶
type SchedulableLabels_ECType int32
NEXT TAG: 2
const ( SchedulableLabels_EC_TYPE_INVALID SchedulableLabels_ECType = 0 SchedulableLabels_EC_TYPE_CHROME_OS SchedulableLabels_ECType = 1 )
func (SchedulableLabels_ECType) Descriptor ¶
func (SchedulableLabels_ECType) Descriptor() protoreflect.EnumDescriptor
func (SchedulableLabels_ECType) Enum ¶
func (x SchedulableLabels_ECType) Enum() *SchedulableLabels_ECType
func (SchedulableLabels_ECType) EnumDescriptor
deprecated
func (SchedulableLabels_ECType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SchedulableLabels_ECType.Descriptor instead.
func (SchedulableLabels_ECType) Number ¶
func (x SchedulableLabels_ECType) Number() protoreflect.EnumNumber
func (SchedulableLabels_ECType) String ¶
func (x SchedulableLabels_ECType) String() string
func (SchedulableLabels_ECType) Type ¶
func (SchedulableLabels_ECType) Type() protoreflect.EnumType
func (*SchedulableLabels_ECType) UnmarshalJSON
deprecated
func (x *SchedulableLabels_ECType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type SchedulableLabels_OSType ¶
type SchedulableLabels_OSType int32
NEXT TAG: 6
const ( SchedulableLabels_OS_TYPE_INVALID SchedulableLabels_OSType = 0 SchedulableLabels_OS_TYPE_ANDROID SchedulableLabels_OSType = 1 SchedulableLabels_OS_TYPE_CROS SchedulableLabels_OSType = 2 SchedulableLabels_OS_TYPE_JETSTREAM SchedulableLabels_OSType = 3 SchedulableLabels_OS_TYPE_MOBLAB SchedulableLabels_OSType = 4 SchedulableLabels_OS_TYPE_LABSTATION SchedulableLabels_OSType = 5 )
func (SchedulableLabels_OSType) Descriptor ¶
func (SchedulableLabels_OSType) Descriptor() protoreflect.EnumDescriptor
func (SchedulableLabels_OSType) Enum ¶
func (x SchedulableLabels_OSType) Enum() *SchedulableLabels_OSType
func (SchedulableLabels_OSType) EnumDescriptor
deprecated
func (SchedulableLabels_OSType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SchedulableLabels_OSType.Descriptor instead.
func (SchedulableLabels_OSType) Number ¶
func (x SchedulableLabels_OSType) Number() protoreflect.EnumNumber
func (SchedulableLabels_OSType) String ¶
func (x SchedulableLabels_OSType) String() string
func (SchedulableLabels_OSType) Type ¶
func (SchedulableLabels_OSType) Type() protoreflect.EnumType
func (*SchedulableLabels_OSType) UnmarshalJSON
deprecated
func (x *SchedulableLabels_OSType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type SchedulableLabels_Phase ¶
type SchedulableLabels_Phase int32
Devices go through the phases EVT -> DVT -> PVT during early development. Post launch devices are in the MP phase. Certain phases end up having to be repeated as hardware evolves. Leave some scope for iteration within phases.
NEXT TAG: 9
const ( SchedulableLabels_PHASE_INVALID SchedulableLabels_Phase = 0 SchedulableLabels_PHASE_EVT SchedulableLabels_Phase = 1 SchedulableLabels_PHASE_EVT2 SchedulableLabels_Phase = 2 SchedulableLabels_PHASE_DVT SchedulableLabels_Phase = 3 SchedulableLabels_PHASE_DVT2 SchedulableLabels_Phase = 4 SchedulableLabels_PHASE_PVT SchedulableLabels_Phase = 5 SchedulableLabels_PHASE_PVT2 SchedulableLabels_Phase = 6 SchedulableLabels_PHASE_PVT3 SchedulableLabels_Phase = 7 SchedulableLabels_PHASE_MP SchedulableLabels_Phase = 8 )
func (SchedulableLabels_Phase) Descriptor ¶
func (SchedulableLabels_Phase) Descriptor() protoreflect.EnumDescriptor
func (SchedulableLabels_Phase) Enum ¶
func (x SchedulableLabels_Phase) Enum() *SchedulableLabels_Phase
func (SchedulableLabels_Phase) EnumDescriptor
deprecated
func (SchedulableLabels_Phase) EnumDescriptor() ([]byte, []int)
Deprecated: Use SchedulableLabels_Phase.Descriptor instead.
func (SchedulableLabels_Phase) Number ¶
func (x SchedulableLabels_Phase) Number() protoreflect.EnumNumber
func (SchedulableLabels_Phase) String ¶
func (x SchedulableLabels_Phase) String() string
func (SchedulableLabels_Phase) Type ¶
func (SchedulableLabels_Phase) Type() protoreflect.EnumType
func (*SchedulableLabels_Phase) UnmarshalJSON
deprecated
func (x *SchedulableLabels_Phase) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Server ¶
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 `` /* 131-byte string literal not displayed */ 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"` // contains filtered or unexported fields }
NEXT TAG: 9
func (*Server) Descriptor
deprecated
func (*Server) GetAttributes ¶
func (x *Server) GetAttributes() *Attributes
func (*Server) GetDutUids ¶
func (*Server) GetEnvironment ¶
func (x *Server) GetEnvironment() Environment
func (*Server) GetHostname ¶
func (*Server) GetRoles ¶
func (x *Server) GetRoles() []Server_Role
func (*Server) GetStatus ¶
func (x *Server) GetStatus() Server_Status
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type Server_Role ¶
type Server_Role int32
NEXT TAG: 14 Note: Update ROLE_MAP in skylab_inventory/translation_utils.py accordingly
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 Server_ROLE_RPMSERVER Server_Role = 15 )
func (Server_Role) Descriptor ¶
func (Server_Role) Descriptor() protoreflect.EnumDescriptor
func (Server_Role) Enum ¶
func (x Server_Role) Enum() *Server_Role
func (Server_Role) EnumDescriptor
deprecated
func (Server_Role) EnumDescriptor() ([]byte, []int)
Deprecated: Use Server_Role.Descriptor instead.
func (Server_Role) Number ¶
func (x Server_Role) Number() protoreflect.EnumNumber
func (Server_Role) String ¶
func (x Server_Role) String() string
func (Server_Role) Type ¶
func (Server_Role) Type() protoreflect.EnumType
func (*Server_Role) UnmarshalJSON
deprecated
func (x *Server_Role) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Server_Status ¶
type Server_Status int32
NEXT TAG: 4
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 )
func (Server_Status) Descriptor ¶
func (Server_Status) Descriptor() protoreflect.EnumDescriptor
func (Server_Status) Enum ¶
func (x Server_Status) Enum() *Server_Status
func (Server_Status) EnumDescriptor
deprecated
func (Server_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Server_Status.Descriptor instead.
func (Server_Status) Number ¶
func (x Server_Status) Number() protoreflect.EnumNumber
func (Server_Status) String ¶
func (x Server_Status) String() string
func (Server_Status) Type ¶
func (Server_Status) Type() protoreflect.EnumType
func (*Server_Status) UnmarshalJSON
deprecated
func (x *Server_Status) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ServoFwChannel ¶
type ServoFwChannel int32
Servo Firmware Channel describes the firmware expected to have on servos. Next Tag : 4
const ( // Servo firmware from Stable channel. ServoFwChannel_SERVO_FW_STABLE ServoFwChannel = 0 // The previous Servo firmware from Stable channel. ServoFwChannel_SERVO_FW_PREV ServoFwChannel = 1 // Servo firmware from Dev channel. ServoFwChannel_SERVO_FW_DEV ServoFwChannel = 2 // Servo firmware from Alpha channel. ServoFwChannel_SERVO_FW_ALPHA ServoFwChannel = 3 )
func (ServoFwChannel) Descriptor ¶
func (ServoFwChannel) Descriptor() protoreflect.EnumDescriptor
func (ServoFwChannel) Enum ¶
func (x ServoFwChannel) Enum() *ServoFwChannel
func (ServoFwChannel) EnumDescriptor
deprecated
func (ServoFwChannel) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServoFwChannel.Descriptor instead.
func (ServoFwChannel) Number ¶
func (x ServoFwChannel) Number() protoreflect.EnumNumber
func (ServoFwChannel) String ¶
func (x ServoFwChannel) String() string
func (ServoFwChannel) Type ¶
func (ServoFwChannel) Type() protoreflect.EnumType
func (*ServoFwChannel) UnmarshalJSON
deprecated
func (x *ServoFwChannel) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ServoHostConnection ¶
type ServoHostConnection struct { ServoHostId *string `protobuf:"bytes,1,req,name=servo_host_id,json=servoHostId" json:"servo_host_id,omitempty"` DutId *string `protobuf:"bytes,2,req,name=dut_id,json=dutId" json:"dut_id,omitempty"` ServoPort *int32 `protobuf:"varint,3,req,name=servo_port,json=servoPort" json:"servo_port,omitempty"` ServoSerial *string `protobuf:"bytes,4,opt,name=servo_serial,json=servoSerial" json:"servo_serial,omitempty"` ServoType *string `protobuf:"bytes,5,opt,name=servo_type,json=servoType" json:"servo_type,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 6
func (*ServoHostConnection) Descriptor
deprecated
func (*ServoHostConnection) Descriptor() ([]byte, []int)
Deprecated: Use ServoHostConnection.ProtoReflect.Descriptor instead.
func (*ServoHostConnection) GetDutId ¶
func (x *ServoHostConnection) GetDutId() string
func (*ServoHostConnection) GetServoHostId ¶
func (x *ServoHostConnection) GetServoHostId() string
func (*ServoHostConnection) GetServoPort ¶
func (x *ServoHostConnection) GetServoPort() int32
func (*ServoHostConnection) GetServoSerial ¶
func (x *ServoHostConnection) GetServoSerial() string
func (*ServoHostConnection) GetServoType ¶
func (x *ServoHostConnection) GetServoType() string
func (*ServoHostConnection) ProtoMessage ¶
func (*ServoHostConnection) ProtoMessage()
func (*ServoHostConnection) ProtoReflect ¶
func (x *ServoHostConnection) ProtoReflect() protoreflect.Message
func (*ServoHostConnection) Reset ¶
func (x *ServoHostConnection) Reset()
func (*ServoHostConnection) String ¶
func (x *ServoHostConnection) String() string
type ServoHostDevice ¶
type ServoHostDevice struct { Common *CommonDeviceSpecs `protobuf:"bytes,1,req,name=common" json:"common,omitempty"` Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 2
func (*ServoHostDevice) Descriptor
deprecated
func (*ServoHostDevice) Descriptor() ([]byte, []int)
Deprecated: Use ServoHostDevice.ProtoReflect.Descriptor instead.
func (*ServoHostDevice) GetCommon ¶
func (x *ServoHostDevice) GetCommon() *CommonDeviceSpecs
func (*ServoHostDevice) GetVersion ¶
func (x *ServoHostDevice) GetVersion() string
func (*ServoHostDevice) ProtoMessage ¶
func (*ServoHostDevice) ProtoMessage()
func (*ServoHostDevice) ProtoReflect ¶
func (x *ServoHostDevice) ProtoReflect() protoreflect.Message
func (*ServoHostDevice) Reset ¶
func (x *ServoHostDevice) Reset()
func (*ServoHostDevice) String ¶
func (x *ServoHostDevice) String() string
type ServoTopology ¶
type ServoTopology struct { Main *ServoTopologyItem `protobuf:"bytes,1,opt,name=main" json:"main,omitempty"` Children []*ServoTopologyItem `protobuf:"bytes,2,rep,name=children" json:"children,omitempty"` // contains filtered or unexported fields }
Copy from servo.proto Servo Topology describe connected servo devices on DUT set-up to provide Servo functionality. Next Tag : 3
func (*ServoTopology) Descriptor
deprecated
func (*ServoTopology) Descriptor() ([]byte, []int)
Deprecated: Use ServoTopology.ProtoReflect.Descriptor instead.
func (*ServoTopology) GetChildren ¶
func (x *ServoTopology) GetChildren() []*ServoTopologyItem
func (*ServoTopology) GetMain ¶
func (x *ServoTopology) GetMain() *ServoTopologyItem
func (*ServoTopology) ProtoMessage ¶
func (*ServoTopology) ProtoMessage()
func (*ServoTopology) ProtoReflect ¶
func (x *ServoTopology) ProtoReflect() protoreflect.Message
func (*ServoTopology) Reset ¶
func (x *ServoTopology) Reset()
func (*ServoTopology) String ¶
func (x *ServoTopology) String() string
type ServoTopologyItem ¶
type ServoTopologyItem struct { // type provides the type of servo device. Keeping as String to avoid issue with introduce new type. Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` // sysfs_product providess the product name of the device recorded in File System. SysfsProduct *string `protobuf:"bytes,2,opt,name=sysfs_product,json=sysfsProduct" json:"sysfs_product,omitempty"` // serial providess the serilal number of the device. Serial *string `protobuf:"bytes,3,opt,name=serial" json:"serial,omitempty"` // usb_hub_port providess the port connection to the device. // e.g. '1-6.2.2' where // '1-6' - port on the labstation // '2' - port on smart-hub connected to the labstation // '2' - port on servo hub (part of servo_v4 or servo_v4.1) connected to the smart-hub // The same path will look '1-6.2' if connected servo_v4 directly to the labstation. UsbHubPort *string `protobuf:"bytes,4,opt,name=usb_hub_port,json=usbHubPort" json:"usb_hub_port,omitempty"` // contains filtered or unexported fields }
Servo Topology Item describe details of one servo device on DUT set-up. Next Tag : 5
func (*ServoTopologyItem) Descriptor
deprecated
func (*ServoTopologyItem) Descriptor() ([]byte, []int)
Deprecated: Use ServoTopologyItem.ProtoReflect.Descriptor instead.
func (*ServoTopologyItem) GetSerial ¶
func (x *ServoTopologyItem) GetSerial() string
func (*ServoTopologyItem) GetSysfsProduct ¶
func (x *ServoTopologyItem) GetSysfsProduct() string
func (*ServoTopologyItem) GetType ¶
func (x *ServoTopologyItem) GetType() string
func (*ServoTopologyItem) GetUsbHubPort ¶
func (x *ServoTopologyItem) GetUsbHubPort() string
func (*ServoTopologyItem) ProtoMessage ¶
func (*ServoTopologyItem) ProtoMessage()
func (*ServoTopologyItem) ProtoReflect ¶
func (x *ServoTopologyItem) ProtoReflect() protoreflect.Message
func (*ServoTopologyItem) Reset ¶
func (x *ServoTopologyItem) Reset()
func (*ServoTopologyItem) String ¶
func (x *ServoTopologyItem) String() string
type Shard ¶
type Shard struct { Hostname *string `protobuf:"bytes,1,req,name=hostname" json:"hostname,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 2
func (*Shard) Descriptor
deprecated
func (*Shard) GetHostname ¶
func (*Shard) ProtoMessage ¶
func (*Shard) ProtoMessage()
func (*Shard) ProtoReflect ¶
func (x *Shard) ProtoReflect() protoreflect.Message
type StableVersion ¶
type StableVersion struct { Board *string `protobuf:"bytes,1,req,name=board" json:"board,omitempty"` // Versions are opaque strings for the inventory. Different boards may use the // version strings in different ways to obtain the actual images. Version *string `protobuf:"bytes,2,req,name=version" json:"version,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 3
func (*StableVersion) Descriptor
deprecated
func (*StableVersion) Descriptor() ([]byte, []int)
Deprecated: Use StableVersion.ProtoReflect.Descriptor instead.
func (*StableVersion) GetBoard ¶
func (x *StableVersion) GetBoard() string
func (*StableVersion) GetVersion ¶
func (x *StableVersion) GetVersion() string
func (*StableVersion) ProtoMessage ¶
func (*StableVersion) ProtoMessage()
func (*StableVersion) ProtoReflect ¶
func (x *StableVersion) ProtoReflect() protoreflect.Message
func (*StableVersion) Reset ¶
func (x *StableVersion) Reset()
func (*StableVersion) String ¶
func (x *StableVersion) String() string
type StableVersions ¶
type StableVersions struct { // OS image stable versions. AndroidOsVersions []*StableVersion `protobuf:"bytes,1,rep,name=android_os_versions,json=androidOsVersions" json:"android_os_versions,omitempty"` ChromeOsVersions []*StableVersion `protobuf:"bytes,2,rep,name=chrome_os_versions,json=chromeOsVersions" json:"chrome_os_versions,omitempty"` // Read-write firmware versions. Only relevant for ChromeOS boards. RwFirmwareVersions []*StableVersion `protobuf:"bytes,3,rep,name=rw_firmware_versions,json=rwFirmwareVersions" json:"rw_firmware_versions,omitempty"` // Used by FAFT testing to install the RO firmware to test. ChromeOS only. FaftFirmwareVersions []*StableVersion `protobuf:"bytes,4,rep,name=faft_firmware_versions,json=faftFirmwareVersions" json:"faft_firmware_versions,omitempty"` // contains filtered or unexported fields }
NEXT TAG: 5
func (*StableVersions) Descriptor
deprecated
func (*StableVersions) Descriptor() ([]byte, []int)
Deprecated: Use StableVersions.ProtoReflect.Descriptor instead.
func (*StableVersions) GetAndroidOsVersions ¶
func (x *StableVersions) GetAndroidOsVersions() []*StableVersion
func (*StableVersions) GetChromeOsVersions ¶
func (x *StableVersions) GetChromeOsVersions() []*StableVersion
func (*StableVersions) GetFaftFirmwareVersions ¶
func (x *StableVersions) GetFaftFirmwareVersions() []*StableVersion
func (*StableVersions) GetRwFirmwareVersions ¶
func (x *StableVersions) GetRwFirmwareVersions() []*StableVersion
func (*StableVersions) ProtoMessage ¶
func (*StableVersions) ProtoMessage()
func (*StableVersions) ProtoReflect ¶
func (x *StableVersions) ProtoReflect() protoreflect.Message
func (*StableVersions) Reset ¶
func (x *StableVersions) Reset()
func (*StableVersions) String ¶
func (x *StableVersions) String() string
type TestCoverageHints ¶
type TestCoverageHints struct { ChaosDut *bool `protobuf:"varint,7,opt,name=chaos_dut,json=chaosDut" json:"chaos_dut,omitempty"` ChaosNightly *bool `protobuf:"varint,13,opt,name=chaos_nightly,json=chaosNightly" json:"chaos_nightly,omitempty"` Chromesign *bool `protobuf:"varint,11,opt,name=chromesign" json:"chromesign,omitempty"` CtsSparse []TestCoverageHints_CTSSparse `` /* 160-byte string literal not displayed */ // Whether the DUT has the hangout app installed. // This is a software feature of the DUT that is not provisioned as part of // the test setup, hence the DUT must be labelled explicitly as supporting // this feature. Should probably be a SoftwareFeature for the DUT. HangoutApp *bool `protobuf:"varint,9,opt,name=hangout_app,json=hangoutApp" json:"hangout_app,omitempty"` // Whether the DUT has the meet app installed. // This is a software feature of the DUT that is not provisioned as part of // the test setup, hence the DUT must be labelled explicitly as supporting // this feature. Should probably be a SoftwareFeature for the DUT. MeetApp *bool `protobuf:"varint,10,opt,name=meet_app,json=meetApp" json:"meet_app,omitempty"` RecoveryTest *bool `protobuf:"varint,8,opt,name=recovery_test,json=recoveryTest" json:"recovery_test,omitempty"` TestAudiojack *bool `protobuf:"varint,3,opt,name=test_audiojack,json=testAudiojack" json:"test_audiojack,omitempty"` TestHdmiaudio *bool `protobuf:"varint,2,opt,name=test_hdmiaudio,json=testHdmiaudio" json:"test_hdmiaudio,omitempty"` TestUsbaudio *bool `protobuf:"varint,4,opt,name=test_usbaudio,json=testUsbaudio" json:"test_usbaudio,omitempty"` TestUsbprinting *bool `protobuf:"varint,5,opt,name=test_usbprinting,json=testUsbprinting" json:"test_usbprinting,omitempty"` UsbDetect *bool `protobuf:"varint,6,opt,name=usb_detect,json=usbDetect" json:"usb_detect,omitempty"` UseLid *bool `protobuf:"varint,12,opt,name=use_lid,json=useLid" json:"use_lid,omitempty"` // contains filtered or unexported fields }
These labels are used by the CI system to provide test coverage hints to Skylab.
TODO(pprabhu) Most of these should instead be self-servo pools. Migrate the test requests to use pools and then deprecate these fields in favor of pools.
Keep sorted by field name.
NEXT TAG: 14
func (*TestCoverageHints) Descriptor
deprecated
func (*TestCoverageHints) Descriptor() ([]byte, []int)
Deprecated: Use TestCoverageHints.ProtoReflect.Descriptor instead.
func (*TestCoverageHints) GetChaosDut ¶
func (x *TestCoverageHints) GetChaosDut() bool
func (*TestCoverageHints) GetChaosNightly ¶
func (x *TestCoverageHints) GetChaosNightly() bool
func (*TestCoverageHints) GetChromesign ¶
func (x *TestCoverageHints) GetChromesign() bool
func (*TestCoverageHints) GetCtsSparse ¶
func (x *TestCoverageHints) GetCtsSparse() []TestCoverageHints_CTSSparse
func (*TestCoverageHints) GetHangoutApp ¶
func (x *TestCoverageHints) GetHangoutApp() bool
func (*TestCoverageHints) GetMeetApp ¶
func (x *TestCoverageHints) GetMeetApp() bool
func (*TestCoverageHints) GetRecoveryTest ¶
func (x *TestCoverageHints) GetRecoveryTest() bool
func (*TestCoverageHints) GetTestAudiojack ¶
func (x *TestCoverageHints) GetTestAudiojack() bool
func (*TestCoverageHints) GetTestHdmiaudio ¶
func (x *TestCoverageHints) GetTestHdmiaudio() bool
func (*TestCoverageHints) GetTestUsbaudio ¶
func (x *TestCoverageHints) GetTestUsbaudio() bool
func (*TestCoverageHints) GetTestUsbprinting ¶
func (x *TestCoverageHints) GetTestUsbprinting() bool
func (*TestCoverageHints) GetUsbDetect ¶
func (x *TestCoverageHints) GetUsbDetect() bool
func (*TestCoverageHints) GetUseLid ¶
func (x *TestCoverageHints) GetUseLid() bool
func (*TestCoverageHints) ProtoMessage ¶
func (*TestCoverageHints) ProtoMessage()
func (*TestCoverageHints) ProtoReflect ¶
func (x *TestCoverageHints) ProtoReflect() protoreflect.Message
func (*TestCoverageHints) Reset ¶
func (x *TestCoverageHints) Reset()
func (*TestCoverageHints) String ¶
func (x *TestCoverageHints) String() string
type TestCoverageHints_CTSSparse ¶
type TestCoverageHints_CTSSparse int32
Related to sparse CTS testing. See b/70309087 NEXT TAG: 4
const ( TestCoverageHints_CTS_SPARSE_INVALID TestCoverageHints_CTSSparse = 0 TestCoverageHints_CTS_SPARSE_2 TestCoverageHints_CTSSparse = 1 TestCoverageHints_CTS_SPARSE_3 TestCoverageHints_CTSSparse = 2 TestCoverageHints_CTS_SPARSE_5 TestCoverageHints_CTSSparse = 3 )
func (TestCoverageHints_CTSSparse) Descriptor ¶
func (TestCoverageHints_CTSSparse) Descriptor() protoreflect.EnumDescriptor
func (TestCoverageHints_CTSSparse) Enum ¶
func (x TestCoverageHints_CTSSparse) Enum() *TestCoverageHints_CTSSparse
func (TestCoverageHints_CTSSparse) EnumDescriptor
deprecated
func (TestCoverageHints_CTSSparse) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestCoverageHints_CTSSparse.Descriptor instead.
func (TestCoverageHints_CTSSparse) Number ¶
func (x TestCoverageHints_CTSSparse) Number() protoreflect.EnumNumber
func (TestCoverageHints_CTSSparse) String ¶
func (x TestCoverageHints_CTSSparse) String() string
func (TestCoverageHints_CTSSparse) Type ¶
func (TestCoverageHints_CTSSparse) Type() protoreflect.EnumType
func (*TestCoverageHints_CTSSparse) UnmarshalJSON
deprecated
func (x *TestCoverageHints_CTSSparse) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Timestamp ¶
type Timestamp struct { Seconds *int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"` Nanos *int32 `protobuf:"varint,2,opt,name=nanos" json:"nanos,omitempty"` // contains filtered or unexported fields }
func (*Timestamp) Descriptor
deprecated
func (*Timestamp) GetSeconds ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) ProtoReflect ¶
func (x *Timestamp) ProtoReflect() protoreflect.Message
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
autotest
|
|
labels
Package labels implements conversion of Skylab inventory schema to Autotest labels.
|
Package labels implements conversion of Skylab inventory schema to Autotest labels. |
Package swarming implements conversion of Skylab inventory schema to Swarming dimensions.
|
Package swarming implements conversion of Skylab inventory schema to Swarming dimensions. |