Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hexfusion/perl-net-nomad

Net::Nomad v1 API Perl client
https://github.com/hexfusion/perl-net-nomad

Last synced: 3 days ago
JSON representation

Net::Nomad v1 API Perl client

Awesome Lists containing this project

README

        

NAME
Net::Nomad - Nomad REST API client.

SYNOPSIS
DESCRIPTION
Net::Nomad is object oriented interface to the Nomad REST API
.

ACCESSORS
host
Defaults to 127.0.0.1

port
Default 4646.

name
Username for authentication

password
Authentication credentials

cacert
Path to cacert

ssl
To enable set to 1

api_version
defaults to /v1

api_path
The full api path. Defaults to http://127.0.0.1:4646/v1

PUBLIC METHODS
agent
See Net::Nomad::Agent

# query self
$nomad->agent()->self;

# check agent health
$nomad->agent()->health;

allocation
See Net::Nomad::Allocation

$nomad->allocation({ prefix=> 'a8198d79' })->list;
$nomad->allocation( { alloc_id => '5456bd7a-9fc0-c0dd-6131-cbee77f57577' } )->read

AUTHOR
Sam Batschelet (hexfusion)

ACKNOWLEDGEMENTS
The Nomad developers and community.

CAVEATS
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.