query

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2026 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package query answers live, on-demand resource reads from the gateway.

It is the pull counterpart to the state collector: nothing is started, nothing is remembered, and no response is cached. The agent stays stateless so its memory footprint does not grow with how much anyone looks at.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor answers one ResourceQuery at a time against the Kubernetes API.

func New

func New(opts Options) (*Executor, error)

New builds an Executor.

func (*Executor) Execute

Execute answers one query. It never returns an error: the wire contract is that the agent always replies, so a failure is reported inside the result.

type Options

type Options struct {
	Clients      k8s.QueryClients
	Policy       *policy.Policy
	Logger       *logger.Logger
	Registerer   prometheus.Registerer
	MaxInFlight  int
	MaxQueued    int
	MaxBytes     int
	DefaultLimit int32
}

Options configures an Executor. Only Clients and Policy are required.

Directories

Path Synopsis
Package policy decides whether a live resource query is permitted by the cluster owner's agent configuration.
Package policy decides whether a live resource query is permitted by the cluster owner's agent configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL