Documentation ¶
Overview ¶
core contains modules that interface with the core api group
Index ¶
- func NewConfigMapEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewPersistentVolumeClaimEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewPodEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewRegistry(kubeClient clientset.Interface) quota.Registry
- func NewReplicationControllerEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewResourceQuotaEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewSecretEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewServiceEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func PodConstraintsFunc(required []api.ResourceName, object runtime.Object) error
- func PodMatchesScopeFunc(scope api.ResourceQuotaScope, object runtime.Object) bool
- func PodUsageFunc(object runtime.Object) api.ResourceList
- func QuotaPod(pod *api.Pod) bool
- func QuotaServiceType(service *api.Service) bool
- func ServiceUsageFunc(object runtime.Object) api.ResourceList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigMapEvaluator ¶
NewConfigMapEvaluator returns an evaluator that can evaluate configMaps
func NewPersistentVolumeClaimEvaluator ¶
NewPersistentVolumeClaimEvaluator returns an evaluator that can evaluate persistent volume claims
func NewPodEvaluator ¶
NewPodEvaluator returns an evaluator that can evaluate pods
func NewRegistry ¶
NewRegistry returns a registry that knows how to deal with core kubernetes resources
func NewReplicationControllerEvaluator ¶
NewReplicationControllerEvaluator returns an evaluator that can evaluate replication controllers
func NewResourceQuotaEvaluator ¶
NewResourceQuotaEvaluator returns an evaluator that can evaluate resource quotas
func NewSecretEvaluator ¶
NewSecretEvaluator returns an evaluator that can evaluate secrets
func NewServiceEvaluator ¶
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 ¶
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 ¶
QuotaServiceType returns true if the service type is eligible to track against a quota
func ServiceUsageFunc ¶
func ServiceUsageFunc(object runtime.Object) api.ResourceList
ServiceUsageFunc knows how to measure usage associated with services
Types ¶
This section is empty.