validation

package
v0.0.0-...-56a2066 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Test utils provides util functions for gold cmd packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateServiceConfigs

func ValidateServiceConfigs(serviceName string, instances InstanceCategory, configObj interface{}) error

ValidateServiceConfigs validates the instance configs in the repository to ensure that services are able to load them. This protects against service failures due to invalid/missing config values in production. Configs can be optional for instances, hence we require the list of instances to check for.

Types

type InstanceCategory

type InstanceCategory []string

Union of all instances.

var MirrorInstances InstanceCategory = []string{
	"chrome-public",
	"skia-public",
}

List of mirror instances for Gold.

var PrimaryInstances InstanceCategory = []string{
	"angle",
	"chrome",
	"cros-tast",
	"eskia",
	"flutter",
	"flutter-engine",
	"koru",
	"lottie",
	"lottie-spec",
	"pdfium",
	"skia",
	"skia-infra",
}

List of primary instances for Gold.

Jump to

Keyboard shortcuts

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