Documentation ¶
Index ¶
- type AliyunCommService
- func (s AliyunCommService) CreateEciClient(endpoint, accessKeyId, accessKeySecret string) (result *eci.Client, err error)
- func (s AliyunCommService) CreateEcsClient(endpoint, accessKeyId, accessKeySecret string) (result *ecs.Client, err error)
- func (s AliyunCommService) CreateEip(region string, client *vpc.Client) (id string, err error)
- func (s AliyunCommService) CreateEnsClient(url string, accessKeyId string, accessKeySecret string) (client *ens.Client, err error)
- func (s AliyunCommService) CreateVpcClient(endpoint, accessKeyId, accessKeySecret string) (result *vpc.Client, err error)
- func (s AliyunCommService) DestroyEip(id, region string, client *vpc.Client) (err error)
- func (s AliyunCommService) GetAvailableEip(region string, client *vpc.Client) (id string, err error)
- func (s AliyunCommService) GetRegion(region string, client *ecs.Client) (id, name string, err error)
- func (s AliyunCommService) GetSwitch(vpcId, regionId string, vpcClient *vpc.Client) (switchId, name string, err error)
- func (s AliyunCommService) QuerySecurityGroupByVpc(vpcId, regionId string, client *ecs.Client) (id string, err error)
- type AliyunEciService
- type AliyunEcsService
- func (s AliyunEcsService) AllocateIp(id string, ecsClient *ecs.Client) (ip string, err error)
- func (s AliyunEcsService) CreateInst(vmName, imageName, switchId, securityGroupId, region string, ...) (id, name string, err error)
- func (s AliyunEcsService) QueryImage(imageName, regionId string, client *ecs.Client) (imageId string, err error)
- func (s AliyunEcsService) QueryInst(id, regionId string, client *ecs.Client) (status, macAddress string, err error)
- func (s AliyunEcsService) QuerySpec(regionId string, client *ecs.Client) (zoneId, spec string, err error)
- func (s AliyunEcsService) QueryVncPassword(id, regionId string, client *ecs.Client) (password string, err error)
- func (s AliyunEcsService) QueryVncUrl(id, vncPassword, regionId string, isWindows bool, client *ecs.Client) (url string, err error)
- func (s AliyunEcsService) RemoveInst(id string, ecsClient *ecs.Client) (err error)
- func (s AliyunEcsService) StartInst(id string, ecsClient *ecs.Client) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunCommService ¶
type AliyunCommService struct { }
func NewAliyunCommService ¶
func NewAliyunCommService() *AliyunCommService
func (AliyunCommService) CreateEciClient ¶
func (s AliyunCommService) CreateEciClient(endpoint, accessKeyId, accessKeySecret string) ( result *eci.Client, err error)
func (AliyunCommService) CreateEcsClient ¶
func (s AliyunCommService) CreateEcsClient(endpoint, accessKeyId, accessKeySecret string) ( result *ecs.Client, err error)
func (AliyunCommService) CreateEnsClient ¶
func (AliyunCommService) CreateVpcClient ¶
func (s AliyunCommService) CreateVpcClient(endpoint, accessKeyId, accessKeySecret string) ( result *vpc.Client, err error)
func (AliyunCommService) DestroyEip ¶
func (s AliyunCommService) DestroyEip(id, region string, client *vpc.Client) (err error)
func (AliyunCommService) GetAvailableEip ¶
func (AliyunCommService) QuerySecurityGroupByVpc ¶
type AliyunEciService ¶
type AliyunEciService struct {
AliyunCommService *AliyunCommService `inject:""`
}
func NewAliyunEciService ¶
func NewAliyunEciService() *AliyunEciService
func (AliyunEciService) CreateInst ¶
func (AliyunEciService) Destroy ¶
func (s AliyunEciService) Destroy(containerGroupId, region string, client *eci.Client) ( ret domain.CciRepsDestroy, err error)
type AliyunEcsService ¶
type AliyunEcsService struct {
AliyunCommService *AliyunCommService `inject:""`
}
func NewAliyunEcsService ¶
func NewAliyunEcsService() *AliyunEcsService
func (AliyunEcsService) AllocateIp ¶
func (AliyunEcsService) CreateInst ¶
func (AliyunEcsService) QueryImage ¶
func (AliyunEcsService) QueryVncPassword ¶
func (AliyunEcsService) QueryVncUrl ¶
func (AliyunEcsService) RemoveInst ¶
func (s AliyunEcsService) RemoveInst(id string, ecsClient *ecs.Client) (err error)
Click to show internal directories.
Click to hide internal directories.