mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-28 12:12:51 +00:00
27 lines
657 B
Go
27 lines
657 B
Go
package module
|
|
|
|
import (
|
|
"github.com/kubesphere/kubekey/pkg/core/cache"
|
|
"github.com/kubesphere/kubekey/pkg/core/connector"
|
|
"github.com/kubesphere/kubekey/pkg/core/ending"
|
|
)
|
|
|
|
type Module interface {
|
|
IsSkip() bool
|
|
Default(runtime connector.Runtime, pipelineCache *cache.Cache, moduleCache *cache.Cache)
|
|
Init()
|
|
Is() string
|
|
Run(result *ending.ModuleResult)
|
|
Until() (*bool, error)
|
|
Slogan()
|
|
AutoAssert()
|
|
AppendPostHook(h PostHookInterface)
|
|
CallPostHook(result *ending.ModuleResult) error
|
|
}
|
|
|
|
type Task interface {
|
|
GetDesc() string
|
|
Init(runtime connector.Runtime, moduleCache *cache.Cache, pipelineCache *cache.Cache)
|
|
Execute() *ending.TaskResult
|
|
}
|