Documentation ¶
Index ¶
- type HuaweiCloudCciService
- type HuaweiCloudCommService
- type HuaweiCloudEcsService
- func (s HuaweiCloudEcsService) CreateEcsClient(ak, sk, regionId string) (client *ecs.EcsClient, err error)
- func (s HuaweiCloudEcsService) CreateImgClient(ak, sk, regionId string) (client *ims.ImsClient, err error)
- func (s HuaweiCloudEcsService) CreateInst(instName, imageName string, ecsClient *ecs.EcsClient, imgClient *ims.ImsClient, ...) (id, name string, err error)
- func (s HuaweiCloudEcsService) CreateVpcClient(ak, sk, regionId string) (client *vpc.VpcClient, err error)
- func (s HuaweiCloudEcsService) QueryImage(keywords string, client *ims.ImsClient) (id, name string, err error)
- func (s HuaweiCloudEcsService) QueryInst(id string, client *ecs.EcsClient) (name, status, ip, mac string, err error)
- func (s HuaweiCloudEcsService) QuerySpec(client *ecs.EcsClient) (id, name string, err error)
- func (s HuaweiCloudEcsService) QuerySubNet(client *vpc.VpcClient) (id, name string, err error)
- func (s HuaweiCloudEcsService) QueryVnc(id string, client *ecs.EcsClient) (url string, err error)
- func (s HuaweiCloudEcsService) QueryVpc(client *vpc.VpcClient) (id, name string, err error)
- func (s HuaweiCloudEcsService) RemoveInst(id string, ecsClient *ecs.EcsClient) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HuaweiCloudCciService ¶
type HuaweiCloudCciService struct {
HuaweiCloudCommService *HuaweiCloudCommService `inject:""`
}
func NewHuaweiCloudCciService ¶
func NewHuaweiCloudCciService() *HuaweiCloudCciService
func (HuaweiCloudCciService) Create ¶
func (s HuaweiCloudCciService) Create(image string, jobName string, cmd []string, token string, region string, namespace string) (ret domain.CciRepsCreate, err error)
func (HuaweiCloudCciService) Destroy ¶
func (s HuaweiCloudCciService) Destroy(jobName, token, region, namespace string) ( ret domain.CciRepsDestroy, err error)
type HuaweiCloudCommService ¶
type HuaweiCloudCommService struct { }
func NewHuaweiCloudCommService ¶
func NewHuaweiCloudCommService() *HuaweiCloudCommService
func (HuaweiCloudCommService) CreateIamClient ¶
func (s HuaweiCloudCommService) CreateIamClient(ak, sk, regionId string) ( client *iam.IamClient, err error)
func (HuaweiCloudCommService) GetIamToken ¶
type HuaweiCloudEcsService ¶
type HuaweiCloudEcsService struct { }
func NewHuaweiCloudEcsService ¶
func NewHuaweiCloudEcsService() *HuaweiCloudEcsService
func (HuaweiCloudEcsService) CreateEcsClient ¶
func (s HuaweiCloudEcsService) CreateEcsClient(ak, sk, regionId string) ( client *ecs.EcsClient, err error)
func (HuaweiCloudEcsService) CreateImgClient ¶
func (s HuaweiCloudEcsService) CreateImgClient(ak, sk, regionId string) ( client *ims.ImsClient, err error)
func (HuaweiCloudEcsService) CreateInst ¶
func (HuaweiCloudEcsService) CreateVpcClient ¶
func (s HuaweiCloudEcsService) CreateVpcClient(ak, sk, regionId string) ( client *vpc.VpcClient, err error)
func (HuaweiCloudEcsService) QueryImage ¶
func (HuaweiCloudEcsService) QuerySpec ¶
func (s HuaweiCloudEcsService) QuerySpec(client *ecs.EcsClient) (id, name string, err error)
func (HuaweiCloudEcsService) QuerySubNet ¶
func (s HuaweiCloudEcsService) QuerySubNet(client *vpc.VpcClient) (id, name string, err error)
func (HuaweiCloudEcsService) QueryVpc ¶
func (s HuaweiCloudEcsService) QueryVpc(client *vpc.VpcClient) (id, name string, err error)
func (HuaweiCloudEcsService) RemoveInst ¶
func (s HuaweiCloudEcsService) RemoveInst(id string, ecsClient *ecs.EcsClient) (err error)
Click to show internal directories.
Click to hide internal directories.