core

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: Apache-2.0 Imports: 14 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 NewConfigMapEvaluator

func NewConfigMapEvaluator(kubeClient clientset.Interface) quota.Evaluator

NewConfigMapEvaluator returns an evaluator that can evaluate configMaps

func NewPersistentVolumeClaimEvaluator

func NewPersistentVolumeClaimEvaluator(kubeClient clientset.Interface) quota.Evaluator

NewPersistentVolumeClaimEvaluator returns an evaluator that can evaluate persistent volume claims

func NewPodEvaluator

func NewPodEvaluator(kubeClient clientset.Interface) quota.Evaluator

NewPodEvaluator returns an evaluator that can evaluate pods

func NewRegistry

func NewRegistry(kubeClient clientset.Interface) quota.Registry

NewRegistry returns a registry that knows how to deal with core kubernetes resources

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 PodConstraintsFunc

func PodConstraintsFunc(required []api.ResourceName, object runtime.Object) error

PodConstraintsFunc verifies that all required resources are present on the pod In addition, it validates that the resources are valid (i.e. requests < limits)

func PodMatchesScopeFunc

func PodMatchesScopeFunc(scope api.ResourceQuotaScope, object runtime.Object) bool

PodMatchesScopeFunc is a function that knows how to evaluate if a pod matches a scope

func PodUsageFunc

func PodUsageFunc(object runtime.Object) api.ResourceList

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 if it's not in a terminal state according to its phase.

func QuotaServiceType added in v1.3.0

func QuotaServiceType(service *api.Service) bool

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

func ServiceUsageFunc added in v1.3.0

func ServiceUsageFunc(object runtime.Object) api.ResourceList

ServiceUsageFunc knows how to measure usage associated with services

Types

This section is empty.

Jump to

Keyboard shortcuts

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