Mate.Driver behaviour (Mate v0.1.0) View Source
Link to this section Summary
Callbacks
This one is optional and can be used to close the current connection, cleanup or whatever else might be needed.
Copy a file from remote to local
Copy a file from local to remote
Executes a command using the driver
Starts the driver, for example create an SSH connection, start a docker container, or whatever else might be needed for your new session.
Link to this section Callbacks
Specs
close(session :: Mate.Session.t()) :: {:ok, Mate.Session.t()}
This one is optional and can be used to close the current connection, cleanup or whatever else might be needed.
Specs
Copy a file from remote to local
Specs
Copy a file from local to remote
Specs
Executes a command using the driver
Specs
start(session :: Mate.Session.t(), host :: String.t()) :: {:ok, Mate.Session.t()}
Starts the driver, for example create an SSH connection, start a docker container, or whatever else might be needed for your new session.