extractVSAIdentifier extracts the VSA identifier from args or data
(data *validateVSAData, args []string)
| 423 | |
| 424 | // extractVSAIdentifier extracts the VSA identifier from args or data |
| 425 | func extractVSAIdentifier(data *validateVSAData, args []string) string { |
| 426 | if len(args) > 0 { |
| 427 | return args[0] |
| 428 | } |
| 429 | return data.vsaIdentifier |
| 430 | } |
| 431 | |
| 432 | // worker processes components from the jobs channel and sends results to the results channel |
| 433 | func worker(jobs <-chan app.SnapshotComponent, results chan<- vsa.ComponentResult, ctx context.Context, data *validateVSAData) { |