Files
fx-serverless/provisioner/provisioner.go
Minghe 5ce61ef200 Fix the wrong arch of target host (#524)
* Fix the wrong arch of target host,
* get the OS arch with `uname -a`
* refactor the SSHConnectionTimeout constant
* only provision on remote host
2020-05-07 16:52:45 +08:00

15 lines
286 B
Go

package provisioner
import (
"context"
"time"
)
// SSHConnectionTimeout default timeout for ssh connection
const SSHConnectionTimeout = 10 * time.Second
// Provisioner define provisioner interface
type Provisioner interface {
Provision(ctx context.Context, isRemote bool) error
}