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

Function NewUtil

platform/disk/diskutil.go:27–36  ·  view source on GitHub ↗
(runner boshsys.CmdRunner, mounter Mounter, fs boshsys.FileSystem, logger boshlog.Logger)

Source from the content-addressed store, hash-verified

25}
26
27func NewUtil(runner boshsys.CmdRunner, mounter Mounter, fs boshsys.FileSystem, logger boshlog.Logger) Util {
28 return diskUtil{
29 mounter: mounter,
30 runner: runner,
31 fs: fs,
32
33 logTag: "diskUtil",
34 logger: logger,
35 }
36}
37
38func (util diskUtil) GetFilesContents(diskPath string, fileNames []string) ([][]byte, error) {
39 if !util.fs.FileExists(diskPath) {

Callers 3

NewLinuxDiskManagerFunction · 0.85
diskutil_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected