Documentation ¶
Index ¶
- Variables
- func AutoInstall(g *libkb.GlobalContext, binPath string, force bool) (newProc bool, err error)
- func AutoInstallWithStatus(g *libkb.GlobalContext, binPath string, force bool) keybase1.InstallResult
- func CheckIfValidLocation() *keybase1.Error
- func DefaultKBFSLabel(runMode libkb.RunMode) string
- func DefaultLaunchdEnvVars(g *libkb.GlobalContext, label string) []launchd.EnvVar
- func DefaultServiceLabel(runMode libkb.RunMode) string
- func Install(g *libkb.GlobalContext, binPath string, components []string, force bool) keybase1.InstallResult
- func KBFSBundleVersion(context Context, binPath string) (string, error)
- func KBFSServiceStatus(g *libkb.GlobalContext, label string) (status keybase1.ServiceStatus)
- func KeybaseFuseStatus(bundleVersion string, log logger.Logger) keybase1.FuseStatus
- func KeybaseFuseStatusForAppBundle(appPath string, log logger.Logger) (keybase1.FuseStatus, error)
- func KeybaseServiceStatus(g *libkb.GlobalContext, label string) (status keybase1.ServiceStatus)
- func ListServices(g *libkb.GlobalContext) (*keybase1.ServicesStatus, error)
- func NewInstallResult(componentResults []keybase1.ComponentResult) keybase1.InstallResult
- func NewUninstallResult(componentResults []keybase1.ComponentResult) keybase1.UninstallResult
- func OSVersion() (semver.Version, error)
- func ResolveInstallStatus(version string, bundleVersion string, lastExitStatus string) (installStatus keybase1.InstallStatus, installAction keybase1.InstallAction, ...)
- func RunAfterStartup(g *libkb.GlobalContext, isService bool) error
- func ServiceStatus(g *libkb.GlobalContext, label ServiceLabel) (*keybase1.ServiceStatus, error)
- func Uninstall(g *libkb.GlobalContext, components []string) keybase1.UninstallResult
- type ComponentName
- type Context
- type ServiceLabel
Constants ¶
This section is empty.
Variables ¶
View Source
var ComponentNames = []ComponentName{ComponentNameCLI, ComponentNameService, ComponentNameKBFS}
Functions ¶
func AutoInstall ¶
func AutoInstallWithStatus ¶
func AutoInstallWithStatus(g *libkb.GlobalContext, binPath string, force bool) keybase1.InstallResult
func CheckIfValidLocation ¶
func DefaultKBFSLabel ¶
func DefaultLaunchdEnvVars ¶
func DefaultLaunchdEnvVars(g *libkb.GlobalContext, label string) []launchd.EnvVar
func DefaultServiceLabel ¶
func Install ¶
func Install(g *libkb.GlobalContext, binPath string, components []string, force bool) keybase1.InstallResult
func KBFSServiceStatus ¶
func KBFSServiceStatus(g *libkb.GlobalContext, label string) (status keybase1.ServiceStatus)
func KeybaseFuseStatus ¶
func KeybaseFuseStatus(bundleVersion string, log logger.Logger) keybase1.FuseStatus
func KeybaseServiceStatus ¶
func KeybaseServiceStatus(g *libkb.GlobalContext, label string) (status keybase1.ServiceStatus)
func ListServices ¶
func ListServices(g *libkb.GlobalContext) (*keybase1.ServicesStatus, error)
func NewInstallResult ¶
func NewInstallResult(componentResults []keybase1.ComponentResult) keybase1.InstallResult
func NewUninstallResult ¶
func NewUninstallResult(componentResults []keybase1.ComponentResult) keybase1.UninstallResult
func ResolveInstallStatus ¶
func ResolveInstallStatus(version string, bundleVersion string, lastExitStatus string) (installStatus keybase1.InstallStatus, installAction keybase1.InstallAction, status keybase1.Status)
func RunAfterStartup ¶
func RunAfterStartup(g *libkb.GlobalContext, isService bool) error
func ServiceStatus ¶
func ServiceStatus(g *libkb.GlobalContext, label ServiceLabel) (*keybase1.ServiceStatus, error)
func Uninstall ¶
func Uninstall(g *libkb.GlobalContext, components []string) keybase1.UninstallResult
Types ¶
type ComponentName ¶
type ComponentName string
const ( ComponentNameCLI ComponentName = "cli" ComponentNameService ComponentName = "service" ComponentNameKBFS ComponentName = "kbfs" ComponentNameUnknown ComponentName = "unknown" )
func ComponentNameFromString ¶
func ComponentNameFromString(s string) ComponentName
func (ComponentName) String ¶
func (c ComponentName) String() string
type ServiceLabel ¶
type ServiceLabel string
const ( AppServiceLabel ServiceLabel = "keybase.service" AppKBFSLabel ServiceLabel = "keybase.kbfs" BrewServiceLabel ServiceLabel = "homebrew.mxcl.keybase" BrewKBFSLabel ServiceLabel = "homebrew.mxcl.kbfs" UnknownLabel ServiceLabel = "" )
func NewServiceLabel ¶
func NewServiceLabel(s string) (ServiceLabel, error)
func (ServiceLabel) ComponentName ¶
func (l ServiceLabel) ComponentName() ComponentName
Click to show internal directories.
Click to hide internal directories.