Documentation
¶
Index ¶
- type AbstractMatchResult
- type MatchResult
- func (r *MatchResult) Action() int
- func (r *MatchResult) Cli() string
- func (r *MatchResult) FromPort() api.Port
- func (r *MatchResult) Name() string
- func (r *MatchResult) OutPort() api.Port
- func (r *MatchResult) SetAction(action int)
- func (r *MatchResult) SetCli(cli string)
- func (r *MatchResult) SetFromPort(fromPort api.Port)
- func (r *MatchResult) SetName(name string)
- func (r *MatchResult) SetOutPort(outPort api.Port)
- type NodeProcessor
- func (np *NodeProcessor) GetInEntry() policy.PolicyEntryInf
- func (np *NodeProcessor) GetLogger() zap.Logger
- func (np *NodeProcessor) GetNode() api.Node
- func (np *NodeProcessor) GetSteps() map[string]*ProcessStep
- func (np *NodeProcessor) Iterator() *StepIterator
- func (np *NodeProcessor) SetInEntry(inEntry policy.PolicyEntryInf)
- func (np *NodeProcessor) SetLogger(logger zap.Logger)
- func (np *NodeProcessor) SetNode(node api.Node)
- func (np *NodeProcessor) SetStepList(list []string) error
- func (np *NodeProcessor) SetSteps(steps map[string]*ProcessStep)
- type PhaseProcessAction
- type ProcessStep
- func (step ProcessStep) GetCli() string
- func (step ProcessStep) GetCmdList() interface{}
- func (step ProcessStep) GetPhase() int
- func (step ProcessStep) GetPhaseAction() PhaseProcessAction
- func (step ProcessStep) GetResult() AbstractMatchResult
- func (step ProcessStep) GetRule() string
- func (step *ProcessStep) WithCli(cli string) *ProcessStep
- func (step *ProcessStep) WithCmdList(cmdList interface{}) *ProcessStep
- func (step *ProcessStep) WithMatchResult(result AbstractMatchResult) *ProcessStep
- func (step *ProcessStep) WithPhaseAction(action PhaseProcessAction) *ProcessStep
- func (step *ProcessStep) WithRule(rule string) *ProcessStep
- type StepIterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractMatchResult ¶
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)
Click to show internal directories.
Click to hide internal directories.