Check returns metadata about the check being executed and the list of Steps
| 12 | |
| 13 | // Check returns metadata about the check being executed and the list of Steps |
| 14 | type Check interface { |
| 15 | // ID returns the unique identifier of the check |
| 16 | ID() string |
| 17 | // Name returns the human-readable name of the check |
| 18 | Name() string |
| 19 | // Item returns the item that will be checked |
| 20 | Item(ctx context.Context, id string) (any, error) |
| 21 | // Items returns the list of items that will be checked |
| 22 | Items(ctx context.Context) ([]any, error) |
| 23 | // Steps returns the list of steps that will be executed |
| 24 | Steps() []Step |
| 25 | // Init initializes the check. It's called before running the steps and should be idempotent. |
| 26 | // The result should not be cached, it should be initialized from scratch. |
| 27 | Init(ctx context.Context) error |
| 28 | } |
| 29 | |
| 30 | // Step is a single step in a check, including its metadata |
| 31 | type Step interface { |
no outgoing calls
no test coverage detected