featurebase/creator/creator.go
jaffee 37d11b858e clean up remote create, kill remote cluster
Had to jump through some hoops to kill the remote cluster reliably. Not all ssh
server implementations respect signals, so in order to kill the cluster, we
request a pty for the ssh session. This allows us to send the byte 0x03 which is
effectively the same has hitting Ctrl-c in an interactive ssh session. With a
pty, just closing the session also seems to kill the remote process.
2016-12-13 16:36:52 -06:00

11 lines
185 B
Go

// creator contains code for standing up pilosa clusters
package creator
import "io"
type Cluster interface {
Start() error
Hosts() []string
Shutdown() error
Logs() []io.Reader
}