tke

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func EKSPodCpuType(pod *v1.Pod) string

func EKSPodGpuType

func EKSPodGpuType(pod *v1.Pod) (bool, string)

Types

type TKEClient

type TKEClient struct {
	// contains filtered or unexported fields
}

func NewTKEClient

func NewTKEClient(qcc *qcloud.QCloudClientConfig) *TKEClient

func (*TKEClient) DebugMode

func (qcc *TKEClient) DebugMode() bool

func (*TKEClient) EnableDebug

func (qcc *TKEClient) EnableDebug() bool

func (*TKEClient) ExponentialRetryCall

func (qcc *TKEClient) ExponentialRetryCall(retryCnt int, f retryFunc, request interface{}) (interface{}, error)

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 (qcc *TKEClient) Pod2EKSSpecConverter(pod *v1.Pod) (v1.ResourceList, error)

func (*TKEClient) UpdateCred

func (qcc *TKEClient) UpdateCred(cred credential.QCloudCredential)

func (*TKEClient) UpdateCredential

func (qcc *TKEClient) UpdateCredential(cred credential.QCloudCredential)

func (*TKEClient) UpdateCustomCredential

func (qcc *TKEClient) UpdateCustomCredential(id, secret string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL