debian/0000755000000000000000000000000012236017110007157 5ustar debian/golang-doozer-bin.install0000644000000000000000000000001212220634500014056 0ustar /usr/bin/*debian/changelog0000644000000000000000000000026612220634500011036 0ustar golang-doozer (0.0~git20130909-1) unstable; urgency=low * Initial release. Closes: #722981 -- Tonnerre Lombard Mon, 09 Sep 2013 03:44:20 +0200 debian/docs0000644000000000000000000000001212220634500010024 0ustar README.md debian/source/0000755000000000000000000000000012223074021010457 5ustar debian/source/format0000644000000000000000000000001412220634500011666 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000005112223074021012071 0ustar extend-diff-ignore = "(^|/)msg\.pb\.go$" debian/golang-doozer-bin.manpages0000644000000000000000000000002012220634500014202 0ustar debian/doozer.1 debian/control0000644000000000000000000000251312236017110010563 0ustar Source: golang-doozer Section: devel Priority: extra Maintainer: Tonnerre Lombard Build-Depends: debhelper (>= 9), golang-go, golang-pretty-dev, golang-goprotobuf-dev, golang-text-dev, dh-golang Standards-Version: 3.9.4 Homepage: https://github.com/4ad/doozer Vcs-Git: git://anonscm.debian.org/pkg-go/packages/golang-doozer.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-go/packages/golang-doozer.git;a=summary Package: golang-doozer-dev Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, golang-pretty-dev, golang-goprotobuf-dev Description: Go client driver for doozerd, a consistent, distributed data store This package contains the client library for developing Doozer lock service clients. It allows programs to perform all operations the Doozer lock service implements, such as: . * Instant distribution of configurations or settings, * Implementing instantly-updated namespaces, * Master election . and many others. Package: golang-doozer-bin Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Go client for doozerd, a consistent, distributed data store This package contains the doozer binary for interacting with the Doozer server. It implements all of the operations supported by the Doozer client library, but can be used on the command line. debian/golang-doozer-bin.lintian-overrides0000644000000000000000000000021112220634500016047 0ustar # The Go compiler is currently unable to produce read-only relocations # (it produces static binaries). hardening-no-relro usr/bin/doozerdebian/patches/0000755000000000000000000000000012223074021010606 5ustar debian/patches/overridden-typo0000644000000000000000000000135712220634500013672 0ustar Description: Fix for misspelled "overridden" Overridden is spelled with an insufficient number of "d"s in the doozer command line interface. Author: Tonnerre Lombard Forwarded: https://github.com/tonnerre/golang-doozer/pull/1 Last-Update: 2013-09-25 --- golang-doozer-0.0~git20130909.orig/cmd/doozer/doozer.go +++ golang-doozer-0.0~git20130909/cmd/doozer/doozer.go @@ -40,9 +40,9 @@ Global Options: ` usage2 = `Environment: - DOOZER_URI - The doozer cluster to bind to; overriden by -a. + DOOZER_URI - The doozer cluster to bind to; overridden by -a. - DOOZER_BOOT_URI - The DzNS to lookup address in; overriden by -b. + DOOZER_BOOT_URI - The DzNS to lookup address in; overridden by -b. Commands: ` debian/patches/msg-extensions0000644000000000000000000000152012223074021013512 0ustar Description: Protobuf extensions for msg.proto. This provides methods which are part of the protocol buffer structures compiled from msg.pb.go but which are not part of the generated code. Author: Tonnerre Lombard Forwarded: no Last-Update: 2013-10-02 --- /dev/null +++ b/msg.ext.go @@ -0,0 +1,7 @@ +// Extensions to msg.pb.go which are not generated by the protobuf +// compiler. +package doozer + +func (x response_Err) Error() string { + return x.String() +} --- a/msg.pb.go +++ b/msg.pb.go @@ -130,9 +130,6 @@ func (x response_Err) Enum() *response_Err { func (x response_Err) String() string { return proto.EnumName(response_Err_name, int32(x)) } -func (x response_Err) Error() string { - return x.String() -} func (x response_Err) MarshalJSON() ([]byte, error) { return json.Marshal(x.String()) } debian/patches/series0000644000000000000000000000003712223074021012023 0ustar overridden-typo msg-extensions debian/rules0000755000000000000000000000074012223074021010240 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 # DH_GOPKG is the upstream path which you would normally “go get”. # Using it allows us to build applications without patching locations. export DH_GOPKG := github.com/4ad/doozer override_dh_auto_configure: rm msg.pb.go protoc --go_out=. msg.proto sed -i -e"s/Request/request/g" \ -e"s/Response/response/g" \ msg.pb.go dh_auto_configure %: dh $@ --buildsystem=golang --with=golang debian/doozer.10000644000000000000000000001041412220634500010544 0ustar .\" Hey, EMACS: -*- nroff -*- .TH DOOZER "1" "Aug 2013" "doozer" .SH NAME doozer \- Doozer Lock service command line client .SH SYNOPSIS .TP .B doozer \fI[options]\fR \fI\fR \fI[options]\fR \fI[args]\fR .SH DESCRIPTION .PP .B doozer is a client for the .I Doozer Lock Service as implemented by the .BR doozerd (8) binary. It can be used to perform any kind of .B doozer lock service operation which is supported by the API, such as creating or updating entries, watching them for changes or listing contents of arbitrary trees on the lock service. .SH OPTIONS Each command takes zero or more options and zero or more arguments. In addition, there are some global options that can be used with any command. .TP Global options are: .IP -a=URI Connect to the given .B doozer service. The URI can contain an arbitrary number of address parts concatenated by an ampersand character (&). An URI always starts with the prefix .IR doozer:? . Valid options include: .RS .IP ca specifies the "cluster address", which could be an IP address and port combination or a host name with a port appended to it. .IP cn specifies a cluster name which will be looked up from the lock servers specified in the environment variable .BR DOOZER_BOOT_URI (which also contains a doozer URI). .IP sk can specify a shared key which is used to authenticate to the lock service. .RE .RS An example URI would look like this: .TP doozer:?ca=doozer1.example.com&ca=doozer2.example.com&sk=letmein .RE .IP -b=URI specifies the Doozer Boot URI which is used to resolve any cluster names passed in the .IR -a flag. It shares the same syntax as .IR -a . .IP -h shows a short context help. .IP -r=rev specifies the revision number for commands which optionally accept one. .IP -v tells .B doozer to print its version string. .TP Commands are: .IP "add path" Add a key only if it isn't already set. Takes the file input from stdin. .IP "del path rev" Deletes the file if it is older than revision .IR rev . .IP "find path" Lists all files under the given .IR path . .IP "get path" Fetches the contents of the entry at .I path and displays it to stdout. .IP "help command" Displays detailed help for the given .IR command . .IP nop Just wait for consensus between all lock servers and return. .IP "rev path" Display the current revision of .IR path . .IP "set path rev" Sets the contents of .I path to the contents read from stdin if it's older than .IR rev . .IP "stat path" Prints the current status of the entry at .IR path . .IP "touch path" Update the revision of the file at .IR path . .IP "wait glob" Wait until a change occurs in an entry which matches .IR glob . .IP "watch glob" Watch for changes in entries which match .IR glob . Prints all changes to such entries to stdout. .SH ENVIRONMENT The following environment variables are honored: .IP DOOZER_URI The doozer cluster to bind to; overridden by .IR -a . .IP DOOZER_BOOT_URI The DzNS to lookup address in; overridden by .IR -b . .SH "EXIT CODES" The exit status is 0 on success, 1 for a rev mismatch, and 2 otherwise. .SH "SEE ALSO" .BR doozerd (8) . .SH AUTHOR .B doozer was written by Blake Mizerany and Keith Rarick. .SH "REPORTING BUGS" Please file any bug in the issue tracker at .I https://github.com/ha/doozer/issues .SH COPYRIGHT .PP Copyright \(co 2010-2013 Blake Mizerany, Keith Rarick. .PP Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: .PP The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. .PP THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/compat0000644000000000000000000000000212220634500010356 0ustar 9 debian/copyright0000644000000000000000000000253412220634500011117 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: doozer Source: https://github.com/4ad/doozer Files: * Copyright: 2010, 2011, 2012 Blake Mizerany, Keith Rarick License: Expat Files: debian/* Copyright: 2012 Tonnerre Lombard License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/golang-doozer-dev.install0000644000000000000000000000004712220634500014074 0ustar /usr/share/gocode/src/github.com/4ad/*