Files
openlan/pkg/schema/acl.go
2022-07-29 23:38:54 +08:00

17 lines
337 B
Go
Executable File

package schema
type ACL struct {
Name string `json:"name"`
Rules []ACLRule `json:"rules"`
}
type ACLRule struct {
Name string `json:"name"`
SrcIp string `json:"src"`
DstIp string `json:"dst"`
Proto string `json:"proto"`
SrcPort int `json:"sport"`
DstPort int `json:"dport"`
Action string `json:"action"`
}