meta

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package meta provides access to kubernetes objects via informers

Index

Constants

View Source
const (
	// NamespaceSeparator used by the K8s informers library to create indices
	// that are composed as namespace/name
	NamespaceSeparator = "/"
	IndexIP            = "IP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Informers

type Informers struct {
	InformersInterface
	// contains filtered or unexported fields
}

func NewInformers

func NewInformers(client kubernetes.Interface) Informers

func (*Informers) DebugInfo

func (s *Informers) DebugInfo(out io.Writer)

func (*Informers) PodByIP

func (s *Informers) PodByIP(ip string) *corev1.Pod

func (*Informers) ReplicaSet

func (s *Informers) ReplicaSet(namespace, name string) *appsv1.ReplicaSet

func (*Informers) ServiceByIP

func (s *Informers) ServiceByIP(ip string) *corev1.Service

func (*Informers) Start

func (s *Informers) Start(stopCh <-chan struct{}) error

func (*Informers) WaitForCacheSync

func (s *Informers) WaitForCacheSync(stopCh <-chan struct{})

type InformersInterface

type InformersInterface interface {
	PodByIP(ip string) *corev1.Pod
	ServiceByIP(ip string) *corev1.Service
	ReplicaSet(namespace, name string) *appsv1.ReplicaSet
}

Jump to

Keyboard shortcuts

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