(file *os.File, digest string, namespace string)
| 101 | } |
| 102 | |
| 103 | func 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 | |
| 115 | func GetOperation(processID, spaceID string, mtaID string, namespace string, processType string, state string, acquiredLock bool) *models.Operation { |
| 116 | return &models.Operation{ |
no test coverage detected