InstallScript installs a script on a Proxmox node via SSH. Returns the remote exit code (0 on success) and any error encountered.
(user, nodeIP string, script Script)
| 818 | // InstallScript installs a script on a Proxmox node via SSH. |
| 819 | // Returns the remote exit code (0 on success) and any error encountered. |
| 820 | func InstallScript(user, nodeIP string, script Script) (int, error) { |
| 821 | return InstallScriptWithOptions(context.Background(), InstallOptions{ |
| 822 | User: user, |
| 823 | Host: nodeIP, |
| 824 | Script: script, |
| 825 | Stdin: os.Stdin, |
| 826 | Stdout: os.Stdout, |
| 827 | Stderr: os.Stderr, |
| 828 | }) |
| 829 | } |
| 830 | |
| 831 | // InstallScriptWithOptions installs a script on a Proxmox node via SSH. |
| 832 | func InstallScriptWithOptions(ctx context.Context, opts InstallOptions) (int, error) { |
nothing calls this directly
no test coverage detected