MCPcopy Index your code
hub / github.com/linuxkit/linuxkit / WriteHeader

Method WriteHeader

src/cmd/linuxkit/initrd/initrd.go:142–144  ·  view source on GitHub ↗

WriteHeader writes a cpio header into an initrd

(hdr *cpio.Header)

Source from the content-addressed store, hash-verified

140
141// WriteHeader writes a cpio header into an initrd
142func (w *Writer) WriteHeader(hdr *cpio.Header) error {
143 return w.cw.WriteHeader(hdr)
144}
145
146// Write writes a cpio file into an initrd
147func (w *Writer) Write(b []byte) (n int, e error) {

Callers 7

copyFilesToContainerMethod · 0.95
ReaderMethod · 0.95
BuildMethod · 0.95
writeLayoutHeaderFunction · 0.45
writeLayoutBlobFunction · 0.45
writeLayoutIndexFunction · 0.45
copyTarEntryFunction · 0.45

Calls

no outgoing calls

Tested by 1

BuildMethod · 0.76