github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/pkg/inspector/check/check.go (about)

     1  package check
     2  
     3  // A Check implements a workflow that validates a condition. If an error
     4  // occurs while running the check, it returns false and the error. If the
     5  // check is able to successfully determine the condition, it returns true
     6  // if satisfied, or false otherwise.
     7  type Check interface {
     8  	Check() (bool, error)
     9  }
    10  
    11  // A ClosableCheck implements a long-running check workflow that requires closing
    12  type ClosableCheck interface {
    13  	Check
    14  	Close() error
    15  }