nbdserver

command
v1.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

README

NBDServer for blocks stored in ARDB

Test locally

Make sure you have an ardb server running on localhost:16379!

go build && ./nbdserver -protocol tcp -address ":6666"

Connect your nbdclient to the server running on localhost:6666:

sudo nbd-client -b 4096 -name default localhost 6666 /dev/nbd1
sudo mkfs.ext4 -b 4096 /dev/nbd1
sudo mount /dev/nbd1 /mnt/sharedvolume

Development

Volumecontroller api changes

When the volumecontroller raml definition changed, regenerate the docs, client- and stub interface:

go generate

Dependencies:

  • Go 1.6 or above;
  • npm i -g raml2html: used for generation of HTML docs;
  • go get -u github.com/Jumpscale/go-raml: used to generate stubs and clients;

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package clients combines the generated clients for external services
Package clients combines the generated clients for external services
specs
Package stubs provides fake implementations for external components like ardb.
Package stubs provides fake implementations for external components like ardb.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL