Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProviderPlugin ¶
func RegisterProviderPlugin(provider string, providerInterface ProviderInterface)
Types ¶
type ProviderInterface ¶
type ProviderInterface interface { SetLogger(logger *logger.Logger) // Parse package and conf into cluster which clusterManager will register into db. ParseClusterConf(versionId, 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) CheckResourceQuotas(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(provider string, logger *logger.Logger) (ProviderInterface, error)
Click to show internal directories.
Click to hide internal directories.