datatypes

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0, BSD-3-Clause, Zlib Imports: 0 Imported by: 3

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Users     []string `json:"user"`
	Name      string   `json:"name"`
	LastBuild *Build   `json:"last_build"`
}

type Build

type Build struct {
	User  string `json:"user"`
	ID    string `json:"id"`
	Image string `json:"image"`
	App   string `json:"app"`
}

type Reply

type Reply struct {
	Message string                   `json:"message"`
	Code    int                      `json:"code"`
	Data    []map[string]interface{} `json:"data"`
}

type SSHKey

type SSHKey struct {
	Comment     string `json:"comment"`
	Key         string `json:"key"`
	Fingerprint string `json:"fingerprint"`
}

type User

type User struct {
	Name     string    `json:"name"`
	Password string    `json:"password"`
	SSHKeys  []*SSHKey `json:"sshkeys"`
}

Jump to

Keyboard shortcuts

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