(b *bundle.Bundle, path string)
| 43 | } |
| 44 | |
| 45 | func writeBundleToFile(b *bundle.Bundle, path string) error { |
| 46 | fo, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) |
| 47 | if err != nil { |
| 48 | return err |
| 49 | } |
| 50 | defer fo.Close() |
| 51 | _, err = b.WriteTo(fo) |
| 52 | return err |
| 53 | } |
| 54 | |
| 55 | func addSignature(b *bundle.Bundle, signer *signature.Signer) error { |
| 56 | for _, e := range b.Exchanges { |
no test coverage detected