Commit Graph

111 Commits

Author SHA1 Message Date
Abhishek Lekshmanan
2d8d57f246 doc: add basic instructions for contributing
Added basic info for some standards to be followed, how to run tests
etc.

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2015-07-17 22:41:18 +05:30
Noah Watkins
8f882afdc3 Merge pull request #23 from theanalyst/wip-gofmt
go fmt the source files and add travis check for go fmt
2015-07-12 14:23:37 -06:00
Abhishek Lekshmanan
722a5ff06f travis: check for go fmt violations for patches
While submitting patches travis will fail if source isn't go fmt'ed

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2015-07-08 14:07:55 +05:30
Abhishek Lekshmanan
d63c6698c2 gofmt all the source files
Running gofmt ./... on the repository

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2015-07-08 14:04:54 +05:30
Noah Watkins
037adbe79e Merge pull request #22 from travisn/patch-1
Add an overload for creating a connection to a non-default cluster name

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-06-18 06:50:52 -06:00
Travis Nielsen
8e73ca4191 Pass the correct admin user name 2015-06-16 16:10:09 -07:00
Travis Nielsen
c7214b5694 Add a test for connecting with the cluster name and user name 2015-06-16 15:55:12 -07:00
Travis Nielsen
2835eeac35 Add an overload for creating a connection to a cluster other than the default cluster name of "ceph". 2015-06-16 15:32:09 -07:00
Noah Watkins
571d19f634 ci: fetch dependencies
This was apparently happening automatically and not now. I'm not sure what's going on.
2015-05-24 11:21:29 -07:00
Noah Watkins
19cf5ac043 Merge pull request #21 from theanalyst/docker-ci
Run local tests in a docker
2015-05-24 11:16:32 -07:00
Abhishek Lekshmanan
cec4e4d870 Add a simple makefile
Primarily allowing for testing via docker; and other simple stuff like
fmt

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2015-05-24 13:43:05 +05:30
Abhishek Lekshmanan
e38a5a25e0 ci: Allow local tests to run in a docker
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2015-05-24 11:12:54 +05:30
Noah Watkins
6f60f5a203 Merge pull request #19 from gierschv/feat-omap-iterator
ioctx: ListOmapValues & GetAllOmapValues added
2015-05-04 11:49:46 -07:00
Vincent Giersch
b15639c44c ioctx: ListOmapValues & GetAllOmapValues added
* `ListOmapValues` allows to iterate on all the key feteched during
a read operation of an omap (the goal is to easily get the last
read key from the C iterator. This one can then be used in another
call as `startAfter` parameter).
* `GetAllOmapValues` returns all the keys / values of the whole omap
* `GetOmapValues` now uses `ListOmapValues`

