github.com/cloudfoundry-incubator/stembuild@v0.0.0-20211223202937-5b61d62226c6/remotemanager/remotemanager.go (about)

     1  package remotemanager
     2  
     3  import "time"
     4  
     5  //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . RemoteManager
     6  
     7  const PowershellExecutionErrorMessage = "powershell encountered an issue"
     8  
     9  type RemoteManager interface {
    10  	UploadArtifact(source, destination string) error
    11  	ExtractArchive(source, destination string) error
    12  	ExecuteCommand(command string) (int, error)
    13  	ExecuteCommandWithTimeout(command string, timeout time.Duration) (int, error)
    14  	CanReachVM() error
    15  	CanLoginVM() error
    16  }