Documentation ¶
Index ¶
- Constants
- Variables
- type AppImage
- func (ai *AppImage) Architectures() []string
- func (ai *AppImage) Destroy() error
- func (ai *AppImage) ExtractFile(path string, dest string, resolveSymlinks bool) error
- func (ai *AppImage) ExtractFileReader(path string) (io.ReadCloser, error)
- func (ai *AppImage) Icon() (io.ReadCloser, string, error)
- func (ai *AppImage) IsMounted() bool
- func (ai *AppImage) Md5() string
- func (ai *AppImage) Mount(dest ...string) error
- func (ai *AppImage) MountDir() string
- func (ai *AppImage) Run(args []string) error
- func (ai *AppImage) RunId() string
- func (ai *AppImage) Sandbox(args []string) error
- func (ai *AppImage) SetDataDir(d string)
- func (ai *AppImage) SetRootDir(d string)
- func (ai *AppImage) SetTempDir(d string)
- func (ai *AppImage) TempDir() string
- func (ai *AppImage) Thumbnail() (io.Reader, error)
- func (ai *AppImage) Type() int
- func (ai *AppImage) Unmount() errordeprecated
- func (ai AppImage) WrapArgs(args []string) ([]string, error)
Constants ¶
const (
Version = "0.7.5-alpha"
)
Current version of aisap
Variables ¶
var ( NilAppImage = errors.New("AppImage is nil") NoPath = errors.New("AppImage contains no path") NotMounted = errors.New("AppImage is not mounted") InvalidDesktopFile = errors.New("desktop file wasn't parsed") NoDesktopFile = errors.New("no (or >1) desktop entry was found inside bundle") NoIcon = errors.New("bundle doesn't specify an icon") InvalidIconExtension = errors.New("no valid icon extensions (svg, png) found inside bundle") NoMountPoint = errors.New("mount point doesn't exist") )
Functions ¶
This section is empty.
Types ¶
type AppImage ¶
type AppImage struct { Desktop *ini.File // INI of internal desktop entry Perms *permissions.AppImagePerms // Permissions Path string // Location of AppImage Name string // AppImage name from the desktop entry Version string // Version of the AppImage UpdateInfo string // Update information Offset int // Offset of SquashFS image // contains filtered or unexported fields }
func NewAppImage ¶
Create a new AppImage object from a path
func (*AppImage) Architectures ¶
func (*AppImage) ExtractFile ¶
Extract a file from the AppImage's interal filesystem image
func (*AppImage) ExtractFileReader ¶
func (ai *AppImage) ExtractFileReader(path string) (io.ReadCloser, error)
Like `ExtractFile()` but gives access to the reader instead of extracting
func (*AppImage) Icon ¶
func (ai *AppImage) Icon() (io.ReadCloser, string, error)
Returns the icon reader of the AppImage, valid formats are SVG and PNG
func (*AppImage) Mount ¶
Takes an optional argument to mount at a specific location (failing if it doesn't exist or more than one arg given. If none given, automatically create a temporary directory and mount to it
func (*AppImage) Run ¶
Run the AppImage with appropriate sandboxing. If `ai.Perms.Level` == 0, use no sandbox. If > 0, sandbox
func (*AppImage) Sandbox ¶
Executes AppImage through bwrap, fails if `ai.Perms.Level` < 1 Also automatically creates a portable home
func (*AppImage) SetDataDir ¶
Set the directory for the sandboxed AppImage's `HOME`
func (*AppImage) SetRootDir ¶
Set the directory the sandbox pulls system files from
func (*AppImage) SetTempDir ¶
Set the directory for the sandboxed AppImage's `TMPDIR`
Directories ¶
Path | Synopsis |
---|---|
aisap-bin
module
|
|
cmd
|
|
aisap
Module
|
|
profilegen
Module
|
|
helpers
module
|
|
permissions
module
|
|
profiles
module
|
|
spooky
module
|