client

package
v0.0.0-...-6f6f2b9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClientset

func BuildClientset()

BuildClientset build cache factory and start informers

func Clientset

func Clientset() *kubernetes.Interface

Clientset return clientset

func Config

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

Config get kube config

func LoadKubeConfig

func LoadKubeConfig(config []byte) (*rest.Config, error)

func NewKubeClientWithConfigPath

func NewKubeClientWithConfigPath(configPath string) (kubernetes.Interface, error)

NewKubeClientWithConfigPath creates a out cluster kubernetes clientset interface

func NewKubeInClusterClient

func NewKubeInClusterClient() (kubernetes.Interface, error)

NewKubeInClusterClient creates an in cluster kubernetes clientset interface

func NewKubeOutClusterClient

func NewKubeOutClusterClient(config []byte) (kubernetes.Interface, error)

NewKubeOutClusterClient creates a out cluster kubernetes clientset interface

func NewSharedInformerFactory

func NewSharedInformerFactory(clientset kubernetes.Interface) (informers.SharedInformerFactory, error)

NewSharedInformerFactory creates a new SharedInformerFactory

Types

This section is empty.

Jump to

Keyboard shortcuts

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