Documentation ¶
Index ¶
- Variables
- func AfterUpdateApply(context Context, willRestart bool, force bool, log Log) error
- func AutoInstall(context Context, _ string, _ bool, timeout time.Duration, log Log) (bool, error)
- func BinPath() (string, error)
- func CheckIfValidLocation() error
- func InstallLogPath() (string, error)
- func IsInUse(mountDir string, log Log) bool
- func KBFSBinPath(runMode libkb.RunMode, binPath string) (string, error)
- func KBFSBundleVersion(context Context, binPath string) (string, error)
- func ResolveInstallStatus(version string, bundleVersion string, lastExitStatus string, log Log) (installStatus keybase1.InstallStatus, installAction keybase1.InstallAction, ...)
- func RunApp(context Context, log Log) error
- func SystemLogPath() string
- func TerminateApp(context Context, log Log) error
- func UpdaterBinPath() (string, error)
- type ComponentName
- type Context
- type Log
Constants ¶
This section is empty.
Variables ¶
var ComponentNames = []ComponentName{ComponentNameCLI, ComponentNameService, ComponentNameKBFS, ComponentNameUpdater, ComponentNameFuse, ComponentNameHelper, ComponentNameApp, ComponentNameKBNM}
ComponentNames are all the valid component names
Functions ¶
func AfterUpdateApply ¶ added in v1.0.17
func AutoInstall ¶
AutoInstall installs auto start on unix
func CheckIfValidLocation ¶
func CheckIfValidLocation() error
CheckIfValidLocation is not used on unix
func InstallLogPath ¶ added in v1.0.18
func IsInUse ¶ added in v1.0.16
IsInUse returns true if the mount is in use. This may be used by the updater to determine if it's safe to apply an update and restart.
func KBFSBinPath ¶ added in v1.0.17
KBFSBinPath returns the path to the KBFS executable
func KBFSBundleVersion ¶
KBFSBundleVersion returns the bundle (not installed) version for KBFS
func ResolveInstallStatus ¶
func ResolveInstallStatus(version string, bundleVersion string, lastExitStatus string, log Log) (installStatus keybase1.InstallStatus, installAction keybase1.InstallAction, status keybase1.Status)
ResolveInstallStatus will determine necessary install actions for the current environment
func SystemLogPath ¶ added in v1.0.18
func SystemLogPath() string
func TerminateApp ¶ added in v1.0.17
TerminateApp will stop the Keybase (UI) app
func UpdaterBinPath ¶ added in v1.0.17
UpdaterBinPath returns the path to the updater executable, by default is in the same directory as the keybase executable.
Types ¶
type ComponentName ¶
type ComponentName string
ComponentName defines a component name
const ( // ComponentNameCLI is the command line component ComponentNameCLI ComponentName = "cli" // ComponentNameService is the service component ComponentNameService ComponentName = "service" // ComponentNameKBFS is the KBFS component ComponentNameKBFS ComponentName = "kbfs" // ComponentNameKBNM is the Keybase NativeMessaging client component ComponentNameKBNM ComponentName = "kbnm" // ComponentNameUpdater is the updater component ComponentNameUpdater ComponentName = "updater" // ComponentNameApp is the UI app ComponentNameApp ComponentName = "app" // ComponentNameFuse is the Fuse component ComponentNameFuse ComponentName = "fuse" // ComponentNameHelper is the privileged helper tool ComponentNameHelper ComponentName = "helper" // ComponentNameMountDir is the mount directory ComponentNameMountDir ComponentName = "mountdir" // ComponentNameUnknown is placeholder for unknown components ComponentNameUnknown ComponentName = "unknown" )
func ComponentNameFromString ¶
func ComponentNameFromString(s string) ComponentName
ComponentNameFromString returns ComponentName from a string
func (ComponentName) Description ¶ added in v1.0.17
func (c ComponentName) Description() string
Description returns description for component name
func (ComponentName) String ¶
func (c ComponentName) String() string
String returns string for ComponentName