Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateKeyPair() (privateKey, publicKey string, err error)
- func GetConfig(user, keyFile string) (*ssh.ClientConfig, error)
- func GetWord(prefix string) string
- func NewWardenClient(target string, handler Handler, creds credentials.TransportCredentials) (*wardenClient, error)
- func Run(worker Worker, err error)
- func RunCmd(c *ssh.Client, cmd, stdin string) (stdout, stderr string, err error)
- func WordCounts() (m map[rune]int)
- type Handler
- type WardenClient
- type Worker
Constants ¶
View Source
const KeyLength = 2048 //bits
Variables ¶
View Source
var Names = []string{}/* 1633 elements not displayed */
Original word list: <http://web.archive.org/web/20091003023412/http://tothink.com/mnemonic/wordlist.txt>
Functions ¶
func GenerateKeyPair ¶
func GetConfig ¶
func GetConfig(user, keyFile string) (*ssh.ClientConfig, error)
Returns an ssh.ClientConfig given a username and key filepath
func NewWardenClient ¶
func NewWardenClient(target string, handler Handler, creds credentials.TransportCredentials) (*wardenClient, error)
func RunCmd ¶
Runs the given command on the ssh.Client and provides stdin to the processes on the remote Returns stdout and stderr; err is != nil if exit status is != 0
func WordCounts ¶
Types ¶
type Handler ¶
type Handler interface {
Handle(req *warden.ClusterRequest)
}
type WardenClient ¶
type WardenClient interface { PublishUpdate(ad *warden.ClusterAdvertisement) error Teardown() }
type Worker ¶
type Worker interface { Bind(client WardenClient) Handle(req *warden.ClusterRequest) Start() Teardown() }
Click to show internal directories.
Click to hide internal directories.