Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedProviders = make(map[string]interface{})
Functions ¶
func GetAvailablePlugins ¶ added in v0.2.2
func IsVmbasedProviders ¶ added in v0.2.2
func RegisterProvider ¶ added in v0.2.2
func RegisterProvider(provider string, providerInterface ProviderInterface)
Types ¶
type ProviderInterface ¶
type ProviderInterface interface { // Parse package and conf into cluster which clusterManager will register into db. ParseClusterConf(ctx context.Context, versionId, runtimeId, conf string, clusterWrapper *models.ClusterWrapper) error SplitJobIntoTasks(ctx context.Context, job *models.Job) (*models.TaskLayer, error) HandleSubtask(ctx context.Context, task *models.Task) error WaitSubtask(ctx context.Context, task *models.Task) error DescribeSubnets(ctx context.Context, req *pb.DescribeSubnetsRequest) (*pb.DescribeSubnetsResponse, error) CheckResource(ctx context.Context, clusterWrapper *models.ClusterWrapper) error DescribeVpc(ctx context.Context, runtimeId, vpcId string) (*models.Vpc, error) ValidateCredential(ctx context.Context, runtimeId, url, credential, zone string) error DescribeRuntimeProviderZones(ctx context.Context, url, credential string) ([]string, error) UpdateClusterStatus(ctx context.Context, job *models.Job) error DescribeClusterDetails(ctx context.Context, cluster *models.ClusterWrapper) error }
func GetProviderPlugin ¶
func GetProviderPlugin(ctx context.Context, provider string) (ProviderInterface, error)
Click to show internal directories.
Click to hide internal directories.