listers

package
v1.6.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRoleBindingLister

type ClusterRoleBindingLister interface {
	List(selector labels.Selector) (ret []*rbac.ClusterRoleBinding, err error)
	Get(name string) (*rbac.ClusterRoleBinding, error)
	// contains filtered or unexported methods
}

func NewClusterRoleBindingLister

func NewClusterRoleBindingLister(indexer cache.Indexer) ClusterRoleBindingLister

type ClusterRoleLister

type ClusterRoleLister interface {
	List(selector labels.Selector) (ret []*rbac.ClusterRole, err error)
	Get(name string) (*rbac.ClusterRole, error)
	// contains filtered or unexported methods
}

func NewClusterRoleLister

func NewClusterRoleLister(indexer cache.Indexer) ClusterRoleLister

type IndexerToNamespaceLister

type IndexerToNamespaceLister struct {
	cache.Indexer
}

IndexerToNamespaceLister gives an Indexer List method

func (*IndexerToNamespaceLister) Get

func (*IndexerToNamespaceLister) List

func (i *IndexerToNamespaceLister) List(selector labels.Selector) (ret []*v1.Namespace, err error)

List returns a list of namespaces

type NodeConditionPredicate

type NodeConditionPredicate func(node *v1.Node) bool

NodeConditionPredicate is a function that indicates whether the given node's conditions meet some set of criteria defined by the function.

type RoleBindingLister

type RoleBindingLister interface {
	List(selector labels.Selector) (ret []*rbac.RoleBinding, err error)
	RoleBindings(namespace string) RoleBindingNamespaceLister
	// contains filtered or unexported methods
}

func NewRoleBindingLister

func NewRoleBindingLister(indexer cache.Indexer) RoleBindingLister

type RoleBindingNamespaceLister

type RoleBindingNamespaceLister interface {
	List(selector labels.Selector) (ret []*rbac.RoleBinding, err error)
	Get(name string) (*rbac.RoleBinding, error)
}

type RoleLister

type RoleLister interface {
	List(selector labels.Selector) (ret []*rbac.Role, err error)
	Roles(namespace string) RoleNamespaceLister
	// contains filtered or unexported methods
}

func NewRoleLister

func NewRoleLister(indexer cache.Indexer) RoleLister

type RoleNamespaceLister

type RoleNamespaceLister interface {
	List(selector labels.Selector) (ret []*rbac.Role, err error)
	Get(name string) (*rbac.Role, error)
}

type StorageClassLister

type StorageClassLister interface {
	List(selector labels.Selector) (ret []*storage.StorageClass, err error)
	Get(name string) (*storage.StorageClass, error)
}

StorageClassLister knows how to list storage classes

func NewStorageClassLister

func NewStorageClassLister(indexer cache.Indexer) StorageClassLister

NewStorageClassLister returns a new lister.

type StoreToCertificateRequestLister

type StoreToCertificateRequestLister struct {
	cache.Store
}

StoreToCertificateRequestLister gives a store List and Exists methods. The store must contain only CertificateRequests.

func (*StoreToCertificateRequestLister) Exists

Exists checks if the given csr exists in the store.

func (*StoreToCertificateRequestLister) List

StoreToCertificateRequestLister lists all csrs in the store.

type StoreToDaemonSetLister

type StoreToDaemonSetLister struct {
	cache.Store
}

StoreToDaemonSetLister gives a store List and Exists methods. The store must contain only DaemonSets.

func (*StoreToDaemonSetLister) Exists

Exists checks if the given daemon set exists in the store.

func (*StoreToDaemonSetLister) GetPodDaemonSets

func (s *StoreToDaemonSetLister) GetPodDaemonSets(pod *v1.Pod) (daemonSets []extensions.DaemonSet, err error)

GetPodDaemonSets returns a list of daemon sets managing a pod. Returns an error if and only if no matching daemon sets are found.

func (*StoreToDaemonSetLister) List

List lists all daemon sets in the store. TODO: converge on the interface in pkg/client

type StoreToDeploymentLister

type StoreToDeploymentLister struct {
	Indexer cache.Indexer
}

StoreToDeploymentLister helps list deployments

