Go bindings for Ceph
Go to file
Noah Watkins b8609f826c lib: fix parse commnad line arguments
Adds a placeholder string at argv[0] position because Ceph will start
parsing the provided arguments at position argv[1] (skipping what would
normally be the executable name).

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2014-08-30 10:30:16 -07:00
conn.go lib: fix parse commnad line arguments 2014-08-30 10:30:16 -07:00
pool.go doc: update method docs 2014-05-24 11:28:19 -07:00
rados_test.go lib: fix parse commnad line arguments 2014-08-30 10:30:16 -07:00
rados.go lib: rename Open to NewConn 2014-05-24 11:42:18 -07:00
README.md doc: update readme with example 2014-05-26 11:14:12 -07:00

go-rados - Go bindings for RADOS distributed object store

Installation

go get github.com/noahdesu/go-rados

The native RADOS library and development headers are expected to be installed.

Documentation

Detailed documentation is available at http://godoc.org/github.com/noahdesu/go-rados.

Example

Connect to a cluster and list the pools:

conn, _ := rados.NewConn()
conn.ReadDefaultConfigFile()
conn.Connect()
pools, _ := conn.ListPools()
fmt.Println(len(pools), pools)

will print:

3 [data metadata rbd]