Documentation
¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=netpol.k8s.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: netpol.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type DanmNetworkPolicy ¶
type DanmNetworkPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec NetPolSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*DanmNetworkPolicy) DeepCopy ¶
func (in *DanmNetworkPolicy) DeepCopy() *DanmNetworkPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DanmNetworkPolicy.
func (*DanmNetworkPolicy) DeepCopyInto ¶
func (in *DanmNetworkPolicy) DeepCopyInto(out *DanmNetworkPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DanmNetworkPolicy) DeepCopyObject ¶
func (in *DanmNetworkPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DanmNetworkPolicyList ¶
type DanmNetworkPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []DanmNetworkPolicy `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*DanmNetworkPolicyList) DeepCopy ¶
func (in *DanmNetworkPolicyList) DeepCopy() *DanmNetworkPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DanmNetworkPolicyList.
func (*DanmNetworkPolicyList) DeepCopyInto ¶
func (in *DanmNetworkPolicyList) DeepCopyInto(out *DanmNetworkPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DanmNetworkPolicyList) DeepCopyObject ¶
func (in *DanmNetworkPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetPolSpec ¶
type NetPolSpec struct { PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"` Ingress []NetworkPolicyIngressRule `json:"ingress,omitempty" protobuf:"bytes,2,rep,name=ingress"` Egress []NetworkPolicyEgressRule `json:"egress,omitempty" protobuf:"bytes,3,rep,name=egress"` PolicyTypes []networking.PolicyType `json:"policyTypes,omitempty" protobuf:"bytes,4,rep,name=policyTypes"` }
func (*NetPolSpec) DeepCopy ¶
func (in *NetPolSpec) DeepCopy() *NetPolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetPolSpec.
func (*NetPolSpec) DeepCopyInto ¶
func (in *NetPolSpec) DeepCopyInto(out *NetPolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicyEgressRule ¶
type NetworkPolicyEgressRule struct { Ports []networking.NetworkPolicyPort `json:"ports,omitempty" protobuf:"bytes,1,rep,name=ports"` To []NetworkPolicyPeer `json:"to,omitempty" protobuf:"bytes,2,rep,name=to"` }
func (*NetworkPolicyEgressRule) DeepCopy ¶
func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
func (*NetworkPolicyEgressRule) DeepCopyInto ¶
func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicyIngressRule ¶
type NetworkPolicyIngressRule struct { Ports []networking.NetworkPolicyPort `json:"ports,omitempty" protobuf:"bytes,1,rep,name=ports"` From []NetworkPolicyPeer `json:"from,omitempty" protobuf:"bytes,2,rep,name=from"` }
func (*NetworkPolicyIngressRule) DeepCopy ¶
func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
func (*NetworkPolicyIngressRule) DeepCopyInto ¶
func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicyPeer ¶
type NetworkPolicyPeer struct { PodSelector metav1.LabelSelector `json:"podSelector,omitempty" protobuf:"bytes,1,opt,name=podSelector"` NamespaceSelector metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,2,opt,name=namespaceSelector"` NetworkSelector []NetworkSelector `json:"networkSelector,omitempty" protobuf:"bytes,3,opt,name=networkSelector"` }
func (*NetworkPolicyPeer) DeepCopy ¶
func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
func (*NetworkPolicyPeer) DeepCopyInto ¶
func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkSelector ¶
type NetworkSelector struct { Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` Type string `json:"type,omitempty" protobuf:"bytes,2,opt,name=type"` }
func (*NetworkSelector) DeepCopy ¶
func (in *NetworkSelector) DeepCopy() *NetworkSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkSelector.
func (*NetworkSelector) DeepCopyInto ¶
func (in *NetworkSelector) DeepCopyInto(out *NetworkSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.