22 строки
425 B
Go
22 строки
425 B
Go
package policy
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
const (
|
|
NetworkPolicy CNIPolicyType = "NetworkPolicy"
|
|
EndpointPolicy CNIPolicyType = "EndpointPolicy"
|
|
OutBoundNatPolicy CNIPolicyType = "OutBoundNAT"
|
|
RoutePolicy CNIPolicyType = "ROUTE"
|
|
PortMappingPolicy CNIPolicyType = "NAT"
|
|
ACLPolicy CNIPolicyType = "ACL"
|
|
)
|
|
|
|
type CNIPolicyType string
|
|
|
|
type Policy struct {
|
|
Type CNIPolicyType
|
|
Data json.RawMessage
|
|
}
|