|
|
@ -19,6 +19,7 @@ import (
|
|
|
|
// Only one of Src/Dst or Users/Ports may be specified.
|
|
|
|
// Only one of Src/Dst or Users/Ports may be specified.
|
|
|
|
type ACLRow struct {
|
|
|
|
type ACLRow struct {
|
|
|
|
Action string `json:"action,omitempty"` // valid values: "accept"
|
|
|
|
Action string `json:"action,omitempty"` // valid values: "accept"
|
|
|
|
|
|
|
|
Proto string `json:"proto,omitempty"` // protocol
|
|
|
|
Users []string `json:"users,omitempty"` // old name for src
|
|
|
|
Users []string `json:"users,omitempty"` // old name for src
|
|
|
|
Ports []string `json:"ports,omitempty"` // old name for dst
|
|
|
|
Ports []string `json:"ports,omitempty"` // old name for dst
|
|
|
|
Src []string `json:"src,omitempty"`
|
|
|
|
Src []string `json:"src,omitempty"`
|
|
|
@ -31,6 +32,7 @@ type ACLRow struct {
|
|
|
|
type ACLTest struct {
|
|
|
|
type ACLTest struct {
|
|
|
|
Src string `json:"src,omitempty"` // source
|
|
|
|
Src string `json:"src,omitempty"` // source
|
|
|
|
User string `json:"user,omitempty"` // old name for source
|
|
|
|
User string `json:"user,omitempty"` // old name for source
|
|
|
|
|
|
|
|
Proto string `json:"proto,omitempty"` // protocol
|
|
|
|
Accept []string `json:"accept,omitempty"` // expected destination ip:port that user can access
|
|
|
|
Accept []string `json:"accept,omitempty"` // expected destination ip:port that user can access
|
|
|
|
Deny []string `json:"deny,omitempty"` // expected destination ip:port that user cannot access
|
|
|
|
Deny []string `json:"deny,omitempty"` // expected destination ip:port that user cannot access
|
|
|
|
|
|
|
|
|
|
|
|