mirror of
https://github.com/ceph/go-ceph
synced 2024-12-27 08:42:11 +00:00
Go bindings for Ceph
b8609f826c
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> |
||
---|---|---|
conn.go | ||
pool.go | ||
rados_test.go | ||
rados.go | ||
README.md |
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]