lifecycletest

package
v1.27.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nop

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

func NewNop() *Nop

NewNop returns a new one-time no-op lifecycle.

func (*Nop) IsRunning

func (n *Nop) IsRunning() bool

IsRunning returns the Nop lifecycle.Status.

func (*Nop) Start

func (n *Nop) Start() error

Start advances the Nop to Running without side-effects.

func (*Nop) Stop

func (n *Nop) Stop() error

Stop advances the Nop to Stopped without side-effects.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL