mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-14 09:08:24 +02:00
Interface wireframe
This commit is contained in:
28
sshbytestream/ssh.go
Normal file
28
sshbytestream/ssh.go
Normal file
@ -0,0 +1,28 @@
|
||||
package sshbytestream
|
||||
|
||||
func Incoming() (io.ReadWriteCloser, error) {
|
||||
// derivce ReadWriteCloser from stdin & stdout
|
||||
}
|
||||
|
||||
func Outgoing(name string, remote model.SSHTransport) (io.ReadWriteCloser, error) {
|
||||
// encapsulate
|
||||
// fork(),exec(ssh $remote zrepl ipc ssh $name)
|
||||
// stdin and stdout in a ReadWriteCloser
|
||||
return ForkedSSHReadWriteCloser{}
|
||||
}
|
||||
|
||||
struct ForkedSSHReadWriteCloser {
|
||||
|
||||
}
|
||||
|
||||
func (f ForkedSSHReadWriteCloser) Read(p []byte) (n int, err error) {
|
||||
|
||||
}
|
||||
|
||||
func (f ForkedSSHReadWriteCloser) Write(p []byte) (n int, err error) {
|
||||
|
||||
}
|
||||
|
||||
func (f ForkedSSHReadWriteCloser) Close() error {
|
||||
|
||||
}
|
Reference in New Issue
Block a user