Documentation
¶
Index ¶
- func BackupAndAppendODBCConfiguration() error
- func CheckExistingProDrivers() (bool, error)
- func CheckPromptDownloadAndInstallProDrivers(osType config.OperatingSystem) error
- func DownloadAndInstallProDrivers(osType config.OperatingSystem) error
- func InstallProDrivers(filepath string, osType config.OperatingSystem) error
- func InstallUnixODBC(osType config.OperatingSystem) error
- func ProDriversInstallPrompt() (bool, error)
- type Installer
- type InstallerInfo
- type OperatingSystems
- type ProDrivers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupAndAppendODBCConfiguration ¶
func BackupAndAppendODBCConfiguration() error
func CheckExistingProDrivers ¶
func CheckPromptDownloadAndInstallProDrivers ¶
func CheckPromptDownloadAndInstallProDrivers(osType config.OperatingSystem) error
func DownloadAndInstallProDrivers ¶
func DownloadAndInstallProDrivers(osType config.OperatingSystem) error
Retrieves JSON data from Posit, downloads the Pro Drivers installer, and installs Pro Drivers
func InstallProDrivers ¶
func InstallProDrivers(filepath string, osType config.OperatingSystem) error
Installs Posit Pro Drivers in a certain way based on the operating system
func InstallUnixODBC ¶
func InstallUnixODBC(osType config.OperatingSystem) error
Installs unixODBC and unixODBC-devel
func ProDriversInstallPrompt ¶
Prompt users if they would like to install Posit Pro Drivers
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 Posit Pro Drivers
type OperatingSystems ¶
type OperatingSystems struct { // Posit Pro Drivers are the same for all Ubuntu versions so we only need one Focal InstallerInfo `json:"focal"` Redhat7 InstallerInfo `json:"redhat7_64"` Redhat8 InstallerInfo `json:"rhel8"` }
OperatingSystems contains the installer information for each supported operating system
type ProDrivers ¶
type ProDrivers struct {
ProDrivers Installer `json:"pro_drivers"`
}
ProDrivers contains product information
func RetrieveProDriversInstallerInfo ¶
func RetrieveProDriversInstallerInfo() (ProDrivers, error)
Retrieves JSON data from Posit
func (*ProDrivers) GetInstallerInfo ¶
func (pd *ProDrivers) GetInstallerInfo(osType config.OperatingSystem) (InstallerInfo, error)
Pulls out the installer information from the JSON data based on the operating system