Documentation ¶
Index ¶
- Variables
- func ConvertValidDeviceConfigID(dcID *device.ConfigId) *device.ConfigId
- func DeviceConfigsExists(ctx context.Context, cfgIds []*device.ConfigId) (map[int32]bool, error)
- func GetAllCachedConfig(ctx context.Context) (map[*device.Config]time.Time, error)
- func GetCachedConfig(ctx context.Context, cfgIds []*device.ConfigId) ([]proto.Message, error)
- func GetDeviceConfigIDStr(cfgid *device.ConfigId) string
- func GetValidModel(model string) string
- func GetValidPlatform(platform string) string
- func UpdateDatastore(ctx context.Context, client gitiles.GitilesClient, ...) error
- func UpdateDatastoreFromBoxster(ctx context.Context, gc git.ClientInterface, joinedConfigPath string, ...) error
- type Programs
- type Repo
Constants ¶
This section is empty.
Variables ¶
var BoardToPlatformMap = map[string]string{
"auron_paine": "auron",
"auron_yuna": "auron",
"buddy": "auron",
"gandof": "auron",
"lulu": "auron",
"samus": "auron",
"monroe": "beltino",
"panther": "beltino",
"tricky": "beltino",
"zako": "beltino",
"caroline": "glados",
"caroline-ndktranslation": "glados",
"cave": "glados",
"chell": "glados",
"bob": "gru",
"kevin": "gru",
"kahlee": "grunt",
"excelsior": "fizz",
"fizz-labstation": "fizz",
"fizz-moblab": "fizz",
"guado-kernelnext": "jecht",
"guado_labstation": "jecht",
"guado": "jecht",
"rikku": "jecht",
"tidus": "jecht",
"asuka": "kunimitsu",
"lars": "kunimitsu",
"sentry": "kunimitsu",
"nyan_big": "nyan",
"nyan_blaze": "nyan",
"nyan_kitty": "nyan",
"elm": "oak",
"hana": "oak",
"atlas": "poppy",
"eve": "poppy",
"nautilus": "poppy",
"nocturne": "poppy",
"soraka": "poppy",
"banjo": "rambi",
"candy": "rambi",
"enguarde": "rambi",
"gnawty": "rambi",
"heli": "rambi",
"kip": "rambi",
"ninja": "rambi",
"orco": "rambi",
"quawks": "rambi",
"squawks": "rambi",
"sumo": "rambi",
"swanky": "rambi",
"winky": "rambi",
"pyro": "reef",
"sand": "reef",
"snappy": "reef",
"arcada": "sarien",
"sarien-kvm": "sarien",
"falco": "slippy",
"falco_li": "slippy",
"peppy": "slippy",
"banon": "strago",
"celes": "strago",
"cyan": "strago",
"edgar": "strago",
"kefka": "strago",
"reks": "strago",
"relm": "strago",
"sabin": "strago",
"setzer": "strago",
"terra": "strago",
"ultima": "strago",
"wizpig": "strago",
"veyron_fievel": "veyron_pinky",
"veyron_jaq": "veyron_pinky",
"veyron_jerry": "veyron_pinky",
"veyron_mickey": "veyron_pinky",
"veyron_mighty": "veyron_pinky",
"veyron_minnie": "veyron_pinky",
"veyron_rialto": "veyron_pinky",
"veyron_speedy": "veyron_pinky",
"veyron_tiger": "veyron_pinky",
}
BoardToPlatformMap refers to the mapping from autotest board to device reference board: https://docs.google.com/spreadsheets/d/1R6ycgnIJnoSWVpN9pVvnrPUacady-vYFkjMrW-pHZ9c/edit#gid=0 Current DUTs' boards and models are not 1:1 matched to platforms and models in device config. BoardToPlatformMap and ModelMap are used temporarily to do the mapping, so that no duts will skip device config retrieval.
var ModelMap = map[string]string{
"arcada_signed": "arcada",
"falco_li": "falco",
"guado-kernelnext": "guado",
"sarien_signed": "sarien",
}
ModelMap refers to the mapping from autotest model to device model: https://docs.google.com/spreadsheets/d/1R6ycgnIJnoSWVpN9pVvnrPUacady-vYFkjMrW-pHZ9c/edit#gid=0
Functions ¶
func ConvertValidDeviceConfigID ¶
ConvertValidDeviceConfigID maps existing device config ID from autotest to valid one.
func DeviceConfigsExists ¶
DeviceConfigsExists Checks if the device configs exist in the datastore
func GetAllCachedConfig ¶
GetAllCachedConfig gets all the device configs from datastore.
func GetCachedConfig ¶
GetCachedConfig gets the device config data from datastore.
func GetDeviceConfigIDStr ¶
GetDeviceConfigIDStr returns a string as device config short name.
func GetValidModel ¶
GetValidModel maps some autotest models to valid device config model values.
func GetValidPlatform ¶
GetValidPlatform maps some autotest boards to valid device config platform values.
func UpdateDatastore ¶
func UpdateDatastore(ctx context.Context, client gitiles.GitilesClient, project, committish, path string) error
UpdateDatastore updates the datastore cache for all device config data.
func UpdateDatastoreFromBoxster ¶
func UpdateDatastoreFromBoxster(ctx context.Context, gc git.ClientInterface, joinedConfigPath string, client gitiles.GitilesClient, project, committish, path string) error
UpdateDatastoreFromBoxster updates datastore from boxster (go/boxster)
Types ¶
type Programs ¶
type Programs struct { Programs []struct { Name string `json:"name,omitempty"` Repo *Repo `json:"repo,omitempty"` DeviceProjects []struct { Repo *Repo `json:"repo,omitempty"` } `json:"deviceProjects,omitempty"` } `json:"programs,omitempty"` }
Programs defines the structure of a DLM program list.