models

package
v0.0.0-...-f23b2cd Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientSet

func ClientSet() *kubernetes.Clientset

ClientSet 客户端。需要指定Group、指定Version,然后根据Resource获取

func DiscoveryClient

func DiscoveryClient() *discovery.DiscoveryClient

DiscoveryClient 发现客户端。主要用于发现Kubernetes API Server所支持的资源组、资源版本、资源信息。 除此之外,还可以将这些信息存储到本地,用户本地缓存,以减轻对Kubernetes API Server访问的压力。

func DynamicClient

func DynamicClient() *dynamic.DynamicClient

DynamicClient 动态客户端,可以获取所有crd,只支持JSON

func GetKubeConfig

func GetKubeConfig() *rest.Config

GetKubeConfig 获取kubeconfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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