plugins

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2018 License: Apache-2.0 Imports: 9 Imported by: 10

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL