Documentation ¶
Index ¶
- func AggregateLabels(labels ...*schema.Label) map[string]string
- func Ipv4ToUint32(ip net.IP) uint32
- func LabelAsReference(labels ...*schema.Label) []schema.ObjectReference
- func LabelsAsSelector(selectors ...*schema.Label) *labels.Selector
- func NetworkPolicyRuleAddPorts(rule *schema.NetworkPolicyRule, ports ...schema.NetworkPolicyRulePort)
- func NetworkPolicyRuleAddServices(rule *schema.NetworkPolicyRule, svcIDs ...string)
- func NetworkPolicyRuleDelServices(rule *schema.NetworkPolicyRule, svcIDs ...string)
- func NewEverouteCluster(erClusterID string, defaultAction schema.GlobalPolicyAction) *schema.EverouteCluster
- func NewGlobalWhitelist() *schema.EverouteClusterWhitelist
- func NewIsolationPolicy(everouteCluster string, vm *schema.VM, isolationMode schema.IsolationMode) *schema.IsolationPolicy
- func NewLabel(key string, value string) *schema.Label
- func NewNetworkPolicyRule(protocol, port string, ipBlock *networkingv1.IPBlock, ...) *schema.NetworkPolicyRule
- func NewNetworkPolicyRulePort(protocol, algProtocol, port string) *schema.NetworkPolicyRulePort
- func NewRandomHost() *schema.Host
- func NewRandomIP() net.IP
- func NewRandomIPBlock() *networkingv1.IPBlock
- func NewRandomLabel() *schema.Label
- func NewRandomNicAttachedTo(host *schema.Host, name string) *schema.Nic
- func NewRandomVM() *schema.VM
- func NewRandomVMNicAttachedTo(vm *schema.VM) *schema.VMNic
- func NewSecurityGroup(clusterID string) *schema.SecurityGroup
- func NewSecurityPolicy(everouteCluster string, communicable bool, group *schema.SecurityGroup, ...) *schema.SecurityPolicy
- func NewSecurityPolicyApplyPeer(endpoint string, selectors ...*schema.Label) v1alpha1.ApplyToPeer
- func NewSecurityPolicyRuleEgress(protocol, port string, ipBlock []*networkingv1.IPBlock, ...) *v1alpha1.Rule
- func NewSecurityPolicyRuleIngress(protocol, port string, ipBlock []*networkingv1.IPBlock, ...) *v1alpha1.Rule
- func NewService(rulePorts ...schema.NetworkPolicyRulePort) *schema.NetworkPolicyRuleService
- func NewSystemEndpoints(endpointNum int) *schema.SystemEndpoints
- func NewTask(status schema.TaskStatus) *schema.Task
- func RuleAddPorts(rule *v1alpha1.Rule, portInfo ...string)
- func RuleSetDisableSymmetric(rule *v1alpha1.Rule, disableSymmetric bool)
- func Uint32ToIpv4(ip uint32) net.IP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ipv4ToUint32 ¶
func LabelAsReference ¶
func LabelAsReference(labels ...*schema.Label) []schema.ObjectReference
func NetworkPolicyRuleAddPorts ¶
func NetworkPolicyRuleAddPorts(rule *schema.NetworkPolicyRule, ports ...schema.NetworkPolicyRulePort)
func NetworkPolicyRuleAddServices ¶
func NetworkPolicyRuleAddServices(rule *schema.NetworkPolicyRule, svcIDs ...string)
func NetworkPolicyRuleDelServices ¶
func NetworkPolicyRuleDelServices(rule *schema.NetworkPolicyRule, svcIDs ...string)
func NewEverouteCluster ¶
func NewEverouteCluster(erClusterID string, defaultAction schema.GlobalPolicyAction) *schema.EverouteCluster
func NewGlobalWhitelist ¶
func NewGlobalWhitelist() *schema.EverouteClusterWhitelist
func NewIsolationPolicy ¶
func NewIsolationPolicy(everouteCluster string, vm *schema.VM, isolationMode schema.IsolationMode) *schema.IsolationPolicy
func NewNetworkPolicyRule ¶
func NewNetworkPolicyRule(protocol, port string, ipBlock *networkingv1.IPBlock, selectors ...*schema.Label) *schema.NetworkPolicyRule
func NewNetworkPolicyRulePort ¶
func NewNetworkPolicyRulePort(protocol, algProtocol, port string) *schema.NetworkPolicyRulePort
func NewRandomIP ¶
func NewRandomIPBlock ¶
func NewRandomIPBlock() *networkingv1.IPBlock
func NewRandomLabel ¶
func NewRandomNicAttachedTo ¶
NewRandomNicAttachedTo creates a random NIC attached to the given Host
func NewRandomVM ¶
func NewSecurityGroup ¶
func NewSecurityGroup(clusterID string) *schema.SecurityGroup
func NewSecurityPolicy ¶
func NewSecurityPolicy(everouteCluster string, communicable bool, group *schema.SecurityGroup, selectors ...*schema.Label) *schema.SecurityPolicy
func NewSecurityPolicyApplyPeer ¶
func NewSecurityPolicyApplyPeer(endpoint string, selectors ...*schema.Label) v1alpha1.ApplyToPeer
func NewService ¶
func NewService(rulePorts ...schema.NetworkPolicyRulePort) *schema.NetworkPolicyRuleService
func NewSystemEndpoints ¶
func NewSystemEndpoints(endpointNum int) *schema.SystemEndpoints
func RuleAddPorts ¶
func RuleSetDisableSymmetric ¶
func Uint32ToIpv4 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.