(artifact string)
| 30 | } |
| 31 | |
| 32 | func (s *LiveStore) createJSONLinesFileName(artifact string) string { |
| 33 | if runtime.GOOS == "windows" { |
| 34 | // Colons are special characters in Windows and cannot be used in file names. |
| 35 | // Replace them with dashes to avoid issues. |
| 36 | artifact = strings.ReplaceAll(artifact, ":", "-") |
| 37 | } |
| 38 | |
| 39 | return fmt.Sprintf("%s.jsonl", artifact) |
| 40 | } |
| 41 | |
| 42 | func (s *LiveStore) createMetadataFile(artifactDigest string, attestationsResp []*api.Attestation) (string, error) { |
| 43 | metadataFilePath := s.createJSONLinesFilePath(artifactDigest) |
no outgoing calls
no test coverage detected