func (*StoreToDeploymentLister) Deployments

func (s *StoreToDeploymentLister) Deployments(namespace string) storeDeploymentsNamespacer

func (*StoreToDeploymentLister) GetDeploymentsForPod

func (s *StoreToDeploymentLister) GetDeploymentsForPod(pod *v1.Pod) (deployments []*extensions.Deployment, err error)

GetDeploymentsForDeployments returns a list of deployments managing a pod. Returns an error only if no matching deployments are found. TODO eliminate shallow copies

func (*StoreToDeploymentLister) GetDeploymentsForReplicaSet

func (s *StoreToDeploymentLister) GetDeploymentsForReplicaSet(rs *extensions.ReplicaSet) (deployments []*extensions.Deployment, err error)

GetDeploymentsForReplicaSet returns a list of deployments managing a replica set. Returns an error only if no matching deployments are found.

func (*StoreToDeploymentLister) List

func (s *StoreToDeploymentLister) List(selector labels.Selector) (ret []*extensions.Deployment, err error)

type StoreToEndpointsLister

type StoreToEndpointsLister struct {
	cache.Store
}

StoreToEndpointsLister makes a Store that lists endpoints.

func (*StoreToEndpointsLister) GetServiceEndpoints

func (s *StoreToEndpointsLister) GetServiceEndpoints(svc *v1.Service) (ep v1.Endpoints, err error)

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

func (*StoreToEndpointsLister) List

func (s *StoreToEndpointsLister) List() (services v1.EndpointsList, err error)

List lists all endpoints in the store.

type StoreToLimitRangeLister

type StoreToLimitRangeLister struct {
	Indexer cache.Indexer
}

StoreToLimitRangeLister helps list limit ranges

func (*StoreToLimitRangeLister) LimitRanges

func (s *StoreToLimitRangeLister) LimitRanges(namespace string) storeLimitRangesNamespacer

func (*StoreToLimitRangeLister) List

func (s *StoreToLimitRangeLister) List(selector labels.Selector) (ret []*v1.LimitRange, err error)

type StoreToNodeLister

type StoreToNodeLister struct {
	cache.Store
}

StoreToNodeLister makes a Store have the List method of the client.NodeInterface The Store must contain (only) Nodes.

func (*StoreToNodeLister) List

func (s *StoreToNodeLister) List() (machines v1.NodeList, err error)

func (*StoreToNodeLister) NodeCondition

func (s *StoreToNodeLister) NodeCondition(predicate NodeConditionPredicate) storeToNodeConditionLister

NodeCondition returns a storeToNodeConditionLister

type StoreToPVFetcher

type StoreToPVFetcher struct {
	cache.Store
}

Typed wrapper around a store of PersistentVolumes

func (*StoreToPVFetcher) GetPersistentVolumeInfo

func (s *StoreToPVFetcher) GetPersistentVolumeInfo(id string) (*v1.PersistentVolume, error)

GetPersistentVolumeInfo returns cached data for the PersistentVolume 'id'.

type StoreToPersistentVolumeClaimLister

type StoreToPersistentVolumeClaimLister struct {
	Indexer cache.Indexer
}

StoreToPersistentVolumeClaimLister helps list pvcs

func (*StoreToPersistentVolumeClaimLister) List

List returns all persistentvolumeclaims that match the specified selector

func (*StoreToPersistentVolumeClaimLister) PersistentVolumeClaims

func (s *StoreToPersistentVolumeClaimLister) PersistentVolumeClaims(namespace string) storePersistentVolumeClaimsNamespacer

PersistentVolumeClaims returns all claims in a specified namespace.

type StoreToPodDisruptionBudgetLister

type StoreToPodDisruptionBudgetLister struct {
	cache.Store
}

func (*StoreToPodDisruptionBudgetLister) GetPodPodDisruptionBudgets

func (s *StoreToPodDisruptionBudgetLister) GetPodPodDisruptionBudgets(pod *v1.Pod) (pdbList []policy.PodDisruptionBudget, err error)

GetPodPodDisruptionBudgets returns a list of PodDisruptionBudgets matching a pod. Returns an error only if no matching PodDisruptionBudgets are found.

