store

package
v0.10.15 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapLister

type ConfigMapLister struct {
	Client k8s.Interface
	cache.Store
}

ConfigMapLister makes a Store that lists ConfigMaps.

func (*ConfigMapLister) CreateOrUpdate added in v0.9.1

func (cml *ConfigMapLister) CreateOrUpdate(cm *apiv1.ConfigMap) (err error)

CreateOrUpdate ...

func (*ConfigMapLister) GetByName

func (cml *ConfigMapLister) GetByName(name string) (*apiv1.ConfigMap, error)

GetByName searches for a ConfigMap in the local ConfigMaps Store

type EndpointLister

type EndpointLister struct {
	cache.Store
}

EndpointLister makes a Store that lists Endpoints.

func (*EndpointLister) GetServiceEndpoints

func (s *EndpointLister) GetServiceEndpoints(svc *apiv1.Service) (ep apiv1.Endpoints, err error)

GetServiceEndpoints returns the endpoints of a service, matched on service name.

type IngressLister

type IngressLister struct {
	cache.Store
}

IngressLister makes a Store that lists Ingress.

type NodeLister

type NodeLister struct {
	cache.Store
}

NodeLister makes a Store that lists Nodes.

type PodLister

type PodLister struct {
	cache.Store
}

PodLister makes a store that lists Pods.

func (*PodLister) GetPod

func (s *PodLister) GetPod(namespace, name string) (*apiv1.Pod, error)

GetPod returns the pod given it's namespace and name.

func (*PodLister) GetTerminatingServicePods

func (s *PodLister) GetTerminatingServicePods(svc *apiv1.Service) (pl []apiv1.Pod, err error)

GetTerminatingServicePods returns the pods that are terminating and belong (based on the Spec.Selector) to the supplied service.

type SecretLister

type SecretLister struct {
	Client k8s.Interface
	cache.Store
}

SecretLister makes a Store that lists Secrets.

func (*SecretLister) CreateOrUpdate added in v0.9.1

func (sl *SecretLister) CreateOrUpdate(secret *apiv1.Secret) (err error)

CreateOrUpdate ...

func (*SecretLister) GetByName

func (sl *SecretLister) GetByName(name string) (*apiv1.Secret, error)

GetByName searches for a secret in the local secrets Store

type ServiceLister

type ServiceLister struct {
	cache.Store
}

ServiceLister makes a Store that lists Services.

func (*ServiceLister) GetByName

func (sl *ServiceLister) GetByName(name string) (*apiv1.Service, error)

GetByName searches for a service in the local secrets Store

Jump to

Keyboard shortcuts

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