mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-31 16:33:54 +00:00
18 lines
319 B
Go
18 lines
319 B
Go
package hook
|
|
|
|
import (
|
|
"github.com/kubesphere/kubekey/pkg/core/connector"
|
|
"github.com/kubesphere/kubekey/pkg/core/ending"
|
|
)
|
|
|
|
type Interface interface {
|
|
Try() error
|
|
Catch(err error) error
|
|
Finally()
|
|
}
|
|
|
|
type PostHook interface {
|
|
Interface
|
|
Init(runtime connector.Runtime, desc string, result *ending.ModuleResult)
|
|
}
|