|
|
|
@ -36,8 +36,6 @@ type Interface interface {
|
|
|
|
|
// WaitWithJobs wait up to the given timeout for the specified resources to be ready, including jobs.
|
|
|
|
|
WaitWithJobs(resources ResourceList, timeout time.Duration) error
|
|
|
|
|
|
|
|
|
|
WaitForDelete(resources ResourceList, timeout time.Duration) error
|
|
|
|
|
|
|
|
|
|
// Delete destroys one or more resources.
|
|
|
|
|
Delete(resources ResourceList) (*Result, []error)
|
|
|
|
|
|
|
|
|
@ -72,4 +70,13 @@ type Interface interface {
|
|
|
|
|
IsReachable() error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ClientInterface is introduced to avoid breaking backwards compatibility for Interface implementers.
|
|
|
|
|
//
|
|
|
|
|
// TODO Helm 4: Remove ClientInterface and integrate its method(s) into the Interface.
|
|
|
|
|
type ClientInterface interface {
|
|
|
|
|
// WaitForDelete wait up to the given timeout for the specified resources to be deleted.
|
|
|
|
|
WaitForDelete(resources ResourceList, timeout time.Duration) error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _ Interface = (*Client)(nil)
|
|
|
|
|
var _ ClientInterface = (*Client)(nil)
|
|
|
|
|