Documentation
¶
Index ¶
- type InstanceUpdates
- type InstanceUpdatesMessage
- type InstanceWatcherService
- func (iw *InstanceWatcherService) HandleNginxConfigContextUpdate(ctx context.Context, instanceID string, ...)
- func (iw *InstanceWatcherService) ReparseConfigs(ctx context.Context)
- func (iw *InstanceWatcherService) SetEnabled(enabled bool)
- func (iw *InstanceWatcherService) Watch(ctx context.Context, instancesChannel chan<- InstanceUpdatesMessage, ...)
- type NginxAppProtectInstanceWatcher
- type NginxConfigContextMessage
- type NginxProcessParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceUpdates ¶
type InstanceUpdatesMessage ¶
type InstanceUpdatesMessage struct { CorrelationID slog.Attr InstanceUpdates InstanceUpdates }
type InstanceWatcherService ¶
type InstanceWatcherService struct {
// contains filtered or unexported fields
}
func NewInstanceWatcherService ¶
func NewInstanceWatcherService(agentConfig *config.Config) *InstanceWatcherService
func (*InstanceWatcherService) HandleNginxConfigContextUpdate ¶
func (iw *InstanceWatcherService) HandleNginxConfigContextUpdate(ctx context.Context, instanceID string, nginxConfigContext *model.NginxConfigContext, )
func (*InstanceWatcherService) ReparseConfigs ¶
func (iw *InstanceWatcherService) ReparseConfigs(ctx context.Context)
func (*InstanceWatcherService) SetEnabled ¶
func (iw *InstanceWatcherService) SetEnabled(enabled bool)
func (*InstanceWatcherService) Watch ¶
func (iw *InstanceWatcherService) Watch( ctx context.Context, instancesChannel chan<- InstanceUpdatesMessage, nginxConfigContextChannel chan<- NginxConfigContextMessage, )
type NginxAppProtectInstanceWatcher ¶ added in v3.1.0
type NginxAppProtectInstanceWatcher struct {
// contains filtered or unexported fields
}
func NewNginxAppProtectInstanceWatcher ¶ added in v3.1.0
func NewNginxAppProtectInstanceWatcher(agentConfig *config.Config) *NginxAppProtectInstanceWatcher
func (*NginxAppProtectInstanceWatcher) Watch ¶ added in v3.1.0
func (w *NginxAppProtectInstanceWatcher) Watch(ctx context.Context, instancesChannel chan<- InstanceUpdatesMessage)
type NginxConfigContextMessage ¶
type NginxConfigContextMessage struct { CorrelationID slog.Attr NginxConfigContext *model.NginxConfigContext }
type NginxProcessParser ¶
type NginxProcessParser struct {
// contains filtered or unexported fields
}
func NewNginxProcessParser ¶
func NewNginxProcessParser() *NginxProcessParser
func (*NginxProcessParser) Parse ¶
func (npp *NginxProcessParser) Parse(ctx context.Context, processes []*nginxprocess.Process) map[string]*mpi.Instance
cognitive complexity of 16 because of the if statements in the for loop don't think can be avoided due to the need for continue
Source Files
¶
Click to show internal directories.
Click to hide internal directories.