Discover Packages
github.com/datto/copyondemand
examples
override_source
command
Version:
v0.0.0-...-4384058
Opens a new window with list of versions in this module.
Published: Dec 4, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Minimalist example of overriding the behavior of the data source. This is useful in cases where data blocks are being stored in some other non-file form (e.g. an object store).
In this case we've overwritten the source to always return a file containing only 0x1's.
Example build and run:
$ go build -o override_source main.go
$ chmod +x ./override_source
$ ./override_source
In a separate terminal:
$ hexdump -C /dev/nbd0
00000000 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 |................|
*
00100000
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.