kubekey/pkg/core/modules/interface.go
24sama f932d7730a Experiment: make core package independent
Signed-off-by: 24sama <jacksama@foxmail.com>
2021-11-01 18:15:03 +08:00

15 lines
289 B
Go

package modules
import (
"github.com/kubesphere/kubekey/pkg/core/cache"
"github.com/kubesphere/kubekey/pkg/core/connector"
)
type Module interface {
Default(runtime connector.Runtime, rootCache *cache.Cache, moduleCache *cache.Cache)
Init()
Is() string
Run() error
AutoAssert()
}