Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
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
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 bucketConsumer Cluster clusterConsumer Host hostConsumer Image imageConsumer JobManager jobConsumer Network networkConsumer SecurityGroup securityGroupConsumer SSH sshConsumer Subnet subnetConsumer Template templateConsumer Tenant tenantConsumer Label labelConsumer Volume volumeConsumer // 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
Click to show internal directories.
Click to hide internal directories.