Documentation
¶
Index ¶
- Constants
- func EKSPodCpuType(pod *v1.Pod) string
- func EKSPodGpuType(pod *v1.Pod) (bool, string)
- type TKEClient
- func (qcc *TKEClient) DebugMode() bool
- func (qcc *TKEClient) EnableDebug() bool
- func (qcc *TKEClient) ExponentialRetryCall(retryCnt int, f retryFunc, request interface{}) (interface{}, error)
- func (qcc *TKEClient) GetEKSPodPrice(req *tke.GetPriceRequest) (*tke.GetPriceResponse, error)
- func (qcc *TKEClient) GetPodSpecification(req *tke.GetPodSpecificationRequest) (*tke.GetPodSpecificationResponse, error)
- func (qcc *TKEClient) Pod2EKSSpecConverter(pod *v1.Pod) (v1.ResourceList, error)
- func (qcc *TKEClient) UpdateCred(cred credential.QCloudCredential)
- func (qcc *TKEClient) UpdateCredential(cred credential.QCloudCredential)
- func (qcc *TKEClient) UpdateCustomCredential(id, secret string)
Constants ¶
View Source
const ( // https://cloud.tencent.com/document/product/457/53030 EKSAnnoCpuType = "eks.tke.cloud.tencent.com/cpu-type" //EKSAnnoCpuQuantity = "eks.tke.cloud.tencent.com/cpu" //EKSAnnoMemQuantity = "eks.tke.cloud.tencent.com/mem" EKSAnnoGpuType = "eks.tke.cloud.tencent.com/gpu-type" EKSCpuTypeValue_Intel = "intel" )
Variables ¶
This section is empty.
Functions ¶
func EKSPodCpuType ¶
Types ¶
type TKEClient ¶
type TKEClient struct {
// contains filtered or unexported fields
}
func NewTKEClient ¶
func NewTKEClient(qcc *qcloud.QCloudClientConfig) *TKEClient
func (*TKEClient) EnableDebug ¶
func (*TKEClient) ExponentialRetryCall ¶
func (*TKEClient) GetEKSPodPrice ¶
func (qcc *TKEClient) GetEKSPodPrice(req *tke.GetPriceRequest) (*tke.GetPriceResponse, error)
func (*TKEClient) GetPodSpecification ¶
func (qcc *TKEClient) GetPodSpecification(req *tke.GetPodSpecificationRequest) (*tke.GetPodSpecificationResponse, error)
func (*TKEClient) Pod2EKSSpecConverter ¶
func (*TKEClient) UpdateCred ¶
func (qcc *TKEClient) UpdateCred(cred credential.QCloudCredential)
func (*TKEClient) UpdateCredential ¶
func (qcc *TKEClient) UpdateCredential(cred credential.QCloudCredential)
func (*TKEClient) UpdateCustomCredential ¶
Click to show internal directories.
Click to hide internal directories.