Documentation ¶
Index ¶
Constants ¶
View Source
const ( RegistryFinder FinderType = "RegistryFinder" PathFinder FinderType = "PathFinder" RegistryKeyCurrentUser = RegistryKey(registry.CURRENT_USER) RegistryKeyLocalMachine = RegistryKey(registry.LOCAL_MACHINE) PathTypeFile = iota PathTypeDir )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ForType FinderType RegistryKey RegistryKey RegistryPath string RegistryValueName string InstallPath string PathType PathType }
type FileRepository ¶ added in v0.1.10
type FinderType ¶ added in v0.1.10
type FinderType string
type RegistryKey ¶ added in v0.1.12
type RegistryRepository ¶
type SoftwareFinder ¶
type SoftwareFinder struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.1.10
func New(repository RegistryRepository, fileRepository FileRepository) *SoftwareFinder
func (*SoftwareFinder) GetInstallDir ¶
func (f *SoftwareFinder) GetInstallDir(config Config) (string, error)
func (*SoftwareFinder) GetInstallDirFromSomewhere ¶
func (f *SoftwareFinder) GetInstallDirFromSomewhere(configs []Config) (string, error)
func (*SoftwareFinder) IsInstalled ¶
func (f *SoftwareFinder) IsInstalled(config Config) (bool, error)
func (*SoftwareFinder) IsInstalledAnywhere ¶
func (f *SoftwareFinder) IsInstalledAnywhere(configs []Config) (bool, error)
Click to show internal directories.
Click to hide internal directories.