core

package
v0.12.1-0...-0a124f2 Latest Latest
Warning

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

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

Documentation

Overview

core contains modules that interface with the core api group

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQuotaServiceType

func GetQuotaServiceType(service *v1.Service) v1.ServiceType

GetQuotaServiceType returns ServiceType if the service type is eligible to track against a quota, nor return ""

func NewConfigMapEvaluator

func NewConfigMapEvaluator(kubeClient clientset.Interface) quota.Evaluator

NewConfigMapEvaluator returns an evaluator that can evaluate configMaps

func NewPersistentVolumeClaimEvaluator

func NewPersistentVolumeClaimEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator

NewPersistentVolumeClaimEvaluator returns an evaluator that can evaluate persistent volume claims if the specified shared informer factory is not nil, evaluator may use it to support listing functions.

func NewPodEvaluator

func NewPodEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator

NewPodEvaluator returns an evaluator that can evaluate pods if the specified shared informer factory is not nil, evaluator may use it to support listing functions.

func NewRegistry

NewRegistry returns a registry that knows how to deal with core kubernetes resources If an informer factory is provided, evaluators will use them.

func NewReplicationControllerEvaluator

func NewReplicationControllerEvaluator(kubeClient clientset.Interface) quota.Evaluator

NewReplicationControllerEvaluator returns an evaluator that can evaluate replication controllers

func NewResourceQuotaEvaluator

func NewResourceQuotaEvaluator(kubeClient clientset.Interface) quota.Evaluator

NewResourceQuotaEvaluator returns an evaluator that can evaluate resource quotas

func NewSecretEvaluator

func NewSecretEvaluator(kubeClient clientset.Interface) quota.Evaluator

NewSecretEvaluator returns an evaluator that can evaluate secrets

func NewServiceEvaluator

func NewServiceEvaluator(kubeClient clientset.Interface) quota.Evaluator

NewServiceEvaluator returns an evaluator that can evaluate service quotas

func PodUsageFunc

func PodUsageFunc(obj runtime.Object) (api.ResourceList, error)

PodUsageFunc knows how to measure usage associated with pods

func QuotaPod

func QuotaPod(pod *api.Pod) bool

QuotaPod returns true if the pod is eligible to track against a quota

func QuotaServiceType

func QuotaServiceType(service *v1.Service) bool

QuotaServiceType returns true if the service type is eligible to track against a quota

func QuotaV1Pod

func QuotaV1Pod(pod *v1.Pod) bool

QuotaV1Pod returns true if the pod is eligible to track against a quota if it's not in a terminal state according to its phase.

func ResourceByStorageClass

func ResourceByStorageClass(storageClass string, resourceName api.ResourceName) api.ResourceName

ResourceByStorageClass returns a quota resource name by storage class.

func V1ResourceByStorageClass

func V1ResourceByStorageClass(storageClass string, resourceName v1.ResourceName) v1.ResourceName

V1ResourceByStorageClass returns a quota resource name by storage class.

Types

This section is empty.

Jump to

Keyboard shortcuts

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