azure-container-networking/network/policy/policy.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
}