Documentation ¶
Overview ¶
Package validate contains validation for RPC requests and Config entries.
Index ¶
- func BotPingTolerance(bpt int64) error
- func CipdPackageName(pkg string) error
- func CipdPackageVersion(ver string) error
- func DimensionKey(key string) error
- func DimensionValue(val string) error
- func Priority(p int32) error
- func PubSubTopicName(topic string) (string, string, error)
- func SecureURL(u string) error
- func ServiceAccount(sa string) error
- func Tag(tag string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BotPingTolerance ¶
func CipdPackageName ¶
CipdPackageName checks CIPD package name is correct.
The package name is allowed to be a template e.g. have "${platform}" and other substitutions inside.
func CipdPackageVersion ¶
CipdPackageVersion checks CIPD package version is correct.
func DimensionKey ¶
DimensionKey checks if `key` can be a dimension key.
func DimensionValue ¶
DimensionValue checks if `val` can be a dimension value.
func PubSubTopicName ¶
PubSubTopicName validates the format of topic, extract the cloud project and topic id, and return them.
func ServiceAccount ¶
ServiceAccount checks a service account is correct.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.