MCPcopy Create free account
hub / github.com/cloudfoundry/bosh-agent / GetFileContentsFromCDROM

Method GetFileContentsFromCDROM

platform/linux_platform.go:239–246  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

237}
238
239func (p linux) GetFileContentsFromCDROM(fileName string) (content []byte, err error) {
240 contents, err := p.cdutil.GetFilesContents([]string{fileName})
241 if err != nil {
242 return []byte{}, err
243 }
244
245 return contents[0], nil
246}
247
248func (p linux) GetFilesContentsFromDisk(diskPath string, fileNames []string) ([][]byte, error) {
249 return p.diskManager.GetUtil().GetFilesContents(diskPath, fileNames)

Callers

nothing calls this directly

Calls 1

GetFilesContentsMethod · 0.65

Tested by

no test coverage detected