Zbigniew Kurzynski | 9f2c7e2 | 2020-02-20 19:00:42 +0100 | [diff] [blame] | 1 | description: > |
| 2 | This interface provides methods for mounting and unmounting images |
| 3 | using the legacy mode. |
| 4 | |
| 5 | methods: |
| 6 | - name: Mount |
| 7 | description: Perform a mount to HOST operation on given object. |
| 8 | parameters: |
| 9 | - name: ImageURL |
| 10 | type: string |
| 11 | description: > |
| 12 | Url to image. It should start with either `smb://` or |
| 13 | `https://` prefix |
| 14 | - name: ReadWrite |
| 15 | type: boolean |
| 16 | description: False if the image should be read-only. |
| 17 | - name: FileDescriptor |
| 18 | type: variant[int32,unixfd] |
| 19 | description: > |
| 20 | File descriptor of named pipe used for passing null-delimited |
| 21 | secret data (username and password). When there is no data to |
| 22 | pass `-1` should be passed as `INT`. |
| 23 | returns: |
| 24 | - name: Status |
| 25 | type: boolean |
| 26 | description: mounting status. True on success. |
| 27 | errors: |
| 28 | - xyz.openbmc_project.Common.Error.InternalFailure |
| 29 | |
| 30 | - name: Unmount |
| 31 | description: Perform an unmount from HOST on given object. |
| 32 | returns: |
| 33 | - name: Status |
| 34 | type: boolean |
| 35 | description: the unmount status. True on success. |
| 36 | errors: |
| 37 | - xyz.openbmc_project.Common.Error.InternalFailure |