Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( DefaultConnectionTimeout = temporal.SSHConnectionTimeout() DefaultExecutionTimeout = temporal.ExecutionTimeout() )
DefaultTimeout tells to use the timeout by default depending on context
Functions ¶
Types ¶
type RemoteFileItem ¶
RemoteFileItem is a helper struct to ease the copy of local files to remote
func (RemoteFileItem) RemoveRemote ¶
func (rfc RemoteFileItem) RemoveRemote(clientSession *Session, hostname string) error
RemoveRemote deletes the remote file from host
func (RemoteFileItem) Upload ¶
func (rfc RemoteFileItem) Upload(clientSession *Session, hostname string) error
Upload transfers the local file to the hostname
func (RemoteFileItem) UploadString ¶
func (rfc RemoteFileItem) UploadString(clientSession *Session, content string, hostname string) error
UploadString transfers a string as file to the remote host
type RemoteFilesHandler ¶
type RemoteFilesHandler struct {
// contains filtered or unexported fields
}
RemoteFilesHandler handles the copy of files and cleanup
func (*RemoteFilesHandler) Add ¶
func (rfh *RemoteFilesHandler) Add(file *RemoteFileItem)
Add adds a RemoteFileItem in the handler
func (*RemoteFilesHandler) Cleanup ¶
func (rfh *RemoteFilesHandler) Cleanup(clientSession *Session, hostname string)
Cleanup executes the removal of remote files. Note: Removal of local files is the responsibility of the caller, not the RemoteFilesHandler.
func (*RemoteFilesHandler) Count ¶
func (rfh *RemoteFilesHandler) Count() uint
Count returns the number of files in the handler
type Session ¶
type Session struct { Bucket bucket Cluster cluster Host host Image image JobManager jobManager Network network SecurityGroup securityGroup SSH ssh Subnet subnet Template template Tenant tenant Volume volume // contains filtered or unexported fields }
Session units the different resources proposed by safescaled as safescale client
func (*Session) Connect ¶
func (s *Session) Connect()
Connect establishes connection with safescaled
func (*Session) Disconnect ¶
func (s *Session) Disconnect()
Disconnect cuts the connection with safescaled