processor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractMatchResult

type AbstractMatchResult interface {
	FromPort() api.Port
	OutPort() api.Port
	Action() int
	Name() string
	Cli() string
}

type MatchResult

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

func (*MatchResult) Action

func (r *MatchResult) Action() int

func (*MatchResult) Cli

func (r *MatchResult) Cli() string

func (*MatchResult) FromPort

func (r *MatchResult) FromPort() api.Port

func (*MatchResult) Name

func (r *MatchResult) Name() string

func (*MatchResult) OutPort

func (r *MatchResult) OutPort() api.Port

func (*MatchResult) SetAction

func (r *MatchResult) SetAction(action int)

func (*MatchResult) SetCli

func (r *MatchResult) SetCli(cli string)

func (*MatchResult) SetFromPort

func (r *MatchResult) SetFromPort(fromPort api.Port)

func (*MatchResult) SetName

func (r *MatchResult) SetName(name string)

func (*MatchResult) SetOutPort

func (r *MatchResult) SetOutPort(outPort api.Port)

type NodeProcessor

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

func (*NodeProcessor) GetInEntry

func (np *NodeProcessor) GetInEntry() policy.PolicyEntryInf

func (*NodeProcessor) GetLogger

func (np *NodeProcessor) GetLogger() zap.Logger

func (*NodeProcessor) GetNode

func (np *NodeProcessor) GetNode() api.Node

func (*NodeProcessor) GetSteps

func (np *NodeProcessor) GetSteps() map[string]*ProcessStep

func (*NodeProcessor) Iterator

func (np *NodeProcessor) Iterator() *StepIterator

func (*NodeProcessor) SetInEntry

func (np *NodeProcessor) SetInEntry(inEntry policy.PolicyEntryInf)

func (*NodeProcessor) SetLogger

func (np *NodeProcessor) SetLogger(logger zap.Logger)

func (*NodeProcessor) SetNode

func (np *NodeProcessor) SetNode(node api.Node)

func (*NodeProcessor) SetStepList

func (np *NodeProcessor) SetStepList(list []string) error

func (*NodeProcessor) SetSteps

func (np *NodeProcessor) SetSteps(steps map[string]*ProcessStep)

type PhaseProcessAction

type PhaseProcessAction int
const (
	PHASE_MATCHED PhaseProcessAction
	PHASE_GENERATED
)

type ProcessStep

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

func NewProcessStep

func NewProcessStep(phase int) *ProcessStep

func (ProcessStep) GetCli

func (step ProcessStep) GetCli() string

func (ProcessStep) GetCmdList

func (step ProcessStep) GetCmdList() interface{}

func (ProcessStep) GetPhase

func (step ProcessStep) GetPhase() int

func (ProcessStep) GetPhaseAction

func (step ProcessStep) GetPhaseAction() PhaseProcessAction

func (ProcessStep) GetResult

func (step ProcessStep) GetResult() AbstractMatchResult

func (ProcessStep) GetRule

func (step ProcessStep) GetRule() string

func (*ProcessStep) WithCli

func (step *ProcessStep) WithCli(cli string) *ProcessStep

func (*ProcessStep) WithCmdList

func (step *ProcessStep) WithCmdList(cmdList interface{}) *ProcessStep

func (*ProcessStep) WithMatchResult

func (step *ProcessStep) WithMatchResult(result AbstractMatchResult) *ProcessStep

func (*ProcessStep) WithPhaseAction

func (step *ProcessStep) WithPhaseAction(action PhaseProcessAction) *ProcessStep

func (*ProcessStep) WithRule

func (step *ProcessStep) WithRule(rule string) *ProcessStep

type StepIterator

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

func (*StepIterator) HasNext

func (it *StepIterator) HasNext() bool

func (*StepIterator) Next

func (it *StepIterator) Next() (string, *ProcessStep)

Jump to

Keyboard shortcuts

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