Documentation ¶
Index ¶
- Variables
- func GetAccountByOrgId(orgId string) (ac *apistructs.CloudAccount, err error)
- func GetDescribeMetricLast(orgId, namespace, metricName string) (dataPoints []string, err error)
- func ListAllOrgs(orgClient org.ClientInterface) (res []*orgpb.Org, err error)
- func ListMetricMeta(orgId, namespace string) (res []cms.Resource, err error)
- func ListProjectMeta(orgId string, products []string) (res []cms.Resource, err error)
- func NewAliyunVendor(ak, sk string, cfg AliyunConfig) (v *aliyun, err error)
- func RegisterVendor(orgId string, vendor CloudVendor)
- type AliyunConfig
- type CloudVendor
- type DataPoints
- type Metric
- type MetricMeta
- type OrgInfo
- type ProjectMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyResults = errors.New("empty results")
)
Functions ¶
func GetAccountByOrgId ¶
func GetAccountByOrgId(orgId string) (ac *apistructs.CloudAccount, err error)
func GetDescribeMetricLast ¶
todo need as a requests pool
func ListAllOrgs ¶
func ListAllOrgs(orgClient org.ClientInterface) (res []*orgpb.Org, err error)
func ListProjectMeta ¶
func NewAliyunVendor ¶
func NewAliyunVendor(ak, sk string, cfg AliyunConfig) (v *aliyun, err error)
func RegisterVendor ¶
func RegisterVendor(orgId string, vendor CloudVendor)
Types ¶
type AliyunConfig ¶
type CloudVendor ¶
type CloudVendor interface {
DoReq(request interface{}, response interface{}) error
}
type DataPoints ¶
type DataPoints string
type Metric ¶
type Metric struct { Name string `json:"name"` Timestamp uint64 `json:"timestamp"` Tags map[string]string `json:"tags"` Fields map[string]interface{} `json:"fields"` }
Metric .
type MetricMeta ¶
type MetricMeta struct { }
type OrgInfo ¶
OrgInfo .
func ListOrgInfos ¶
func ListOrgInfos(orgClient org.ClientInterface) (res []OrgInfo, err error)
type ProjectMeta ¶
ProjectMeta .
Click to show internal directories.
Click to hide internal directories.