type Nop struct { // contains filtered or unexported fields }
Nop is a no-op implementation of a lifecycle Once. It advances state but performs no actions.
func NewNop() *Nop
NewNop returns a new one-time no-op lifecycle.
func (n *Nop) IsRunning() bool
IsRunning returns the Nop lifecycle.Status.
func (n *Nop) Start() error
Start advances the Nop to Running without side-effects.
func (n *Nop) Stop() error
Stop advances the Nop to Stopped without side-effects.