Documentation
¶
Index ¶
- Variables
- func DoAction(action string, options ...string) ([]byte, error)
- type AddClusterInstancesFromExistedCvmResp
- type AddClusterInstancesResp
- type CcsClient
- func (c *CcsClient) AddClusterInstances(options ...string) (*AddClusterInstancesResp, error)
- func (c *CcsClient) AddClusterInstancesFromExistedCvm(options ...string) (*AddClusterInstancesFromExistedCvmResp, error)
- func (c *CcsClient) CreateCluster(options ...string) (*CreateClusterResp, error)
- func (c *CcsClient) CreateClusterService(options ...string) (*CreateClusterServiceResp, error)
- func (c *CcsClient) DeleteCluster(options ...string) (*DeleteClusterResp, error)
- func (c *CcsClient) DeleteClusterInstances(options ...string) (*DeleteClusterInstancesResp, error)
- func (c *CcsClient) DeleteClusterService(options ...string) (*DeleteClusterServiceResp, error)
- func (c *CcsClient) DeleteInstances(options ...string) (*DeleteInstancesResp, error)
- func (c *CcsClient) DescribeCluster(options ...string) (*DescribeClusterResp, error)
- func (c *CcsClient) DescribeClusterInstances(options ...string) (*DescribeClusterInstancesResp, error)
- func (c *CcsClient) DescribeClusterService(options ...string) (*DescribeClusterServiceResp, error)
- func (c *CcsClient) DescribeClusterServiceInfo(options ...string) (*DescribeClusterServiceInfoResp, error)
- func (c *CcsClient) DescribeServiceEvent(options ...string) (*DescribeServiceEventResp, error)
- func (c *CcsClient) DescribeServiceInstance(options ...string) (*DescribeServiceInstanceResp, error)
- func (client *CcsClient) DoAction(action string, options ...string) ([]byte, error)
- func (c *CcsClient) ModifyClusterService(options ...string) (*ModifyClusterServiceResp, error)
- func (c *CcsClient) ModifyServiceDescription(options ...string) (*ModifyServiceDescriptionResp, error)
- func (c *CcsClient) ModifyServiceReplicas(options ...string) (*ModifyServiceReplicasResp, error)
- func (c *CcsClient) PauseClusterService(options ...string) (*PauseClusterServiceResp, error)
- func (c *CcsClient) ResumeClusterService(options ...string) (*ResumeClusterServiceResp, error)
- func (c *CcsClient) RollBackClusterService(options ...string) (*RollBackClusterServiceResp, error)
- type CreateClusterResp
- type CreateClusterServiceResp
- type DeleteClusterInstancesResp
- type DeleteClusterResp
- type DeleteClusterServiceResp
- type DeleteInstancesResp
- type DescribeClusterInstancesResp
- type DescribeClusterResp
- type DescribeClusterServiceInfoResp
- type DescribeClusterServiceResp
- type DescribeServiceEventResp
- type DescribeServiceInstanceResp
- type ModifyClusterServiceResp
- type ModifyServiceDescriptionResp
- type ModifyServiceReplicasResp
- type PauseClusterServiceResp
- type ResumeClusterServiceResp
- type RollBackClusterServiceResp
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = CcsClient{Client: core.DefaultClient}
Functions ¶
Types ¶
type AddClusterInstancesFromExistedCvmResp ¶ added in v1.1.0
type AddClusterInstancesFromExistedCvmResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { FaliInstanceIds []struct { InstanceID string `json:"instanceId"` Message string `json:"message"` } `json:"faliInstanceIds"` RequestID int64 `json:"requestId"` SuccInstanceIds interface{} `json:"succInstanceIds"` } `json:"data"` Message string `json:"message"` }
func AddClusterInstancesFromExistedCvm ¶ added in v1.1.0
func AddClusterInstancesFromExistedCvm(options ...string) (*AddClusterInstancesFromExistedCvmResp, error)
func (*AddClusterInstancesFromExistedCvmResp) String ¶ added in v1.1.0
func (r *AddClusterInstancesFromExistedCvmResp) String(args ...interface{}) (string, error)
type AddClusterInstancesResp ¶ added in v1.1.0
type AddClusterInstancesResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { InstanceIds []string `json:"instanceIds"` RequestID int64 `json:"requestId"` } `json:"data"` Message string `json:"message"` }
func AddClusterInstances ¶
func AddClusterInstances(options ...string) (*AddClusterInstancesResp, error)
func (*AddClusterInstancesResp) String ¶ added in v1.1.0
func (r *AddClusterInstancesResp) String(args ...interface{}) (string, error)
type CcsClient ¶ added in v1.3.0
func (*CcsClient) AddClusterInstances ¶ added in v1.3.0
func (c *CcsClient) AddClusterInstances(options ...string) (*AddClusterInstancesResp, error)
func (*CcsClient) AddClusterInstancesFromExistedCvm ¶ added in v1.3.0
func (c *CcsClient) AddClusterInstancesFromExistedCvm(options ...string) (*AddClusterInstancesFromExistedCvmResp, error)
func (*CcsClient) CreateCluster ¶ added in v1.3.0
func (c *CcsClient) CreateCluster(options ...string) (*CreateClusterResp, error)
func (*CcsClient) CreateClusterService ¶ added in v1.3.0
func (c *CcsClient) CreateClusterService(options ...string) (*CreateClusterServiceResp, error)
func (*CcsClient) DeleteCluster ¶ added in v1.3.0
func (c *CcsClient) DeleteCluster(options ...string) (*DeleteClusterResp, error)
func (*CcsClient) DeleteClusterInstances ¶ added in v1.3.0
func (c *CcsClient) DeleteClusterInstances(options ...string) (*DeleteClusterInstancesResp, error)
func (*CcsClient) DeleteClusterService ¶ added in v1.3.0
func (c *CcsClient) DeleteClusterService(options ...string) (*DeleteClusterServiceResp, error)
func (*CcsClient) DeleteInstances ¶ added in v1.3.0
func (c *CcsClient) DeleteInstances(options ...string) (*DeleteInstancesResp, error)
func (*CcsClient) DescribeCluster ¶ added in v1.3.0
func (c *CcsClient) DescribeCluster(options ...string) (*DescribeClusterResp, error)
func (*CcsClient) DescribeClusterInstances ¶ added in v1.3.0
func (c *CcsClient) DescribeClusterInstances(options ...string) (*DescribeClusterInstancesResp, error)
func (*CcsClient) DescribeClusterService ¶ added in v1.3.0
func (c *CcsClient) DescribeClusterService(options ...string) (*DescribeClusterServiceResp, error)
func (*CcsClient) DescribeClusterServiceInfo ¶ added in v1.3.0
func (c *CcsClient) DescribeClusterServiceInfo(options ...string) (*DescribeClusterServiceInfoResp, error)
func (*CcsClient) DescribeServiceEvent ¶ added in v1.3.0
func (c *CcsClient) DescribeServiceEvent(options ...string) (*DescribeServiceEventResp, error)
func (*CcsClient) DescribeServiceInstance ¶ added in v1.3.0
func (c *CcsClient) DescribeServiceInstance(options ...string) (*DescribeServiceInstanceResp, error)
func (*CcsClient) ModifyClusterService ¶ added in v1.3.0
func (c *CcsClient) ModifyClusterService(options ...string) (*ModifyClusterServiceResp, error)
func (*CcsClient) ModifyServiceDescription ¶ added in v1.3.0
func (c *CcsClient) ModifyServiceDescription(options ...string) (*ModifyServiceDescriptionResp, error)
func (*CcsClient) ModifyServiceReplicas ¶ added in v1.3.0
func (c *CcsClient) ModifyServiceReplicas(options ...string) (*ModifyServiceReplicasResp, error)
func (*CcsClient) PauseClusterService ¶ added in v1.3.0
func (c *CcsClient) PauseClusterService(options ...string) (*PauseClusterServiceResp, error)
func (*CcsClient) ResumeClusterService ¶ added in v1.3.0
func (c *CcsClient) ResumeClusterService(options ...string) (*ResumeClusterServiceResp, error)
func (*CcsClient) RollBackClusterService ¶ added in v1.3.0
func (c *CcsClient) RollBackClusterService(options ...string) (*RollBackClusterServiceResp, error)
type CreateClusterResp ¶ added in v1.1.0
type CreateClusterResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { ClusterID string `json:"clusterId"` RequestID int64 `json:"requestId"` } `json:"data"` Message string `json:"message"` }
func CreateCluster ¶
func CreateCluster(options ...string) (*CreateClusterResp, error)
func (*CreateClusterResp) String ¶ added in v1.1.0
func (r *CreateClusterResp) String(args ...interface{}) (string, error)
type CreateClusterServiceResp ¶
type CreateClusterServiceResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data interface{} `json:"data"` Message string `json:"message"` }
func CreateClusterService ¶
func CreateClusterService(options ...string) (*CreateClusterServiceResp, error)
func (*CreateClusterServiceResp) String ¶ added in v1.1.0
func (r *CreateClusterServiceResp) String(args ...interface{}) (string, error)
type DeleteClusterInstancesResp ¶ added in v1.1.0
type DeleteClusterInstancesResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { RequestID int64 `json:"requestId"` } `json:"data"` Message string `json:"message"` }
func DeleteClusterInstances ¶ added in v1.1.0
func DeleteClusterInstances(options ...string) (*DeleteClusterInstancesResp, error)
func (*DeleteClusterInstancesResp) String ¶ added in v1.1.0
func (r *DeleteClusterInstancesResp) String(args ...interface{}) (string, error)
type DeleteClusterResp ¶ added in v1.3.0
type DeleteClusterResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { RequestID int64 `json:"requestId"` } `json:"data"` Message string `json:"message"` }
func DeleteCluster ¶
func DeleteCluster(options ...string) (*DeleteClusterResp, error)
func (*DeleteClusterResp) String ¶ added in v1.3.0
func (r *DeleteClusterResp) String(args ...interface{}) (string, error)
type DeleteClusterServiceResp ¶
type DeleteClusterServiceResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data interface{} `json:"data"` Message string `json:"message"` }
func DeleteClusterService ¶
func DeleteClusterService(options ...string) (*DeleteClusterServiceResp, error)
func (*DeleteClusterServiceResp) String ¶ added in v1.1.0
func (r *DeleteClusterServiceResp) String(args ...interface{}) (string, error)
type DeleteInstancesResp ¶ added in v1.1.0
type DeleteInstancesResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { FailedMap []interface{} `json:"failedMap"` SuccessList interface{} `json:"successList"` } `json:"data"` Message string `json:"message"` }
func DeleteInstances ¶ added in v1.1.0
func DeleteInstances(options ...string) (*DeleteInstancesResp, error)
func (*DeleteInstancesResp) String ¶ added in v1.1.0
func (r *DeleteInstancesResp) String(args ...interface{}) (string, error)
type DescribeClusterInstancesResp ¶ added in v1.1.0
type DescribeClusterInstancesResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { Nodes []struct { AbnormalReason string `json:"abnormalReason"` CPU int64 `json:"cpu"` CreatedAt string `json:"createdAt"` CvmPayMode int64 `json:"cvmPayMode"` CvmState int64 `json:"cvmState"` InstanceCreateTime string `json:"instanceCreateTime"` InstanceDeadlineTime string `json:"instanceDeadlineTime"` InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` InstanceType string `json:"instanceType"` IsNormal int64 `json:"isNormal"` KernelVersion string `json:"kernelVersion"` Labels []interface{} `json:"labels"` LanIP string `json:"lanIp"` Mem int64 `json:"mem"` NetworkPayMode int64 `json:"networkPayMode"` OsImage string `json:"osImage"` PodCidr string `json:"podCidr"` Unschedulable bool `json:"unschedulable"` WanIP string `json:"wanIp"` Zone string `json:"zone"` ZoneID int64 `json:"zoneId"` } `json:"nodes"` TotalCount int64 `json:"totalCount"` } `json:"data"` Message string `json:"message"` }
func DescribeClusterInstances ¶
func DescribeClusterInstances(options ...string) (*DescribeClusterInstancesResp, error)
func (*DescribeClusterInstancesResp) String ¶ added in v1.1.0
func (r *DescribeClusterInstancesResp) String(args ...interface{}) (string, error)
type DescribeClusterResp ¶
type DescribeClusterResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { Clusters []struct { ClusterCIDR string `json:"clusterCIDR"` ClusterExternalEndpoint interface{} `json:"clusterExternalEndpoint"` ClusterID string `json:"clusterId"` ClusterName string `json:"clusterName"` CreatedAt string `json:"createdAt"` Description string `json:"description"` K8sVersion string `json:"k8sVersion"` MasterLbSubnetID string `json:"masterLbSubnetId"` NodeNum int64 `json:"nodeNum"` NodeStatus string `json:"nodeStatus"` OpenHTTPS int64 `json:"openHttps"` Os string `json:"os"` ProjectID int64 `json:"projectId"` Region string `json:"region"` RegionID int64 `json:"regionId"` Status string `json:"status"` TotalCPU int64 `json:"totalCpu"` TotalMem int64 `json:"totalMem"` UnVpcID string `json:"unVpcId"` UpdatedAt string `json:"updatedAt"` VpcID int64 `json:"vpcId"` } `json:"clusters"` TotalCount int64 `json:"totalCount"` } `json:"data"` Message string `json:"message"` }
func DescribeCluster ¶
func DescribeCluster(options ...string) (*DescribeClusterResp, error)
func (*DescribeClusterResp) String ¶ added in v1.1.0
func (r *DescribeClusterResp) String(args ...interface{}) (string, error)
type DescribeClusterServiceInfoResp ¶ added in v1.1.0
type DescribeClusterServiceInfoResp struct { Code int64 `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 int64 `json:"cpu"` Envs interface{} `json:"envs"` Image string `json:"image"` LiveProbe interface{} `json:"liveProbe"` Memory int64 `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 int64 `json:"currentReplicas"` DesiredReplicas int64 `json:"desiredReplicas"` ExternalIP string `json:"externalIp"` Labels struct { Qcloud_app string `json:"qcloud-app"` } `json:"labels"` LbID string `json:"lbId"` LbStatus string `json:"lbStatus"` Namespace string `json:"namespace"` PortMappings []struct { ContainerPort int64 `json:"containerPort"` LbPort int64 `json:"lbPort"` NodePort int64 `json:"nodePort"` Protocol string `json:"protocol"` } `json:"portMappings"` ReasonMap struct { // contains filtered or unexported fields } `json:"reasonMap"` RegionID int64 `json:"regionId"` Selector struct { Qcloud_app string `json:"qcloud-app"` } `json:"selector"` ServiceDesc string `json:"serviceDesc"` ServiceIP string `json:"serviceIp"` ServiceName string `json:"serviceName"` SrcReasonMap struct { Container_not_started int64 `json:"container not started"` } `json:"srcReasonMap"` Status string `json:"status"` Strategy string `json:"strategy"` SubnetID string `json:"subnetId"` SysLabels struct { Qcloud_app 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(options ...string) (*DescribeClusterServiceInfoResp, error)
func (*DescribeClusterServiceInfoResp) String ¶ added in v1.1.0
func (r *DescribeClusterServiceInfoResp) String(args ...interface{}) (string, error)
type DescribeClusterServiceResp ¶ added in v1.1.0
type DescribeClusterServiceResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { Services []struct { AccessType string `json:"accessType"` CreatedAt string `json:"createdAt"` CurrentReplicas int64 `json:"currentReplicas"` DesiredReplicas int64 `json:"desiredReplicas"` ExternalIP string `json:"externalIp"` Labels struct { Qcloud_app string `json:"qcloud-app"` } `json:"labels"` LbID string `json:"lbId"` LbStatus string `json:"lbStatus"` Namespace string `json:"namespace"` ReasonMap struct { // contains filtered or unexported fields } `json:"reasonMap"` ServiceIP string `json:"serviceIp"` ServiceName string `json:"serviceName"` SrcReasonMap struct { Container_not_started int64 `json:"container not started"` } `json:"srcReasonMap"` Status string `json:"status"` SysLabels struct { Qcloud_app string `json:"qcloud-app"` } `json:"sysLabels"` UserLabels struct{} `json:"userLabels"` } `json:"services"` TotalCount int64 `json:"totalCount"` } `json:"data"` Message string `json:"message"` }
func DescribeClusterService ¶
func DescribeClusterService(options ...string) (*DescribeClusterServiceResp, error)
func (*DescribeClusterServiceResp) String ¶ added in v1.1.0
func (r *DescribeClusterServiceResp) String(args ...interface{}) (string, error)
type DescribeServiceEventResp ¶ added in v1.1.0
type DescribeServiceEventResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { EventList []struct { Count int64 `json:"count"` FirstSeen string `json:"firstSeen"` LastSeen string `json:"lastSeen"` Level string `json:"level"` Message string `json:"message"` ObjName string `json:"objName"` ObjType string `json:"objType"` Reason string `json:"reason"` SrcReason string `json:"srcReason"` } `json:"eventList"` } `json:"data"` Message string `json:"message"` }
func DescribeServiceEvent ¶ added in v1.1.0
func DescribeServiceEvent(options ...string) (*DescribeServiceEventResp, error)
func (*DescribeServiceEventResp) String ¶ added in v1.1.0
func (r *DescribeServiceEventResp) String(args ...interface{}) (string, error)
type DescribeServiceInstanceResp ¶
type DescribeServiceInstanceResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Data struct { Instances []struct { Containers interface{} `json:"containers"` CreatedAt string `json:"createdAt"` IP string `json:"ip"` Name string `json:"name"` NodeIP string `json:"nodeIp"` NodeName string `json:"nodeName"` ReadyCount int64 `json:"readyCount"` Reason string `json:"reason"` RestartCount int64 `json:"restartCount"` SrcReason string `json:"srcReason"` Status string `json:"status"` } `json:"instances"` TotalCount int64 `json:"totalCount"` } `json:"data"` Message string `json:"message"` }
func DescribeServiceInstance ¶
func DescribeServiceInstance(options ...string) (*DescribeServiceInstanceResp, error)
func (*DescribeServiceInstanceResp) String ¶ added in v1.1.0
func (r *DescribeServiceInstanceResp) String(args ...interface{}) (string, error)
type ModifyClusterServiceResp ¶
type ModifyClusterServiceResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Message string `json:"message"` }
func ModifyClusterService ¶
func ModifyClusterService(options ...string) (*ModifyClusterServiceResp, error)
func (*ModifyClusterServiceResp) String ¶ added in v1.1.0
func (r *ModifyClusterServiceResp) String(args ...interface{}) (string, error)
type ModifyServiceDescriptionResp ¶ added in v1.1.0
type ModifyServiceDescriptionResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Message string `json:"message"` }
func ModifyServiceDescription ¶ added in v1.1.0
func ModifyServiceDescription(options ...string) (*ModifyServiceDescriptionResp, error)
func (*ModifyServiceDescriptionResp) String ¶ added in v1.1.0
func (r *ModifyServiceDescriptionResp) String(args ...interface{}) (string, error)
type ModifyServiceReplicasResp ¶ added in v1.1.0
type ModifyServiceReplicasResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Message string `json:"message"` }
func ModifyServiceReplicas ¶ added in v1.1.0
func ModifyServiceReplicas(options ...string) (*ModifyServiceReplicasResp, error)
func (*ModifyServiceReplicasResp) String ¶ added in v1.1.0
func (r *ModifyServiceReplicasResp) String(args ...interface{}) (string, error)
type PauseClusterServiceResp ¶ added in v1.1.0
type PauseClusterServiceResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Message string `json:"message"` }
func PauseClusterService ¶ added in v1.1.0
func PauseClusterService(options ...string) (*PauseClusterServiceResp, error)
func (*PauseClusterServiceResp) String ¶ added in v1.1.0
func (r *PauseClusterServiceResp) String(args ...interface{}) (string, error)
type ResumeClusterServiceResp ¶ added in v1.1.0
type ResumeClusterServiceResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Message string `json:"message"` }
func ResumeClusterService ¶ added in v1.1.0
func ResumeClusterService(options ...string) (*ResumeClusterServiceResp, error)
func (*ResumeClusterServiceResp) String ¶ added in v1.1.0
func (r *ResumeClusterServiceResp) String(args ...interface{}) (string, error)
type RollBackClusterServiceResp ¶ added in v1.1.0
type RollBackClusterServiceResp struct { Code int64 `json:"code"` CodeDesc string `json:"codeDesc"` Message string `json:"message"` }
func RollBackClusterService ¶ added in v1.1.0
func RollBackClusterService(options ...string) (*RollBackClusterServiceResp, error)
func (*RollBackClusterServiceResp) String ¶ added in v1.1.0
func (r *RollBackClusterServiceResp) String(args ...interface{}) (string, error)
Source Files
¶
- AddClusterInstances.go
- AddClusterInstancesFromExistedCvm.go
- CreateCluster.go
- CreateClusterService.go
- DeleteCluster.go
- DeleteClusterInstances.go
- DeleteClusterService.go
- DeleteInstances.go
- DescribeCluster.go
- DescribeClusterInstances.go
- DescribeClusterService.go
- DescribeClusterServiceInfo.go
- DescribeServiceEvent.go
- DescribeServiceInstance.go
- ModifyClusterService.go
- ModifyServiceDescription.go
- ModifyServiceReplicas.go
- PauseClusterService.go
- ResumeClusterService.go
- RollBackClusterService.go
- do.go
Click to show internal directories.
Click to hide internal directories.