Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/networking +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=networking.k8s.io
Package v1 is a generated protocol buffer package. It is generated from these files: k8s.io/kubernetes/pkg/apis/networking/v1/generated.proto It has these top-level messages: NetworkPolicy NetworkPolicyIngressRule NetworkPolicyList NetworkPolicyPeer NetworkPolicyPort NetworkPolicySpec
Index ¶
- Constants
- Variables
- func Convert_extensions_NetworkPolicyIngressRule_To_v1_NetworkPolicyIngressRule(in *extensions.NetworkPolicyIngressRule, out *NetworkPolicyIngressRule, ...) error
- func Convert_extensions_NetworkPolicyList_To_v1_NetworkPolicyList(in *extensions.NetworkPolicyList, out *NetworkPolicyList, s conversion.Scope) error
- func Convert_extensions_NetworkPolicyPeer_To_v1_NetworkPolicyPeer(in *extensions.NetworkPolicyPeer, out *NetworkPolicyPeer, s conversion.Scope) error
- func Convert_extensions_NetworkPolicyPort_To_v1_NetworkPolicyPort(in *extensions.NetworkPolicyPort, out *NetworkPolicyPort, s conversion.Scope) error
- func Convert_extensions_NetworkPolicySpec_To_v1_NetworkPolicySpec(in *extensions.NetworkPolicySpec, out *NetworkPolicySpec, s conversion.Scope) error
- func Convert_extensions_NetworkPolicy_To_v1_NetworkPolicy(in *extensions.NetworkPolicy, out *NetworkPolicy, s conversion.Scope) error
- func Convert_networking_NetworkPolicyIngressRule_To_v1_NetworkPolicyIngressRule(in *networking.NetworkPolicyIngressRule, out *NetworkPolicyIngressRule, ...) error
- func Convert_networking_NetworkPolicyList_To_v1_NetworkPolicyList(in *networking.NetworkPolicyList, out *NetworkPolicyList, s conversion.Scope) error
- func Convert_networking_NetworkPolicyPeer_To_v1_NetworkPolicyPeer(in *networking.NetworkPolicyPeer, out *NetworkPolicyPeer, s conversion.Scope) error
- func Convert_networking_NetworkPolicyPort_To_v1_NetworkPolicyPort(in *networking.NetworkPolicyPort, out *NetworkPolicyPort, s conversion.Scope) error
- func Convert_networking_NetworkPolicySpec_To_v1_NetworkPolicySpec(in *networking.NetworkPolicySpec, out *NetworkPolicySpec, s conversion.Scope) error
- func Convert_networking_NetworkPolicy_To_v1_NetworkPolicy(in *networking.NetworkPolicy, out *NetworkPolicy, s conversion.Scope) error
- func Convert_v1_NetworkPolicyIngressRule_To_extensions_NetworkPolicyIngressRule(in *NetworkPolicyIngressRule, out *extensions.NetworkPolicyIngressRule, ...) error
- func Convert_v1_NetworkPolicyIngressRule_To_networking_NetworkPolicyIngressRule(in *NetworkPolicyIngressRule, out *networking.NetworkPolicyIngressRule, ...) error
- func Convert_v1_NetworkPolicyList_To_extensions_NetworkPolicyList(in *NetworkPolicyList, out *extensions.NetworkPolicyList, s conversion.Scope) error
- func Convert_v1_NetworkPolicyList_To_networking_NetworkPolicyList(in *NetworkPolicyList, out *networking.NetworkPolicyList, s conversion.Scope) error
- func Convert_v1_NetworkPolicyPeer_To_extensions_NetworkPolicyPeer(in *NetworkPolicyPeer, out *extensions.NetworkPolicyPeer, s conversion.Scope) error
- func Convert_v1_NetworkPolicyPeer_To_networking_NetworkPolicyPeer(in *NetworkPolicyPeer, out *networking.NetworkPolicyPeer, s conversion.Scope) error
- func Convert_v1_NetworkPolicyPort_To_extensions_NetworkPolicyPort(in *NetworkPolicyPort, out *extensions.NetworkPolicyPort, s conversion.Scope) error
- func Convert_v1_NetworkPolicyPort_To_networking_NetworkPolicyPort(in *NetworkPolicyPort, out *networking.NetworkPolicyPort, s conversion.Scope) error
- func Convert_v1_NetworkPolicySpec_To_extensions_NetworkPolicySpec(in *NetworkPolicySpec, out *extensions.NetworkPolicySpec, s conversion.Scope) error
- func Convert_v1_NetworkPolicySpec_To_networking_NetworkPolicySpec(in *NetworkPolicySpec, out *networking.NetworkPolicySpec, s conversion.Scope) error
- func Convert_v1_NetworkPolicy_To_extensions_NetworkPolicy(in *NetworkPolicy, out *extensions.NetworkPolicy, s conversion.Scope) error
- func Convert_v1_NetworkPolicy_To_networking_NetworkPolicy(in *NetworkPolicy, out *networking.NetworkPolicy, s conversion.Scope) error
- func DeepCopy_v1_NetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_v1_NetworkPolicyIngressRule(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_v1_NetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_v1_NetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_v1_NetworkPolicyPort(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_v1_NetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error
- func RegisterConversions(scheme *runtime.Scheme) error
- func RegisterDeepCopies(scheme *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_NetworkPolicyPort(obj *NetworkPolicyPort)
- func SetObjectDefaults_NetworkPolicy(in *NetworkPolicy)
- func SetObjectDefaults_NetworkPolicyList(in *NetworkPolicyList)
- type NetworkPolicy
- func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder)
- func (*NetworkPolicy) Descriptor() ([]byte, []int)
- func (m *NetworkPolicy) Marshal() (dAtA []byte, err error)
- func (m *NetworkPolicy) MarshalTo(dAtA []byte) (int, error)
- func (*NetworkPolicy) ProtoMessage()
- func (m *NetworkPolicy) Reset()
- func (m *NetworkPolicy) Size() (n int)
- func (this *NetworkPolicy) String() string
- func (NetworkPolicy) SwaggerDoc() map[string]string
- func (m *NetworkPolicy) Unmarshal(dAtA []byte) error
- type NetworkPolicyIngressRule
- func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder)
- func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int)
- func (m *NetworkPolicyIngressRule) Marshal() (dAtA []byte, err error)
- func (m *NetworkPolicyIngressRule) MarshalTo(dAtA []byte) (int, error)
- func (*NetworkPolicyIngressRule) ProtoMessage()
- func (m *NetworkPolicyIngressRule) Reset()
- func (m *NetworkPolicyIngressRule) Size() (n int)
- func (this *NetworkPolicyIngressRule) String() string
- func (NetworkPolicyIngressRule) SwaggerDoc() map[string]string
- func (m *NetworkPolicyIngressRule) Unmarshal(dAtA []byte) error
- type NetworkPolicyList
- func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder)
- func (*NetworkPolicyList) Descriptor() ([]byte, []int)
- func (m *NetworkPolicyList) Marshal() (dAtA []byte, err error)
- func (m *NetworkPolicyList) MarshalTo(dAtA []byte) (int, error)
- func (*NetworkPolicyList) ProtoMessage()
- func (m *NetworkPolicyList) Reset()
- func (m *NetworkPolicyList) Size() (n int)
- func (this *NetworkPolicyList) String() string
- func (NetworkPolicyList) SwaggerDoc() map[string]string
- func (m *NetworkPolicyList) Unmarshal(dAtA []byte) error
- type NetworkPolicyPeer
- func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder)
- func (*NetworkPolicyPeer) Descriptor() ([]byte, []int)
- func (m *NetworkPolicyPeer) Marshal() (dAtA []byte, err error)
- func (m *NetworkPolicyPeer) MarshalTo(dAtA []byte) (int, error)
- func (*NetworkPolicyPeer) ProtoMessage()
- func (m *NetworkPolicyPeer) Reset()
- func (m *NetworkPolicyPeer) Size() (n int)
- func (this *NetworkPolicyPeer) String() string
- func (NetworkPolicyPeer) SwaggerDoc() map[string]string
- func (m *NetworkPolicyPeer) Unmarshal(dAtA []byte) error
- type NetworkPolicyPort
- func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder)
- func (*NetworkPolicyPort) Descriptor() ([]byte, []int)
- func (m *NetworkPolicyPort) Marshal() (dAtA []byte, err error)
- func (m *NetworkPolicyPort) MarshalTo(dAtA []byte) (int, error)
- func (*NetworkPolicyPort) ProtoMessage()
- func (m *NetworkPolicyPort) Reset()
- func (m *NetworkPolicyPort) Size() (n int)
- func (this *NetworkPolicyPort) String() string
- func (NetworkPolicyPort) SwaggerDoc() map[string]string
- func (m *NetworkPolicyPort) Unmarshal(dAtA []byte) error
- type NetworkPolicySpec
- func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder)
- func (*NetworkPolicySpec) Descriptor() ([]byte, []int)
- func (m *NetworkPolicySpec) Marshal() (dAtA []byte, err error)
- func (m *NetworkPolicySpec) MarshalTo(dAtA []byte) (int, error)
- func (*NetworkPolicySpec) ProtoMessage()
- func (m *NetworkPolicySpec) Reset()
- func (m *NetworkPolicySpec) Size() (n int)
- func (this *NetworkPolicySpec) String() string
- func (NetworkPolicySpec) SwaggerDoc() map[string]string
- func (m *NetworkPolicySpec) Unmarshal(dAtA []byte) error
Constants ¶
const GroupName = "networking.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_extensions_NetworkPolicyIngressRule_To_v1_NetworkPolicyIngressRule ¶
func Convert_extensions_NetworkPolicyIngressRule_To_v1_NetworkPolicyIngressRule(in *extensions.NetworkPolicyIngressRule, out *NetworkPolicyIngressRule, s conversion.Scope) error
func Convert_extensions_NetworkPolicyList_To_v1_NetworkPolicyList ¶
func Convert_extensions_NetworkPolicyList_To_v1_NetworkPolicyList(in *extensions.NetworkPolicyList, out *NetworkPolicyList, s conversion.Scope) error
func Convert_extensions_NetworkPolicyPeer_To_v1_NetworkPolicyPeer ¶
func Convert_extensions_NetworkPolicyPeer_To_v1_NetworkPolicyPeer(in *extensions.NetworkPolicyPeer, out *NetworkPolicyPeer, s conversion.Scope) error
func Convert_extensions_NetworkPolicyPort_To_v1_NetworkPolicyPort ¶
func Convert_extensions_NetworkPolicyPort_To_v1_NetworkPolicyPort(in *extensions.NetworkPolicyPort, out *NetworkPolicyPort, s conversion.Scope) error
func Convert_extensions_NetworkPolicySpec_To_v1_NetworkPolicySpec ¶
func Convert_extensions_NetworkPolicySpec_To_v1_NetworkPolicySpec(in *extensions.NetworkPolicySpec, out *NetworkPolicySpec, s conversion.Scope) error
func Convert_extensions_NetworkPolicy_To_v1_NetworkPolicy ¶
func Convert_extensions_NetworkPolicy_To_v1_NetworkPolicy(in *extensions.NetworkPolicy, out *NetworkPolicy, s conversion.Scope) error
func Convert_networking_NetworkPolicyIngressRule_To_v1_NetworkPolicyIngressRule ¶
func Convert_networking_NetworkPolicyIngressRule_To_v1_NetworkPolicyIngressRule(in *networking.NetworkPolicyIngressRule, out *NetworkPolicyIngressRule, s conversion.Scope) error
Convert_networking_NetworkPolicyIngressRule_To_v1_NetworkPolicyIngressRule is an autogenerated conversion function.
func Convert_networking_NetworkPolicyList_To_v1_NetworkPolicyList ¶
func Convert_networking_NetworkPolicyList_To_v1_NetworkPolicyList(in *networking.NetworkPolicyList, out *NetworkPolicyList, s conversion.Scope) error
Convert_networking_NetworkPolicyList_To_v1_NetworkPolicyList is an autogenerated conversion function.
func Convert_networking_NetworkPolicyPeer_To_v1_NetworkPolicyPeer ¶
func Convert_networking_NetworkPolicyPeer_To_v1_NetworkPolicyPeer(in *networking.NetworkPolicyPeer, out *NetworkPolicyPeer, s conversion.Scope) error
Convert_networking_NetworkPolicyPeer_To_v1_NetworkPolicyPeer is an autogenerated conversion function.
func Convert_networking_NetworkPolicyPort_To_v1_NetworkPolicyPort ¶
func Convert_networking_NetworkPolicyPort_To_v1_NetworkPolicyPort(in *networking.NetworkPolicyPort, out *NetworkPolicyPort, s conversion.Scope) error
Convert_networking_NetworkPolicyPort_To_v1_NetworkPolicyPort is an autogenerated conversion function.
func Convert_networking_NetworkPolicySpec_To_v1_NetworkPolicySpec ¶
func Convert_networking_NetworkPolicySpec_To_v1_NetworkPolicySpec(in *networking.NetworkPolicySpec, out *NetworkPolicySpec, s conversion.Scope) error
Convert_networking_NetworkPolicySpec_To_v1_NetworkPolicySpec is an autogenerated conversion function.
func Convert_networking_NetworkPolicy_To_v1_NetworkPolicy ¶
func Convert_networking_NetworkPolicy_To_v1_NetworkPolicy(in *networking.NetworkPolicy, out *NetworkPolicy, s conversion.Scope) error
Convert_networking_NetworkPolicy_To_v1_NetworkPolicy is an autogenerated conversion function.
func Convert_v1_NetworkPolicyIngressRule_To_extensions_NetworkPolicyIngressRule ¶
func Convert_v1_NetworkPolicyIngressRule_To_extensions_NetworkPolicyIngressRule(in *NetworkPolicyIngressRule, out *extensions.NetworkPolicyIngressRule, s conversion.Scope) error
func Convert_v1_NetworkPolicyIngressRule_To_networking_NetworkPolicyIngressRule ¶
func Convert_v1_NetworkPolicyIngressRule_To_networking_NetworkPolicyIngressRule(in *NetworkPolicyIngressRule, out *networking.NetworkPolicyIngressRule, s conversion.Scope) error
Convert_v1_NetworkPolicyIngressRule_To_networking_NetworkPolicyIngressRule is an autogenerated conversion function.
func Convert_v1_NetworkPolicyList_To_extensions_NetworkPolicyList ¶
func Convert_v1_NetworkPolicyList_To_extensions_NetworkPolicyList(in *NetworkPolicyList, out *extensions.NetworkPolicyList, s conversion.Scope) error
func Convert_v1_NetworkPolicyList_To_networking_NetworkPolicyList ¶
func Convert_v1_NetworkPolicyList_To_networking_NetworkPolicyList(in *NetworkPolicyList, out *networking.NetworkPolicyList, s conversion.Scope) error
Convert_v1_NetworkPolicyList_To_networking_NetworkPolicyList is an autogenerated conversion function.
func Convert_v1_NetworkPolicyPeer_To_extensions_NetworkPolicyPeer ¶
func Convert_v1_NetworkPolicyPeer_To_extensions_NetworkPolicyPeer(in *NetworkPolicyPeer, out *extensions.NetworkPolicyPeer, s conversion.Scope) error
func Convert_v1_NetworkPolicyPeer_To_networking_NetworkPolicyPeer ¶
func Convert_v1_NetworkPolicyPeer_To_networking_NetworkPolicyPeer(in *NetworkPolicyPeer, out *networking.NetworkPolicyPeer, s conversion.Scope) error
Convert_v1_NetworkPolicyPeer_To_networking_NetworkPolicyPeer is an autogenerated conversion function.
func Convert_v1_NetworkPolicyPort_To_extensions_NetworkPolicyPort ¶
func Convert_v1_NetworkPolicyPort_To_extensions_NetworkPolicyPort(in *NetworkPolicyPort, out *extensions.NetworkPolicyPort, s conversion.Scope) error
func Convert_v1_NetworkPolicyPort_To_networking_NetworkPolicyPort ¶
func Convert_v1_NetworkPolicyPort_To_networking_NetworkPolicyPort(in *NetworkPolicyPort, out *networking.NetworkPolicyPort, s conversion.Scope) error
Convert_v1_NetworkPolicyPort_To_networking_NetworkPolicyPort is an autogenerated conversion function.
func Convert_v1_NetworkPolicySpec_To_extensions_NetworkPolicySpec ¶
func Convert_v1_NetworkPolicySpec_To_extensions_NetworkPolicySpec(in *NetworkPolicySpec, out *extensions.NetworkPolicySpec, s conversion.Scope) error
func Convert_v1_NetworkPolicySpec_To_networking_NetworkPolicySpec ¶
func Convert_v1_NetworkPolicySpec_To_networking_NetworkPolicySpec(in *NetworkPolicySpec, out *networking.NetworkPolicySpec, s conversion.Scope) error
Convert_v1_NetworkPolicySpec_To_networking_NetworkPolicySpec is an autogenerated conversion function.
func Convert_v1_NetworkPolicy_To_extensions_NetworkPolicy ¶
func Convert_v1_NetworkPolicy_To_extensions_NetworkPolicy(in *NetworkPolicy, out *extensions.NetworkPolicy, s conversion.Scope) error
func Convert_v1_NetworkPolicy_To_networking_NetworkPolicy ¶
func Convert_v1_NetworkPolicy_To_networking_NetworkPolicy(in *NetworkPolicy, out *networking.NetworkPolicy, s conversion.Scope) error
Convert_v1_NetworkPolicy_To_networking_NetworkPolicy is an autogenerated conversion function.
func DeepCopy_v1_NetworkPolicy ¶
func DeepCopy_v1_NetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_v1_NetworkPolicy is an autogenerated deepcopy function.
func DeepCopy_v1_NetworkPolicyIngressRule ¶
func DeepCopy_v1_NetworkPolicyIngressRule(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_v1_NetworkPolicyIngressRule is an autogenerated deepcopy function.
func DeepCopy_v1_NetworkPolicyList ¶
func DeepCopy_v1_NetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_v1_NetworkPolicyList is an autogenerated deepcopy function.
func DeepCopy_v1_NetworkPolicyPeer ¶
func DeepCopy_v1_NetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_v1_NetworkPolicyPeer is an autogenerated deepcopy function.
func DeepCopy_v1_NetworkPolicyPort ¶
func DeepCopy_v1_NetworkPolicyPort(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_v1_NetworkPolicyPort is an autogenerated deepcopy function.
func DeepCopy_v1_NetworkPolicySpec ¶
func DeepCopy_v1_NetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error
DeepCopy_v1_NetworkPolicySpec is an autogenerated deepcopy function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDeepCopies ¶
RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_NetworkPolicyPort ¶
func SetDefaults_NetworkPolicyPort(obj *NetworkPolicyPort)
func SetObjectDefaults_NetworkPolicy ¶
func SetObjectDefaults_NetworkPolicy(in *NetworkPolicy)
func SetObjectDefaults_NetworkPolicyList ¶
func SetObjectDefaults_NetworkPolicyList(in *NetworkPolicyList)
Types ¶
type NetworkPolicy ¶
type NetworkPolicy struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Specification of the desired behavior for this NetworkPolicy. // +optional Spec NetworkPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` }
NetworkPolicy describes what network traffic is allowed for a set of Pods
func (*NetworkPolicy) CodecDecodeSelf ¶
func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder)
func (*NetworkPolicy) CodecEncodeSelf ¶
func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder)
func (*NetworkPolicy) Descriptor ¶
func (*NetworkPolicy) Descriptor() ([]byte, []int)
func (*NetworkPolicy) Marshal ¶
func (m *NetworkPolicy) Marshal() (dAtA []byte, err error)
func (*NetworkPolicy) ProtoMessage ¶
func (*NetworkPolicy) ProtoMessage()
func (*NetworkPolicy) Reset ¶
func (m *NetworkPolicy) Reset()
func (*NetworkPolicy) Size ¶
func (m *NetworkPolicy) Size() (n int)
func (*NetworkPolicy) String ¶
func (this *NetworkPolicy) String() string
func (NetworkPolicy) SwaggerDoc ¶
func (NetworkPolicy) SwaggerDoc() map[string]string
func (*NetworkPolicy) Unmarshal ¶
func (m *NetworkPolicy) Unmarshal(dAtA []byte) error
type NetworkPolicyIngressRule ¶
type NetworkPolicyIngressRule struct { // List of ports which should be made accessible on the pods selected for this // rule. Each item in this list is combined using a logical OR. If this field is // empty or missing, this rule matches all ports (traffic not restricted by port). // If this field is present and contains at least one item, then this rule allows // traffic only if the traffic matches at least one port in the list. // +optional Ports []NetworkPolicyPort `json:"ports,omitempty" protobuf:"bytes,1,rep,name=ports"` // List of sources which should be able to access the pods selected for this rule. // Items in this list are combined using a logical OR operation. If this field is // empty or missing, this rule matches all sources (traffic not restricted by // source). If this field is present and contains at least on item, this rule // allows traffic only if the traffic matches at least one item in the from list. // +optional From []NetworkPolicyPeer `json:"from,omitempty" protobuf:"bytes,2,rep,name=from"` }
NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.
func (*NetworkPolicyIngressRule) CodecDecodeSelf ¶
func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder)
func (*NetworkPolicyIngressRule) CodecEncodeSelf ¶
func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder)
func (*NetworkPolicyIngressRule) Descriptor ¶
func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int)
func (*NetworkPolicyIngressRule) Marshal ¶
func (m *NetworkPolicyIngressRule) Marshal() (dAtA []byte, err error)
func (*NetworkPolicyIngressRule) MarshalTo ¶
func (m *NetworkPolicyIngressRule) MarshalTo(dAtA []byte) (int, error)
func (*NetworkPolicyIngressRule) ProtoMessage ¶
func (*NetworkPolicyIngressRule) ProtoMessage()
func (*NetworkPolicyIngressRule) Reset ¶
func (m *NetworkPolicyIngressRule) Reset()
func (*NetworkPolicyIngressRule) Size ¶
func (m *NetworkPolicyIngressRule) Size() (n int)
func (*NetworkPolicyIngressRule) String ¶
func (this *NetworkPolicyIngressRule) String() string
func (NetworkPolicyIngressRule) SwaggerDoc ¶
func (NetworkPolicyIngressRule) SwaggerDoc() map[string]string
func (*NetworkPolicyIngressRule) Unmarshal ¶
func (m *NetworkPolicyIngressRule) Unmarshal(dAtA []byte) error
type NetworkPolicyList ¶
type NetworkPolicyList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of schema objects. Items []NetworkPolicy `json:"items" protobuf:"bytes,2,rep,name=items"` }
NetworkPolicyList is a list of NetworkPolicy objects.
func (*NetworkPolicyList) CodecDecodeSelf ¶
func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder)
func (*NetworkPolicyList) CodecEncodeSelf ¶
func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder)
func (*NetworkPolicyList) Descriptor ¶
func (*NetworkPolicyList) Descriptor() ([]byte, []int)
func (*NetworkPolicyList) Marshal ¶
func (m *NetworkPolicyList) Marshal() (dAtA []byte, err error)
func (*NetworkPolicyList) MarshalTo ¶
func (m *NetworkPolicyList) MarshalTo(dAtA []byte) (int, error)
func (*NetworkPolicyList) ProtoMessage ¶
func (*NetworkPolicyList) ProtoMessage()
func (*NetworkPolicyList) Reset ¶
func (m *NetworkPolicyList) Reset()
func (*NetworkPolicyList) Size ¶
func (m *NetworkPolicyList) Size() (n int)
func (*NetworkPolicyList) String ¶
func (this *NetworkPolicyList) String() string
func (NetworkPolicyList) SwaggerDoc ¶
func (NetworkPolicyList) SwaggerDoc() map[string]string
func (*NetworkPolicyList) Unmarshal ¶
func (m *NetworkPolicyList) Unmarshal(dAtA []byte) error
type NetworkPolicyPeer ¶
type NetworkPolicyPeer struct { // This is a label selector which selects Pods in this namespace. This field // follows standard label selector semantics. If present but empty, this selector // selects all pods in this namespace. // +optional PodSelector *metav1.LabelSelector `json:"podSelector,omitempty" protobuf:"bytes,1,opt,name=podSelector"` // Selects Namespaces using cluster scoped-labels. This matches all pods in all // namespaces selected by this label selector. This field follows standard label // selector semantics. If present but empty, this selector selects all namespaces. // +optional NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,2,opt,name=namespaceSelector"` }
NetworkPolicyPeer describes a peer to allow traffic from. Exactly one of its fields must be specified.
func (*NetworkPolicyPeer) CodecDecodeSelf ¶
func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder)
func (*NetworkPolicyPeer) CodecEncodeSelf ¶
func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder)
func (*NetworkPolicyPeer) Descriptor ¶
func (*NetworkPolicyPeer) Descriptor() ([]byte, []int)
func (*NetworkPolicyPeer) Marshal ¶
func (m *NetworkPolicyPeer) Marshal() (dAtA []byte, err error)
func (*NetworkPolicyPeer) MarshalTo ¶
func (m *NetworkPolicyPeer) MarshalTo(dAtA []byte) (int, error)
func (*NetworkPolicyPeer) ProtoMessage ¶
func (*NetworkPolicyPeer) ProtoMessage()
func (*NetworkPolicyPeer) Reset ¶
func (m *NetworkPolicyPeer) Reset()
func (*NetworkPolicyPeer) Size ¶
func (m *NetworkPolicyPeer) Size() (n int)
func (*NetworkPolicyPeer) String ¶
func (this *NetworkPolicyPeer) String() string
func (NetworkPolicyPeer) SwaggerDoc ¶
func (NetworkPolicyPeer) SwaggerDoc() map[string]string
func (*NetworkPolicyPeer) Unmarshal ¶
func (m *NetworkPolicyPeer) Unmarshal(dAtA []byte) error
type NetworkPolicyPort ¶
type NetworkPolicyPort struct { // The protocol (TCP or UDP) which traffic must match. If not specified, this // field defaults to TCP. // +optional Protocol *v1.Protocol `json:"protocol,omitempty" protobuf:"bytes,1,opt,name=protocol,casttype=k8s.io/kubernetes/pkg/api/v1.Protocol"` // The port on the given protocol. This can either be a numerical or named port on // a pod. If this field is not provided, this matches all port names and numbers. // +optional Port *intstr.IntOrString `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"` }
NetworkPolicyPort describes a port to allow traffic on
func (*NetworkPolicyPort) CodecDecodeSelf ¶
func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder)
func (*NetworkPolicyPort) CodecEncodeSelf ¶
func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder)
func (*NetworkPolicyPort) Descriptor ¶
func (*NetworkPolicyPort) Descriptor() ([]byte, []int)
func (*NetworkPolicyPort) Marshal ¶
func (m *NetworkPolicyPort) Marshal() (dAtA []byte, err error)
func (*NetworkPolicyPort) MarshalTo ¶
func (m *NetworkPolicyPort) MarshalTo(dAtA []byte) (int, error)
func (*NetworkPolicyPort) ProtoMessage ¶
func (*NetworkPolicyPort) ProtoMessage()
func (*NetworkPolicyPort) Reset ¶
func (m *NetworkPolicyPort) Reset()
func (*NetworkPolicyPort) Size ¶
func (m *NetworkPolicyPort) Size() (n int)
func (*NetworkPolicyPort) String ¶
func (this *NetworkPolicyPort) String() string
func (NetworkPolicyPort) SwaggerDoc ¶
func (NetworkPolicyPort) SwaggerDoc() map[string]string
func (*NetworkPolicyPort) Unmarshal ¶
func (m *NetworkPolicyPort) Unmarshal(dAtA []byte) error
type NetworkPolicySpec ¶
type NetworkPolicySpec struct { // Selects the pods to which this NetworkPolicy object applies. The array of // ingress rules is applied to any pods selected by this field. Multiple network // policies can select the same set of pods. In this case, the ingress rules for // each are combined additively. This field is NOT optional and follows standard // label selector semantics. An empty podSelector matches all pods in this // namespace. PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"` // List of ingress rules to be applied to the selected pods. Traffic is allowed to // a pod if there are no NetworkPolicies selecting the pod // (and cluster policy otherwise allows the traffic), OR if the traffic source is // the pod's local node, OR if the traffic matches at least one ingress rule // across all of the NetworkPolicy objects whose podSelector matches the pod. If // this field is empty then this NetworkPolicy does not allow any traffic (and serves // solely to ensure that the pods it selects are isolated by default) // +optional Ingress []NetworkPolicyIngressRule `json:"ingress,omitempty" protobuf:"bytes,2,rep,name=ingress"` }
NetworkPolicySpec provides the specification of a NetworkPolicy
func (*NetworkPolicySpec) CodecDecodeSelf ¶
func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder)
func (*NetworkPolicySpec) CodecEncodeSelf ¶
func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder)
func (*NetworkPolicySpec) Descriptor ¶
func (*NetworkPolicySpec) Descriptor() ([]byte, []int)
func (*NetworkPolicySpec) Marshal ¶
func (m *NetworkPolicySpec) Marshal() (dAtA []byte, err error)
func (*NetworkPolicySpec) MarshalTo ¶
func (m *NetworkPolicySpec) MarshalTo(dAtA []byte) (int, error)
func (*NetworkPolicySpec) ProtoMessage ¶
func (*NetworkPolicySpec) ProtoMessage()
func (*NetworkPolicySpec) Reset ¶
func (m *NetworkPolicySpec) Reset()
func (*NetworkPolicySpec) Size ¶
func (m *NetworkPolicySpec) Size() (n int)
func (*NetworkPolicySpec) String ¶
func (this *NetworkPolicySpec) String() string
func (NetworkPolicySpec) SwaggerDoc ¶
func (NetworkPolicySpec) SwaggerDoc() map[string]string
func (*NetworkPolicySpec) Unmarshal ¶
func (m *NetworkPolicySpec) Unmarshal(dAtA []byte) error