https://github.com/threez/go-sparsebundle
direct access to the sparse bundle format using golang
https://github.com/threez/go-sparsebundle
Last synced: 9 months ago
JSON representation
direct access to the sparse bundle format using golang
- Host: GitHub
- URL: https://github.com/threez/go-sparsebundle
- Owner: threez
- License: other
- Created: 2021-06-14T19:20:43.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-16T20:23:02.000Z (about 5 years ago)
- Last Synced: 2025-04-01T13:16:20.375Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 4.05 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-sparsebundle [](https://pkg.go.dev/github.com/threez/go-sparsebundle)
Direct access to the sparse bundle format using golang using cgo.
This library is a wrapper on top of the already existing
https://github.com/gyf304/sparsebundle-fuse due to that the software is GPLv2.
## How to use
```go
bbundle, err := Open("./tests/test.sparsebundle", 16)
if err != nil {
panic(err)
}
defer b.Close()
// bundle implements:
// * io.ReadWriteSeeker
// * io.ReaderAt
// * io.WriterAt
// * io.Closer
```
## Test
There are a few test files
* `tests/empty.sparsebundle` an almost empty file with only 10 bytes written
* `tests/FAT10.sparsebundle` a 10 MB GPT FAT file
* `tests/test.sparsebundle` an encrypted sparse bundle with a single file in it