Documentation
¶
Overview ¶
Package kerneltelemetry serves the KernelTelemetry contract (sdk/api/kerneltelemetry/v1, docs/architecture/kernel-caches.md) to official packages: the telemetry the kernel computes and caches in its memory, read through the same function and cache as the kernel's legacy handlers. Every call is authorized for its capability against the calling host's current generation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer interface {
AuthorizeCapability(ctx context.Context, host packagebridge.HostIdentity, capability string) error
}
Authorizer admits a calling host to a capability.
type Server ¶
type Server struct {
DB *gorm.DB
Authorizer Authorizer
}
Server holds what every host's KernelTelemetry calls share.
func (*Server) For ¶
func (s *Server) For(host packagebridge.HostIdentity) kerneltelemetryv1.KernelTelemetryServer
For returns the KernelTelemetry server that host reaches; it has the shape of packagebridge.KernelTelemetryProvider.
Click to show internal directories.
Click to hide internal directories.