Documentation ¶
Overview ¶
Package pbutil contains methods for manipulating protobufs.
Index ¶
- Constants
- func ParseTreeName(treeName string) (treeID string, err error)
- func ValidateClosingBuilderName(name string) error
- func ValidateGeneralStatus(state pb.GeneralState) error
- func ValidateMessage(message string) error
- func ValidateProject(project string) error
- func ValidateStatusID(id string) error
- func ValidateTreeID(treeName string) error
Constants ¶
View Source
const ( // TreeIDExpression is a partial regular expression that validates tree identifiers. TreeIDExpression = `[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?` // StatusIDExpression is a partial regular expression that validates status identifiers. StatusIDExpression = `[0-9a-f]{32}` // BuilderNameExpression is a partial regular expression that validates builder name. BuilderNameExpression = `projects/([a-z0-9\-_]{1,40})/buckets/([a-z0-9\-_.]{1,100})/builders/([a-zA-Z0-9\-_.\(\) ]{1,128})` // ProjectExpression is a partial regular expression that validates LUCI Project. ProjectExpression = `[a-z0-9\-]{1,40}` // TreeNameExpression is a partial regular expression that validates tree name. TreeNameExpression = `trees/(` + TreeIDExpression + `)` )
Variables ¶
This section is empty.
Functions ¶
func ParseTreeName ¶
func ValidateGeneralStatus ¶
func ValidateGeneralStatus(state pb.GeneralState) error
func ValidateMessage ¶
func ValidateProject ¶
func ValidateStatusID ¶
func ValidateTreeID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.