Skip to content

LeeWangKwang/gopkgs

 
 

Repository files navigation

Gopkgs

Gopkgs is a collection of Go language (golang.org) packages (a.k.a. libraries) which support other projects in this github organisation (e.g. Tegu), and that might be useful to other projects.

Currently, the packages include:

arista

Methods for interfacing with an Arista switch which is configured to use HTTP or HTTPs interface.

bleater

A level based logging package.

chkpt

Provides an easy mechanism for creating dual-tumbler checkpoint files.

clike

Some tools (atoi-ish) that behave in a Clib manner, such as not aborting if a non-digit is encountered (ato* family) and add some extensions for values with post-fixed units (e.g. 10GiB or 10G).

config

A configuration file parser which provides for a section based file and allows for inclusion of sub files.

connman

A TCP connection manager.

extcmd

An external command interface which bundles the results (stdout/stderr) into a manageable structure for the caller.

http_logger

Provides a basic logger to log HTTP requests in the format that will be familiar to anyone who has ever used Apache.

ipc

Interprocess communications support. Provides a simple request/response message block and some wrapper functions to easily send a message on a channel. Also provides a tickler function that can be started and will send messages to a channel at prescribed times.

jsontools

Tools which assist with the parsing and streaming JSON management.

ostack

An interface to OpenStack which provides authorisation, and general queries making use of OpenStack as a data source.

security

Support for generating self-signed certificates.

ssh_broker

A broker which manages persistent SSH sessions with one or more hosts allowing for the remote execution of commands without the session setup overhead needed if each call were executed via a 'system()' like approach.

token

Tokenising functions providing features like tokens with quotes and embedded separators, unique token generation, token counting, etc.

Go Package Doc

Running the Go package documentation tool on any of the packages in this source should generate the documentation needed to make use of these packages. As an example

`godoc github.com/att/gopkgs/token`

will generate the documentation on the token package.

About

A collection of Go packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.9%
  • Shell 0.1%