core

package
v1.4.2-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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 GetQuotaServiceType added in v1.4.0

func GetQuotaServiceType(service *api.Service) api.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) 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 PersistentVolumeClaimConstraintsFunc added in v1.4.0

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

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

func PersistentVolumeClaimUsageFunc added in v1.4.0

func PersistentVolumeClaimUsageFunc(object runtime.Object) api.ResourceList

PersistentVolumeClaimUsageFunc knows how to measure usage associated with persistent volume claims

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 ServiceConstraintsFunc added in v1.4.0

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

ServiceConstraintsFunc verifies that all required resources are captured in service usage.

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