Documentation ¶
Index ¶
- Constants
- Variables
- func AddWinConfigs(vm *gce.Instance, startupScriptPath, chromebotScript, bootDiskType string) *gce.Instance
- func Dev(vm *gce.Instance) *gce.Instance
- func GetLinuxScripts(ctx context.Context, checkoutRoot, workdir string) (string, error)
- func GetWindowsScripts(ctx context.Context, checkoutRoot, workdir string) (string, string, string, error)
- func Internal(vm *gce.Instance) *gce.Instance
- func LinuxAmd(num int, setupScriptPath string) *gce.Instance
- func LinuxGpu(num int, setupScriptPath string) *gce.Instance
- func LinuxLarge(num int, setupScriptPath string) *gce.Instance
- func LinuxMedium(num int, setupScriptPath string) *gce.Instance
- func LinuxMicro(num int, setupScriptPath string) *gce.Instance
- func LinuxSkylake(num int, setupScriptPath string) *gce.Instance
- func LinuxSmall(num int, setupScriptPath string) *gce.Instance
- func SkiaCT(num int, setupScriptPath string) *gce.Instance
- func Swarming20180406(name string, machineType, serviceAccount, setupScriptPath, sourceImage string) *gce.Instance
- func WinLarge(num int, setupScriptPath, startupScriptPath, chromebotScript string) *gce.Instance
- func WinMedium(num int, setupScriptPath, startupScriptPath, chromebotScript string) *gce.Instance
- func WinSwarmingBot(...) *gce.Instance
Constants ¶
View Source
const ( DEV_NAME_PREFIX = "skia-d-" INTERNAL_NAME_PREFIX = "skia-i-" USER_CHROME_BOT = gce.USER_CHROME_BOT DEBIAN_SOURCE_IMAGE_EXTERNAL = "skia-swarming-base-v2020-03-31-000" DEBIAN_SOURCE_IMAGE_INTERNAL = "skia-swarming-base-v2020-03-31-000" WIN_SOURCE_IMAGE = "projects/windows-cloud/global/images/windows-server-2019-dc-v20200114" INSTANCE_TYPE_CT = "ct" INSTANCE_TYPE_LINUX_SMALL = "linux-small" INSTANCE_TYPE_LINUX_MEDIUM = "linux-medium" INSTANCE_TYPE_LINUX_LARGE = "linux-large" INSTANCE_TYPE_LINUX_GPU = "linux-gpu" INSTANCE_TYPE_LINUX_AMD = "linux-amd" INSTANCE_TYPE_LINUX_SKYLAKE = "linux-skylake" INSTANCE_TYPE_WIN_MEDIUM = "win-medium" INSTANCE_TYPE_WIN_LARGE = "win-large" )
Variables ¶
View Source
var ( // "Constants" SETUP_SCRIPT_LINUX_PATH = filepath.Join("go", "gce", "swarming", "setup-script-linux.sh") SETUP_SCRIPT_WIN_PATH = filepath.Join("scripts", "win_setup.ps1") STARTUP_SCRIPT_WIN_PATH = filepath.Join("scripts", "win_startup.ps1") CHROME_BOT_SCRIPT_WIN_PATH = filepath.Join("scripts", "chromebot-schtask.ps1") )
Functions ¶
func AddWinConfigs ¶
func AddWinConfigs(vm *gce.Instance, startupScriptPath, chromebotScript, bootDiskType string) *gce.Instance
Configs for Windows GCE instances.
func GetLinuxScripts ¶
Returns the path to the setup script, given a local checkout.
func GetWindowsScripts ¶
func GetWindowsScripts(ctx context.Context, checkoutRoot, workdir string) (string, string, string, error)
Returns the setup, startup, and chrome-bot scripts, given a local checkout. Writes the scripts into the given workdir.
func LinuxLarge ¶
Large Linux GCE instances.
func LinuxMedium ¶
Medium Linux GCE instances.
func LinuxMicro ¶
Micro Linux GCE instances.
func LinuxSkylake ¶
Linux GCE instances with Skylake CPUs.
func LinuxSmall ¶
Small Linux GCE instances.
func Swarming20180406 ¶
func Swarming20180406(name string, machineType, serviceAccount, setupScriptPath, sourceImage string) *gce.Instance
Base configs for Swarming GCE instances.
func WinSwarmingBot ¶
func WinSwarmingBot(name, machineType, setupScriptPath, startupScriptPath, chromebotScript, bootDiskType string) *gce.Instance
Windows GCE instances.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.