https://github.com/hugeblank/harbor
Containerizing application for ComputerCraft.
https://github.com/hugeblank/harbor
computercraft container fs-api lua
Last synced: 25 days ago
JSON representation
Containerizing application for ComputerCraft.
- Host: GitHub
- URL: https://github.com/hugeblank/harbor
- Owner: hugeblank
- Created: 2018-10-18T07:17:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-29T07:06:43.000Z (almost 6 years ago)
- Last Synced: 2025-02-03T08:48:22.712Z (3 months ago)
- Topics: computercraft, container, fs-api, lua
- Language: Lua
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# harbor
Containerizing application environment for ComputerCraft.## Installation:
For the standalone harbor API:
`pastebin run ivRuuLSH`For the harbor API and a kit of tools to use it with:
`pastebin run ivRuuLSH extras`## API Usage:
`mountTable`: creates a fs API bound to the Harbor VFS tree passed in
- **Parameters**
- _table_: HVFS tree
- **Returns**
- _table_: filesystem API`mountString`: creates a fs API bound to the serialized HVFS tree passed in
- **Parameters**
- _string_: serialized HVFS tree
- **Returns**
- _table_: filesystem API`mountFile`: creates a fs API bound to the HVFS tree contained in the file passed in
- **Parameters**
- _string_: path to a file containing a HVFS tree
- **Returns**
- _table_: filesystem API`convert`: generates a HVFS tree with the root starting at the path passed in
- **Parameters**
- _string_: path to directory to be converted
- **Returns**
- _table_: HVFS tree`revert`: takes a fs API tied to a harbor object and converts it into a directory structure with the root being the path
- **Parameters**
- _table_: Harbor fs API
- _string_: Path to dump contents
- **Returns**
- _boolean_: Whether the operation succeeded or not