Documentation ¶
Overview ¶
Package supervisornoop implements the supervisor interface with no operations. This is currently being used in two places: 1. for the supervisor proxy that actually does not need to take any action as a complement to the enforcer proxy 2. for enforcer implementations that do not need a supervisor to program the networks (e.g. the remote envoy authorizer enforcer)
Index ¶
- type NoopSupervisor
- func (s *NoopSupervisor) CleanUp() error
- func (s *NoopSupervisor) EnableIPTablesPacketTracing(ctx context.Context, contextID string, interval time.Duration) error
- func (s *NoopSupervisor) Run(ctx context.Context) error
- func (s *NoopSupervisor) SetTargetNetworks(cfg *runtime.Configuration) error
- func (s *NoopSupervisor) Supervise(contextID string, puInfo *policy.PUInfo) error
- func (s *NoopSupervisor) Unsupervise(contextID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoopSupervisor ¶
type NoopSupervisor struct{}
NoopSupervisor is a struct to hold the implementation of the Supervisor interface
func NewNoopSupervisor ¶
func NewNoopSupervisor() *NoopSupervisor
NewNoopSupervisor creates a new noop supervisor
func (*NoopSupervisor) CleanUp ¶
func (s *NoopSupervisor) CleanUp() error
CleanUp implements the cleanup interface, but it doesn't need to do anything.
func (*NoopSupervisor) EnableIPTablesPacketTracing ¶
func (s *NoopSupervisor) EnableIPTablesPacketTracing(ctx context.Context, contextID string, interval time.Duration) error
EnableIPTablesPacketTracing enable iptables tracing
func (*NoopSupervisor) Run ¶
func (s *NoopSupervisor) Run(ctx context.Context) error
Run runs the proxy supervisor and initializes the cleaners.
func (*NoopSupervisor) SetTargetNetworks ¶
func (s *NoopSupervisor) SetTargetNetworks(cfg *runtime.Configuration) error
SetTargetNetworks sets the target networks in case of an update
func (*NoopSupervisor) Supervise ¶
func (s *NoopSupervisor) Supervise(contextID string, puInfo *policy.PUInfo) error
Supervise just keeps track of the active remotes so that it can initiate updates.
func (*NoopSupervisor) Unsupervise ¶
func (s *NoopSupervisor) Unsupervise(contextID string) error
Unsupervise just keeps track of the active remotes so