Documentation ¶
Index ¶
Constants ¶
View Source
const ( // JobIDPrefix is the prefix of job ID. JobIDPrefix = "j-" // ExecutionIDPrefix is the prefix of execution ID. ExecutionIDPrefix = "e-" // EvaluationIDPrefix is the prefix of evaluation ID. EvaluationIDPrefix = "v-" )
View Source
const ShortIDLength = 8
View Source
const ShortIDLengthWithPrefix = ShortIDLength + len(JobIDPrefix)
Variables ¶
This section is empty.
Functions ¶
func ShortID ¶
ShortID takes a string in the format of "prefix-UUID" or just "UUID" and returns the prefix along with the first segment of the UUID. For example: - For "e-78faf114-6a45-457e-825c-40fd2fad768f", it returns "e-78faf114". - For "j-78faf114-6a45-457e-825c-40fd2fad768f", it returns "j-78faf114". - For "78faf114-6a45-457e-825c-40fd2fad768f", it returns "78faf114".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.