Documentation ¶
Index ¶
- Constants
- type SSH
- func (s *SSH) FindFiles(path string, n node.Node, options node.FindOpts) (string, error)
- func (s *SSH) Init() error
- func (s *SSH) RebootNode(n node.Node, options node.RebootNodeOpts) error
- func (s *SSH) RecoverDrive(n node.Node, driveNameToRecover string, driveUUIDToRecover string, ...) error
- func (s *SSH) RunCommand(n node.Node, command string, options node.ConnectionOpts) (string, error)
- func (s *SSH) ShutdownNode(n node.Node, options node.ShutdownNodeOpts) error
- func (s *SSH) String() string
- func (s *SSH) SystemCheck(n node.Node, options node.ConnectionOpts) (string, error)
- func (s *SSH) Systemctl(n node.Node, service string, options node.SystemctlOpts) error
- func (s *SSH) TestConnection(n node.Node, options node.ConnectionOpts) error
- func (s *SSH) YankDrive(n node.Node, driveNameToFail string, options node.ConnectionOpts) (string, error)
Constants ¶
View Source
const ( // DriverName is the name of the ssh driver DriverName = "ssh" // DefaultUsername is the default username used for ssh operations DefaultUsername = "root" // DefaultSSHPort is the default port used for ssh operations DefaultSSHPort = 22 // DefaultSSHKey is the default public keyPath path used for ssh operations DefaultSSHKey = "/home/torpedo/key4torpedo.pem" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSH ¶
SSH ssh node driver
func (*SSH) RebootNode ¶
RebootNode reboots given node
func (*SSH) RecoverDrive ¶
func (s *SSH) RecoverDrive(n node.Node, driveNameToRecover string, driveUUIDToRecover string, options node.ConnectionOpts) error
RecoverDrive recovers given drive on given node
func (*SSH) RunCommand ¶
RunCommand runs given command on given node
func (*SSH) ShutdownNode ¶
ShutdownNode shuts down given node
func (*SSH) SystemCheck ¶
SystemCheck check if any cores are generated on given node
func (*SSH) TestConnection ¶
TestConnection tests the connection to the given node
Click to show internal directories.
Click to hide internal directories.