podagent

package
v0.0.3-alpha3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(l *zap.SugaredLogger)

Types

type PodAgent

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

func NewPodAgent

func NewPodAgent(clusterAgentAddress string) *PodAgent

func (*PodAgent) Dial

func (p *PodAgent) Dial()

func (*PodAgent) EnableRegisterFiles

func (p *PodAgent) EnableRegisterFiles()

func (*PodAgent) EnableRegisterProcesses

func (p *PodAgent) EnableRegisterProcesses()

func (*PodAgent) GetConstraints

func (p *PodAgent) GetConstraints() []*tarianpb.Constraint

func (*PodAgent) GracefulStop

func (p *PodAgent) GracefulStop()

func (*PodAgent) RegisterViolationsAsNewConstraint

func (p *PodAgent) RegisterViolationsAsNewConstraint(processes map[int32]*Process)

func (*PodAgent) ReportViolatedFilesToClusterAgent

func (p *PodAgent) ReportViolatedFilesToClusterAgent(violatedFiles map[string]*violatedFile)

func (*PodAgent) ReportViolationsToClusterAgent

func (p *PodAgent) ReportViolationsToClusterAgent(processes map[int32]*Process)

func (*PodAgent) RunRegister

func (p *PodAgent) RunRegister()

func (*PodAgent) RunThreatScan

func (p *PodAgent) RunThreatScan()

func (*PodAgent) SetConstraints

func (p *PodAgent) SetConstraints(constraints []*tarianpb.Constraint)

func (*PodAgent) SetFileValidationInterval

func (p *PodAgent) SetFileValidationInterval(t time.Duration)

func (*PodAgent) SetNamespace

func (p *PodAgent) SetNamespace(namespace string)

func (*PodAgent) SetPodLabels

func (p *PodAgent) SetPodLabels(labels []*tarianpb.Label)

func (*PodAgent) SetPodName

func (p *PodAgent) SetPodName(name string)

func (*PodAgent) SetRegisterFileIgnorePaths

func (p *PodAgent) SetRegisterFileIgnorePaths(paths []string)

func (*PodAgent) SetRegisterFilePaths

func (p *PodAgent) SetRegisterFilePaths(paths []string)

func (*PodAgent) SetpodUID

func (p *PodAgent) SetpodUID(uid string)

func (*PodAgent) SyncConstraints

func (p *PodAgent) SyncConstraints()

func (*PodAgent) ValidateProcesses

func (p *PodAgent) ValidateProcesses(processes []*Process) map[int32]*Process

type Process

type Process struct {
	Pid  int32
	Name string
}

func NewProcessFromPsutil

func NewProcessFromPsutil(p *psutil.Process) *Process

func NewProcessesFromPsutil

func NewProcessesFromPsutil(ps []*psutil.Process) []*Process

func (*Process) GetName

func (p *Process) GetName() string

func (*Process) GetPid

func (p *Process) GetPid() int32

Jump to

Keyboard shortcuts

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