Imports github.com/snapcore/snapd/logger github.com/snapcore/snapd/overlord/hookstate github.com/snapcore/snapd/overlord/snapstate github.com/snapcore/snapd/overlord/state github.com/snapcore/snapd/snap github.com/snapcore/snapd/strutil Standard library imports encoding/json fmt os regexp time