installation

package
v0.0.0-...-7eaa7e1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CfgTransitionalStateToolPath is the configuration key for the path where a transitional State Tool might still be stored
	CfgTransitionalStateToolPath = "transitional_installation_path"

	BinDirName = "bin"

	InstallDirMarker = ".state_install_root"
)

Variables

This section is empty.

Functions

func ApplicationInstallPath

func ApplicationInstallPath() (string, error)

func BinPathFromInstallPath

func BinPathFromInstallPath(installPath string) (string, error)

func DefaultInstallPath

func DefaultInstallPath() (string, error)

func Executables

func Executables() ([]string, error)

func ExecutorExec

func ExecutorExec() (string, error)

func InstallPathForChannel

func InstallPathForChannel(channel string) (string, error)

InstallPathForBranch gets the installation path for the given channel.

func InstallPathFromExecPath

func InstallPathFromExecPath() (string, error)

func InstallPathFromReference

func InstallPathFromReference(dir string) (string, error)

func InstallRoot

func InstallRoot(path string) (string, error)

func InstallerExec

func InstallerExec() (string, error)

func InstallerExecFromDir

func InstallerExecFromDir(baseDir string) (string, error)

func IsStateExeDoesNotExistError

func IsStateExeDoesNotExistError(err error) bool

func NewExecutorExecFromDir

func NewExecutorExecFromDir(baseDir string) (string, error)

func SaveContext

func SaveContext(context *Context) error

func ServiceExec

func ServiceExec() (string, error)

func ServiceExecFromDir

func ServiceExecFromDir(baseDir string) (string, error)

func StateExec

func StateExec() (string, error)

func StateExecFromDir

func StateExecFromDir(baseDir string) (string, error)

Types

type Context

type Context struct {
	InstalledAsAdmin bool
}

func GetContext

func GetContext() (*Context, error)

type InstallMarkerMeta

type InstallMarkerMeta struct {
	Channel string `json:"channel"`
	Version string `json:"version"`
}

type StateExeDoesNotExistError

type StateExeDoesNotExistError struct{ *errs.WrapperError }

type VersionData

type VersionData struct {
	Name       string `json:"name"`
	License    string `json:"license"`
	Version    string `json:"version"`
	Channel    string `json:"channel"`
	Revision   string `json:"revision"`
	Date       string `json:"date"`
	BuiltViaCI bool   `json:"builtViaCI"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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