Files
capsule/internal/webhook/route/cordoning.go
T
Oliver BählerandGitHub 581a8fe60e feat(controller): administration persona (#1739)
* chore(refactor): project and api refactoring

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* chore(refactor): project and api refactoring

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

---------

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
2025-11-18 16:27:16 +01:00

25 lines
506 B
Go

// Copyright 2020-2025 Project Capsule Authors
// SPDX-License-Identifier: Apache-2.0
package route
import (
capsulewebhook "github.com/projectcapsule/capsule/internal/webhook"
)
type cordoning struct {
handlers []capsulewebhook.Handler
}
func Cordoning(handlers ...capsulewebhook.Handler) capsulewebhook.Webhook {
return &cordoning{handlers: handlers}
}
func (w cordoning) GetPath() string {
return "/cordoning"
}
func (w cordoning) GetHandlers() []capsulewebhook.Handler {
return w.handlers
}