Documentation ¶
Index ¶
- func Classify(ins []InstanceOns) (...)
- func CreateGroup(ctx aliyun_resources.Context, ...) error
- func CreateInstance(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceOnsRequest) (data ons.Data, err error)
- func CreateInstanceWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceOnsRequest, ...)
- func CreateTopic(ctx aliyun_resources.Context, ...) error
- func CreateTopicWithRecord(ctx aliyun_resources.Context, ...) (err error)
- func DescribeGroup(ctx aliyun_resources.Context, req apistructs.CloudResourceOnsGroupInfoRequest) ([]ons.SubscribeInfoDo, error)
- func DescribeTopic(ctx aliyun_resources.Context, req apistructs.CloudResourceOnsTopicInfoRequest) ([]ons.PublishInfoDo, error)
- func GetInstanceDetailInfo(ctx aliyun_resources.Context, instanceID string) (ons.InstanceBaseInfo, error)
- func GetInstanceFullDetailInfo(c context.Context, ctx aliyun_resources.Context, instanceID string) ([]apistructs.CloudResourceDetailInfo, error)
- func GetInstanceStatus(status int) string
- func GetInstanceType(t int) string
- func GetMsgType(msgType int) string
- func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, ...) error
- func TagResource(ctx aliyun_resources.Context, resourceIDs []string, tags []string, ...) error
- func Untag(ctx aliyun_resources.Context, resourceIDs []string, keys []string, ...) error
- type InstanceOns
- type OnsFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Classify ¶
func Classify(ins []InstanceOns) (runningCount, gonnaExpiredCount, expiredCount, stoppedCount, postpaidCount, prepaidCount int, err error)
func CreateGroup ¶
func CreateGroup(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceOnsGroupRequest) error
func CreateInstance ¶
func CreateInstance(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceOnsRequest) (data ons.Data, err error)
func CreateInstanceWithRecord ¶
func CreateInstanceWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceOnsRequest, record *dbclient.Record)
func CreateTopic ¶
func CreateTopic(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceOnsTopicRequest) error
func CreateTopicWithRecord ¶
func CreateTopicWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceOnsTopicRequest, record *dbclient.Record, detail *apistructs.CreateCloudResourceRecord) (err error)
func DescribeGroup ¶
func DescribeGroup(ctx aliyun_resources.Context, req apistructs.CloudResourceOnsGroupInfoRequest) ([]ons.SubscribeInfoDo, error)
func DescribeTopic ¶
func DescribeTopic(ctx aliyun_resources.Context, req apistructs.CloudResourceOnsTopicInfoRequest) ([]ons.PublishInfoDo, error)
func GetInstanceDetailInfo ¶
func GetInstanceDetailInfo(ctx aliyun_resources.Context, instanceID string) (ons.InstanceBaseInfo, error)
func GetInstanceFullDetailInfo ¶
func GetInstanceFullDetailInfo(c context.Context, ctx aliyun_resources.Context, instanceID string) ([]apistructs.CloudResourceDetailInfo, error)
func GetInstanceStatus ¶
func GetInstanceType ¶
func GetMsgType ¶
func OverwriteTags ¶
func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, tags []string, resourceType aliyun_resources.TagResourceType, instanceID string) error
func TagResource ¶
func TagResource(ctx aliyun_resources.Context, resourceIDs []string, tags []string, resourceType aliyun_resources.TagResourceType, instanceID string) error
func Untag ¶
func Untag(ctx aliyun_resources.Context, resourceIDs []string, keys []string, resourceType aliyun_resources.TagResourceType, instanceID string) error
Types ¶
type InstanceOns ¶
type InstanceOns struct { Region string `json:"region"` ons.InstanceVO }
func DescribeResource ¶
func DescribeResource(ctx aliyun_resources.Context) ([]InstanceOns, error)
func List ¶
func List(ctx aliyun_resources.Context, page aliyun_resources.PageOption, regions []string, _cluster string) ([]InstanceOns, error)
type OnsFactory ¶
type OnsFactory struct {
*resource_factory.BaseResourceFactory
}
Click to show internal directories.
Click to hide internal directories.