Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GarbageCollect ¶
func GarbageCollect(name string, flags InstallFlags, pb progress.Meter) error
GarbageCollect removes all versions two older than the current active version, as long as NeedsReboot() is false on all the versions found, and DoInstallGC is set.
Types ¶
type InstallFlags ¶
type InstallFlags uint
InstallFlags can be used to pass additional flags to the install of a snap
const ( // AllowUnauthenticated allows to install a snap even if it can not be authenticated AllowUnauthenticated InstallFlags = 1 << iota // InhibitHooks will ensure that the hooks are not run InhibitHooks // DoInstallGC will ensure that garbage collection is done DoInstallGC // AllowOEM allows the installation of OEM packages, this does not affect updates. AllowOEM )
Click to show internal directories.
Click to hide internal directories.