Skip to content

Commit

Permalink
Init.
Browse files Browse the repository at this point in the history
  • Loading branch information
hexfusion committed May 29, 2017
1 parent d82e9bd commit b6bcec6
Show file tree
Hide file tree
Showing 22 changed files with 117 additions and 117 deletions.
6 changes: 3 additions & 3 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Revision history for Etcd3
Revision history for Net::Etcd
0.007

[ ANNOUNCEMENT ]
Expand All @@ -9,9 +9,9 @@ Revision history for Etcd3
* Sweeping changes to usage some not backwards compatible, sorry.
* Restructuring of classes to consolidate and reduce redundancy, see d323feb5c0.
* Replaced HTTP::Tiny with AnyEvent::HTTP allowing async interaction with etcd.
* Simplified the internal way $etcd object is initialized. Replacing ->connect with ->new, also moving ::Client into Etcd3 module.
* Simplified the internal way $etcd object is initialized. Replacing ->connect with ->new, also moving ::Client into Net::Etcd module.
* Renamed _client accessor to etcd.
* Make Etcd3::KV a Moo::Role allowing easier interaction with other KV classes.
* Make Net::Etcd::KV a Moo::Role allowing easier interaction with other KV classes.


[ BUG FIXES ]
Expand Down
24 changes: 12 additions & 12 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ MANIFEST.SKIP
Makefile.PL
README
README.md
lib/Etcd3.pm
lib/Etcd3/Auth.pm
lib/Etcd3/Auth/Role.pm
lib/Etcd3/Config.pm
lib/Etcd3/Lease.pm
lib/Etcd3/Role/Actions.pm
lib/Etcd3/KV.pm
lib/Etcd3/KV/Put.pm
lib/Etcd3/KV/Range.pm
lib/Etcd3/User.pm
lib/Etcd3/User/Role.pm
lib/Etcd3/Watch.pm
lib/Net::Etcd.pm
lib/Net::Etcd/Auth.pm
lib/Net::Etcd/Auth/Role.pm
lib/Net::Etcd/Config.pm
lib/Net::Etcd/Lease.pm
lib/Net::Etcd/Role/Actions.pm
lib/Net::Etcd/KV.pm
lib/Net::Etcd/KV/Put.pm
lib/Net::Etcd/KV/Range.pm
lib/Net::Etcd/User.pm
lib/Net::Etcd/User/Role.pm
lib/Net::Etcd/Watch.pm
t/00-load.t
t/key_value.t
t/lease.t
Expand Down
8 changes: 4 additions & 4 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use warnings FATAL => 'all';
use ExtUtils::MakeMaker;

