supervisornoop

package
v10.275.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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

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

Jump to

Keyboard shortcuts

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