Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnknownStatus = HealthStatus(iota) OkayStatus WaitingStatus BlockedStatus ErrorStatus )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(hookManager *hookstate.HookManager)
func SetFromHookContext ¶
SetFromHookContext extracts the health of a snap from a hook context, and saves it in snapd's state. Must be called with the context lock held.
Types ¶
type HealthState ¶
type HealthStatus ¶
type HealthStatus int
func StatusLookup ¶
func StatusLookup(str string) (HealthStatus, error)
func (HealthStatus) String ¶
func (s HealthStatus) String() string
Click to show internal directories.
Click to hide internal directories.