conditions

package
v0.3.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition interface {
	fmt.Stringer
	Wait(ctx context.Context) error
}

Condition is a object which Wait()s for some condition to become true.

Condition can describe itself via String() method.

func None

func None() Condition

None is a service condition that has no conditions.

func WaitForAll

func WaitForAll(conditions ...Condition) Condition

WaitForAll creates a condition which waits for all the conditions to be successful

func WaitForFileToExist

func WaitForFileToExist(filename string) Condition

WaitForFileToExist is a service condition that will wait for the existence of a file.

func WaitForFilesToExist

func WaitForFilesToExist(filenames ...string) Condition

WaitForFilesToExist is a service condition that will wait for the existence of all the files.

Jump to

Keyboard shortcuts

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