Documentation
¶
Index ¶
- Variables
- func AppDir(stateDir, appID string) string
- func BwrapAvailable() bool
- func CopyFile(src, dst string) error
- func CurrentArch() string
- func DefaultBinDir() string
- func DefaultStateDir() (string, error)
- func ExtractAppImage(ctx context.Context, appImagePath string) (extractDir string, err error)
- func IntegrityDir(stateDir, appID string) string
- func MkdirAll(path string, perm os.FileMode) error
- func NormalizeArch(arch string) string
- func Remove(path string) error
- func RemoveAll(path string) error
- func RunInBwrap(ctx context.Context, appDir string, execPath string, args []string, ...) error
- func RuntimeDir(stateDir, appID string) string
- func SetNoElevate(v bool)
- func Symlink(oldname, newname string) error
- func UserBinDir(home string) string
- func VersionDir(stateDir, appID, version string) string
- type BwrapRunOpts
Constants ¶
This section is empty.
Variables ¶
var SupportedArchs = []string{"x86_64", "amd64", "arm64", "aarch64"}
SupportedArchs lists architectures we can select for.
Functions ¶
func CurrentArch ¶
func CurrentArch() string
CurrentArch returns the current system architecture in normalized form.
func DefaultBinDir ¶
func DefaultBinDir() string
DefaultBinDir returns the default bin directory (/usr/local/bin).
func DefaultStateDir ¶
DefaultStateDir returns the default state directory (~/.local/share/appimage-manager).
func ExtractAppImage ¶
ExtractAppImage extracts the AppImage to squashfs-root in the same directory.
func IntegrityDir ¶
IntegrityDir returns the integrity records directory.
func NormalizeArch ¶
NormalizeArch maps common names to canonical form.
func RunInBwrap ¶
func RunInBwrap(ctx context.Context, appDir string, execPath string, args []string, opts BwrapRunOpts) error
RunInBwrap runs the given executable inside bubblewrap.
func RuntimeDir ¶
RuntimeDir returns the runtime records directory.
func SetNoElevate ¶
func SetNoElevate(v bool)
SetNoElevate disables pkexec; permission errors will be returned.
func UserBinDir ¶
UserBinDir returns the user-local bin directory.
func VersionDir ¶
VersionDir returns the versioned AppImage directory.
Types ¶
type BwrapRunOpts ¶
BwrapRunOpts configures bubblewrap sandbox execution.