Documentation ¶
Overview ¶
Package runinhibit contains operations for establishing, removing and querying snap run inhibition lock.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InhibitDir = defaultInhibitDir
InhibitDir is the directory where inhibition files are stored. This value can be changed by calling dirs.SetRootDir.
Functions ¶
func LockWithHint ¶
LockWithHint sets a persistent "snap run" inhibition lock, for the given snap, with a given hint.
The hint cannot be empty. It should be one of the Hint constants defined in this package. With the hint in place "snap run" will not allow the snap to start and will block, presenting a user interface if possible.
Types ¶
Click to show internal directories.
Click to hide internal directories.