Documentation
¶
Overview ¶
Package entities contains datastore entity kinds.
Index ¶
Constants ¶
View Source
const ( // DUTKind is the datastore entity kind for DUT entities. DUTKind string = "DUT" // DroneKind is the datastore entity kind for drone entities. DroneKind string = "Drone" // AssignedDroneField is a field name for queries. AssignedDroneField = "AssignedDrone" // DrainingField is a field name for queries. DrainingField = "Draining" // HiveField is a field name for queries. It indicates a "zone" // that DUTs belong to, which controls which drones a DUT // will be assigned to. HiveField = "Hive" )
Variables ¶
This section is empty.
Functions ¶
func DUTGroupKey ¶
DUTGroupKey returns a key to be used for all DUT entities. This is used to form an entity group for DUT queries.
func FormatDUTs ¶
FormatDUTs formats a slice of DUTs as a human readable string.
Types ¶
type DUT ¶
type DUT struct { ID DUTID `gae:"$id"` Group *datastore.Key `gae:"$parent"` AssignedDrone DroneID Draining bool Hive string // contains filtered or unexported fields }
DUT is a datastore entity that tracks a DUT.
Click to show internal directories.
Click to hide internal directories.