Signed-off-by: Vincent Giersch <vincent.giersch@ovh.net>
2015-05-04 14:50:59 +00:00
Noah Watkins
0f4cf26919 cephfs: add mkdir
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-05-01 12:57:07 -07:00
Noah Watkins
de82ee54cf Merge pull request #18 from noahdesu/cephfs
cephfs: add initial cephfs go wrappers
2015-05-01 12:42:57 -07:00
Noah Watkins
1efdf980f0 cephfs: begin cephfs wrappers
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-05-01 12:41:47 -07:00
Noah Watkins
95fa549c14 travis: add mds to micro cluster
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-05-01 12:41:47 -07:00
Noah Watkins
c7a0450712 Merge pull request #15 from gierschv/feat-stat
ioctx: Stat added
2015-04-27 11:32:58 -07:00
Noah Watkins
dc2948d83e Merge pull request #16 from gierschv/feat-omap
ioctx: omap set / get / delete / clear added
2015-04-27 11:30:28 -07:00
Vincent Giersch
476dc4001d ioctx: omap set / get / delete / clear added
Signed-off-by: Vincent Giersch <vincent.giersch@ovh.net>
2015-04-27 15:21:54 +00:00
Vincent Giersch
1779dc795a ioctx: Stat added
Signed-off-by: Vincent Giersch <vincent.giersch@ovh.net>
2015-04-24 12:01:50 +00:00
Noah Watkins
0d0d33389a Merge pull request #14 from theanalyst/rm-xattr
ioctx: RmXattr added

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-04-08 12:17:11 -07:00
Abhishek Lekshmanan
68bbcb2f80 ioctx: RmXattr added
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2015-04-09 00:09:27 +05:30
Noah Watkins
1f2352fecd Merge pull request #13 from theanalyst/f/list-xattrs
ioctx: added ListXattrs()

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-04-07 14:09:52 -07:00
Abhishek Lekshmanan
6324a7917d ioctx: use bytes for ListXattrs
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2015-04-07 14:29:00 +05:30
Abhishek Lekshmanan
ee55aa1810 ioctx: added ListXattrs()
Added a function to List Xattrs, which returns a map of all xattrs set
on an object, errors out otherwise

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2015-04-06 12:39:37 +05:30
Noah Watkins
85ccb42861 Merge pull request #12 from theanalyst/f/rw_xattr
ioctx: get/set xattr added

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-03-31 07:47:16 -07:00
Abhishek Lekshmanan
592900cb3a ioctx: get/put xattr added
Added functions GetXattr & SetXattr for getting &/ setting xattrs on
objects in a pool
2015-03-31 15:10:17 +05:30
Noah Watkins
f5802b762b Merge pull request #11 from scjalliance/master
Added NewConnWithUser to allow users other than the default

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-02-22 13:19:38 -08:00
Dusty Wilson
f8de1c7f5a Added test for NewConnWithUser 2015-02-22 13:09:13 -08:00
Dusty Wilson
9c7193f3ad Added NewConnWithUser to allow users other than the default 2015-02-22 02:54:06 -08:00
Noah Watkins
e703215356 Merge pull request #10 from giganteous/gofmt
style: run gofmt on all sources

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-02-11 13:28:25 -08:00
Kai Storbeck
0c6bdf8d59 run gofmt on all sources 2015-02-11 22:21:05 +01:00
Noah Watkins
d2c4761f9f Merge pull request #9 from giganteous/moncommand
rados: Implement MonCommand

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-02-11 11:29:02 -08:00
Kai Storbeck
563c4eb06d add some comments, drop reflect version 2015-02-11 20:13:35 +01:00
Kai Storbeck
1e0ea49819 Return a []byte pointing to the original C array
This was taken from an example on Go's own wiki (cgo page).
2015-02-11 19:56:41 +01:00
Kai Storbeck
ca76480b0b implemment MonCommand 2015-02-10 22:11:37 +01:00
Kai Storbeck
a06dd37546 implement the MonCommand function 2015-02-10 21:13:56 +01:00
Noah Watkins
ed459df64f Merge pull request #8 from noahdesu/nuke-rbd-aio
rbd: remove buggy aio interface
2015-02-09 11:07:09 -08:00
Noah Watkins
0d62c1455a rbd: remove buggy aio interface
The AIO interface is not thread safe. There is an example of how to use
non-Go threads to make callback into Go found in the zookeepr api go
bindings.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-02-09 10:54:19 -08:00
Noah Watkins
a385a8d18d Merge pull request #6 from lebauce/rbd-fixes
rbd: RBD fixes

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-01-15 08:01:58 -08:00
Sylvain Baubeau
edd909006b rbd: add tests for read/write and snapshots 2015-01-15 15:19:20 +01:00
Sylvain Baubeau
5671536b12 rbd: clean images and pools in tests 2015-01-15 15:18:18 +01:00
Sylvain Baubeau
75e9c455a6 rbd: fix error handling for write, seek and flush 2015-01-15 15:15:31 +01:00
Sylvain Baubeau
921a14b17f rbd: fix calls to wrong C functions 2015-01-15 15:13:53 +01:00
Noah Watkins
6fb5e09394 rbd: fix test
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-01-14 17:36:56 -08:00
Noah Watkins
9a1b29d02e Merge remote-tracking branch 'lb/newrbd'
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-01-14 17:32:51 -08:00
Noah Watkins
f5bfcec122 fix go-rados -> go-ceph renames
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-01-14 17:30:46 -08:00
Sylvain Baubeau
e00f9bf1a8 lib: add full support for RADOS block devices 2015-01-15 00:44:26 +01:00