plugins

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2018 License: Apache-2.0 Imports: 10 Imported by: 10

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 GetAvailablePlugins(availablePlugins []string) []string

func IsVmbasedProviders added in v0.2.2

func IsVmbasedProviders(provider string) bool

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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