Versions in this module Expand all Collapse all v0 v0.9.22 Sep 16, 2020 Changes in this version + const DEFAULT_ENDPOINT + const MaxClusterIPServiceNum + const PageNoDefault + const PageSizeDefault + const REQUEST_CLUSTER_LIST_URL + const REQUEST_CLUSTER_URL + const REQUEST_INSTANCEGROUP_AUTOSCALER_URL + const REQUEST_INSTANCEGROUP_LIST_URL + const REQUEST_INSTANCEGROUP_REPLICAS_URL + const REQUEST_INSTANCEGROUP_URL + const REQUEST_INSTANCE_LIST_URL + const REQUEST_INSTANCE_URL + const REQUEST_NET_CHECK_CLUSTERIP_CIDR_URL + const REQUEST_NET_CHECK_CONTAINER_NETWORK_CIDR_URL + const REQUEST_NET_RECOMMEND_CLSUTERIP_CIDR_URL + const REQUEST_NET_RECOMMEND_CONTAINER_CIDR_URL + const REQUEST_NET_URL + const REQUEST_NODE_URL + const REQUEST_QUOTA_URL + const URI_PREFIX + type Autoscaler struct + CAConfig ClusterAutoscalerConfig + ClusterID string + ClusterName string + type BLB struct + EIP string + ID string + VPCIP string + type CheckClusterIPCIDRArgs struct + ClusterIPCIDR string + ClusterIPCIDRIPv6 string + IPVersion types.ContainerNetworkIPType + VPCCIDR string + VPCCIDRIPv6 string + VPCID string + type CheckClusterIPCIDRResponse struct + ErrMsg string + IsConflict bool + RequestID string + type CheckContainerNetworkCIDRArgs struct + ClusterIPCIDR string + ClusterIPCIDRIPv6 string + ContainerCIDR string + ContainerCIDRIPv6 string + IPVersion types.ContainerNetworkIPType + MaxPodsPerNode int + VPCCIDR string + VPCCIDRIPv6 string + VPCID string + type CheckContainerNetworkCIDRResponse struct + MaxNodeNum int + RequestID string + type CleanPolicy string + type Client struct + func NewClient(ak, sk, endPoint string) (*Client, error) + func (c *Client) CheckClusterIPCIDR(args *CheckClusterIPCIDRArgs) (*CheckClusterIPCIDRResponse, error) + func (c *Client) CheckContainerNetworkCIDR(args *CheckContainerNetworkCIDRArgs) (*CheckContainerNetworkCIDRResponse, error) + func (c *Client) CreateCluster(args *CreateClusterArgs) (*CreateClusterResponse, error) + func (c *Client) CreateInstanceGroup(args *CreateInstanceGroupArgs) (*CreateInstanceGroupResponse, error) + func (c *Client) CreateInstances(args *CreateInstancesArgs) (*CreateInstancesResponse, error) + func (c *Client) DeleteCluster(args *DeleteClusterArgs) (*DeleteClusterResponse, error) + func (c *Client) DeleteInstanceGroup(args *DeleteInstanceGroupArgs) (*DeleteInstanceGroupResponse, error) + func (c *Client) DeleteInstances(args *DeleteInstancesArgs) (*DeleteInstancesResponse, error) + func (c *Client) GetCluster(clusterID string) (*GetClusterResponse, error) + func (c *Client) GetClusterNodeQuota(clusterID string) (*GetQuotaResponse, error) + func (c *Client) GetClusterQuota() (*GetQuotaResponse, error) + func (c *Client) GetInstance(args *GetInstanceArgs) (*GetInstanceResponse, error) + func (c *Client) GetInstanceGroup(args *GetInstanceGroupArgs) (*GetInstanceGroupResponse, error) + func (c *Client) ListClusters(args *ListClustersArgs) (*ListClustersResponse, error) + func (c *Client) ListInstanceGroups(args *ListInstanceGroupsArgs) (*ListInstanceGroupResponse, error) + func (c *Client) ListInstancesByInstanceGroupID(args *ListInstanceByInstanceGroupIDArgs) (*ListInstancesByInstanceGroupIDResponse, error) + func (c *Client) ListInstancesByPage(args *ListInstancesByPageArgs) (*ListInstancesResponse, error) + func (c *Client) RecommendClusterIPCIDR(args *RecommendClusterIPCIDRArgs) (*RecommendClusterIPCIDRResponse, error) + func (c *Client) RecommendContainerCIDR(args *RecommendContainerCIDRArgs) (*RecommendContainerCIDRResponse, error) + func (c *Client) UpdateInstanceGroupReplicas(args *UpdateInstanceGroupReplicasArgs) (*UpdateInstanceGroupReplicasResponse, error) + type Cluster struct + CreatedAt time.Time + Spec *ClusterSpec + Status *ClusterStatus + UpdatedAt time.Time + type ClusterAutoscalerConfig struct + Expander string + InstanceGroups []ClusterAutoscalerInstanceGroup + KubeVersion string + MaxEmptyBulkDelete *int + ReplicaCount int + ScaleDownDelayAfterAdd *int + ScaleDownEnabled bool + ScaleDownGPUUtilizationThreshold *int + ScaleDownUnneededTime *int + ScaleDownUtilizationThreshold *int + SkipNodesWithLocalStorage *bool + SkipNodesWithSystemPods *bool + type ClusterAutoscalerInstanceGroup struct + InstanceGroupID string + MaxReplicas int + MinReplicas int + Priority int + type ClusterAutoscalerSpec struct + Enabled bool + MaxReplicas int + MinReplicas int + ScalingGroupPriority int + type ClusterIPCIDRConflict struct + ConflictContainerCIDR *ConflictContainerCIDR + ConflictNodeCIDR *ConflictNodeCIDR + ConflictType NetworkConflictType + type ClusterKeywordType string + const ClusterKeywordTypeClusterID + const ClusterKeywordTypeClusterName + type ClusterOrderBy string + const ClusterOrderByClusterID + const ClusterOrderByClusterName + const ClusterOrderByCreatedAt + type ClusterPage struct + ClusterList []*Cluster + Keyword string + KeywordType ClusterKeywordType + Order Order + OrderBy ClusterOrderBy + PageNo int + PageSize int + TotalCount int + type ClusterSpec struct + ClusterID string + ClusterName string + ClusterType types.ClusterType + ContainerNetworkConfig types.ContainerNetworkConfig + Description string + K8SVersion types.K8SVersion + MasterConfig types.MasterConfig + Plugins []string + VPCCIDR string + VPCID string + type ClusterStatus struct + ClusterBLB BLB + ClusterPhase types.ClusterPhase + NodeNum int + type CommonResponse struct + RequestID string + type ConflictCluster struct + ClusterID string + ContainerCIDR string + type ConflictContainerCIDR struct + ContainerCIDR string + type ConflictNodeCIDR struct + NodeCIDR string + type ConflictVPCRoute struct + RouteRule vpc.RouteRule + type ContainerCIDRConflict struct + ConflictCluster *ConflictCluster + ConflictNodeCIDR *ConflictNodeCIDR + ConflictType NetworkConflictType + ConflictVPCRoute *ConflictVPCRoute + type CreateClusterArgs struct + CreateClusterRequest *CreateClusterRequest + type CreateClusterRequest struct + ClusterSpec *types.ClusterSpec + MasterSpecs []*InstanceSet + NodeSpecs []*InstanceSet + type CreateClusterResponse struct + ClusterID string + RequestID string + type CreateInstanceGroupArgs struct + ClusterID string + Request *CreateInstanceGroupRequest + type CreateInstanceGroupRequest struct + type CreateInstanceGroupResponse struct + InstanceGroupID string + type CreateInstancesArgs struct + ClusterID string + Instances []*InstanceSet + type CreateInstancesResponse struct + CCEInstanceIDs []string + RequestID string + type DeleteClusterArgs struct + ClusterID string + DeleteCDSSnapshot bool + DeleteResource bool + type DeleteClusterResponse struct + RequestID string + type DeleteInstanceGroupArgs struct + ClusterID string + DeleteInstances bool + InstanceGroupID string + type DeleteInstanceGroupResponse struct + type DeleteInstancesArgs struct + ClusterID string + DeleteInstancesRequest *DeleteInstancesRequest + type DeleteInstancesRequest struct + DeleteOption *types.DeleteOption + InstanceIDs []string + type DeleteInstancesResponse struct + RequestID string + type GetAutoscalerResponse struct + Autoscaler *Autoscaler + RequestID string + type GetClusterResponse struct + Cluster *Cluster + RequestID string + type GetInstanceArgs struct + ClusterID string + InstanceID string + type GetInstanceGroupArgs struct + ClusterID string + InstanceGroupID string + type GetInstanceGroupResponse struct + InstanceGroup *InstanceGroup + type GetInstanceResponse struct + Instance *Instance + RequestID string + type GetQuotaResponse struct + RequestID string + type Instance struct + CreatedAt time.Time + Spec *InstanceSpec + Status *InstanceStatus + UpdatedAt time.Time + type InstanceGroup struct + CreatedAt time.Time + Spec *InstanceGroupSpec + Status *InstanceGroupStatus + type InstanceGroupListOption struct + PageNo int + PageSize int + type InstanceGroupSpec struct + CCEInstanceGroupID string + CleanPolicy CleanPolicy + ClusterAutoscalerSpec *ClusterAutoscalerSpec + ClusterID string + ClusterRole types.ClusterRole + InstanceGroupName string + InstanceTemplate InstanceTemplate + Replicas int + ShrinkPolicy ShrinkPolicy + UpdatePolicy UpdatePolicy + type InstanceGroupStatus struct + Pause *PauseDetail + ReadyReplicas int + type InstanceKeyType string + type InstanceKeywordType string + const InstanceKeywordTypeInstanceID + const InstanceKeywordTypeInstanceName + type InstanceOrderBy string + const InstanceOrderByCreatedAt + const InstanceOrderByInstanceID + const InstanceOrderByInstanceName + type InstancePage struct + ClusterID string + InstanceList []*Instance + Keyword string + KeywordType InstanceKeywordType + Order Order + OrderBy InstanceOrderBy + PageNo int + PageSize int + TotalCount int + type InstanceSet struct + Count int + InstanceSpec types.InstanceSpec + type InstanceSpec struct + BBCOption *types.BBCOption + CCEInstanceID string + ClusterID string + ClusterRole types.ClusterRole + DeleteOption *types.DeleteOption + DeployCustomConfig types.DeployCustomConfig + EIPOption *types.EIPOption + ImageID string + InstanceChargingType bccapi.PaymentTimingType + InstanceGroupID string + InstanceGroupName string + InstanceName string + InstanceOS types.InstanceOS + InstanceResource types.InstanceResource + InstanceType bccapi.InstanceType + Labels types.InstanceLabels + MachineType types.MachineType + NeedEIP bool + RuntimeType types.RuntimeType + RuntimeVersion string + SSHKeyID string + Tags types.TagList + Taints types.InstanceTaints + UserID string + type InstanceStatus struct + InstancePhase types.InstancePhase + Machine Machine + MachineStatus types.ServerStatus + type InstanceTemplate struct + type Interface interface + CheckClusterIPCIDR func(args *CheckClusterIPCIDRArgs) (*CheckClusterIPCIDRResponse, error) + CheckContainerNetworkCIDR func(args *CheckContainerNetworkCIDRArgs) (*CheckContainerNetworkCIDRResponse, error) + CreateCluster func(args *CreateClusterArgs) (*CreateClusterResponse, error) + CreateInstances func(args *CreateInstancesArgs) (*CreateInstancesResponse, error) + DeleteCluster func(args *DeleteClusterArgs) (*DeleteClusterResponse, error) + DeleteInstances func(args *DeleteInstancesArgs) (*DeleteInstancesResponse, error) + GetCluster func(clusterID string) (*GetClusterResponse, error) + GetClusterNodeQuota func(clusterID string) (*GetQuotaResponse, error) + GetClusterQuota func() (*GetQuotaResponse, error) + GetInstance func(args *GetInstanceArgs) (*GetInstanceResponse, error) + ListClusters func(args *ListClustersArgs) (*ListClustersResponse, error) + ListInstancesByPage func(args *ListInstancesByPageArgs) (*ListInstancesResponse, error) + RecommendClusterIPCIDR func(args *RecommendClusterIPCIDRArgs) (*RecommendClusterIPCIDRResponse, error) + RecommendContainerCIDR func(args *RecommendContainerCIDRArgs) (*RecommendContainerCIDRResponse, error) + type ListClustersArgs struct + Keyword string + KeywordType ClusterKeywordType + Order Order + OrderBy ClusterOrderBy + PageNum int + PageSize int + type ListClustersResponse struct + ClusterPage *ClusterPage + RequestID string + type ListInstanceByInstanceGroupIDArgs struct + ClusterID string + InstanceGroupID string + PageNo int + PageSize int + type ListInstanceGroupPage struct + List []*InstanceGroup + PageNo int + PageSize int + TotalCount int + type ListInstanceGroupResponse struct + Page ListInstanceGroupPage + type ListInstanceGroupsArgs struct + ClusterID string + ListOption *InstanceGroupListOption + type ListInstancesByInstanceGroupIDPage struct + List []*Instance + PageNo int + PageSize int + TotalCount int + type ListInstancesByInstanceGroupIDResponse struct + Page ListInstancesByInstanceGroupIDPage + type ListInstancesByPageArgs struct + ClusterID string + Params *ListInstancesByPageParams + type ListInstancesByPageParams struct + Keyword string + KeywordType InstanceKeywordType + Order Order + OrderBy InstanceOrderBy + PageNo int + PageSize int + type ListInstancesResponse struct + InstancePage *InstancePage + RequestID string + type Machine struct + EIP string + InstanceID string + MountList []types.MountConfig + OrderID string + VPCIP string + VPCIPIPv6 string + type NetworkConflictInfo struct + ClusterIPCIDRConflict *ClusterIPCIDRConflict + ContainerCIDRConflict *ContainerCIDRConflict + ErrMsg string + IsConflict bool + type NetworkConflictType string + const ClusterIPCIDRAndContainerCIDRConflict + const ClusterIPCIDRAndNodeCIDRConflict + const ContainerCIDRAndExistedClusterContainerCIDRConflict + const ContainerCIDRAndNodeCIDRConflict + const ContainerCIDRAndVPCRouteConflict + type Order string + const OrderASC + const OrderDESC + type PauseDetail struct + Paused bool + Reason string + type PrivateNetString string + const PrivateIPv4Net10 + const PrivateIPv4Net172 + const PrivateIPv4Net192 + const PrivateIPv6Net + type RecommendClusterIPCIDRArgs struct + ClusterMaxServiceNum int + ContainerCIDR string + ContainerCIDRIPv6 string + IPVersion types.ContainerNetworkIPType + PrivateNetCIDRIPv6s []PrivateNetString + PrivateNetCIDRs []PrivateNetString + VPCCIDR string + VPCCIDRIPv6 string + type RecommendClusterIPCIDRResponse struct + ErrMsg string + IsSuccess bool + RecommendedClusterIPCIDRIPv6s []string + RecommendedClusterIPCIDRs []string + RequestID string + type RecommendContainerCIDRArgs struct + ClusterMaxNodeNum int + IPVersion types.ContainerNetworkIPType + K8SVersion types.K8SVersion + MaxPodsPerNode int + PrivateNetCIDRIPv6s []PrivateNetString + PrivateNetCIDRs []PrivateNetString + VPCCIDR string + VPCCIDRIPv6 string + VPCID string + type RecommendContainerCIDRResponse struct + ErrMsg string + IsSuccess bool + RecommendedContainerCIDRIPv6s []string + RecommendedContainerCIDRs []string + RequestID string + type ShrinkPolicy string + type UpdateClusterResponse struct + Cluster *Cluster + RequestID string + type UpdateInstanceGroupClusterAutoscalerSpecArgs struct + ClusterID string + InstanceGroupID string + Request *ClusterAutoscalerSpec + type UpdateInstanceGroupClusterAutoscalerSpecResponse struct + type UpdateInstanceGroupReplicasArgs struct + ClusterID string + InstanceGroupID string + Request *UpdateInstanceGroupReplicasRequest + type UpdateInstanceGroupReplicasRequest struct + DeleteInstance bool + DeleteOption *types.DeleteOption + InstanceIDs []string + Replicas int + type UpdateInstanceGroupReplicasResponse struct + type UpdateInstancesResponse struct + Instance *Instance + RequestID string + type UpdatePolicy string