common

package
v0.0.0-...-9b7a7ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServerPort   = 80
	DefaultLogDirectory = "/tmp/provision/"

	CIPDVersionCodeTagName = "version_code"

	ADBVendorKeys               = "/var/lib/android_keys"
	ADBUnixSocketMountDirectory = "/run/arc/adb"
	GMSCorePackageName          = "com.google.android.gms"
	GMSCoreCIPDPath             = "chromiumos/infra/skylab/third_party/gmscore/"

	// DroneServiceAccountCreds is needed to upload APKs to Android Provisioning GSBucket.
	DroneServiceAccountCreds = "/creds/service_accounts/skylab-drone.json"
	GSImageBucketName        = "android-provisioning-images"
	GSPackageBucketName      = "android-provisioning-apks"
)

Variables

View Source
var OSVersionToBuildIDMap = map[string]map[string]string{
	"10": {
		"sunfish": "QD4A.200805.003",
	},
	"11": {
		"sunfish": "RQ3A.211001.001",
		"redfin":  "RQ3A.211001.001",
		"barbet":  "RD2A.211001.002",
	},
	"12": {
		"sunfish": "SQ3A.220705.003.A1",
		"redfin":  "SQ3A.220705.003.A1",
		"barbet":  "SQ3A.220705.003.A1",
		"oriole":  "SQ3A.220705.003.A1",
		"raven":   "SQ3A.220705.003.A1",
	},
	"13": {
		"sunfish": "TQ1A.230205.002",
		"redfin":  "TQ1A.230205.002",
		"barbet":  "TQ1A.230205.002",
		"oriole":  "TQ1A.230205.002",
		"raven":   "TQ1A.230205.002",
	},
}
View Source
var OSVersionToGMSCorePlatformMap = map[string]string{
	"10": "prodpi",
	"11": "prodrvc",
	"12": "prodsc",
	"13": "prodsc",
}

Functions

func SetUpLog

func SetUpLog(dir string) (*log.Logger, error)

SetUpLog sets up the logging.

Types

type ProvisionState

type ProvisionState int64
const (
	Prepare ProvisionState = iota
	OSFetch
	OSInstall
	PackageFetch
	PackageInstall
	PostInstall
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL