package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev
# Functions
HookTask returns a task that will run the specified hook.
HookTaskWithUndo returns a task that will run the specified hook.
Manager returns a new HookManager.
MockRunHook mocks the actual invocation of hooks for tests.
NewContext returns a new context associated with the provided task or an ephemeral context if task is nil.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Context represents the context under which the snap is calling back into snapd.
HookManager is responsible for the maintenance of hooks in the system state.
HookSetup is a reference to a hook within a specific snap.
No description provided by the author
# Interfaces
Handler is the interface a client must satisfy to handle hooks.
# Type aliases
HandlerGenerator is the function signature required to register for hooks.