package
2.0.0-20221108114759-4c0a9086593c
Repository: https://github.com/mever/gocharm.git
Documentation: pkg.go.dev

# Functions

NewServiceFunc returns a function that can be used to create new services and can be assigned to service.NewService to mock the OS-level service creator.

# Constants

ServiceEventError happens when a service's command terminates with an error.
ServiceEventInstall happens when a service is installed.
ServiceEventRemove happens when a service is removed.
ServiceEventStart happens when a service is started.
ServiceEventStop happens when a service is stopped.
UUID holds an arbitrary environment UUID for testing purposes.

# Structs

Runner is implementation of hook.Runner suitable for use in tests.
ServiceEvent represents an event on a service created by the function returned from NewServiceFunc.

# Type aliases

MemState implements hook.PersistentState in memory.
ServiceEventKind represents the kind of a ServiceEvent.