Pure Go language bindings for Apache Mesos, under development. As with other pure implementations, mesos-go uses the HTTP wire protocol to communicate directly with a running Mesos master and its slave instances. One of the objectives of this project is to provide an idiomatic Go API that makes it super easy to create Mesos frameworks using Go.
New projects should use the Mesos v1 API bindings, located in api/v1
.
Unless otherwise indicated, the remainder of this README describes the Mesos v1 API implementation.
Please vendor this library to avoid unpleasant surprises via go get ...
.
The Mesos v0 API version of the bindings, located in api/v0
, are more mature but will not see any major development besides critical compatibility and bug fixes.
mesos-N
tags mark the start of support for a specific Mesos version while maintaining backwards compatibility with the previous major version.
- The SchedulerDriver API implemented
- The ExecutorDriver API implemented
- Example programs on how to use the API
- Modular design for easy readability/extensibility
- Go 1.7 or higher; https://golang.org/dl/
- A standard and working Go workspace setup (multiple golang versions are tested via CI)
- Apache Mesos 1.x; http://mesos.apache.org/downloads/
- protoc compiler; https://github.com/google/protobuf/releases
- v3.3.x is tested by CI and should be used for code generation
govendor
; https://github.com/kardianos/govendor
Users of this library are encouraged to vendor it. API stability isn't guaranteed at this stage.
# download the source code
$ go get -d github.com/mesos/mesos-go
# build the example binaries
$ cd $GOPATH/src/github.com/mesos/mesos-go
$ make install
$ make test
Contributions are welcome. Please refer to CONTRIBUTING.md for guidelines.
This project is Apache License 2.0.