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

Method ReadBootFile

pixiecore/http_test.go:156–159  ·  view source on GitHub ↗
(id ID)

Source from the content-addressed store, hash-verified

154
155func (b readBootFile) BootSpec(m Machine) (*Spec, error) { return nil, nil }
156func (b readBootFile) ReadBootFile(id ID) (io.ReadCloser, int64, error) {
157 d := fmt.Sprintf("%s %s", id, b)
158 return ioutil.NopCloser(bytes.NewBuffer([]byte(d))), int64(len(d)), nil
159}
160func (b readBootFile) WriteBootFile(id ID, r io.Reader) error { return errors.New("no") }
161
162func TestFile(t *testing.T) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected