workbench

package
v0.0.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 PromptInstallVerify() (bool, error)

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

func VerifyInstallation(username string) error

Runs verify-installation command

func VerifyWorkbench

func VerifyWorkbench() bool

Checks if Workbench is installed

func WorkbenchInstallPrompt

func WorkbenchInstallPrompt() (bool, error)

Prompt users if they would like to install Workbench

func WriteConnectURLConfig

func WriteConnectURLConfig(url string) error

WriteConnectURLConfig writes the Connect URL config to the Workbench config file

func WriteJupyterConfig

func WriteJupyterConfig(jupyterPath string) error

WriteJupyterConfig writes the Jupyter config to the Workbench config file

func WriteRepoConfig

func WriteRepoConfig(url string, source string) error

WriteRepoConfig writes the repo config to the Workbench config file

func WriteSSLConfig

func WriteSSLConfig(certPath string, keyPath string, serverURL string) error

WriteSSLConfig writes the SSL 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

func RetrieveWorkbenchInstallerInfo() (RStudio, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL