trireme-lib: Index | Files

package supervisorproxy

import ""

Package supervisorproxy package implements the supervisor interface and forwards the requests on this interface to a remote supervisor over an rpc call.


Package Files

supervisorproxy.go supervisorproxymock.go

func NewTestSupervisorLauncher Uses

func NewTestSupervisorLauncher() supervisor.Supervisor

NewTestSupervisorLauncher creates a mock supervisor

type ProxyInfo Uses

type ProxyInfo struct{}

ProxyInfo is a struct used to store state for the remote launcher.

func NewProxySupervisor Uses

func NewProxySupervisor() *ProxyInfo

NewProxySupervisor creates a new IptablesSupervisor launcher

func (*ProxyInfo) CleanUp Uses

func (s *ProxyInfo) CleanUp() error

CleanUp implements the cleanup interface, but it doesn't need to do anything.

func (*ProxyInfo) EnableIPTablesPacketTracing Uses

func (s *ProxyInfo) EnableIPTablesPacketTracing(ctx context.Context, contextID string, interval time.Duration) error

EnableIPTablesPacketTracing enable iptables tracing

func (*ProxyInfo) Run Uses

func (s *ProxyInfo) Run(ctx context.Context) error

Run runs the proxy supervisor and initializes the cleaners.

func (*ProxyInfo) SetTargetNetworks Uses

func (s *ProxyInfo) SetTargetNetworks(cfg *runtime.Configuration) error

SetTargetNetworks sets the target networks in case of an update

func (*ProxyInfo) Supervise Uses

func (s *ProxyInfo) Supervise(contextID string, puInfo *policy.PUInfo) error

Supervise just keeps track of the active remotes so that it can initiate updates.

func (*ProxyInfo) Unsupervise Uses

func (s *ProxyInfo) Unsupervise(contextID string) error

Unsupervise just keeps track of the active remotes so

type TestSupervisorLauncher Uses

type TestSupervisorLauncher interface {

TestSupervisorLauncher is a mock

Package supervisorproxy imports 7 packages (graph) and is imported by 2 packages. Updated 2019-03-28. Refresh now. Tools for package owners.