type StoreToPodLister

type StoreToPodLister struct {
	Indexer cache.Indexer
}

StoreToPodLister helps list pods

func (*StoreToPodLister) List

func (s *StoreToPodLister) List(selector labels.Selector) (ret []*v1.Pod, err error)

func (*StoreToPodLister) Pods

func (s *StoreToPodLister) Pods(namespace string) storePodsNamespacer

type StoreToReplicaSetLister

type StoreToReplicaSetLister struct {
	Indexer cache.Indexer
}

StoreToReplicaSetLister helps list replicasets

func (*StoreToReplicaSetLister) GetPodReplicaSets

func (s *StoreToReplicaSetLister) GetPodReplicaSets(pod *v1.Pod) (rss []*extensions.ReplicaSet, err error)

GetPodReplicaSets returns a list of ReplicaSets managing a pod. Returns an error only if no matching ReplicaSets are found.

func (*StoreToReplicaSetLister) List

func (s *StoreToReplicaSetLister) List(selector labels.Selector) (ret []*extensions.ReplicaSet, err error)

func (*StoreToReplicaSetLister) ReplicaSets

func (s *StoreToReplicaSetLister) ReplicaSets(namespace string) storeReplicaSetsNamespacer

type StoreToReplicationControllerLister

type StoreToReplicationControllerLister struct {
	Indexer cache.Indexer
}

StoreToReplicationControllerLister helps list rcs

func (*StoreToReplicationControllerLister) GetPodControllers

func (s *StoreToReplicationControllerLister) GetPodControllers(pod *v1.Pod) (controllers []*v1.ReplicationController, err error)

GetPodControllers returns a list of replication controllers managing a pod. Returns an error only if no matching controllers are found.

func (*StoreToReplicationControllerLister) List

func (*StoreToReplicationControllerLister) ReplicationControllers

func (s *StoreToReplicationControllerLister) ReplicationControllers(namespace string) storeReplicationControllersNamespacer

type StoreToServiceAccountLister

type StoreToServiceAccountLister struct {
	Indexer cache.Indexer
}

StoreToServiceAccountLister helps list service accounts

func (*StoreToServiceAccountLister) List

func (s *StoreToServiceAccountLister) List(selector labels.Selector) (ret []*v1.ServiceAccount, err error)

func (*StoreToServiceAccountLister) ServiceAccounts

func (s *StoreToServiceAccountLister) ServiceAccounts(namespace string) storeServiceAccountsNamespacer

type StoreToServiceLister

type StoreToServiceLister struct {
	Indexer cache.Indexer
}

StoreToServiceLister helps list services

func (*StoreToServiceLister) GetPodServices

func (s *StoreToServiceLister) GetPodServices(pod *v1.Pod) (services []*v1.Service, err error)

TODO: Move this back to scheduler as a helper function that takes a Store, rather than a method of StoreToServiceLister.

func (*StoreToServiceLister) List

func (s *StoreToServiceLister) List(selector labels.Selector) (ret []*v1.Service, err error)

func (*StoreToServiceLister) Services

func (s *StoreToServiceLister) Services(namespace string) storeServicesNamespacer

type StoreToStatefulSetLister

type StoreToStatefulSetLister struct {
	cache.Store
}

StoreToStatefulSetLister gives a store List and Exists methods. The store must contain only StatefulSets.

func (*StoreToStatefulSetLister) Exists

Exists checks if the given StatefulSet exists in the store.

func (*StoreToStatefulSetLister) GetPodStatefulSets

func (s *StoreToStatefulSetLister) GetPodStatefulSets(pod *v1.Pod) (psList []apps.StatefulSet, err error)

GetPodStatefulSets returns a list of StatefulSets managing a pod. Returns an error only if no matching StatefulSets are found.

func (*StoreToStatefulSetLister) List

func (s *StoreToStatefulSetLister) List() (psList []apps.StatefulSet, err error)

List lists all StatefulSets in the store.

func (*StoreToStatefulSetLister) StatefulSets

func (s *StoreToStatefulSetLister) StatefulSets(namespace string) storeStatefulSetsNamespacer

Jump to

Keyboard shortcuts

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