Documentation
¶
Overview ¶
Package kgateway holds the parts of the kgateway pack: its kinds, detector, checks and per-install hooks. pkg/extension assembles them into the pack that extension.New adds to the core; this package does not import it.
Index ¶
- Constants
- func BackendConsumers(_ install.Install, owned *install.Owned) []objects.Consumer
- func Checks() []health.Check
- func Claimed(insts []install.Install, pack string) []install.Install
- func Conditions() health.ConditionTypes
- func Detector() install.Detector
- func ExperimentalOnly(k kinds.Served, i install.Install) bool
- func Features() []string
- func Kinds() []kinds.Descriptor
- func LatestStats(store *collect.Store) (proxystats.Stats, ctrllogs.StatsState)
- func ProxyMode() proxymode.Resolver
- func Reported(i install.Install, col collect.Snapshot) (string, bool)
- func RulesFor(version string) computed.Selection
- func Scope() install.ScopeProvider
- func Settings(i install.Install) install.Settings
- func Version(i install.Install) string
Constants ¶
const Name = "kgateway"
Name is the pack name, stamped on each install its detector claims.
Variables ¶
This section is empty.
Functions ¶
func BackendConsumers ¶ added in v0.7.0
BackendConsumers lists the backends the install's GatewayExtensions use, in listed order, one per backendRef that names a backend.
func Conditions ¶
func Conditions() health.ConditionTypes
Conditions are kgateway's route condition types beyond Gateway API's.
func ExperimentalOnly ¶
ExperimentalOnly reports whether the install's controller watches k only with experimental Gateway API features on, from the table in pkg/kinds.
func Features ¶
func Features() []string
Features are the kgateway pack's UI features, named as api.Feature* names them.
func Kinds ¶
func Kinds() []kinds.Descriptor
Kinds returns kgateway's own kinds (group gateway.kgateway.dev), in the order of kinds.Upstream.
func LatestStats ¶
func LatestStats(store *collect.Store) (proxystats.Stats, ctrllogs.StatsState)
LatestStats is the proxy stats value in store for the log collector: pending until the first value lands, so the backfill meets its names.
func Reported ¶
Reported is the version the install's controller reports in kgateway_build_info, read from the controller metrics value in col.
func Scope ¶
func Scope() install.ScopeProvider
Scope returns the scope provider that reads kgateway's discoveryNamespaceSelectors.
Types ¶
This section is empty.