Help us shape the future of Go! Take the 2026 Go Developer Survey

store

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: LGPL-3.0 Imports: 10 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
}

EventLister -

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 NotExistsError added in v1.3.0

type NotExistsError string

NotExistsError is returned when an object does not exist in a local store.

func (NotExistsError) Error added in v1.3.0

func (e NotExistsError) Error() string

Error implements the error interface.

type PodLister

type PodLister struct {
	cache.Store
}

PodLister -

type RbdComponentLister

type RbdComponentLister struct {
	cache.Store
}

RbdComponentLister -

type Storer

type Storer interface {
	Start() error
	Stop()
	ListRbdComponent(isInit bool) []*v1alpha1.RbdComponent
	ListRbdComponents() []*v1alpha1.RbdComponent
	GetPodByKey(key string) (*corev1.Pod, error)
	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