Documentation ¶
Index ¶
- func Classify(ins []kvstore.KVStoreInstance) (...)
- func CreateInstance(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceRedisRequest) (*kvstore.CreateInstanceResponse, error)
- func CreateInstanceWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceRedisRequest, ...)
- func DescribeResource(ctx aliyun_resources.Context, page aliyun_resources.PageOption, cluster string, ...) (*kvstore.DescribeInstancesResponse, error)
- func DescribeResourceDetailInfo(ctx aliyun_resources.Context, instanceID string) (*kvstore.DescribeInstanceAttributeResponse, error)
- func DescribeZones(ctx aliyun_resources.Context) (*kvstore.DescribeZonesResponse, error)
- func GetAvailableVsw(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceBaseInfo) (*vpc.VSwitch, error)
- func GetInstanceFullDetailInfo(c context.Context, ctx aliyun_resources.Context, instanceID string) ([]apistructs.CloudResourceDetailInfo, error)
- func List(ctx aliyun_resources.Context, page aliyun_resources.PageOption, ...) ([]kvstore.KVStoreInstance, error)
- func NetInfo(ctx aliyun_resources.Context, instanceID string) (kvstore.InstanceNetInfo, error)
- func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, ...) error
- func SupportZones(ctx aliyun_resources.Context) ([]string, error)
- func TagResource(ctx aliyun_resources.Context, instanceIds []string, tags []string) error
- func UnTag(ctx aliyun_resources.Context, instanceIds []string, tags []string) error
- type RedisFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Classify ¶
func Classify(ins []kvstore.KVStoreInstance) (runningCount, gonnaExpiredCount, expiredCount, stoppedCount, postpaidCount, prepaidCount int, err error)
func CreateInstance ¶
func CreateInstance(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceRedisRequest) (*kvstore.CreateInstanceResponse, error)
func CreateInstanceWithRecord ¶
func CreateInstanceWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceRedisRequest, record *dbclient.Record)
func DescribeResource ¶
func DescribeResource(ctx aliyun_resources.Context, page aliyun_resources.PageOption, cluster string, instanceIDs []string) (*kvstore.DescribeInstancesResponse, error)
describe instance
func DescribeResourceDetailInfo ¶
func DescribeResourceDetailInfo(ctx aliyun_resources.Context, instanceID string) (*kvstore.DescribeInstanceAttributeResponse, error)
func DescribeZones ¶
func DescribeZones(ctx aliyun_resources.Context) (*kvstore.DescribeZonesResponse, error)
func GetAvailableVsw ¶
func GetAvailableVsw(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceBaseInfo) (*vpc.VSwitch, error)
func GetInstanceFullDetailInfo ¶
func GetInstanceFullDetailInfo(c context.Context, ctx aliyun_resources.Context, instanceID string) ([]apistructs.CloudResourceDetailInfo, error)
func List ¶
func List(ctx aliyun_resources.Context, page aliyun_resources.PageOption, regions []string, cluster string) ([]kvstore.KVStoreInstance, error)
list instance
func NetInfo ¶
func NetInfo(ctx aliyun_resources.Context, instanceID string) (kvstore.InstanceNetInfo, error)
func OverwriteTags ¶
func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, tags []string) error
func SupportZones ¶
func SupportZones(ctx aliyun_resources.Context) ([]string, error)
func TagResource ¶
func TagResource(ctx aliyun_resources.Context, instanceIds []string, tags []string) error
Types ¶
type RedisFactory ¶
type RedisFactory struct {
*resource_factory.BaseResourceFactory
}
Click to show internal directories.
Click to hide internal directories.