NAME

Etcd3::Client

DESCRIPTION

Client data for etcd connection

host

port

username

password

ssl

auth

api_root

api_prefix

base endpoint for api call, refers to api version.

api_path

auth_token

headers

watch

returns a Etcd3::Watch object.

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

user_add

$etcd->user_add({ name =>'foo' password => 'bar' })

user_delete

$etcd->user_delete({ name =>'foo' })

role_add

name is the name of the role to add to the authentication system.

$etcd->role_add({ name =>'foo' })

role_delete

$etcd->role_delete({ name =>'foo' })

grant_role

revoke_role

auth_enable

delete_range

$etcd->delete_range({ key =>'test0', range_end => 'test100', prev_key => 1 })

put

returns a Etcd3::Put object.

range

returns a Etcd3::Range object

$etcd->range({ key =>'test0', range_end => 'test100', serializable => 1 })

LEASE

lease_grant

returns a Etcd3::Lease::Grant object If ID is set to 0, the lessor chooses an ID.

$etcd->lease_grant({ TTL => 20, ID => 7587821338341002662 })

lease_revoke

returns a Etcd3::Lease::Revoke object

$etcd->lease_revoke({ ID => 7587821338341002662 })

lease_keep_alive

returns a Etcd3::Lease::KeepAlive object

$etcd->lease_keep_alive({ ID => 7587821338341002662 })

lease_ttl

returns a Etcd3::Lease::TimeToLive object

$etcd->lease_ttl({ ID => 7587821338341002662, keys => 1 })

configuration

Initialize configuration checks to see it etcd is installed locally.

AUTHOR

Sam Batschelet, <sbatschelet at mac.com>

ACKNOWLEDGEMENTS

The etcd developers and community.

CAVEATS

The etcd v3 API is in heavy development and can change at anytime please see https://github.com/coreos/etcd/blob/master/Documentation/dev-guide/api_reference_v3.md for latest details.

LICENSE AND COPYRIGHT

Copyright 2017 Sam Batschelet (hexfusion).

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.