Discover Packages
github.com/Xe/flitter
lagann
datatypes
package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Nov 1, 2014
License: Apache-2.0, BSD-3-Clause, Zlib
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package datatypes is a set of simple structs for lagann and other applications that communicate with it.
Consider this the schema documentation for creating a program that interfaces with
lagann.
type App struct {
Users []string `json:"user"`
Name string `json:"name"`
LastBuild *Build `json:"last_build"`
}
type Build struct {
User string `json:"user"`
ID string `json:"id"`
Image string `json:"image"`
App string `json:"app"`
}
type Reply struct {
Message string `json:"message"`
Code int `json:"code"`
Data []map[string ]interface{} `json:"data"`
}
type SSHKey struct {
Key string `json:"key"`
Fingerprint string `json:"fingerprint"`
}
type User struct {
Name string `json:"name"`
Password string `json:"password"`
SSHKeys []*SSHKey `json:"sshkeys"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.