go-idb

module
v0.0.0-...-9aa37b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2017 License: BSD-2-Clause

README

go-idb

contained here is a client for the IDB API v3, generated from swagger specification served by the IDB at /api/v3/swagger_doc.json using go-swagger.

this package supersedes https://github.com/idb-project/idbclient

usage

just import the client and model packages and install their required dependencies (in your project), preferably by using dep:

dep init

this will vendorize and manage this package (and your other imports).

generating the client package

to (re-)generate the client, install go-swagger.

with go swagger installed, you can run

make client

which regenerates the client.

example

an example how to manage machine objects can be found in cmd/machines.

Directories

Path Synopsis
api
cmd
machines command
Command machines prints out a list of FQDNs of defined machine objects in a IDB.
Command machines prints out a list of FQDNs of defined machine objects in a IDB.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL