nks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ClustersUuidGet(ctx context.Context, uuid *string) (*vnks.ClusterRes, error)
	ClustersUuidKubeconfigGet(ctx context.Context, uuid *string) (*vnks.KubeconfigRes, error)
}

type KubeconfigParam

type KubeconfigParam struct {
	ClusterName    string
	UserName       string
	ContextName    string
	CurrentContext bool
	Profile        string
	ConfigFile     string
}

type Manager

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

func NewManager

func NewManager(clusterUuid string, region string, apiKey *ncloud.APIKey) *Manager

func (Manager) GetCluster

func (m Manager) GetCluster() (*vnks.Cluster, error)

func (Manager) GetIamKubeconfig

func (m Manager) GetIamKubeconfig(param *KubeconfigParam) (*clientcmdapi.Config, error)

func (Manager) GetKubeconfig

func (m Manager) GetKubeconfig() (*clientcmdapi.Config, error)

func (Manager) UpdateIamKubeconfig

func (m Manager) UpdateIamKubeconfig(param *KubeconfigParam, config *clientcmdapi.Config, overwrite bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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