clients

package
v1.9.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDiscoveryClient

func GetDiscoveryClient() (*discovery.DiscoveryClient, error)

GetDiscoveryClient return a discovery client

func GetKubeClient

func GetKubeClient() (client.Client, error)

GetKubeClient create and return kube runtime client

func GetKubeConfig

func GetKubeConfig() (*rest.Config, error)

GetKubeConfig create/get kube runtime config

func GetPackageDiscover

func GetPackageDiscover() (*packages.PackageDiscover, error)

GetPackageDiscover get package discover

func SetKubeClient

func SetKubeClient(c client.Client)

SetKubeClient for test

func SetKubeConfig

func SetKubeConfig(c apiConfig.Config) error

SetKubeConfig generate the kube config from the config of apiserver

Types

This section is empty.

Jump to

Keyboard shortcuts

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