Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAliyunClient ¶
type IAliyunClient interface { // 获取所有region列表 DescribeRegions() ([]Region, error) // 获取region对应的所有image DescribeImages(regionID string) (images []Image, err error) ShareImage(regionID, imageID, accountID string) error // 复制镜像 CopyImage(imageID, srcRegion, dstRegion string) error }
func NewAliyunClient ¶
func NewAliyunClient(ak, sk string) (IAliyunClient, error)
Click to show internal directories.
Click to hide internal directories.