WriteMakefile(
NAME => 'Etcd3',
NAME => 'Net::Etcd',
AUTHOR => q{Sam Batschelet (hexfusion) <sbatschelet@mac.com>},
VERSION_FROM => 'lib/Etcd3.pm',
VERSION_FROM => 'lib/Net::Etcd.pm',
ABSTRACT => 'Provide access to the etcd v3 API.',
LICENSE => 'perl',
PL_FILES => {},
Expand Down Expand Up @@ -35,9 +35,9 @@ WriteMakefile(
META_MERGE => {
resources => {
repository =>
'https://github.com/hexfusion/Etcd3',
'https://github.com/hexfusion/Net::Etcd',
bugtracker =>
'https://github.com/hexfusion/Etcd3',
'https://github.com/hexfusion/Net::Etcd',
},
},
);
22 changes: 11 additions & 11 deletions README
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
NAME
Etcd3
Net::Etcd

SYNOPSIS
Etcd v3.1.0 or greater is required. To use the v3 API make sure to set environment
variable ETCDCTL_API=3. Precompiled binaries can be downloaded at https://github.com/coreos/etcd/releases.

$etcd = Etcd3->new(); # host: 127.0.0.1 port: 2379
$etcd = Etcd3->new({ host => $host, port => $port, ssl => 1 });
$etcd = Net::Etcd->new(); # host: 127.0.0.1 port: 2379
$etcd = Net::Etcd->new({ host => $host, port => $port, ssl => 1 });

# put key
$result = $etcd->put({ key =>'foo1', value => 'bar' });
Expand Down Expand Up @@ -36,7 +36,7 @@ SYNOPSIS
$etcd->put( { key => 'foo2', value => 'bar2', lease => 7587821338341002662 } );

DESCRIPTION
"Etcd3" An object oriented interface to the v3 REST API provided by the
"Net::Etcd" An object oriented interface to the v3 REST API provided by the
etcd grpc gateway.

ACCESSORS
Expand All @@ -54,34 +54,34 @@ ACCESSORS
auth_token
PUBLIC METHODS
watch
Returns a Etcd3::Watch object.
Returns a Net::Etcd::Watch object.

$etcd->watch({ key =>'foo', range_end => 'fop' })

role
Returns a Etcd3::Auth::Role object.
Returns a Net::Etcd::Auth::Role object.

$etcd->role({ role => 'foo' });

user_role
Returns a Etcd3::User::Role object.
Returns a Net::Etcd::User::Role object.

$etcd->user_role({ name => 'samba', role => 'foo' });

auth_enable
Currently not available.

lease
Returns a Etcd3::Lease object.
Returns a Net::Etcd::Lease object.

user
Returns a Etcd3::User object.
Returns a Net::Etcd::User object.

put
Returns a Etcd3::KV::Put object.
Returns a Net::Etcd::KV::Put object.

range
Returns a Etcd3::KV::Range object.
Returns a Net::Etcd::KV::Range object.

configuration
Initialize configuration checks to see it etcd is installed locally.
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

# NAME

Etcd3
Net::Etcd

# SYNOPSIS

Etcd v3.1.0 or greater is required. To use the v3 API make sure to set environment
variable ETCDCTL_API=3. Precompiled binaries can be downloaded at https://github.com/coreos/etcd/releases.

$etcd = Etcd3->new(); # host: 127.0.0.1 port: 2379
$etcd = Etcd3->new({ host => $host, port => $port, ssl => 1 });
$etcd = Net::Etcd->new(); # host: 127.0.0.1 port: 2379
$etcd = Net::Etcd->new({ host => $host, port => $port, ssl => 1 });

# put key
$result = $etcd->put({ key =>'foo1', value => 'bar' });
Expand Down Expand Up @@ -41,7 +41,7 @@ Etcd3

# DESCRIPTION

`Etcd3` An object oriented interface to the v3 REST API provided by the etcd grpc gateway.
`Net::Etcd` An object oriented interface to the v3 REST API provided by the etcd grpc gateway.

# ACCESSORS

Expand Down Expand Up @@ -71,19 +71,19 @@ defaults to /v3alpha

## watch

Returns a [Etcd3::Watch](https://metacpan.org/pod/Etcd3::Watch) object.
Returns a [Net::Etcd::Watch](https://metacpan.org/pod/Net::Etcd::Watch) object.

$etcd->watch({ key =>'foo', range_end => 'fop' })

## role

Returns a [Etcd3::Auth::Role](https://metacpan.org/pod/Etcd3::Auth::Role) object.
Returns a [Net::Etcd::Auth::Role](https://metacpan.org/pod/Net::Etcd::Auth::Role) object.

$etcd->role({ role => 'foo' });

## user\_role

Returns a [Etcd3::User::Role](https://metacpan.org/pod/Etcd3::User::Role) object.
Returns a [Net::Etcd::User::Role](https://metacpan.org/pod/Net::Etcd::User::Role) object.

$etcd->user_role({ name => 'samba', role => 'foo' });

Expand All @@ -93,19 +93,19 @@ Currently not available.

## lease

Returns a [Etcd3::Lease](https://metacpan.org/pod/Etcd3::Lease) object.
Returns a [Net::Etcd::Lease](https://metacpan.org/pod/Net::Etcd::Lease) object.

## user

Returns a [Etcd3::User](https://metacpan.org/pod/Etcd3::User) object.
Returns a [Net::Etcd::User](https://metacpan.org/pod/Net::Etcd::User) object.

## put

Returns a [Etcd3::KV::Put](https://metacpan.org/pod/Etcd3::KV::Put) object.
Returns a [Net::Etcd::KV::Put](https://metacpan.org/pod/Net::Etcd::KV::Put) object.

## range

Returns a [Etcd3::KV::Range](https://metacpan.org/pod/Etcd3::KV::Range) object.
Returns a [Net::Etcd::KV::Range](https://metacpan.org/pod/Net::Etcd::KV::Range) object.

## configuration

Expand Down
Loading

0 comments on commit b6bcec6

Please sign in to comment.