erctl

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlowType  = "flow"
	GroupType = "group"
)

Variables

This section is empty.

Functions

func ConnectClient

func ConnectClient() error

func ConnectFlow

func ConnectFlow() error

func ConnectRule

func ConnectRule(show bool) error

func GetFlows

func GetFlows(dp bool, names ...string) (map[string][]string, error)

func GetIPNet

func GetIPNet(ip string) *net.IPNet

func GetOvsPipeline

func GetOvsPipeline(brNameSuffix string, pType string, args ...string) ([]string, error)

func GetSvcInfoBySvcID

func GetSvcInfoBySvcID(svcID string) (*v1alpha1.SvcInfo, error)

Types

type Rule

type Rule struct {
	*v1alpha1.RuleEntry
	Count   int     `json:"Count,omitempty"`
	CTFlows []tuple `json:"CTFlows,omitempty"`
}

func GetAllRules

func GetAllRules() ([]*Rule, error)

func GetRulesByFlow

func GetRulesByFlow(flowIDs []int64) ([]*Rule, error)

func GetRulesByName

func GetRulesByName(ruleIDs []string) ([]*Rule, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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