Documentation
¶
Index ¶
- func CreateManifest(cfg Config, driver DriverInfo) (err error)
- func EnsureLocation(cfg Config) (string, error)
- func Get() map[ConfigLevel]Config
- func PlatformTuple() string
- func UninstallDriver(_ Config, info DriverInfo) error
- func UninstallDriverShared(info DriverInfo) error
- type Config
- type ConfigLevel
- type DriverInfo
- type Manifest
- type Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateManifest ¶
func CreateManifest(cfg Config, driver DriverInfo) (err error)
func EnsureLocation ¶
func Get ¶
func Get() map[ConfigLevel]Config
func PlatformTuple ¶
func PlatformTuple() string
func UninstallDriver ¶
func UninstallDriver(_ Config, info DriverInfo) error
func UninstallDriverShared ¶
func UninstallDriverShared(info DriverInfo) error
Common, non-platform-specific code for uninstalling a driver. Called by platform-specific UninstallDriver function.
Types ¶
type Config ¶
type Config struct {
Level ConfigLevel
Location string
Drivers map[string]DriverInfo
Exists bool
Err error
}
type ConfigLevel ¶
type ConfigLevel int
const ( ConfigUnknown ConfigLevel = iota ConfigSystem ConfigUser ConfigEnv )
func (ConfigLevel) String ¶
func (c ConfigLevel) String() string
func (*ConfigLevel) UnmarshalText ¶
func (c *ConfigLevel) UnmarshalText(b []byte) error
type DriverInfo ¶
type DriverInfo struct {
ID string
FilePath string
Name string
Publisher string
License string
Version *semver.Version
Source string
AdbcInfo struct {
Version *semver.Version `toml:"version"`
Features struct {
Supported []string `toml:"supported,omitempty"`
Unsupported []string `toml:"unsupported,omitempty"`
} `toml:"features,omitempty"`
} `toml:"ADBC"`
Driver struct {
Entrypoint string
Shared driverMap
}
}
func FindDriverConfigs ¶
func FindDriverConfigs(lvl ConfigLevel) []DriverInfo
type Manifest ¶
type Manifest struct {
DriverInfo
Files struct {
Driver string `toml:"driver,omitempty"`
Signature string `toml:"signature,omitempty"`
} `toml:"Files,omitempty"`
PostInstall struct {
Messages []string `toml:"messages,inline,omitempty"`
} `toml:"PostInstall,omitempty"`
}
func InflateTarball ¶
TODO: Unexport once we refactor sync.go. sync.go has it's own separate installation routine which it probably shouldn't.
Click to show internal directories.
Click to hide internal directories.