Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelSelector ¶
type LabelSelector struct { MatchLabels map[string]string MatchExpressions []LabelSelectorRequirement // metav1.LabelSelectorRequirement }
type LabelSelectorOperator ¶
type LabelSelectorOperator string
const ( LabelSelectorOpIn LabelSelectorOperator = "In" LabelSelectorOpNotIn LabelSelectorOperator = "NotIn" LabelSelectorOpExists LabelSelectorOperator = "Exists" LabelSelectorOpDoesNotExist LabelSelectorOperator = "DoesNotExist" )
type LabelSelectorRequirement ¶
type LabelSelectorRequirement struct { Key string Operator LabelSelectorOperator // metav1.LabelSelectorOperator Values []string }
type NetworkPolicyEgressRule ¶
type NetworkPolicyEgressRule struct { Ports []NetworkPolicyPort To []NetworkPolicyPeer }
type NetworkPolicyIngressRule ¶
type NetworkPolicyIngressRule struct { Ports []NetworkPolicyPort // networkingv1.NetworkPolicyPort From []NetworkPolicyPeer // networkingv1.NetworkPolicyPeer }
type NetworkPolicyPeer ¶
type NetworkPolicyPeer struct { PodSelector *LabelSelector // metav1.LabelSelector NamespaceSelector *LabelSelector // metav1.LabelSelector IPBlock *IPBlock // networkingv1.IPBlock }
type NetworkPolicyPort ¶
type NetworkPolicyPort struct { Protocol *Protocol // v1.Protocol Port *intstr.IntOrString }
type NetworkPolicySpec ¶
type NetworkPolicySpec struct { PodSelector LabelSelector // metav1.LabelSelector Ingress []NetworkPolicyIngressRule // networkingv1.NetworkPolicyIngressRule Egress []NetworkPolicyEgressRule // networkingv1.NetworkPolicyEgressRule PolicyTypes []PolicyType // networkingv1.PolicyType }
type PolicyType ¶
type PolicyType string
const ( PolicyTypeIngress PolicyType = "Ingress" PolicyTypeEgress PolicyType = "Egress" )
Click to show internal directories.
Click to hide internal directories.