1428
1429
// SplitHistoryGarbageCleanupInfo returns workflow identity information
1430
>
func SplitHistoryGarbageCleanupInfo(info string) (namespaceID, workflowID, runID string, err error) {
data_interfaces.go
1431
>
// Expect format: namespaceID:workflowID:runID, but workflowID may contain ':' so we
1432
>
// take everything between the first and last ':' as workflowID.
1433
>
first := strings.IndexByte(info, ':')
1434
>
last := strings.LastIndexByte(info, ':')
1435
>
if first < 0 || first == last { // need at least two ':' to have 3 parts
1436
return "", "", "", fmt.Errorf("not able to split info for %s", info)
1437
}