Documentation
¶
Index ¶
- Constants
- Variables
- func CompleteShPath(base string) string
- func IsCompleteShSymlink(compPath string) bool
- func SetRootDir(rootdir string)
- func SnapBlobDirUnder(rootdir string) string
- func SnapSeedDirUnder(rootdir string) string
- func StripRootDir(dir string) string
- func SupportsClassicConfinement() bool
Constants ¶
View Source
const ( // These are directories which are static inside the core snap and // can never be prefixed as they will be always absolute once we // are in the snap confinement environment. CoreLibExecDir = "/usr/lib/snapd" CoreSnapMountDir = "/snap" // Directory with snap data inside user's home UserHomeSnapDir = "snap" // LocalInstallBlobTempPrefix is used by local install code: // * in daemon to spool the snap file to <SnapBlobDir>/<LocalInstallBlobTempPrefix>* // * in snapstate to auto-cleans them up using the same prefix LocalInstallBlobTempPrefix = ".local-install-" )
Variables ¶
View Source
var ( GlobalRootDir string SnapMountDir string DistroLibExecDir string SnapBlobDir string SnapDataDir string SnapDataHomeGlob string SnapDownloadCacheDir string SnapAppArmorDir string AppArmorCacheDir string SnapAppArmorAdditionalDir string SnapConfineAppArmorDir string SnapSeccompDir string SnapMountPolicyDir string SnapUdevRulesDir string SnapKModModulesDir string LocaleDir string SnapMetaDir string SnapdSocket string SnapSocket string SnapRunDir string SnapRunNsDir string SnapRunLockDir string SnapSeedDir string SnapDeviceDir string SnapAssertsDBDir string SnapCookieDir string SnapTrustedAccountKey string SnapAssertsSpoolDir string SnapSeqDir string SnapStateFile string SnapSystemKeyFile string SnapRepairDir string SnapRepairStateFile string SnapRepairRunDir string SnapRepairAssertsDir string SnapRunRepairDir string SnapRollbackDir string SnapCacheDir string SnapNamesFile string SnapSectionsFile string SnapCommandsDB string SnapAuxStoreInfoDir string SnapBinariesDir string SnapServicesDir string SnapUserServicesDir string SnapSystemdConfDir string SnapDesktopFilesDir string SnapDesktopIconsDir string SnapBusPolicyDir string SystemApparmorDir string SystemApparmorCacheDir string CloudMetaDataFile string CloudInstanceDataFile string ClassicDir string XdgRuntimeDirBase string XdgRuntimeDirGlob string CompletionHelperInCore string CompletersDir string SystemFontsDir string SystemLocalFontsDir string SystemFontconfigCacheDirs []string FreezerCgroupDir string PidsCgroupDir string SnapshotsDir string ErrtrackerDbDir string SysfsDir string FeaturesDir string )
the various file paths
Functions ¶
func CompleteShPath ¶
func IsCompleteShSymlink ¶
func SetRootDir ¶
func SetRootDir(rootdir string)
SetRootDir allows settings a new global root directory, this is useful for e.g. chroot operations
func SnapBlobDirUnder ¶
SnapBlobDirUnder returns the path to the snap blob dir under rootdir.
func SnapSeedDirUnder ¶
SnapSeedDirUnder returns the path to the snap seed dir under rootdir.
func StripRootDir ¶
StripRootDir strips the custom global root directory from the specified argument.
func SupportsClassicConfinement ¶
func SupportsClassicConfinement() bool
SupportsClassicConfinement returns true if the current directory layout supports classic confinement.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.