MCPcopy Create free account
hub / github.com/conforma/cli / extractVSAIdentifier

Function extractVSAIdentifier

cmd/validate/vsa.go:425–430  ·  view source on GitHub ↗

extractVSAIdentifier extracts the VSA identifier from args or data

(data *validateVSAData, args []string)

Source from the content-addressed store, hash-verified

423
424// extractVSAIdentifier extracts the VSA identifier from args or data
425func 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
433func worker(jobs <-chan app.SnapshotComponent, results chan<- vsa.ComponentResult, ctx context.Context, data *validateVSAData) {

Callers 1

runValidateVSAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected