MCPcopy Create free account
hub / github.com/danderson/netboot / ReadBootFile

Method ReadBootFile

pixiecore/pixiecore.go:132–132  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers 3

TestStaticBooterFunction · 0.65
TestAPIBooterFunction · 0.65
handleFileMethod · 0.65

Implementers 2

staticBooterpixiecore/booters.go
apibooterpixiecore/booters.go

Calls

no outgoing calls

Tested by 2

TestStaticBooterFunction · 0.52
TestAPIBooterFunction · 0.52