Documentation ¶
Overview ¶
core contains modules that interface with the core api group
Index ¶
- func GetQuotaServiceType(service *v1.Service) v1.ServiceType
- func NewConfigMapEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) 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, f informers.SharedInformerFactory) quota.Evaluator
- func NewResourceQuotaEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
- func NewSecretEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
- func NewServiceEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
- func PodUsageFunc(obj runtime.Object) (api.ResourceList, error)
- func QuotaPod(pod *api.Pod) bool
- func QuotaServiceType(service *v1.Service) bool
- func QuotaV1Pod(pod *v1.Pod) bool
- func ResourceByStorageClass(storageClass string, resourceName api.ResourceName) api.ResourceName
- func V1ResourceByStorageClass(storageClass string, resourceName v1.ResourceName) v1.ResourceName
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, f informers.SharedInformerFactory) quota.Evaluator
NewConfigMapEvaluator returns an evaluator that can evaluate configMaps if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
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, f informers.SharedInformerFactory) quota.Evaluator
NewReplicationControllerEvaluator returns an evaluator that can evaluate replicationControllers if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
func NewResourceQuotaEvaluator ¶
func NewResourceQuotaEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
NewResourceQuotaEvaluator returns an evaluator that can evaluate resourceQuotas if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
func NewSecretEvaluator ¶
func NewSecretEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
NewSecretEvaluator returns an evaluator that can evaluate secrets if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
func NewServiceEvaluator ¶
func NewServiceEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
NewServiceEvaluator returns an evaluator that can evaluate services if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
func PodUsageFunc ¶
func PodUsageFunc(obj runtime.Object) (api.ResourceList, error)
PodUsageFunc knows how to measure usage associated with pods
func QuotaServiceType ¶
QuotaServiceType returns true if the service type is eligible to track against a quota
func QuotaV1Pod ¶
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.