kubernetes

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexIP = "byIP"
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(kubeConfigPath string) (*rest.Config, error)

Types

type Info

type Info struct {
	Type            string
	Name            string
	Namespace       string
	Labels          map[string]string
	OwnerReferences []metav1.OwnerReference
	Owner           Owner
	HostName        string
	HostIP          string
}

type KubeData

type KubeData struct {
	// contains filtered or unexported fields
}
var Data KubeData

func (*KubeData) GetInfo

func (k *KubeData) GetInfo(ip string) (*Info, error)

func (*KubeData) InitFromConfig

func (k *KubeData) InitFromConfig(kubeConfigPath string) error

func (*KubeData) NewNodeInformer

func (k *KubeData) NewNodeInformer(informerFactory informers.SharedInformerFactory) error

func (*KubeData) NewPodInformer

func (k *KubeData) NewPodInformer(informerFactory informers.SharedInformerFactory) error

func (*KubeData) NewReplicaSetInformer

func (k *KubeData) NewReplicaSetInformer(informerFactory informers.SharedInformerFactory) error

func (*KubeData) NewServiceInformer

func (k *KubeData) NewServiceInformer(informerFactory informers.SharedInformerFactory) error

type Owner

type Owner struct {
	Type string
	Name string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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