MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / GetFile

Function GetFile

testutil/test_results.go:103–113  ·  view source on GitHub ↗
(file *os.File, digest string, namespace string)

Source from the content-addressed store, hash-verified

101}
102
103func GetFile(file *os.File, digest string, namespace string) *models.FileMetadata {
104 stat, _ := file.Stat()
105 return &models.FileMetadata{
106 ID: stat.Name(),
107 Space: "test-space",
108 Name: stat.Name(),
109 Namespace: namespace,
110 Digest: digest,
111 DigestAlgorithm: "MD5",
112 }
113}
114
115func GetOperation(processID, spaceID string, mtaID string, namespace string, processType string, state string, acquiredLock bool) *models.Operation {
116 return &models.Operation{

Callers 2

Calls 2

StatMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected