Documentation ¶
Index ¶
- func AutoRenew(ctx aliyun_resources.Context, id string, duration int, s bool) (*ecs.ModifyInstanceAutoRenewAttributeResponse, error)
- func Classify(ins []ecs.Instance) (...)
- func DescribeResource(ctx aliyun_resources.Context, page aliyun_resources.PageOption, cluster string, ...) (*ecs.DescribeInstancesResponse, error)
- func GetAllResourceIDs(ctx aliyun_resources.Context) ([]string, error)
- func List(ctx aliyun_resources.Context, page aliyun_resources.PageOption, ...) ([]ecs.Instance, int, error)
- func ListByCluster(ctx aliyun_resources.Context, page aliyun_resources.PageOption, cluster string) (*ecs.DescribeInstancesResponse, error)
- func ListInstanceTypes(ctx aliyun_resources.Context) ([]ecs.InstanceType, error)
- func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, ...) error
- func Restart(ctx aliyun_resources.Context, IDs []string) (*ecs.RebootInstancesResponse, error)
- func Start(ctx aliyun_resources.Context, IDs []string) (*ecs.StartInstancesResponse, error)
- func Stop(ctx aliyun_resources.Context, IDs []string) (*ecs.StopInstancesResponse, error)
- func TagResource(ctx aliyun_resources.Context, instanceIds []string, tags []string) error
- func Trend(ins []ecs.Instance) (*apistructs.MonthAddTrend, error)
- func UnTag(ctx aliyun_resources.Context, instanceIds []string, tags []string) error
- type MonthAddTrend
- type MonthAddTrendData
- type MonthAddTrendData_0
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoRenew ¶
func AutoRenew(ctx aliyun_resources.Context, id string, duration int, s bool) (*ecs.ModifyInstanceAutoRenewAttributeResponse, error)
func DescribeResource ¶
func DescribeResource(ctx aliyun_resources.Context, page aliyun_resources.PageOption, cluster string, id string, IPs []string) (*ecs.DescribeInstancesResponse, error)
func GetAllResourceIDs ¶
func GetAllResourceIDs(ctx aliyun_resources.Context) ([]string, error)
func List ¶
func List(ctx aliyun_resources.Context, page aliyun_resources.PageOption, regions []string, cluster string, IPs []string) ([]ecs.Instance, int, error)
func ListByCluster ¶
func ListByCluster(ctx aliyun_resources.Context, page aliyun_resources.PageOption, cluster string) (*ecs.DescribeInstancesResponse, error)
func ListInstanceTypes ¶
func ListInstanceTypes(ctx aliyun_resources.Context) ([]ecs.InstanceType, error)
func OverwriteTags ¶
func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, tags []string) error
func Restart ¶
func Restart(ctx aliyun_resources.Context, IDs []string) (*ecs.RebootInstancesResponse, error)
func Start ¶
func Start(ctx aliyun_resources.Context, IDs []string) (*ecs.StartInstancesResponse, error)
func Stop ¶
func Stop(ctx aliyun_resources.Context, IDs []string) (*ecs.StopInstancesResponse, error)
func TagResource ¶
func TagResource(ctx aliyun_resources.Context, instanceIds []string, tags []string) error
func Trend ¶
func Trend(ins []ecs.Instance) (*apistructs.MonthAddTrend, error)
Types ¶
type MonthAddTrend ¶
type MonthAddTrend struct { Time []int64 `json:"time"` Results []MonthAddTrendData_0 `json:"results"` }
type MonthAddTrendData ¶
type MonthAddTrendData_0 ¶
type MonthAddTrendData_0 struct { Data []struct { MonthAdd MonthAddTrendData `json:"monthadd"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.