Documentation ¶
Overview ¶
core contains modules that interface with the core api group
Index ¶
- func GetQuotaServiceType(service *api.Service) api.ServiceType
- func NewConfigMapEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewPersistentVolumeClaimEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
- func NewPodEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
- func NewRegistry(kubeClient clientset.Interface, f informers.SharedInformerFactory) 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 PersistentVolumeClaimConstraintsFunc(required []api.ResourceName, object runtime.Object) error
- func PersistentVolumeClaimUsageFunc(object runtime.Object) api.ResourceList
- 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 ServiceConstraintsFunc(required []api.ResourceName, object runtime.Object) error
- func ServiceUsageFunc(object runtime.Object) api.ResourceList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQuotaServiceType ¶ added in v1.4.2
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 ¶
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 ¶
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 PersistentVolumeClaimConstraintsFunc ¶ added in v1.4.2
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.2
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 ¶
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
QuotaServiceType returns true if the service type is eligible to track against a quota
func ServiceConstraintsFunc ¶ added in v1.4.2
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.