Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderInterface ¶
type ProviderInterface interface { // Parse package and conf into cluster which clusterManager will register into db. ParseClusterConf(versionId, runtimeId, conf string) (*models.ClusterWrapper, error) SplitJobIntoTasks(job *models.Job) (*models.TaskLayer, error) HandleSubtask(task *models.Task) error WaitSubtask(task *models.Task, timeout time.Duration, waitInterval time.Duration) error DescribeSubnets(ctx context.Context, req *pb.DescribeSubnetsRequest) (*pb.DescribeSubnetsResponse, error) CheckResource(ctx context.Context, clusterWrapper *models.ClusterWrapper) error DescribeVpc(runtimeId, vpcId string) (*models.Vpc, error) ValidateCredential(url, credential, zone string) error DescribeRuntimeProviderZones(url, credential string) ([]string, error) UpdateClusterStatus(job *models.Job) error }
func GetProviderPlugin ¶
func GetProviderPlugin(ctx context.Context, provider string) (ProviderInterface, error)
Click to show internal directories.
Click to hide internal directories.