https://github.com/hexfusion/perl-net-nomad
Net::Nomad v1 API Perl client
https://github.com/hexfusion/perl-net-nomad
Last synced: 2 months ago
JSON representation
Net::Nomad v1 API Perl client
- Host: GitHub
- URL: https://github.com/hexfusion/perl-net-nomad
- Owner: hexfusion
- Created: 2017-11-26T01:04:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-10T00:05:57.000Z (over 8 years ago)
- Last Synced: 2025-01-08T08:17:55.571Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
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.