class

Detector::Specification::Traefik

Inherits Detector < Reference < Object

Constants

YAML_MARKER = /routers|IngressRoute|traefik\.io\//

Necessary-condition guard for the YAML branch: every accepted shape requires one of these literals in the raw document — a routers key (traefik_dynamic_config?, and the traefik.http.routers. label fallback contains it too), a kind: IngressRoute, or a traefik.io/ apiVersion. Any YAML file without them skips the full parse (this detector is non-idempotent and previously parsed every YAML file of the scan twice).

Class methods

tech_name

The tech name without needing an instance, so the registry can be read off the classes themselves rather than from a parallel list.

Source

Instance methods

applicable?(filename : String) : Bool

Registers every Traefik config path in CodeLocator.

Source
detect(filename : String, file_contents : String) : Bool
Source
idempotent?

Registers every Traefik config path in CodeLocator.

Source
set_name

Registers every Traefik config path in CodeLocator.

Source