server

package
v0.8.19 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeObserver

type FakeObserver struct{}

func (*FakeObserver) AddTracingPolicy

func (f *FakeObserver) AddTracingPolicy(ctx context.Context, tp tracingpolicy.TracingPolicy) error

func (*FakeObserver) DelTracingPolicy

func (f *FakeObserver) DelTracingPolicy(ctx context.Context, sensorName string) error

func (*FakeObserver) DisableSensor

func (f *FakeObserver) DisableSensor(ctx context.Context, name string) error

func (*FakeObserver) EnableSensor

func (f *FakeObserver) EnableSensor(ctx context.Context, name string) error

func (*FakeObserver) GetSensorConfig

func (f *FakeObserver) GetSensorConfig(ctx context.Context, k string, v string) (string, error)

func (*FakeObserver) GetTreeProto

func (f *FakeObserver) GetTreeProto(ctx context.Context, tname string) (*tetragon.StackTraceNode, error)

func (*FakeObserver) ListSensors

func (f *FakeObserver) ListSensors(ctx context.Context) (*[]sensors.SensorStatus, error)

func (*FakeObserver) RemoveSensor

func (f *FakeObserver) RemoveSensor(ctx context.Context, sensorName string) error

func (*FakeObserver) SetSensorConfig

func (f *FakeObserver) SetSensorConfig(ctx context.Context, name string, cfgkey string, cfgval string) error

type Listener

type Listener interface {
	Notify(res *tetragon.GetEventsResponse)
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, cleanupWg *sync.WaitGroup, notifier notifier, observer observer, hookRunner hookRunner) *Server

func (*Server) DisableSensor

func (*Server) EnableSensor

func (*Server) GetEvents

func (*Server) GetEventsWG

func (s *Server) GetEventsWG(request *tetragon.GetEventsRequest, server tetragon.FineGuidanceSensors_GetEventsServer, closer io.Closer, readyWG *sync.WaitGroup) error

func (*Server) GetHealth

func (*Server) GetVersion

func (*Server) ListSensors

func (*Server) NotifyListeners

func (s *Server) NotifyListeners(original interface{}, processed *tetragon.GetEventsResponse)

func (*Server) RemoveSensor

func (*Server) RuntimeHook added in v0.8.7

Jump to

Keyboard shortcuts

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