Waiter defines methods related to waiting for resource states.
| 79 | |
| 80 | // Waiter defines methods related to waiting for resource states. |
| 81 | type Waiter interface { |
| 82 | // Wait waits up to the given timeout for the specified resources to be ready. |
| 83 | Wait(resources ResourceList, timeout time.Duration) error |
| 84 | |
| 85 | // WaitWithJobs wait up to the given timeout for the specified resources to be ready, including jobs. |
| 86 | WaitWithJobs(resources ResourceList, timeout time.Duration) error |
| 87 | |
| 88 | // WaitForDelete wait up to the given timeout for the specified resources to be deleted. |
| 89 | WaitForDelete(resources ResourceList, timeout time.Duration) error |
| 90 | |
| 91 | // WatchUntilReady watches the resources given and waits until it is ready. |
| 92 | // |
| 93 | // This method is mainly for hook implementations. It watches for a resource to |
| 94 | // hit a particular milestone. The milestone depends on the Kind. |
| 95 | // |
| 96 | // For Jobs, "ready" means the Job ran to completion (exited without error). |
| 97 | // For Pods, "ready" means the Pod phase is marked "succeeded". |
| 98 | // For all other kinds, it means the kind was created or modified without |
| 99 | // error. |
| 100 | WatchUntilReady(resources ResourceList, timeout time.Duration) error |
| 101 | } |
| 102 | |
| 103 | // InterfaceWaitOptions defines an interface that extends Interface with |
| 104 | // methods that accept wait options. |
no outgoing calls
no test coverage detected
searching dependent graphs…