Documentation
¶
Overview ¶
Package sshclient provides SSH-based operations for NV-Switch NVOS management. This is used for CPLD and NVOS firmware updates that require SSH access.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NVOSClient ¶
type NVOSClient struct {
// contains filtered or unexported fields
}
NVOSClient provides SSH-based operations for NV-Switch NVOS.
func NewWithPort ¶
NewWithPort creates a new NVOSClient for the given NVOS subsystem with a custom port.
func (*NVOSClient) CopyFile ¶
func (c *NVOSClient) CopyFile(localPath, remotePath string) error
CopyFile copies a local file to the remote NVOS.
func (*NVOSClient) RunCommand ¶
func (c *NVOSClient) RunCommand(cmd string) (string, error)
RunCommand executes a command on the NVOS and returns the output.
Click to show internal directories.
Click to hide internal directories.