testing

package
v0.0.0-...-e1628ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateLabels

func AggregateLabels(labels ...*schema.Label) map[string]string

func LabelAsReference

func LabelAsReference(labels ...*schema.Label) []schema.ObjectReference

func LabelsAsSelector

func LabelsAsSelector(selectors ...*schema.Label) *labels.Selector

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 NewLabel

func NewLabel(key string, value string) *schema.Label

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 NewRandomHost

func NewRandomHost() *schema.Host

NewRandomHost creates a random Host

func NewRandomIP

func NewRandomIP() net.IP

func NewRandomIPBlock

func NewRandomIPBlock() *networkingv1.IPBlock

func NewRandomLabel

func NewRandomLabel() *schema.Label

func NewRandomNicAttachedTo

func NewRandomNicAttachedTo(host *schema.Host, name string) *schema.Nic

NewRandomNicAttachedTo creates a random NIC attached to the given Host

func NewRandomVM

func NewRandomVM() *schema.VM

func NewRandomVMNicAttachedTo

func NewRandomVMNicAttachedTo(vm *schema.VM) *schema.VMNic

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 NewSecurityPolicyRuleEgress

func NewSecurityPolicyRuleEgress(protocol, port string, ipBlock *networkingv1.IPBlock, selectors ...*schema.Label) *v1alpha1.Rule

func NewSecurityPolicyRuleIngress

func NewSecurityPolicyRuleIngress(protocol, port string, ipBlock *networkingv1.IPBlock, selectors ...*schema.Label) *v1alpha1.Rule

func NewSystemEndpoints

func NewSystemEndpoints(endpointNum int) *schema.SystemEndpoints

func NewTask

func NewTask(status schema.TaskStatus) *schema.Task

func RuleAddPorts

func RuleAddPorts(rule *v1alpha1.Rule, portInfo ...string)

func RuleSetDisableSymmetric

func RuleSetDisableSymmetric(rule *v1alpha1.Rule, disableSymmetric bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL