Documentation
¶
Index ¶
- type Manager
- func (m *Manager) Batch(enable, disable, allow, block []string) (bool, error)
- func (m *Manager) Disable(names []string)
- func (m *Manager) Enable(names []string)
- func (m *Manager) GetActive() []string
- func (m *Manager) SetAllowed(names []string)
- func (m *Manager) SetBlocked(names []string)
- func (m *Manager) SetRegistered(names []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages which tools are visible based on open/allowlist/blocklist modes.
func (*Manager) Batch ¶
Batch performs an atomic multi-operation update. Returns an error if both allow and block are non-nil/non-empty. Returns true if the active set changed.
func (*Manager) SetAllowed ¶
SetAllowed switches to allowlist mode. Empty list resets to open mode.
func (*Manager) SetBlocked ¶
SetBlocked switches to blocklist mode. Empty list resets to open mode.
func (*Manager) SetRegistered ¶
SetRegistered sets the full list of known tool names.
Click to show internal directories.
Click to hide internal directories.