instance

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceUpdates

type InstanceUpdates struct {
	NewInstances     []*mpi.Instance
	UpdatedInstances []*mpi.Instance
	DeletedInstances []*mpi.Instance
}

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

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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