Documentation
¶
Overview ¶
Package postures wires the posture.Registry into the engine as a plugin (nexus.agent.postures). It loads postures from one or more on-disk directories at startup and watches those directories with fsnotify so operators can edit posture YAML in production without restarting.
Other plugins consume the registry by requiring the "posture.registry" capability; the registry is exposed via a typed accessor on the plugin instance, looked up through the engine's plugin lookup helpers.
Index ¶
- func New() engine.Plugin
- type Plugin
- func (p *Plugin) Capabilities() []engine.Capability
- func (p *Plugin) ConfigSchema() []byte
- func (p *Plugin) Dependencies() []string
- func (p *Plugin) Emissions() []string
- func (p *Plugin) ID() string
- func (p *Plugin) Init(ctx engine.PluginContext) error
- func (p *Plugin) Name() string
- func (p *Plugin) Ready() error
- func (p *Plugin) Registry() posture.Registry
- func (p *Plugin) Requires() []engine.Requirement
- func (p *Plugin) Shutdown(_ context.Context) error
- func (p *Plugin) Subscriptions() []engine.EventSubscription
- func (p *Plugin) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin loads AgentPosture YAML and exposes a posture.Registry to other plugins via the "posture.registry" capability. The registry itself is the goroutine-safe in-memory implementation from pkg/posture.
func (*Plugin) Capabilities ¶
func (p *Plugin) Capabilities() []engine.Capability
func (*Plugin) ConfigSchema ¶
ConfigSchema implements engine.ConfigSchemaProvider.
func (*Plugin) Dependencies ¶
func (*Plugin) Registry ¶
Registry exposes the loaded posture registry to other plugins that resolve this provider through the engine's plugin lookup. Returns the underlying registry — implementations are goroutine-safe.
func (*Plugin) Requires ¶
func (p *Plugin) Requires() []engine.Requirement
func (*Plugin) Subscriptions ¶
func (p *Plugin) Subscriptions() []engine.EventSubscription