install

package
v1.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2016 License: BSD-3-Clause, BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AutoInstall

func AutoInstall(g *libkb.GlobalContext, binPath string, force bool) (newProc bool, err error)

func AutoInstallWithStatus

func AutoInstallWithStatus(g *libkb.GlobalContext, binPath string, force bool) keybase1.InstallResult

func CheckIfValidLocation

func CheckIfValidLocation() *keybase1.Error

func DefaultKBFSLabel

func DefaultKBFSLabel(runMode libkb.RunMode) string

func DefaultLaunchdEnvVars

func DefaultLaunchdEnvVars(g *libkb.GlobalContext, label string) []launchd.EnvVar

func DefaultServiceLabel

func DefaultServiceLabel(runMode libkb.RunMode) string

func Install

func Install(g *libkb.GlobalContext, binPath string, components []string, force bool) keybase1.InstallResult

func KBFSBundleVersion

func KBFSBundleVersion(context Context, binPath string) (string, error)

func KBFSServiceStatus

func KBFSServiceStatus(g *libkb.GlobalContext, label string) (status keybase1.ServiceStatus)

func KeybaseFuseStatus

func KeybaseFuseStatus(bundleVersion string, log logger.Logger) keybase1.FuseStatus

func KeybaseFuseStatusForAppBundle

func KeybaseFuseStatusForAppBundle(appPath string, log logger.Logger) (keybase1.FuseStatus, error)

func KeybaseServiceStatus

func KeybaseServiceStatus(g *libkb.GlobalContext, label string) (status keybase1.ServiceStatus)

func NewInstallResult

func NewInstallResult(componentResults []keybase1.ComponentResult) keybase1.InstallResult

func NewUninstallResult

func NewUninstallResult(componentResults []keybase1.ComponentResult) keybase1.UninstallResult

func OSVersion

func OSVersion() (semver.Version, error)

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 Context

type Context interface {
	GetCacheDir() string
	GetRuntimeDir() string
	GetRunMode() libkb.RunMode
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL