Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListDrivers ¶
func ListDrivers() []string
func RegisterProviderDriver ¶
func RegisterProviderDriver(name string, f ProviderDriverFunc)
Types ¶
type ProviderDriver ¶
type ProviderDriver interface { Create(cluster *models.Cluster, number int) (instanceIds []string, errs []error) Delete(instanceId string) (time.Time, error) Start(instanceId string) (bool, error) Stop(instanceId string) (bool, error) WaitForInstanceToStop(instanceId string) bool WaitToStartInstance(instanceId string) bool List(regionId string, pageNumber int, pageSize int) (*models.ListInstancesResponse, error) ListInstanceTypes() ([]string, error) GetInstance(instanceId string) (*models.Instance, error) ListSecurityGroup(regionId string, vpcId string) (*models.SecurityGroupsResp, error) ListAvailabilityZones(regionId string) (*models.AvailabilityZonesResp, error) ListRegions() (*models.RegionsResp, error) ListVpcs(regionId string, pageNumber int, pageSize int) (*models.VpcsResp, error) ListSubnets(zoneId string, vpcId string) (*models.SubnetsResp, error) ListImages(regionId string, snapshotId string, pageSize int, pageNumber int) (*models.ImagesResp, error) GetInstanceType(key string) string ListDiskCategory() []string ListInternetChargeType() []string AllocatePublicIpAddress(instanceId string) (string, error) }
type ProviderDriverFunc ¶
type ProviderDriverFunc func(keyId ...string) (ProviderDriver, error)
Click to show internal directories.
Click to hide internal directories.