mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-25 16:07:24 +00:00
* feat: add globalresourcequota api Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
23 lines
597 B
Go
23 lines
597 B
Go
// Copyright 2020-2026 Project Capsule Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package route
|
|
|
|
import "github.com/projectcapsule/capsule/pkg/runtime/handlers"
|
|
|
|
type globalResourceQuotaCalculation struct {
|
|
handlers []handlers.Handler
|
|
}
|
|
|
|
func GlobalResourceQuotaCalculation(handler ...handlers.Handler) handlers.Webhook {
|
|
return &globalResourceQuotaCalculation{handlers: handler}
|
|
}
|
|
|
|
func (w *globalResourceQuotaCalculation) GetHandlers() []handlers.Handler {
|
|
return w.handlers
|
|
}
|
|
|
|
func (w *globalResourceQuotaCalculation) GetPath() string {
|
|
return "/global-resource-quotas/calculations"
|
|
}
|