Get the bytes corresponding to an ID given in Spec. Additionally returns the total number of bytes in the ReadCloser, or -1 if the size is unknown. Be warned, returning -1 will make the boot process orders of magnitude slower due to poor ipxe behavior.
(id ID)
| 130 | // -1 will make the boot process orders of magnitude slower due to |
| 131 | // poor ipxe behavior. |
| 132 | ReadBootFile(id ID) (io.ReadCloser, int64, error) |
| 133 | // Write the given Reader to an ID given in Spec. |
| 134 | WriteBootFile(id ID, body io.Reader) error |
| 135 | } |
no outgoing calls