tencent_service

package
v0.0.0-...-881b546 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewKubeconfig

func AddNewKubeconfig(newKubeconfig *api.Config, targetKubeconfig *api.Config, mergeKey string, contextName string)

func GetConfigInfo

func GetConfigInfo(credProvider tcCommon.Provider) (string, error)

GetConfigInfo returns: AccountId, error

func GetProfiles

func GetProfiles() ([]string, error)

func ListTke

func ListTke(region string, profileName string) ([]*tke.Cluster, error)

func RegisterTkeCluster

func RegisterTkeCluster(region, clusterId, clusterName string, profileName string) error

func RegisterTkeCluster0

func RegisterTkeCluster0(region, clusterId, clusterName string, credProvider common.Provider) error

Types

type TencentIntlProfileProvider

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

TencentIntlProfileProvider China mainland and international cloud's credential file formats are difference

func NewTencentIntlProfileProvider

func NewTencentIntlProfileProvider(profileName string) *TencentIntlProfileProvider

func (*TencentIntlProfileProvider) GetCredential

Jump to

Keyboard shortcuts

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