kubekey/pkg/core/hook/interface.go
2021-11-01 18:15:33 +08:00

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)
}