clients

package
v1.4.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDiscoverMapper

func GetDiscoverMapper() (discoverymapper.DiscoveryMapper, error)

GetDiscoverMapper get discover mapper

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