filament

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filament

type Filament interface {
	// Run consumes all events from the kernel event stream and dispatches them to the filament.
	Run(chan *kevent.Kevent, chan error) error
	// Close shutdowns the filament by releasing all allocated resources.
	Close() error
	// Filter returns the filter compiled from filament.
	Filter() filter.Filter
}

Filament defines the set of operations all filaments have to satisfy. Filament represents a full-fledged Python interpreter that runs the modules given by users.

func New

func New(
	name string,
	psnap ps.Snapshotter,
	hsnap handle.Snapshotter,
	config *config.Config,
) (Filament, error)

New returns unsupported filament error.

type Info

type Info struct {
	Name        string
	Description string
}

Info stores metadata about the filament.

Jump to

Keyboard shortcuts

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