tags

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppImageHandler

type AppImageHandler struct{}

AppImageHandler handles AppImage processes on Unix systems.

func (*AppImageHandler) AddTags

func (h *AppImageHandler) AddTags(p *process.Process)

AddTags adds tags to the given process.

func (*AppImageHandler) CreateProfile

func (h *AppImageHandler) CreateProfile(p *process.Process) *profile.Profile

CreateProfile creates a profile based on the tags of the process. Returns nil to skip.

func (*AppImageHandler) Name

func (h *AppImageHandler) Name() string

Name returns the tag handler name.

func (*AppImageHandler) TagDescriptions

func (h *AppImageHandler) TagDescriptions() []process.TagDescription

TagDescriptions returns a list of all possible tags and their description of this handler.

type InterpHandler

type InterpHandler struct{}

InterpHandler supports adding process tags based on well-known interpreter binaries.

func (*InterpHandler) AddTags

func (h *InterpHandler) AddTags(p *process.Process)

AddTags inspects the process p and adds any interpreter tags that InterpHandler detects.

func (*InterpHandler) CreateProfile

func (h *InterpHandler) CreateProfile(p *process.Process) *profile.Profile

CreateProfile creates a new profile for any process that has a tag created by InterpHandler.

func (*InterpHandler) Name

func (h *InterpHandler) Name() string

Name returns "Interpreter".

func (*InterpHandler) TagDescriptions

func (h *InterpHandler) TagDescriptions() []process.TagDescription

TagDescriptions returns a set of tag descriptions that InterpHandler provides.

type NetworkHandler

type NetworkHandler struct{}

NetworkHandler handles AppImage processes on Unix systems.

func (*NetworkHandler) AddTags

func (h *NetworkHandler) AddTags(p *process.Process)

AddTags adds tags to the given process.

func (*NetworkHandler) CreateProfile

func (h *NetworkHandler) CreateProfile(p *process.Process) *profile.Profile

CreateProfile creates a profile based on the tags of the process. Returns nil to skip.

func (*NetworkHandler) Name

func (h *NetworkHandler) Name() string

Name returns the tag handler name.

func (*NetworkHandler) TagDescriptions

func (h *NetworkHandler) TagDescriptions() []process.TagDescription

TagDescriptions returns a list of all possible tags and their description of this handler.

type SnapHandler

type SnapHandler struct{}

SnapHandler handles Snap processes on Unix systems.

func (*SnapHandler) AddTags

func (h *SnapHandler) AddTags(p *process.Process)

AddTags adds tags to the given process.

func (*SnapHandler) CreateProfile

func (h *SnapHandler) CreateProfile(p *process.Process) *profile.Profile

CreateProfile creates a profile based on the tags of the process. Returns nil to skip.

func (*SnapHandler) Name

func (h *SnapHandler) Name() string

Name returns the tag handler name.

func (*SnapHandler) TagDescriptions

func (h *SnapHandler) TagDescriptions() []process.TagDescription

TagDescriptions returns a list of all possible tags and their description of this handler.

Jump to

Keyboard shortcuts

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