mirror of
https://github.com/hanzoai/ingress.git
synced 2026-10-26 02:47:15 +00:00
376 files. All tests pass. Breaking wire changes: - X-Traefik-Fast-Proxy → X-Ingress-Fast-Proxy - X-Traefik-Router → X-Ingress-Router - Metric prefix traefik.* → ingress.* - ACME user agent containous-traefik → hanzoai-ingress - Plugin manifest .traefik.yml → .ingress.yml - Recovery middleware traefik-internal-recovery → ingress-internal-recovery Copyright: Traefik Labs → Hanzo AI Inc (all headers) Test domains: *.traefik.wtf → *.ingress.test Doc URLs: doc.traefik.io → hanzo.ai/docs/ingress Internal vars: traefikService* → ingressService*, etc. Docker refs: traefik:latest → ghcr.io/hanzoai/ingress:latest 100+ YAML/JSON test fixtures updated Remaining 30 refs are paerser library constraints (traefik.configfile flag, TRAEFIK_* env prefix) and digest auth hash-bound realm values. Cannot change without forking github.com/traefik/paerser.
71 lines
2.0 KiB
Go
71 lines
2.0 KiB
Go
/*
|
|
The MIT License (MIT)
|
|
|
|
Copyright (c) 2016-2020 Containous SAS; 2020-2026 Hanzo AI Inc
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
*/
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package internal
|
|
|
|
import (
|
|
fmt "fmt"
|
|
sync "sync"
|
|
|
|
typed "sigs.k8s.io/structured-merge-diff/v6/typed"
|
|
)
|
|
|
|
func Parser() *typed.Parser {
|
|
parserOnce.Do(func() {
|
|
var err error
|
|
parser, err = typed.NewParser(schemaYAML)
|
|
if err != nil {
|
|
panic(fmt.Sprintf("Failed to parse schema: %v", err))
|
|
}
|
|
})
|
|
return parser
|
|
}
|
|
|
|
var parserOnce sync.Once
|
|
var parser *typed.Parser
|
|
var schemaYAML = typed.YAMLObject(`types:
|
|
- name: __untyped_atomic_
|
|
scalar: untyped
|
|
list:
|
|
elementType:
|
|
namedType: __untyped_atomic_
|
|
elementRelationship: atomic
|
|
map:
|
|
elementType:
|
|
namedType: __untyped_atomic_
|
|
elementRelationship: atomic
|
|
- name: __untyped_deduced_
|
|
scalar: untyped
|
|
list:
|
|
elementType:
|
|
namedType: __untyped_atomic_
|
|
elementRelationship: atomic
|
|
map:
|
|
elementType:
|
|
namedType: __untyped_deduced_
|
|
elementRelationship: separable
|
|
`)
|