Versions in this module Expand all Collapse all v1 v1.19.1 Oct 25, 2022 Changes in this version + type BaseResp struct + Code int + Message string + RequestID string + Result bool + type Client struct + func (c *Client) GetProject(env, projectid string) (*GetProjectResult, error) + func (c *Client) ListProjectClusters(env, projectID string) (*ListProjectClustersResult, error) + func (c *Client) ListProjects(env string) (*ListProjectsResult, error) + type ClientInterface interface + GetProject func(env, projectid string) (*GetProjectResult, error) + ListProjectClusters func(env, projectID string) (*ListProjectClustersResult, error) + ListProjects func(env string) (*ListProjectsResult, error) + func NewClientInterface(host, appcode, appsecret string, tlsConf *tls.Config) ClientInterface + type Cluster struct + AreaID int64 + Artifactory string + CapacityUpdatedAt time.Time + ClusterID string + ClusterNum int64 + ConfigSvrCount int64 + CreatedAt time.Time + Creator string + Description string + Disabled bool + Environment string + ExtraClusterID string + IPResourceTotal int64 + IPResourceUsed int64 + MasterCount int64 + Name string + NeedNat bool + NodeCount int64 + ProjectID string + RemainCPU float64 + RemainDisk float64 + RemainMem float64 + Status string + TotalCPU float64 + TotalDisk float64 + TotalMem float64 + Type string + UpdatedAt time.Time + type GetProjectResult struct + Data Project + type ListProjectClustersResult struct + Data ListProjectClustersResultData + type ListProjectClustersResultData struct + Count int64 + Results []*Cluster + type ListProjectsResult struct + Data []*Project + type Project struct + ApprovalStatus int64 + ApprovalTime time.Time + Approver string + BgID int64 + BgName string + Bgid int64 + CcAppID int64 + CenterID int64 + CenterName string + CreatedAt time.Time + Creator string + DataID int64 + DeployType string + DeptID int64 + DeptName string + Description string + EnglishName string + ID int64 + IsOfflined bool + IsSecrecy bool + Kind int64 + LogoAddr string + Name string + ProjectID string + ProjectName string + ProjectType int64 + Remark string + UpdatedAt time.Time + Updator string + UseBk bool