robn / consul Goto Github PK
View Code? Open in Web Editor NEWPerl client library for Consul
License: Other
Perl client library for Consul
License: Other
Hello, this is a friendly reminder that 0.7.0 was released about a week ago.
The main change that matters for this distro is the kv API now supports a txn endpoint for doing transactional kv and locking stuff.
Also, robn/Test-Consul#2 and #4 will make the upgrade path much easier since it loosens the version requirements. This bit me pretty hard. :(
It doesn't appear, at least by grepping the POD, that this library supports the ability to specify a custom auth token.
Right now it returns undef
, but for consistency it should return []
.
service_register
can take a Consul::Service
or a string as its first param. If a string, its supposed to create a Consul::Service
, but the constructor args are wrong.
86bf3d6 made it clear to me that I really need constraint checking on method unpacking too. I've been using compile
from Type::Params
elsewhere for this, and I like it a lot, so lets do that.
http://www.cpantesters.org/cpan/report/a079b966-6bf3-1014-8315-ad5b5711512c
It fails with 0.038. It succeeds with 1.002001. Somewhere in between, I guess.
Consul changed the ACL subsystem in 1.4.0. See here: https://www.consul.io/docs/acl/acl-system.html
Its possible this is just robn/Test-Consul#7, and then remove the skip_all
from t/20-acl-api.t
.
Recently I upgraded my cluster to Consul 0.7.0, and while the API did not change much (a new endpoint was added for transactional kv calls) this module now fails to install. There is no reason this module will not work on 0.7.0.
Seems to me this module is more about supporting the v1
API rather than just a specific version of Consul. Declaring in the docs that it matches the spec of a particular version makes sense, but to wholesale block the install if a very specific version is not installed doesn't make sense to me. And, yes, I could skip the tests, and that is what I've done.
From a user:
Otherwise there's extra checking for is this variable defined or is the value what I expect. Having a function return undef if there's nothing in the kv for that key would be useful
I think undef might be a reasonable proxy for not-found, but I think it belongs in a utility package because it doesn't quite align with the HTTP API, and there's probably other non-value conditions possible in some situations (server errors, block timeouts, etc). More thought required.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.