domain

package
v0.0.0-...-1fd455f Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VaultPath = "secret/alarmclock"
)

Variables

View Source
var (
	// Vault is the client connection to the secure vault server
	Vault VaultClient
	// Version is the current version of the app. It is generated from VERSION at build time
	Version string
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Hosts     map[string]Host `yaml:"hosts"`
	Broadcast string          `yaml:"broadcast"`
}

type Host

type Host struct {
	MacAddress string `yaml:"mac"`
	Username   string `yaml:"username"`
	Password   string `yaml:"password"`
}

type VaultClient

type VaultClient interface {
	Read(path string) (*api.Secret, error)
	Write(path string, data map[string]interface{}) (*api.Secret, error)
}

Jump to

Keyboard shortcuts

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