server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeObserver added in v0.9.0

type FakeObserver struct{}

func (*FakeObserver) AddTracingPolicy added in v0.9.0

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

func (*FakeObserver) DelTracingPolicy added in v0.9.0

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

func (*FakeObserver) DisableSensor added in v0.9.0

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

func (*FakeObserver) EnableSensor added in v0.9.0

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

func (*FakeObserver) GetSensorConfig added in v0.9.0

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

func (*FakeObserver) GetTreeProto added in v0.9.0

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

func (*FakeObserver) ListSensors added in v0.9.0

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

func (*FakeObserver) ListTracingPolicies added in v0.9.0

func (f *FakeObserver) ListTracingPolicies(ctx context.Context) (*tetragon.ListTracingPoliciesResponse, error)

func (*FakeObserver) RemoveSensor added in v0.9.0

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

func (*FakeObserver) SetSensorConfig added in v0.9.0

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) ListTracingPolicies added in v0.9.0

func (*Server) NotifyListeners

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

func (*Server) RemoveSensor

func (*Server) RuntimeHook added in v0.9.0

Jump to

Keyboard shortcuts

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