Support permanent-redirect and temporal-redirect annotations

This commit is contained in:
LBF38
2026-01-20 16:48:06 +01:00
committed by GitHub
parent 82c756006b
commit 954eaab5f7
17 changed files with 634 additions and 31 deletions
+6 -1
View File
@@ -918,7 +918,7 @@ func (in *Middleware) DeepCopyInto(out *Middleware) {
if in.RedirectRegex != nil {
in, out := &in.RedirectRegex, &out.RedirectRegex
*out = new(RedirectRegex)
**out = **in
(*in).DeepCopyInto(*out)
}
if in.RedirectScheme != nil {
in, out := &in.RedirectScheme, &out.RedirectScheme
@@ -1186,6 +1186,11 @@ func (in *RateLimit) DeepCopy() *RateLimit {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *RedirectRegex) DeepCopyInto(out *RedirectRegex) {
*out = *in
if in.StatusCode != nil {
in, out := &in.StatusCode, &out.StatusCode
*out = new(int)
**out = **in
}
return
}