prodrivers

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 BackupAndAppendODBCConfiguration

func BackupAndAppendODBCConfiguration() error

func CheckExistingProDrivers

func CheckExistingProDrivers() (bool, error)

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

func ProDriversInstallPrompt() (bool, error)

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

Jump to

Keyboard shortcuts

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