(path string, content []byte)
| 69 | } |
| 70 | |
| 71 | func DescriptorForComposeFile(path string, content []byte) v1.Descriptor { |
| 72 | return v1.Descriptor{ |
| 73 | MediaType: ComposeYAMLMediaType, |
| 74 | Digest: digest.FromString(string(content)), |
| 75 | Size: int64(len(content)), |
| 76 | Annotations: map[string]string{ |
| 77 | "com.docker.compose.version": api.ComposeVersion, |
| 78 | "com.docker.compose.file": filepath.Base(path), |
| 79 | }, |
| 80 | Data: content, |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | func DescriptorForEnvFile(path string, content []byte) v1.Descriptor { |
| 85 | return v1.Descriptor{ |
no outgoing calls
no test coverage detected