Documentation ¶
Index ¶
- Variables
- func ClientAppInfoNotes(app *client.AppInfo) string
- func ClientAppInfosFromSnapAppInfos(apps []*snap.AppInfo) ([]client.AppInfo, error)
- func ClientSnapFromSnapInfo(snapInfo *snap.Info) (*client.Snap, error)
- func ExecInSnapdOrCoreSnap()
- func InternalToolPath(tool string) (string, error)
- func MockOsReadlink(f func(string) (string, error)) func()
- func MockVersion(version string) (restore func())
- type BySnapApp
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "unknown"
Version will be overwritten at build-time via mkversion.sh
Functions ¶
func ClientAppInfoNotes ¶
func ClientSnapFromSnapInfo ¶
func ExecInSnapdOrCoreSnap ¶
func ExecInSnapdOrCoreSnap()
ExecInSnapdOrCoreSnap makes sure you're executing the binary that ships in the snapd/core snap.
func InternalToolPath ¶
TODO: move to cmd/cmdutil/
InternalToolPath returns the path of an internal snapd tool. The tool *must* be located inside the same tree as the current binary.
The return value is either the path of the tool in the current distribution or in the core/snapd snap (or the ubuntu-core snap) if the current binary is ran from that location.
func MockOsReadlink ¶
MockOsReadlink is for use in tests
func MockVersion ¶
func MockVersion(version string) (restore func())
Types ¶
Directories ¶
Path | Synopsis |
---|---|
* Copyright (C) 2019 Canonical Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation.
|
* Copyright (C) 2019 Canonical Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. |
Package snaplock offers per-snap locking also used by snap-confine.
|
Package snaplock offers per-snap locking also used by snap-confine. |
Click to show internal directories.
Click to hide internal directories.