Documentation ¶
Index ¶
- func CheckDownloadAndInstallWorkbench(osType config.OperatingSystem) error
- func CheckPromptDownloadAndInstallWorkbench(osType config.OperatingSystem) error
- func DownloadAndInstallWorkbench(osType config.OperatingSystem) error
- func InstallWorkbench(filepath string, osType config.OperatingSystem) error
- func PromptInstallVerify() (bool, error)
- func RestartRStudioLauncher() error
- func RestartRStudioServer() error
- func RestartRStudioServerAndLauncher() error
- func RetrieveInstallCommandForWorkbench(filepath string, osType config.OperatingSystem) (string, error)
- func StartRStudioServer() error
- func StatusRStudioLauncher() error
- func StatusRStudioServer() error
- func StatusRStudioServerAndLauncher() error
- func StopRStudioServer() error
- func VerifyInstallation(username string) error
- func VerifyWorkbench() bool
- func WorkbenchInstallPrompt() (bool, error)
- func WriteConnectURLConfig(url string) error
- func WriteJupyterConfig(jupyterPath string) error
- func WriteRepoConfig(url string, source string) error
- func WriteSSLConfig(certPath string, keyPath string, serverURL string) error
- type Category
- type Installer
- type InstallerInfo
- type OperatingSystems
- type Product
- type ProductType
- type RStudio
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDownloadAndInstallWorkbench ¶
func CheckDownloadAndInstallWorkbench(osType config.OperatingSystem) error
func CheckPromptDownloadAndInstallWorkbench ¶
func CheckPromptDownloadAndInstallWorkbench(osType config.OperatingSystem) error
func DownloadAndInstallWorkbench ¶
func DownloadAndInstallWorkbench(osType config.OperatingSystem) error
Retrieves JSON data from Posit, downloads the Workbench installer, and installs Workbench
func InstallWorkbench ¶
func InstallWorkbench(filepath string, osType config.OperatingSystem) error
Installs Workbench in a certain way based on the operating system
func PromptInstallVerify ¶
func RestartRStudioLauncher ¶
func RestartRStudioLauncher() error
func RestartRStudioServer ¶
func RestartRStudioServer() error
func RestartRStudioServerAndLauncher ¶
func RestartRStudioServerAndLauncher() error
func RetrieveInstallCommandForWorkbench ¶
func RetrieveInstallCommandForWorkbench(filepath string, osType config.OperatingSystem) (string, error)
Creates the proper command to install Workbench based on the operating system
func StartRStudioServer ¶
func StartRStudioServer() error
func StatusRStudioLauncher ¶
func StatusRStudioLauncher() error
func StatusRStudioServer ¶
func StatusRStudioServer() error
func StatusRStudioServerAndLauncher ¶
func StatusRStudioServerAndLauncher() error
func StopRStudioServer ¶
func StopRStudioServer() error
func VerifyInstallation ¶
Runs verify-installation command
func WorkbenchInstallPrompt ¶
Prompt users if they would like to install Workbench
func WriteConnectURLConfig ¶
WriteConnectURLConfig writes the Connect URL config to the Workbench config file
func WriteJupyterConfig ¶
WriteJupyterConfig writes the Jupyter config to the Workbench config file
func WriteRepoConfig ¶
WriteRepoConfig writes the repo config to the Workbench config file
Types ¶
type Category ¶
type Category struct {
Stable ProductType `json:"stable"`
}
Category contains information for stable and preview product types
type Installer ¶
type Installer struct {
Installer OperatingSystems `json:"installer"`
}
Installer contains the installer information for a product
type InstallerInfo ¶
type InstallerInfo struct { BaseName string `json:"basename"` URL string `json:"url"` Version string `json:"version"` Label string `json:"label"` }
InstallerInfo contains the information needed to download and install Workbench
type OperatingSystems ¶
type OperatingSystems struct { Focal InstallerInfo `json:"focal"` Jammy InstallerInfo `json:"jammy"` Redhat7 InstallerInfo `json:"redhat7_64"` Redhat8 InstallerInfo `json:"rhel8"` Redhat9 InstallerInfo `json:"rhel9"` }
OperatingSystems contains the installer information for each supported operating system
type Product ¶
type Product struct {
Pro Category `json:"pro"`
}
Product contains information for each RStudio product
type ProductType ¶
type ProductType struct {
Server Installer `json:"server"`
}
ProductType contains the installer for each product type
type RStudio ¶
type RStudio struct {
Rstudio Product `json:"rstudio"`
}
RStudio contains product information
func RetrieveWorkbenchInstallerInfo ¶
Retrieves JSON data from Posit
func (*RStudio) GetInstallerInfo ¶
func (r *RStudio) GetInstallerInfo(osType config.OperatingSystem) (InstallerInfo, error)
Pulls out the installer information from the JSON data based on the operating system