Documentation
¶
Overview ¶
Package cmd /*
Package cmd /*
Package cmd /*
Package cmd /*
Package cmd /*
Package cmd /*
package cmd
Package cmd /*
Index ¶
- func ConnectToServer(user, host string)
- func ConnectToServerRDP(user, host, credentialKey string)
- func DownloadFile(client *ssh.Client, remoteFile, localFile string, isDir bool) error
- func Execute()
- func ListToConnectServers(group, environment string) (string, string, string, bool, error)
- type FileInfo
- type GitHubRelease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToServer ¶
func ConnectToServer(user, host string)
ConnectToServer initiates an SSH connection to the specified server
func ConnectToServerRDP ¶
func ConnectToServerRDP(user, host, credentialKey string)
func DownloadFile ¶
DownloadFile downloads a file or directory from the remote server to the local machine
Types ¶
type GitHubRelease ¶
type GitHubRelease struct { TagName string `json:"tag_name"` Assets []struct { Name string `json:"name"` BrowserDownloadURL string `json:"browser_download_url"` } `json:"assets"` }
GitHubRelease represents the structure of a GitHub release API response
func CheckForUpdates ¶
func CheckForUpdates() (bool, *GitHubRelease, *semver.Version)
CheckForUpdates compares the current version with the latest release on GitHub and returns whether an update is available along with release information
Click to show internal directories.
Click to hide internal directories.