if a restauth key is missing in config
file or if restauth is set to true,
glusterd2 will do token authentication.
Authentication can be disabled by
by setting restauth key in the configuration
to false.
updated test cases to use authentication
if auth file is present
added default rest authentication in glustercli
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
SC2086: Double quote to prevent globbing and word splitting.
SC2046: Quote this to prevent word splitting.
Signed-off-by: Michael Adam <obnox@redhat.com>
make dist creates source tarballs of the GD2 source directory.
make dist-vendor creates tarballs including the vendor directory.
The generated tarballs contain a VERSION file, which is used by the
build script to set proper versions, gitsha and build-ids when building
GD2 from tarballs.
This is initial code which enables creation of plugins for glusterd2.
Plugin interface is
type GlusterdPlugin interface{
Name() string
SunRPCProgram() sunrpc.Program
RestRoutes() route.Routes
RegisterStepFuncs()
}
Plugin can register sunrpc procedure, REST route and can register step
functions required for Transaction(Transaction APIs are not stable
yet)
Included hello plugin, which plugs following REST routes into
glusterd2 REST server.
GET /v1/hello
POST /v1/hello
To add new Plugin,
- Create a plugin package and add to import and plugin list in the
file `$SRC/plugins/plugins.go`
- Create a struct and implement the above interfaces
To disable building plugins,
PLUGINS=no make
Closes #131
Signed-off-by: Aravinda VK avishwan@redhat.com
- The Makefile has been updated to use these scripts to build, install
and release
- Run `make release` to create build, create and sign a release archive,
useful for releasing on Github.