Documentation
¶
Index ¶
- func DoAction(action string, options ...string) ([]byte, error)
- type CreateClusterServiceResp
- type DeleteClusterServiceResp
- type DescribeClusterInstancesData
- type DescribeClusterInstancesNodes
- type DescribeClusterResp
- type DescribeServiceInstanceResp
- type ModifyClusterServiceResp
- type RespAddClusterInstances
- type RespAddClusterInstancesData
- type RespCreateCluster
- type RespCreateClusterData
- type RespDeleteCluster
- type RespDeleteClusterData
- type RespDescribeClusterInstances
- type RespDescribeClusterService
- type RespDescribeClusterServiceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateClusterServiceResp ¶
type CreateClusterServiceResp struct {
Code int `json:"code"`
CodeDesc string `json:"codeDesc"`
Data interface{} `json:"data"`
Message string `json:"message"`
}
func CreateClusterService ¶
func CreateClusterService(options ...string) (*CreateClusterServiceResp, error)
type DeleteClusterServiceResp ¶
type DeleteClusterServiceResp struct {
Code int `json:"code"`
CodeDesc string `json:"codeDesc"`
Data interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
func DeleteClusterService ¶
func DeleteClusterService(options ...string) (*DeleteClusterServiceResp, error)
type DescribeClusterInstancesData ¶
type DescribeClusterInstancesData struct {
Nodes []DescribeClusterInstancesNodes `json:"message"`
TotalCount int `json:"totalCount"`
}
type DescribeClusterInstancesNodes ¶
type DescribeClusterInstancesNodes struct {
AbnormalReason string `json:"abnormalReason"`
Cpu int `json:"cpu"`
CreatedAt string `json:"createdAt"`
CvmPayMode int `json:"cvmPayMode"`
CvmState int `json:"cvmState"`
InstanceCreateTime string `json:"instanceCreateTime"`
InstanceDeadlineTime string `json:"instanceDeadlineTime"`
InstanceId string `json:"instanceId"`
InstanceName string `json:"instanceName"`
InstanceType string `json:"instanceType"`
IsNormal int `json:"isNormal"`
KernelVersion string `json:"kernelVersion"`
LanIp string `json:"lanIp"`
Mem int `json:"mem"`
NetworkPayMode int `json:"networkPayMode"`
OsImage string `json:"osImage"`
PodCidr string `json:"podCidr"`
Unschedulable bool `json:"unschedulable"`
WanIp string `json:"wanIp"`
Zone string `json:"zone"`
ZoneId string `json:"zoneId"`
}
type DescribeClusterResp ¶
type DescribeClusterResp struct {
Code int `json:"code"`
Codedesc string `json:"codedesc"`
Data struct {
Clusters []struct {
ClusterCIDR string `json:"clusterCIDR"`
ClusterExternalEndpoint string `json:"clusterExternalEndpoint"`
ClusterID string `json:"clusterId"`
ClusterName string `json:"clusterName"`
CreatedAt string `json:"createdAt"`
Description string `json:"description"`
K8SVersion string `json:"k8sVersion"`
NodeNum int `json:"nodeNum"`
NodeStatus string `json:"nodeStatus"`
OpenHTTPS int `json:"openHttps"`
Os string `json:"os"`
ProjectID int `json:"projectId"`
Region string `json:"region"`
RegionID int `json:"regionId"`
Status string `json:"status"`
TotalCPU int `json:"totalCpu"`
TotalMem int `json:"totalMem"`
UnVpcID string `json:"unVpcId"`
UpdatedAt string `json:"updatedAt"`
VpcID int `json:"vpcId"`
} `json:"clusters"`
TotalCount int `json:"totalCount"`
} `json:"data"`
Message string `json:"message"`
}
func DescribeCluster ¶
func DescribeCluster(options ...string) (*DescribeClusterResp, error)
type DescribeServiceInstanceResp ¶
type DescribeServiceInstanceResp struct {
Code int `json:"code"`
CodeDesc string `json:"codeDesc"`
Data struct {
Instances []struct {
Containers []struct {
ContainerID string `json:"containerId"`
Image string `json:"image"`
Name string `json:"name"`
Reason string `json:"reason"`
Status string `json:"status"`
} `json:"containers"`
CreatedAt string `json:"createdAt"`
IP string `json:"ip"`
Name string `json:"name"`
NodeIP string `json:"nodeIp"`
NodeName string `json:"nodeName"`
ReadyCount int `json:"readyCount"`
Reason string `json:"reason"`
RestartCount int `json:"restartCount"`
SrcReason string `json:"srcReason"`
Status string `json:"status"`
} `json:"instances"`
TotalCount int `json:"totalCount"`
} `json:"data"`
Message string `json:"message"`
}
func DescribeServiceInstance ¶
func DescribeServiceInstance(options ...string) (*DescribeServiceInstanceResp, error)
type ModifyClusterServiceResp ¶
type ModifyClusterServiceResp struct {
Code int `json:"code"`
CodeDesc string `json:"codeDesc"`
Message string `json:"message"`
}
func ModifyClusterService ¶
func ModifyClusterService(options ...string) (*ModifyClusterServiceResp, error)
type RespAddClusterInstances ¶
type RespAddClusterInstances struct {
Code int `json:"code"`
CodeDesc string `json:"codeDesc"`
Data RespAddClusterInstancesData `json:"data"`
Message string `json:"message"`
}
AddClusterInstances
func AddClusterInstances ¶
func AddClusterInstances(region ...string) (*RespAddClusterInstances, error)
type RespCreateCluster ¶
type RespCreateCluster struct {
Code int `json:"code"`
CodeDesc string `json:"codedesc"`
Data RespCreateClusterData `json:"data"`
Message string `json:"message"`
}
CreateCluster
func CreateCluster ¶
func CreateCluster(region ...string) (*RespCreateCluster, error)
type RespCreateClusterData ¶
type RespDeleteCluster ¶
type RespDeleteCluster struct {
Code int `json:"code"`
CodeDesc string `json:"codedesc"`
Data RespDeleteClusterData `json:"data"`
}
DeleteCluster
func DeleteCluster ¶
func DeleteCluster(options ...string) (*RespDeleteCluster, error)
type RespDeleteClusterData ¶
type RespDeleteClusterData struct {
RequestId int `json:"requestId"`
}
type RespDescribeClusterInstances ¶
type RespDescribeClusterInstances struct {
Code int `json:"code"`
CodeDesc string `json:"codeDesc"`
Data DescribeClusterInstancesData `json:"data"`
Message string `json:"message"`
}
DescribeClusterInstances
func DescribeClusterInstances ¶
func DescribeClusterInstances(options ...string) (*RespDescribeClusterInstances, error)
type RespDescribeClusterService ¶
type RespDescribeClusterService struct {
Code int `json:"code"`
CodeDesc string `json:"codeDesc"`
Data struct {
Services []struct {
AccessType string `json:"accessType"`
CreatedAt string `json:"createdAt"`
CurrentReplicas int `json:"currentReplicas"`
DesiredReplicas int `json:"desiredReplicas"`
ExternalIP string `json:"externalIp"`
Labels struct {
QcloudApp string `json:"qcloud-app"`
} `json:"labels"`
LbID string `json:"lbId"`
LbStatus string `json:"lbStatus"`
Namespace string `json:"namespace"`
ReasonMap struct {
NAMING_FAILED int `json:"容器运行中"`
} `json:"reasonMap"`
ServiceIP string `json:"serviceIp"`
ServiceName string `json:"serviceName"`
SrcReasonMap struct {
ContainerRunning int `json:"container running"`
} `json:"srcReasonMap"`
Status string `json:"status"`
SysLabels struct {
QcloudApp string `json:"qcloud-app"`
} `json:"sysLabels"`
UserLabels struct {
} `json:"userLabels"`
} `json:"services"`
TotalCount int `json:"totalCount"`
} `json:"data"`
Message string `json:"message"`
}
func DescribeClusterService ¶
func DescribeClusterService(region ...string) (*RespDescribeClusterService, error)
type RespDescribeClusterServiceInfo ¶
type RespDescribeClusterServiceInfo struct {
Code int `json:"code"`
CodeDesc string `json:"codeDesc"`
Data struct {
Service struct {
AccessType string `json:"accessType"`
Containers []struct {
Arguments interface{} `json:"arguments"`
Command string `json:"command"`
ContainerName string `json:"containerName"`
CPU int `json:"cpu"`
Envs []struct {
Name string `json:"name"`
Value string `json:"value"`
} `json:"envs"`
Image string `json:"image"`
LiveProbe interface{} `json:"liveProbe"`
Memory int `json:"memory"`
Privileged bool `json:"privileged"`
ReadyProbe interface{} `json:"readyProbe"`
UnHubID string `json:"unHubId"`
VolumeMounts interface{} `json:"volumeMounts"`
WorkingDir string `json:"workingDir"`
} `json:"containers"`
CreatedAt string `json:"createdAt"`
CurrentReplicas int `json:"currentReplicas"`
DesiredReplicas int `json:"desiredReplicas"`
ExternalIP string `json:"externalIp"`
Labels struct {
QcloudApp string `json:"qcloud-app"`
} `json:"labels"`
LbID string `json:"lbId"`
LbStatus string `json:"lbStatus"`
Namespace string `json:"namespace"`
PortMappings []struct {
ContainerPort int `json:"containerPort"`
LbPort int `json:"lbPort"`
NodePort int `json:"nodePort"`
Protocol string `json:"protocol"`
} `json:"portMappings"`
ReasonMap struct {
NAMING_FAILED int `json:"容器运行中"`
} `json:"reasonMap"`
RegionID int `json:"regionId"`
Selector struct {
QcloudApp string `json:"qcloud-app"`
} `json:"selector"`
ServiceDesc string `json:"serviceDesc"`
ServiceIP string `json:"serviceIp"`
ServiceName string `json:"serviceName"`
SrcReasonMap struct {
ContainerRunning int `json:"container running"`
} `json:"srcReasonMap"`
Status string `json:"status"`
Strategy string `json:"strategy"`
SubnetID string `json:"subnetId"`
SysLabels struct {
QcloudApp string `json:"qcloud-app"`
} `json:"sysLabels"`
UserLabels struct {
} `json:"userLabels"`
Volumes []interface{} `json:"volumes"`
} `json:"service"`
} `json:"data"`
Message string `json:"message"`
}
func DescribeClusterServiceInfo ¶
func DescribeClusterServiceInfo(region ...string) (*RespDescribeClusterServiceInfo, error)
Click to show internal directories.
Click to hide internal directories.