You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
313 B
20 lines
313 B
package stup
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
)
|
|
|
|
type Client interface {
|
|
Connect(host string) error
|
|
Run(task *Task) error
|
|
Wait() error
|
|
Close() error
|
|
Prefix() (string, int)
|
|
Write(p []byte) (n int, err error)
|
|
WriteClose() error
|
|
Stdin() io.WriteCloser
|
|
Stderr() io.Reader
|
|
Stdout() io.Reader
|
|
Signal(os.Signal) error
|
|
}
|
|
|