store

package
v1.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventLister

type EventLister struct {
	cache.Store
}

type Informer

type Informer struct {
	Pod          cache.SharedIndexInformer
	RbdComponent cache.SharedIndexInformer
	Event        cache.SharedIndexInformer
}

Informer kube-api client cache

func (*Informer) Start

func (i *Informer) Start(stopCh chan struct{})

Start statrt

type Lister

type Lister struct {
	Pod          PodLister
	RbdComponent RbdComponentLister
	Event        EventLister
}

Lister kube-api client cache

type PodLister

type PodLister struct {
	cache.Store
}

type RbdComponentLister

type RbdComponentLister struct {
	cache.Store
}

type Storer

type Storer interface {
	Start() error
	Stop()
	ListRbdComponent(isInit bool) []*v1alpha1.RbdComponent
	ListPod() []*corev1.Pod
	ListEvent() []*corev1.Event
}

Storer rainbond component store interface

func NewStore

func NewStore(namespace string, rainbondClient *versioned.Clientset, k8sClient *kubernetes.Clientset) Storer

NewStore TODO close it

Jump to

Keyboard shortcuts

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