mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 09:32:52 +00:00
25 lines
551 B
Go
25 lines
551 B
Go
package modules
|
|
|
|
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() error
|
|
Until() (*bool, error)
|
|
Slogan()
|
|
AutoAssert()
|
|
}
|
|
|
|
type Task interface {
|
|
GetDesc() string
|
|
Init(runtime connector.Runtime, moduleCache *cache.Cache, pipelineCache *cache.Cache)
|
|
Execute() *ending.TaskResult
|
|
}
|