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) (newProc bool, err error)
- func BinPath() (string, error)
- func CheckIfValidLocation() error
- func GetAutostart(context Context) keybase1.OnLoginStartupStatus
- func GetNeedUpdate() (bool, error)
- func Install(context Context, binPath string, sourcePath string, components []string, ...) keybase1.InstallResult
- 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 KeybaseFuseStatus(bundleVersion string, log Log) keybase1.FuseStatus
- func ResolveInstallStatus(version string, bundleVersion string, lastExitStatus string, log Log) (installStatus keybase1.InstallStatus, installAction keybase1.InstallAction, ...)
- func RunApp(context Context, log Log) error
- func StartUpdateIfNeeded(context.Context, logger.Logger) error
- func StopAllButService(mctx libkb.MetaContext, exitCode keybase1.ExitCode)
- func SystemLogPath() string
- func TerminateApp(context Context, log Log) error
- func ToggleAutostart(context Context, on bool, forAutoinstall bool) error
- func Uninstall(context Context, components []string, log Log) keybase1.UninstallResult
- func UpdaterBinPath() (string, error)
- func WatchdogLogPath(string) (string, error)
- type CommonLsofResult
- type ComponentName
- type Context
- type Log
Constants ¶
This section is empty.
Variables ¶
var ComponentNames = []ComponentName{ComponentNameCLI, ComponentNameService, ComponentNameKBFS, ComponentNameUpdater, ComponentNameFuse, ComponentNameHelper, ComponentNameApp, ComponentNameKBNM, ComponentNameRedirector, ComponentNameCLIPaths}
ComponentNames are all the valid component names
Functions ¶
func AfterUpdateApply ¶ added in v1.0.17
func AutoInstall ¶
func AutoInstall(context Context, _ string, _ bool, timeout time.Duration, log Log) (newProc bool, err error)
AutoInstall installs auto start on unix
func BinPath ¶ added in v1.0.17
BinPath returns path to the keybase executable. If the executable path is a symlink, the target path is returned.
func CheckIfValidLocation ¶
func CheckIfValidLocation() error
CheckIfValidLocation is not used on unix
func GetAutostart ¶
func GetAutostart(context Context) keybase1.OnLoginStartupStatus
func GetNeedUpdate ¶
GetNeedUpdate always returns false, nil on this platform.
func Install ¶ added in v1.0.29
func Install(context Context, binPath string, sourcePath string, components []string, force bool, timeout time.Duration, log Log) keybase1.InstallResult
Install empty implementation for unsupported platforms
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 KeybaseFuseStatus ¶ added in v1.0.29
func KeybaseFuseStatus(bundleVersion string, log Log) keybase1.FuseStatus
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 StartUpdateIfNeeded ¶
StartUpdateIfNeeded is a no-op on this platform.
func StopAllButService ¶
func StopAllButService(mctx libkb.MetaContext, exitCode keybase1.ExitCode)
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 Uninstall ¶ added in v1.0.29
func Uninstall(context Context, components []string, log Log) keybase1.UninstallResult
Uninstall empty implementation for unsupported platforms
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.
func WatchdogLogPath ¶
WatchdogLogPath doesn't exist on linux as an independent log file
Types ¶
type CommonLsofResult ¶
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" // ComponentNameCLIPaths is for /etc/paths.d/Keybase ComponentNameCLIPaths ComponentName = "clipaths" // ComponentNameRedirector is the KBFS redirector ComponentNameRedirector ComponentName = "redirector" // 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