Documentation ¶
Overview ¶
Package result provides utilities for manipulating and validating Results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NameRegex matches valid name specs for a Result. NameRegex = regexp.MustCompile("(^[a-z0-9_-]{1,63})/results/([a-z0-9_-]{1,63}$)") )
Functions ¶
func FormatName ¶
FormatName takes in a parent ("a") and result name ("b") and returns the full resource name ("a/results/b").
func ToStorage ¶
ToStorage converts an API Result into its corresponding database storage equivalent. parent,name should be the name parts (e.g. not containing "/results/").
func UpdateEtag ¶
UpdateEtag updates the etag field of a result according to its content. The result should at least have its `Id` and `UpdatedTime` fields set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.