Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ADBCDriverDir ¶ added in v0.11.783
ADBCDriverDir returns Bruin's driver directory, or "" when BRUIN_HOME is unset.
func ADBCDriverPath ¶ added in v0.11.783
ADBCDriverPath selects Bruin's manifest without changing the process-wide ADBC search path. With no override, the driver manager keeps its usual lookup.
func EnsureADBCDriverConfig ¶ added in v0.11.783
EnsureADBCDriverConfig relocates Bruin-managed drivers on first use. ConfigEnv uses filesystem manifests on Windows too, rather than the user registry.
func VersionedADBCDriverDir ¶ added in v0.11.810
VersionedADBCDriverDir returns a directory for a driver pinned separately from the default one, under the same root. dbc symlinks each manifest into the parent directory, so the extra level keeps that link out of the default lookup, where it would shadow the default driver.
Types ¶
type ConfigManager ¶
type ConfigManager struct {
// contains filtered or unexported fields
}
func NewConfigManager ¶
func NewConfigManager(fs afero.Fs) *ConfigManager
func (*ConfigManager) EnsureAndGetBruinHomeDir ¶ added in v0.11.99
func (c *ConfigManager) EnsureAndGetBruinHomeDir() (string, error)
func (*ConfigManager) EnsureHomeDirExists ¶
func (c *ConfigManager) EnsureHomeDirExists() error
func (*ConfigManager) EnsureVirtualenvDirExists ¶
func (c *ConfigManager) EnsureVirtualenvDirExists() error
func (*ConfigManager) MakeVirtualenvPath ¶
func (c *ConfigManager) MakeVirtualenvPath(dirName string) string
func (*ConfigManager) RecreateHomeDir ¶ added in v0.1.9
func (c *ConfigManager) RecreateHomeDir() error