v1beta1

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package v1beta1 is the v1beta1 version of the Antrea NetworkPolicy API messages.

Index

Constants

View Source
const GroupName = "controlplane.antrea.tanzu.vmware.com"

GroupName is the group name used in this package.

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var (
	// SchemeGroupVersion is group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
)

Functions

func Convert_controlplane_AddressGroupList_To_v1beta1_AddressGroupList

func Convert_controlplane_AddressGroupList_To_v1beta1_AddressGroupList(in *controlplane.AddressGroupList, out *AddressGroupList, s conversion.Scope) error

Convert_controlplane_AddressGroupList_To_v1beta1_AddressGroupList is an autogenerated conversion function.

func Convert_controlplane_AddressGroupPatch_To_v1beta1_AddressGroupPatch

func Convert_controlplane_AddressGroupPatch_To_v1beta1_AddressGroupPatch(in *controlplane.AddressGroupPatch, out *AddressGroupPatch, s conversion.Scope) error

func Convert_controlplane_AddressGroup_To_v1beta1_AddressGroup

func Convert_controlplane_AddressGroup_To_v1beta1_AddressGroup(in *controlplane.AddressGroup, out *AddressGroup, s conversion.Scope) error

func Convert_controlplane_AppliedToGroupList_To_v1beta1_AppliedToGroupList

func Convert_controlplane_AppliedToGroupList_To_v1beta1_AppliedToGroupList(in *controlplane.AppliedToGroupList, out *AppliedToGroupList, s conversion.Scope) error

Convert_controlplane_AppliedToGroupList_To_v1beta1_AppliedToGroupList is an autogenerated conversion function.

func Convert_controlplane_AppliedToGroupPatch_To_v1beta1_AppliedToGroupPatch

func Convert_controlplane_AppliedToGroupPatch_To_v1beta1_AppliedToGroupPatch(in *controlplane.AppliedToGroupPatch, out *AppliedToGroupPatch, s conversion.Scope) error

func Convert_controlplane_AppliedToGroup_To_v1beta1_AppliedToGroup

func Convert_controlplane_AppliedToGroup_To_v1beta1_AppliedToGroup(in *controlplane.AppliedToGroup, out *AppliedToGroup, s conversion.Scope) error

func Convert_controlplane_ExternalEntityReference_To_v1beta1_ExternalEntityReference

func Convert_controlplane_ExternalEntityReference_To_v1beta1_ExternalEntityReference(in *controlplane.ExternalEntityReference, out *ExternalEntityReference, s conversion.Scope) error

Convert_controlplane_ExternalEntityReference_To_v1beta1_ExternalEntityReference is an autogenerated conversion function.

func Convert_controlplane_GroupMember_To_v1beta1_GroupMember

func Convert_controlplane_GroupMember_To_v1beta1_GroupMember(in *controlplane.GroupMember, out *GroupMember, s conversion.Scope) error

func Convert_controlplane_GroupMember_To_v1beta1_GroupMemberPod added in v0.11.0

func Convert_controlplane_GroupMember_To_v1beta1_GroupMemberPod(in *controlplane.GroupMember, out *GroupMemberPod, includePodRef bool) error

Convert_controlplane_GroupMember_To_v1beta1_GroupMemberPod converts controlplane GroupMember to v1beta1 GroupMember based on whether it's required to include Pod reference in the result. We must not include Pod reference when the conversion is called for an AddressGroup as agents don't expect it in v1beta1 version. This function doesn't match the pattern of conversion function which requires the last parameter to be conversion.Scope so won't be registered to schema.

func Convert_controlplane_IPBlock_To_v1beta1_IPBlock

func Convert_controlplane_IPBlock_To_v1beta1_IPBlock(in *controlplane.IPBlock, out *IPBlock, s conversion.Scope) error

Convert_controlplane_IPBlock_To_v1beta1_IPBlock is an autogenerated conversion function.

func Convert_controlplane_IPNet_To_v1beta1_IPNet

func Convert_controlplane_IPNet_To_v1beta1_IPNet(in *controlplane.IPNet, out *IPNet, s conversion.Scope) error

Convert_controlplane_IPNet_To_v1beta1_IPNet is an autogenerated conversion function.

func Convert_controlplane_NamedPort_To_v1beta1_NamedPort

func Convert_controlplane_NamedPort_To_v1beta1_NamedPort(in *controlplane.NamedPort, out *NamedPort, s conversion.Scope) error

Convert_controlplane_NamedPort_To_v1beta1_NamedPort is an autogenerated conversion function.

func Convert_controlplane_NetworkPolicyList_To_v1beta1_NetworkPolicyList

func Convert_controlplane_NetworkPolicyList_To_v1beta1_NetworkPolicyList(in *controlplane.NetworkPolicyList, out *NetworkPolicyList, s conversion.Scope) error

Convert_controlplane_NetworkPolicyList_To_v1beta1_NetworkPolicyList is an autogenerated conversion function.

func Convert_controlplane_NetworkPolicyPeer_To_v1beta1_NetworkPolicyPeer

func Convert_controlplane_NetworkPolicyPeer_To_v1beta1_NetworkPolicyPeer(in *controlplane.NetworkPolicyPeer, out *NetworkPolicyPeer, s conversion.Scope) error

Convert_controlplane_NetworkPolicyPeer_To_v1beta1_NetworkPolicyPeer is an autogenerated conversion function.

func Convert_controlplane_NetworkPolicyReference_To_v1beta1_NetworkPolicyReference added in v0.10.0

func Convert_controlplane_NetworkPolicyReference_To_v1beta1_NetworkPolicyReference(in *controlplane.NetworkPolicyReference, out *NetworkPolicyReference, s conversion.Scope) error

Convert_controlplane_NetworkPolicyReference_To_v1beta1_NetworkPolicyReference is an autogenerated conversion function.

func Convert_controlplane_NetworkPolicyRule_To_v1beta1_NetworkPolicyRule

func Convert_controlplane_NetworkPolicyRule_To_v1beta1_NetworkPolicyRule(in *controlplane.NetworkPolicyRule, out *NetworkPolicyRule, s conversion.Scope) error

func Convert_controlplane_NetworkPolicyStats_To_v1beta1_NetworkPolicyStats added in v0.10.0

func Convert_controlplane_NetworkPolicyStats_To_v1beta1_NetworkPolicyStats(in *controlplane.NetworkPolicyStats, out *NetworkPolicyStats, s conversion.Scope) error

Convert_controlplane_NetworkPolicyStats_To_v1beta1_NetworkPolicyStats is an autogenerated conversion function.

func Convert_controlplane_NetworkPolicy_To_v1beta1_NetworkPolicy

func Convert_controlplane_NetworkPolicy_To_v1beta1_NetworkPolicy(in *controlplane.NetworkPolicy, out *NetworkPolicy, s conversion.Scope) error

func Convert_controlplane_NodeStatsSummary_To_v1beta1_NodeStatsSummary added in v0.10.0

func Convert_controlplane_NodeStatsSummary_To_v1beta1_NodeStatsSummary(in *controlplane.NodeStatsSummary, out *NodeStatsSummary, s conversion.Scope) error

Convert_controlplane_NodeStatsSummary_To_v1beta1_NodeStatsSummary is an autogenerated conversion function.

func Convert_controlplane_PodReference_To_v1beta1_PodReference

func Convert_controlplane_PodReference_To_v1beta1_PodReference(in *controlplane.PodReference, out *PodReference, s conversion.Scope) error

Convert_controlplane_PodReference_To_v1beta1_PodReference is an autogenerated conversion function.

func Convert_controlplane_Service_To_v1beta1_Service

func Convert_controlplane_Service_To_v1beta1_Service(in *controlplane.Service, out *Service, s conversion.Scope) error

func Convert_v1beta1_AddressGroupList_To_controlplane_AddressGroupList

func Convert_v1beta1_AddressGroupList_To_controlplane_AddressGroupList(in *AddressGroupList, out *controlplane.AddressGroupList, s conversion.Scope) error

Convert_v1beta1_AddressGroupList_To_controlplane_AddressGroupList is an autogenerated conversion function.

func Convert_v1beta1_AddressGroupPatch_To_controlplane_AddressGroupPatch

func Convert_v1beta1_AddressGroupPatch_To_controlplane_AddressGroupPatch(in *AddressGroupPatch, out *controlplane.AddressGroupPatch, s conversion.Scope) error

func Convert_v1beta1_AddressGroup_To_controlplane_AddressGroup

func Convert_v1beta1_AddressGroup_To_controlplane_AddressGroup(in *AddressGroup, out *controlplane.AddressGroup, s conversion.Scope) error

func Convert_v1beta1_AppliedToGroupList_To_controlplane_AppliedToGroupList

func Convert_v1beta1_AppliedToGroupList_To_controlplane_AppliedToGroupList(in *AppliedToGroupList, out *controlplane.AppliedToGroupList, s conversion.Scope) error

Convert_v1beta1_AppliedToGroupList_To_controlplane_AppliedToGroupList is an autogenerated conversion function.

func Convert_v1beta1_AppliedToGroupPatch_To_controlplane_AppliedToGroupPatch

func Convert_v1beta1_AppliedToGroupPatch_To_controlplane_AppliedToGroupPatch(in *AppliedToGroupPatch, out *controlplane.AppliedToGroupPatch, s conversion.Scope) error

func Convert_v1beta1_AppliedToGroup_To_controlplane_AppliedToGroup

func Convert_v1beta1_AppliedToGroup_To_controlplane_AppliedToGroup(in *AppliedToGroup, out *controlplane.AppliedToGroup, s conversion.Scope) error

func Convert_v1beta1_ExternalEntityReference_To_controlplane_ExternalEntityReference

func Convert_v1beta1_ExternalEntityReference_To_controlplane_ExternalEntityReference(in *ExternalEntityReference, out *controlplane.ExternalEntityReference, s conversion.Scope) error

Convert_v1beta1_ExternalEntityReference_To_controlplane_ExternalEntityReference is an autogenerated conversion function.

func Convert_v1beta1_GroupMemberPod_To_controlplane_GroupMember added in v0.11.0

func Convert_v1beta1_GroupMemberPod_To_controlplane_GroupMember(in *GroupMemberPod, out *controlplane.GroupMember, s conversion.Scope) error

func Convert_v1beta1_GroupMember_To_controlplane_GroupMember

func Convert_v1beta1_GroupMember_To_controlplane_GroupMember(in *GroupMember, out *controlplane.GroupMember, s conversion.Scope) error

func Convert_v1beta1_IPBlock_To_controlplane_IPBlock

func Convert_v1beta1_IPBlock_To_controlplane_IPBlock(in *IPBlock, out *controlplane.IPBlock, s conversion.Scope) error

Convert_v1beta1_IPBlock_To_controlplane_IPBlock is an autogenerated conversion function.

func Convert_v1beta1_IPNet_To_controlplane_IPNet

func Convert_v1beta1_IPNet_To_controlplane_IPNet(in *IPNet, out *controlplane.IPNet, s conversion.Scope) error

Convert_v1beta1_IPNet_To_controlplane_IPNet is an autogenerated conversion function.

func Convert_v1beta1_NamedPort_To_controlplane_NamedPort

func Convert_v1beta1_NamedPort_To_controlplane_NamedPort(in *NamedPort, out *controlplane.NamedPort, s conversion.Scope) error

Convert_v1beta1_NamedPort_To_controlplane_NamedPort is an autogenerated conversion function.

func Convert_v1beta1_NetworkPolicyList_To_controlplane_NetworkPolicyList

func Convert_v1beta1_NetworkPolicyList_To_controlplane_NetworkPolicyList(in *NetworkPolicyList, out *controlplane.NetworkPolicyList, s conversion.Scope) error

Convert_v1beta1_NetworkPolicyList_To_controlplane_NetworkPolicyList is an autogenerated conversion function.

func Convert_v1beta1_NetworkPolicyPeer_To_controlplane_NetworkPolicyPeer

func Convert_v1beta1_NetworkPolicyPeer_To_controlplane_NetworkPolicyPeer(in *NetworkPolicyPeer, out *controlplane.NetworkPolicyPeer, s conversion.Scope) error

Convert_v1beta1_NetworkPolicyPeer_To_controlplane_NetworkPolicyPeer is an autogenerated conversion function.

func Convert_v1beta1_NetworkPolicyReference_To_controlplane_NetworkPolicyReference added in v0.10.0

func Convert_v1beta1_NetworkPolicyReference_To_controlplane_NetworkPolicyReference(in *NetworkPolicyReference, out *controlplane.NetworkPolicyReference, s conversion.Scope) error

Convert_v1beta1_NetworkPolicyReference_To_controlplane_NetworkPolicyReference is an autogenerated conversion function.

func Convert_v1beta1_NetworkPolicyRule_To_controlplane_NetworkPolicyRule

func Convert_v1beta1_NetworkPolicyRule_To_controlplane_NetworkPolicyRule(in *NetworkPolicyRule, out *controlplane.NetworkPolicyRule, s conversion.Scope) error

Convert_v1beta1_NetworkPolicyRule_To_controlplane_NetworkPolicyRule is an autogenerated conversion function.

func Convert_v1beta1_NetworkPolicyStats_To_controlplane_NetworkPolicyStats added in v0.10.0

func Convert_v1beta1_NetworkPolicyStats_To_controlplane_NetworkPolicyStats(in *NetworkPolicyStats, out *controlplane.NetworkPolicyStats, s conversion.Scope) error

Convert_v1beta1_NetworkPolicyStats_To_controlplane_NetworkPolicyStats is an autogenerated conversion function.

func Convert_v1beta1_NetworkPolicy_To_controlplane_NetworkPolicy

func Convert_v1beta1_NetworkPolicy_To_controlplane_NetworkPolicy(in *NetworkPolicy, out *controlplane.NetworkPolicy, s conversion.Scope) error

Convert_v1beta1_NetworkPolicy_To_controlplane_NetworkPolicy is an autogenerated conversion function.

func Convert_v1beta1_NodeStatsSummary_To_controlplane_NodeStatsSummary added in v0.10.0

func Convert_v1beta1_NodeStatsSummary_To_controlplane_NodeStatsSummary(in *NodeStatsSummary, out *controlplane.NodeStatsSummary, s conversion.Scope) error

Convert_v1beta1_NodeStatsSummary_To_controlplane_NodeStatsSummary is an autogenerated conversion function.

func Convert_v1beta1_PodReference_To_controlplane_PodReference

func Convert_v1beta1_PodReference_To_controlplane_PodReference(in *PodReference, out *controlplane.PodReference, s conversion.Scope) error

Convert_v1beta1_PodReference_To_controlplane_PodReference is an autogenerated conversion function.

func Convert_v1beta1_Service_To_controlplane_Service

func Convert_v1beta1_Service_To_controlplane_Service(in *Service, out *controlplane.Service, s conversion.Scope) error

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource.

Types

type AddressGroup

type AddressGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Pods              []GroupMemberPod `json:"pods,omitempty" protobuf:"bytes,2,rep,name=pods"`
	GroupMembers      []GroupMember    `json:"groupMembers,omitempty" protobuf:"bytes,3,rep,name=groupMembers"`
}

+genclient +genclient:nonNamespaced +genclient:onlyVerbs=list,get,watch +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object AddressGroup is the message format of antrea/pkg/controller/types.AddressGroup in an API response.

func (*AddressGroup) DeepCopy

func (in *AddressGroup) DeepCopy() *AddressGroup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressGroup.

func (*AddressGroup) DeepCopyInto

func (in *AddressGroup) DeepCopyInto(out *AddressGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AddressGroup) DeepCopyObject

func (in *AddressGroup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AddressGroup) Descriptor

func (*AddressGroup) Descriptor() ([]byte, []int)

func (*AddressGroup) Marshal

func (m *AddressGroup) Marshal() (dAtA []byte, err error)

func (*AddressGroup) MarshalTo

func (m *AddressGroup) MarshalTo(dAtA []byte) (int, error)

func (*AddressGroup) MarshalToSizedBuffer

func (m *AddressGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AddressGroup) ProtoMessage

func (*AddressGroup) ProtoMessage()

func (*AddressGroup) Reset

func (m *AddressGroup) Reset()

func (*AddressGroup) Size

func (m *AddressGroup) Size() (n int)

func (*AddressGroup) String

func (this *AddressGroup) String() string

func (*AddressGroup) Unmarshal

func (m *AddressGroup) Unmarshal(dAtA []byte) error

func (*AddressGroup) XXX_DiscardUnknown

func (m *AddressGroup) XXX_DiscardUnknown()

func (*AddressGroup) XXX_Marshal

func (m *AddressGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddressGroup) XXX_Merge

func (m *AddressGroup) XXX_Merge(src proto.Message)

func (*AddressGroup) XXX_Size

func (m *AddressGroup) XXX_Size() int

func (*AddressGroup) XXX_Unmarshal

func (m *AddressGroup) XXX_Unmarshal(b []byte) error

type AddressGroupList

type AddressGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []AddressGroup `json:"items" protobuf:"bytes,2,rep,name=items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object AddressGroupList is a list of AddressGroup objects.

func (*AddressGroupList) DeepCopy

func (in *AddressGroupList) DeepCopy() *AddressGroupList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressGroupList.

func (*AddressGroupList) DeepCopyInto

func (in *AddressGroupList) DeepCopyInto(out *AddressGroupList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AddressGroupList) DeepCopyObject

func (in *AddressGroupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AddressGroupList) Descriptor

func (*AddressGroupList) Descriptor() ([]byte, []int)

func (*AddressGroupList) Marshal

func (m *AddressGroupList) Marshal() (dAtA []byte, err error)

func (*AddressGroupList) MarshalTo

func (m *AddressGroupList) MarshalTo(dAtA []byte) (int, error)

func (*AddressGroupList) MarshalToSizedBuffer

func (m *AddressGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AddressGroupList) ProtoMessage

func (*AddressGroupList) ProtoMessage()

func (*AddressGroupList) Reset

func (m *AddressGroupList) Reset()

func (*AddressGroupList) Size

func (m *AddressGroupList) Size() (n int)

func (*AddressGroupList) String

func (this *AddressGroupList) String() string

func (*AddressGroupList) Unmarshal

func (m *AddressGroupList) Unmarshal(dAtA []byte) error

func (*AddressGroupList) XXX_DiscardUnknown

func (m *AddressGroupList) XXX_DiscardUnknown()

func (*AddressGroupList) XXX_Marshal

func (m *AddressGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddressGroupList) XXX_Merge

func (m *AddressGroupList) XXX_Merge(src proto.Message)

func (*AddressGroupList) XXX_Size

func (m *AddressGroupList) XXX_Size() int

func (*AddressGroupList) XXX_Unmarshal

func (m *AddressGroupList) XXX_Unmarshal(b []byte) error

type AddressGroupPatch

type AddressGroupPatch struct {
	metav1.TypeMeta     `json:",inline"`
	metav1.ObjectMeta   `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	AddedPods           []GroupMemberPod `json:"addedPods,omitempty" protobuf:"bytes,2,rep,name=addedPods"`
	RemovedPods         []GroupMemberPod `json:"removedPods,omitempty" protobuf:"bytes,3,rep,name=removedPods"`
	AddedGroupMembers   []GroupMember    `json:"addedGroupMembers,omitempty" protobuf:"bytes,4,rep,name=addedGroupMembers"`
	RemovedGroupMembers []GroupMember    `json:"removedGroupMembers,omitempty" protobuf:"bytes,5,rep,name=removedGroupMembers"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object AddressGroupPatch describes the incremental update of an AddressGroup.

func (*AddressGroupPatch) DeepCopy

func (in *AddressGroupPatch) DeepCopy() *AddressGroupPatch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressGroupPatch.

func (*AddressGroupPatch) DeepCopyInto

func (in *AddressGroupPatch) DeepCopyInto(out *AddressGroupPatch)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AddressGroupPatch) DeepCopyObject

func (in *AddressGroupPatch) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AddressGroupPatch) Descriptor

func (*AddressGroupPatch) Descriptor() ([]byte, []int)

func (*AddressGroupPatch) Marshal

func (m *AddressGroupPatch) Marshal() (dAtA []byte, err error)

func (*AddressGroupPatch) MarshalTo

func (m *AddressGroupPatch) MarshalTo(dAtA []byte) (int, error)

func (*AddressGroupPatch) MarshalToSizedBuffer

func (m *AddressGroupPatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AddressGroupPatch) ProtoMessage

func (*AddressGroupPatch) ProtoMessage()

func (*AddressGroupPatch) Reset

func (m *AddressGroupPatch) Reset()

func (*AddressGroupPatch) Size

func (m *AddressGroupPatch) Size() (n int)

func (*AddressGroupPatch) String

func (this *AddressGroupPatch) String() string

func (*AddressGroupPatch) Unmarshal

func (m *AddressGroupPatch) Unmarshal(dAtA []byte) error

func (*AddressGroupPatch) XXX_DiscardUnknown

func (m *AddressGroupPatch) XXX_DiscardUnknown()

func (*AddressGroupPatch) XXX_Marshal

func (m *AddressGroupPatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddressGroupPatch) XXX_Merge

func (m *AddressGroupPatch) XXX_Merge(src proto.Message)

func (*AddressGroupPatch) XXX_Size

func (m *AddressGroupPatch) XXX_Size() int

func (*AddressGroupPatch) XXX_Unmarshal

func (m *AddressGroupPatch) XXX_Unmarshal(b []byte) error

type AppliedToGroup

type AppliedToGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	// Pods is a list of Pods selected by this group.
	Pods []GroupMemberPod `json:"pods,omitempty" protobuf:"bytes,2,rep,name=pods"`
	// GroupMembers is list of resources selected by this group. This eventually will replace Pods
	GroupMembers []GroupMember `json:"groupMembers,omitempty" protobuf:"bytes,3,rep,name=groupMembers"`
}

+genclient +genclient:nonNamespaced +genclient:onlyVerbs=list,get,watch +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object AppliedToGroup is the message format of antrea/pkg/controller/types.AppliedToGroup in an API response.

func (*AppliedToGroup) DeepCopy

func (in *AppliedToGroup) DeepCopy() *AppliedToGroup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppliedToGroup.

func (*AppliedToGroup) DeepCopyInto

func (in *AppliedToGroup) DeepCopyInto(out *AppliedToGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AppliedToGroup) DeepCopyObject

func (in *AppliedToGroup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AppliedToGroup) Descriptor

func (*AppliedToGroup) Descriptor() ([]byte, []int)

func (*AppliedToGroup) Marshal

func (m *AppliedToGroup) Marshal() (dAtA []byte, err error)

func (*AppliedToGroup) MarshalTo

func (m *AppliedToGroup) MarshalTo(dAtA []byte) (int, error)

func (*AppliedToGroup) MarshalToSizedBuffer

func (m *AppliedToGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AppliedToGroup) ProtoMessage

func (*AppliedToGroup) ProtoMessage()

func (*AppliedToGroup) Reset

func (m *AppliedToGroup) Reset()

func (*AppliedToGroup) Size

func (m *AppliedToGroup) Size() (n int)

func (*AppliedToGroup) String

func (this *AppliedToGroup) String() string

func (*AppliedToGroup) Unmarshal

func (m *AppliedToGroup) Unmarshal(dAtA []byte) error

func (*AppliedToGroup) XXX_DiscardUnknown

func (m *AppliedToGroup) XXX_DiscardUnknown()

func (*AppliedToGroup) XXX_Marshal

func (m *AppliedToGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AppliedToGroup) XXX_Merge

func (m *AppliedToGroup) XXX_Merge(src proto.Message)

func (*AppliedToGroup) XXX_Size

func (m *AppliedToGroup) XXX_Size() int

func (*AppliedToGroup) XXX_Unmarshal

func (m *AppliedToGroup) XXX_Unmarshal(b []byte) error

type AppliedToGroupList

type AppliedToGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []AppliedToGroup `json:"items" protobuf:"bytes,2,rep,name=items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object AppliedToGroupList is a list of AppliedToGroup objects.

func (*AppliedToGroupList) DeepCopy

func (in *AppliedToGroupList) DeepCopy() *AppliedToGroupList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppliedToGroupList.

func (*AppliedToGroupList) DeepCopyInto

func (in *AppliedToGroupList) DeepCopyInto(out *AppliedToGroupList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AppliedToGroupList) DeepCopyObject

func (in *AppliedToGroupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AppliedToGroupList) Descriptor

func (*AppliedToGroupList) Descriptor() ([]byte, []int)

func (*AppliedToGroupList) Marshal

func (m *AppliedToGroupList) Marshal() (dAtA []byte, err error)

func (*AppliedToGroupList) MarshalTo

func (m *AppliedToGroupList) MarshalTo(dAtA []byte) (int, error)

func (*AppliedToGroupList) MarshalToSizedBuffer

func (m *AppliedToGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AppliedToGroupList) ProtoMessage

func (*AppliedToGroupList) ProtoMessage()

func (*AppliedToGroupList) Reset

func (m *AppliedToGroupList) Reset()

func (*AppliedToGroupList) Size

func (m *AppliedToGroupList) Size() (n int)

func (*AppliedToGroupList) String

func (this *AppliedToGroupList) String() string

func (*AppliedToGroupList) Unmarshal

func (m *AppliedToGroupList) Unmarshal(dAtA []byte) error

func (*AppliedToGroupList) XXX_DiscardUnknown

func (m *AppliedToGroupList) XXX_DiscardUnknown()

func (*AppliedToGroupList) XXX_Marshal

func (m *AppliedToGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AppliedToGroupList) XXX_Merge

func (m *AppliedToGroupList) XXX_Merge(src proto.Message)

func (*AppliedToGroupList) XXX_Size

func (m *AppliedToGroupList) XXX_Size() int

func (*AppliedToGroupList) XXX_Unmarshal

func (m *AppliedToGroupList) XXX_Unmarshal(b []byte) error

type AppliedToGroupPatch

type AppliedToGroupPatch struct {
	metav1.TypeMeta     `json:",inline"`
	metav1.ObjectMeta   `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	AddedPods           []GroupMemberPod `json:"addedPods,omitempty" protobuf:"bytes,2,rep,name=addedPods"`
	RemovedPods         []GroupMemberPod `json:"removedPods,omitempty" protobuf:"bytes,3,rep,name=removedPods"`
	AddedGroupMembers   []GroupMember    `json:"addedGroupMembers,omitempty" protobuf:"bytes,4,rep,name=addedGroupMembers"`
	RemovedGroupMembers []GroupMember    `json:"removedGroupMembers,omitempty" protobuf:"bytes,5,rep,name=removedGroupMembers"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object AppliedToGroupPatch describes the incremental update of an AppliedToGroup.

func (*AppliedToGroupPatch) DeepCopy

func (in *AppliedToGroupPatch) DeepCopy() *AppliedToGroupPatch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppliedToGroupPatch.

func (*AppliedToGroupPatch) DeepCopyInto

func (in *AppliedToGroupPatch) DeepCopyInto(out *AppliedToGroupPatch)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AppliedToGroupPatch) DeepCopyObject

func (in *AppliedToGroupPatch) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AppliedToGroupPatch) Descriptor

func (*AppliedToGroupPatch) Descriptor() ([]byte, []int)

func (*AppliedToGroupPatch) Marshal

func (m *AppliedToGroupPatch) Marshal() (dAtA []byte, err error)

func (*AppliedToGroupPatch) MarshalTo

func (m *AppliedToGroupPatch) MarshalTo(dAtA []byte) (int, error)

func (*AppliedToGroupPatch) MarshalToSizedBuffer

func (m *AppliedToGroupPatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AppliedToGroupPatch) ProtoMessage

func (*AppliedToGroupPatch) ProtoMessage()

func (*AppliedToGroupPatch) Reset

func (m *AppliedToGroupPatch) Reset()

func (*AppliedToGroupPatch) Size

func (m *AppliedToGroupPatch) Size() (n int)

func (*AppliedToGroupPatch) String

func (this *AppliedToGroupPatch) String() string

func (*AppliedToGroupPatch) Unmarshal

func (m *AppliedToGroupPatch) Unmarshal(dAtA []byte) error

func (*AppliedToGroupPatch) XXX_DiscardUnknown

func (m *AppliedToGroupPatch) XXX_DiscardUnknown()

func (*AppliedToGroupPatch) XXX_Marshal

func (m *AppliedToGroupPatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AppliedToGroupPatch) XXX_Merge

func (m *AppliedToGroupPatch) XXX_Merge(src proto.Message)

func (*AppliedToGroupPatch) XXX_Size

func (m *AppliedToGroupPatch) XXX_Size() int

func (*AppliedToGroupPatch) XXX_Unmarshal

func (m *AppliedToGroupPatch) XXX_Unmarshal(b []byte) error

type Direction

type Direction string

Direction defines traffic direction of NetworkPolicyRule.

const (
	DirectionIn  Direction = "In"
	DirectionOut Direction = "Out"
)

type Endpoint

type Endpoint struct {
	// IP is the IP address of the Endpoint.
	IP IPAddress `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"`
	// Ports is the list NamedPort of the Endpoint.
	Ports []NamedPort `json:"ports,omitempty" protobuf:"bytes,2,rep,name=ports"`
}

Endpoint represents an external endpoint.

func (*Endpoint) DeepCopy

func (in *Endpoint) DeepCopy() *Endpoint

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.

func (*Endpoint) DeepCopyInto

func (in *Endpoint) DeepCopyInto(out *Endpoint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Endpoint) Descriptor

func (*Endpoint) Descriptor() ([]byte, []int)

func (*Endpoint) Marshal

func (m *Endpoint) Marshal() (dAtA []byte, err error)

func (*Endpoint) MarshalTo

func (m *Endpoint) MarshalTo(dAtA []byte) (int, error)

func (*Endpoint) MarshalToSizedBuffer

func (m *Endpoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) Reset

func (m *Endpoint) Reset()

func (*Endpoint) Size

func (m *Endpoint) Size() (n int)

func (*Endpoint) String

func (this *Endpoint) String() string

func (*Endpoint) Unmarshal

func (m *Endpoint) Unmarshal(dAtA []byte) error

func (*Endpoint) XXX_DiscardUnknown

func (m *Endpoint) XXX_DiscardUnknown()

func (*Endpoint) XXX_Marshal

func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Endpoint) XXX_Merge

func (m *Endpoint) XXX_Merge(src proto.Message)

func (*Endpoint) XXX_Size

func (m *Endpoint) XXX_Size() int

func (*Endpoint) XXX_Unmarshal

func (m *Endpoint) XXX_Unmarshal(b []byte) error

type ExternalEntityReference

type ExternalEntityReference struct {
	// The name of this ExternalEntity.
	Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
	// The namespace of this ExternalEntity.
	Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"`
}

ExternalEntityReference represents a ExternalEntity Reference.

func (*ExternalEntityReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalEntityReference.

func (*ExternalEntityReference) DeepCopyInto

func (in *ExternalEntityReference) DeepCopyInto(out *ExternalEntityReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExternalEntityReference) Descriptor

func (*ExternalEntityReference) Descriptor() ([]byte, []int)

func (*ExternalEntityReference) Marshal

func (m *ExternalEntityReference) Marshal() (dAtA []byte, err error)

func (*ExternalEntityReference) MarshalTo

func (m *ExternalEntityReference) MarshalTo(dAtA []byte) (int, error)

func (*ExternalEntityReference) MarshalToSizedBuffer

func (m *ExternalEntityReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExternalEntityReference) ProtoMessage

func (*ExternalEntityReference) ProtoMessage()

func (*ExternalEntityReference) Reset

func (m *ExternalEntityReference) Reset()

func (*ExternalEntityReference) Size

func (m *ExternalEntityReference) Size() (n int)

func (*ExternalEntityReference) String

func (this *ExternalEntityReference) String() string

func (*ExternalEntityReference) Unmarshal

func (m *ExternalEntityReference) Unmarshal(dAtA []byte) error

func (*ExternalEntityReference) XXX_DiscardUnknown

func (m *ExternalEntityReference) XXX_DiscardUnknown()

func (*ExternalEntityReference) XXX_Marshal

func (m *ExternalEntityReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExternalEntityReference) XXX_Merge

func (m *ExternalEntityReference) XXX_Merge(src proto.Message)

func (*ExternalEntityReference) XXX_Size

func (m *ExternalEntityReference) XXX_Size() int

func (*ExternalEntityReference) XXX_Unmarshal

func (m *ExternalEntityReference) XXX_Unmarshal(b []byte) error

type GroupMember

type GroupMember struct {
	// Pod maintains the reference to the Pod.
	Pod *PodReference `json:"pod,omitempty" protobuf:"bytes,1,opt,name=pod"`

	// ExternalEntity maintains the reference to the ExternalEntity.
	ExternalEntity *ExternalEntityReference `json:"externalEntity,omitempty" protobuf:"bytes,2,opt,name=externalEntity"`

	// Endpoints maintains a list of EndPoints associated with this groupMember.
	Endpoints []Endpoint `json:"endpoints,omitempty" protobuf:"bytes,3,rep,name=endpoints"`
}

GroupMember represents resource member to be populated in Groups. This supersedes GroupMemberPod, and will eventually replace it.

func (*GroupMember) DeepCopy

func (in *GroupMember) DeepCopy() *GroupMember

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupMember.

func (*GroupMember) DeepCopyInto

func (in *GroupMember) DeepCopyInto(out *GroupMember)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GroupMember) Descriptor

func (*GroupMember) Descriptor() ([]byte, []int)

func (*GroupMember) Marshal

func (m *GroupMember) Marshal() (dAtA []byte, err error)

func (*GroupMember) MarshalTo

func (m *GroupMember) MarshalTo(dAtA []byte) (int, error)

func (*GroupMember) MarshalToSizedBuffer

func (m *GroupMember) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupMember) ProtoMessage

func (*GroupMember) ProtoMessage()

func (*GroupMember) Reset

func (m *GroupMember) Reset()

func (*GroupMember) Size

func (m *GroupMember) Size() (n int)

func (*GroupMember) String

func (this *GroupMember) String() string

func (*GroupMember) ToGroupMemberPod added in v0.10.0

func (g *GroupMember) ToGroupMemberPod() *GroupMemberPod

Conversion functions between GroupMember and GroupMemberPod

func (*GroupMember) Unmarshal

func (m *GroupMember) Unmarshal(dAtA []byte) error

func (*GroupMember) XXX_DiscardUnknown

func (m *GroupMember) XXX_DiscardUnknown()

func (*GroupMember) XXX_Marshal

func (m *GroupMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupMember) XXX_Merge

func (m *GroupMember) XXX_Merge(src proto.Message)

func (*GroupMember) XXX_Size

func (m *GroupMember) XXX_Size() int

func (*GroupMember) XXX_Unmarshal

func (m *GroupMember) XXX_Unmarshal(b []byte) error

type GroupMemberPod

type GroupMemberPod struct {
	// Pod maintains the reference to the Pod.
	Pod *PodReference `json:"pod,omitempty" protobuf:"bytes,1,opt,name=pod"`
	// IP maintains the IPAddress associated with the Pod.
	IP IPAddress `json:"ip,omitempty" protobuf:"bytes,2,opt,name=ip"`
	// Ports maintain the named port mapping of this Pod.
	Ports []NamedPort `json:"ports,omitempty" protobuf:"bytes,3,rep,name=ports"`
}

GroupMemberPod represents a GroupMember related to Pods.

func (*GroupMemberPod) DeepCopy

func (in *GroupMemberPod) DeepCopy() *GroupMemberPod

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupMemberPod.

func (*GroupMemberPod) DeepCopyInto

func (in *GroupMemberPod) DeepCopyInto(out *GroupMemberPod)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GroupMemberPod) Descriptor

func (*GroupMemberPod) Descriptor() ([]byte, []int)

func (*GroupMemberPod) Marshal

func (m *GroupMemberPod) Marshal() (dAtA []byte, err error)

func (*GroupMemberPod) MarshalTo

func (m *GroupMemberPod) MarshalTo(dAtA []byte) (int, error)

func (*GroupMemberPod) MarshalToSizedBuffer

func (m *GroupMemberPod) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupMemberPod) ProtoMessage

func (*GroupMemberPod) ProtoMessage()

func (*GroupMemberPod) Reset

func (m *GroupMemberPod) Reset()

func (*GroupMemberPod) Size

func (m *GroupMemberPod) Size() (n int)

func (*GroupMemberPod) String

func (this *GroupMemberPod) String() string

func (*GroupMemberPod) ToGroupMember added in v0.10.0

func (p *GroupMemberPod) ToGroupMember() *GroupMember

func (*GroupMemberPod) Unmarshal

func (m *GroupMemberPod) Unmarshal(dAtA []byte) error

func (*GroupMemberPod) XXX_DiscardUnknown

func (m *GroupMemberPod) XXX_DiscardUnknown()

func (*GroupMemberPod) XXX_Marshal

func (m *GroupMemberPod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupMemberPod) XXX_Merge

func (m *GroupMemberPod) XXX_Merge(src proto.Message)

func (*GroupMemberPod) XXX_Size

func (m *GroupMemberPod) XXX_Size() int

func (*GroupMemberPod) XXX_Unmarshal

func (m *GroupMemberPod) XXX_Unmarshal(b []byte) error

type GroupMemberPodSet

type GroupMemberPodSet map[groupMemberPodKey]*GroupMemberPod

GroupMemberPodSet is a set of GroupMemberPods.

func NewGroupMemberPodSet

func NewGroupMemberPodSet(items ...*GroupMemberPod) GroupMemberPodSet

NewGroupMemberPodSet builds a GroupMemberPodSet from a list of GroupMemberPod.

func (GroupMemberPodSet) DeepCopy

func (in GroupMemberPodSet) DeepCopy() GroupMemberPodSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupMemberPodSet.

func (GroupMemberPodSet) DeepCopyInto

func (in GroupMemberPodSet) DeepCopyInto(out *GroupMemberPodSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (GroupMemberPodSet) Delete

func (s GroupMemberPodSet) Delete(items ...*GroupMemberPod)

Delete removes all items from the set.

func (GroupMemberPodSet) Difference

Difference returns a set of Pod references that are not in o.

func (GroupMemberPodSet) Equal

Equal returns true if and only if s1 is equal (as a set) to s2. Two sets are equal if their membership is identical. (In practice, this means same elements, order doesn't matter)

func (GroupMemberPodSet) Has

func (s GroupMemberPodSet) Has(item *GroupMemberPod) bool

Has returns true if and only if item is contained in the set.

func (GroupMemberPodSet) Insert

func (s GroupMemberPodSet) Insert(items ...*GroupMemberPod)

Insert adds items to the set.

func (GroupMemberPodSet) IsSuperset

func (s GroupMemberPodSet) IsSuperset(o GroupMemberPodSet) bool

IsSuperset returns true if and only if s1 is a superset of s2.

func (GroupMemberPodSet) Items

func (s GroupMemberPodSet) Items() []*GroupMemberPod

Items returns the slice with contents in random order.

func (GroupMemberPodSet) Union

Union returns a new set which includes items in either m or o.

type GroupMemberSet added in v0.10.0

type GroupMemberSet map[groupMemberKey]*GroupMember

GroupMemberSet is a set of GroupMembers. +k8s:openapi-gen=false +k8s:deepcopy-gen=false

func NewGroupMemberSet added in v0.10.0

func NewGroupMemberSet(items ...*GroupMember) GroupMemberSet

NewGroupMemberSet builds a GroupMemberSet from a list of GroupMember.

func (GroupMemberSet) Delete added in v0.10.0

func (s GroupMemberSet) Delete(items ...*GroupMember)

Delete removes all items from the set.

func (GroupMemberSet) Difference added in v0.10.0

Difference returns a set of GroupMembers that are not in o.

func (GroupMemberSet) Equal added in v0.10.0

func (s GroupMemberSet) Equal(o GroupMemberSet) bool

Equal returns true if and only if s1 is equal (as a set) to s2. Two sets are equal if their membership is identical. (In practice, this means same elements, order doesn't matter)

func (GroupMemberSet) Has added in v0.10.0

func (s GroupMemberSet) Has(item *GroupMember) bool

Has returns true if and only if item is contained in the set.

func (GroupMemberSet) Insert added in v0.10.0

func (s GroupMemberSet) Insert(items ...*GroupMember)

Insert adds items to the set.

func (GroupMemberSet) IsSuperset added in v0.10.0

func (s GroupMemberSet) IsSuperset(o GroupMemberSet) bool

IsSuperset returns true if and only if s1 is a superset of s2.

func (GroupMemberSet) Items added in v0.10.0

func (s GroupMemberSet) Items() []*GroupMember

Items returns the slice with contents in random order.

func (GroupMemberSet) Union added in v0.10.0

Union returns a new set which includes items in either m or o.

type IPAddress

type IPAddress []byte

IPAddress describes a single IP address. Either an IPv4 or IPv6 address must be set.

func (IPAddress) DeepCopy

func (in IPAddress) DeepCopy() IPAddress

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddress.

func (IPAddress) DeepCopyInto

func (in IPAddress) DeepCopyInto(out *IPAddress)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IPBlock

type IPBlock struct {
	// CIDR is an IPNet represents the IP Block.
	CIDR IPNet `json:"cidr" protobuf:"bytes,1,name=cidr"`
	// Except is a slice of IPNets that should not be included within an IP Block.
	// Except values will be rejected if they are outside the CIDR range.
	// +optional
	Except []IPNet `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"`
}

IPBlock describes a particular CIDR (Ex. "192.168.1.1/24"). The except entry describes CIDRs that should not be included within this rule.

func (*IPBlock) DeepCopy

func (in *IPBlock) DeepCopy() *IPBlock

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock.

func (*IPBlock) DeepCopyInto

func (in *IPBlock) DeepCopyInto(out *IPBlock)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IPBlock) Descriptor

func (*IPBlock) Descriptor() ([]byte, []int)

func (*IPBlock) Marshal

func (m *IPBlock) Marshal() (dAtA []byte, err error)

func (*IPBlock) MarshalTo

func (m *IPBlock) MarshalTo(dAtA []byte) (int, error)

func (*IPBlock) MarshalToSizedBuffer

func (m *IPBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IPBlock) ProtoMessage

func (*IPBlock) ProtoMessage()

func (*IPBlock) Reset

func (m *IPBlock) Reset()

func (*IPBlock) Size

func (m *IPBlock) Size() (n int)

func (*IPBlock) String

func (this *IPBlock) String() string

func (*IPBlock) Unmarshal

func (m *IPBlock) Unmarshal(dAtA []byte) error

func (*IPBlock) XXX_DiscardUnknown

func (m *IPBlock) XXX_DiscardUnknown()

func (*IPBlock) XXX_Marshal

func (m *IPBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IPBlock) XXX_Merge

func (m *IPBlock) XXX_Merge(src proto.Message)

func (*IPBlock) XXX_Size

func (m *IPBlock) XXX_Size() int

func (*IPBlock) XXX_Unmarshal

func (m *IPBlock) XXX_Unmarshal(b []byte) error

type IPNet

type IPNet struct {
	IP           IPAddress `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"`
	PrefixLength int32     `json:"prefixLength,omitempty" protobuf:"varint,2,opt,name=prefixLength"`
}

IPNet describes an IP network.

func (*IPNet) DeepCopy

func (in *IPNet) DeepCopy() *IPNet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPNet.

func (*IPNet) DeepCopyInto

func (in *IPNet) DeepCopyInto(out *IPNet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IPNet) Descriptor

func (*IPNet) Descriptor() ([]byte, []int)

func (*IPNet) Marshal

func (m *IPNet) Marshal() (dAtA []byte, err error)

func (*IPNet) MarshalTo

func (m *IPNet) MarshalTo(dAtA []byte) (int, error)

func (*IPNet) MarshalToSizedBuffer

func (m *IPNet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IPNet) ProtoMessage

func (*IPNet) ProtoMessage()

func (*IPNet) Reset

func (m *IPNet) Reset()

func (*IPNet) Size

func (m *IPNet) Size() (n int)

func (*IPNet) String

func (this *IPNet) String() string

func (*IPNet) Unmarshal

func (m *IPNet) Unmarshal(dAtA []byte) error

func (*IPNet) XXX_DiscardUnknown

func (m *IPNet) XXX_DiscardUnknown()

func (*IPNet) XXX_Marshal

func (m *IPNet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IPNet) XXX_Merge

func (m *IPNet) XXX_Merge(src proto.Message)

func (*IPNet) XXX_Size

func (m *IPNet) XXX_Size() int

func (*IPNet) XXX_Unmarshal

func (m *IPNet) XXX_Unmarshal(b []byte) error

type NamedPort

type NamedPort struct {
	// Port represents the Port number.
	Port int32 `json:"port,omitempty" protobuf:"varint,1,opt,name=port"`
	// Name represents the associated name with this Port number.
	Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"`
	// Protocol for port. Must be UDP, TCP, or SCTP.
	Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,3,opt,name=protocol"`
}

NamedPort represents a Port with a name on Pod.

func (*NamedPort) DeepCopy

func (in *NamedPort) DeepCopy() *NamedPort

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedPort.

func (*NamedPort) DeepCopyInto

func (in *NamedPort) DeepCopyInto(out *NamedPort)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamedPort) Descriptor

func (*NamedPort) Descriptor() ([]byte, []int)

func (*NamedPort) Marshal

func (m *NamedPort) Marshal() (dAtA []byte, err error)

func (*NamedPort) MarshalTo

func (m *NamedPort) MarshalTo(dAtA []byte) (int, error)

func (*NamedPort) MarshalToSizedBuffer

func (m *NamedPort) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamedPort) ProtoMessage

func (*NamedPort) ProtoMessage()

func (*NamedPort) Reset

func (m *NamedPort) Reset()

func (*NamedPort) Size

func (m *NamedPort) Size() (n int)

func (*NamedPort) String

func (this *NamedPort) String() string

func (*NamedPort) Unmarshal

func (m *NamedPort) Unmarshal(dAtA []byte) error

func (*NamedPort) XXX_DiscardUnknown

func (m *NamedPort) XXX_DiscardUnknown()

func (*NamedPort) XXX_Marshal

func (m *NamedPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NamedPort) XXX_Merge

func (m *NamedPort) XXX_Merge(src proto.Message)

func (*NamedPort) XXX_Size

func (m *NamedPort) XXX_Size() int

func (*NamedPort) XXX_Unmarshal

func (m *NamedPort) XXX_Unmarshal(b []byte) error

type NetworkPolicy

type NetworkPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	// Rules is a list of rules to be applied to the selected Pods.
	Rules []NetworkPolicyRule `json:"rules,omitempty" protobuf:"bytes,2,rep,name=rules"`
	// AppliedToGroups is a list of names of AppliedToGroups to which this policy applies.
	AppliedToGroups []string `json:"appliedToGroups,omitempty" protobuf:"bytes,3,rep,name=appliedToGroups"`
	// Priority represents the relative priority of this Network Policy as compared to
	// other Network Policies. Priority will be unset (nil) for K8s NetworkPolicy.
	Priority *float64 `json:"priority,omitempty" protobuf:"fixed64,4,opt,name=priority"`
	// TierPriority represents the priority of the Tier associated with this Network
	// Policy. The TierPriority will remain nil for K8s NetworkPolicy.
	TierPriority *int32 `json:"tierPriority,omitempty" protobuf:"varint,5,opt,name=tierPriority"`
	// Reference to the original NetworkPolicy that the internal NetworkPolicy is created for.
	SourceRef *NetworkPolicyReference `json:"sourceRef,omitempty" protobuf:"bytes,6,opt,name=sourceRef"`
}

+genclient +genclient:onlyVerbs=list,get,watch +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object NetworkPolicy is the message format of antrea/pkg/controller/types.NetworkPolicy in an API response.

func (*NetworkPolicy) DeepCopy

func (in *NetworkPolicy) DeepCopy() *NetworkPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.

func (*NetworkPolicy) DeepCopyInto

func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NetworkPolicy) DeepCopyObject

func (in *NetworkPolicy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*NetworkPolicy) Descriptor

func (*NetworkPolicy) Descriptor() ([]byte, []int)

func (*NetworkPolicy) Marshal

func (m *NetworkPolicy) Marshal() (dAtA []byte, err error)

func (*NetworkPolicy) MarshalTo

func (m *NetworkPolicy) MarshalTo(dAtA []byte) (int, error)

func (*NetworkPolicy) MarshalToSizedBuffer

func (m *NetworkPolicy) MarshalToSizedBuffer(dAtA []byte) (int, 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) Unmarshal

func (m *NetworkPolicy) Unmarshal(dAtA []byte) error

func (*NetworkPolicy) XXX_DiscardUnknown

func (m *NetworkPolicy) XXX_DiscardUnknown()

func (*NetworkPolicy) XXX_Marshal

func (m *NetworkPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkPolicy) XXX_Merge

func (m *NetworkPolicy) XXX_Merge(src proto.Message)

func (*NetworkPolicy) XXX_Size

func (m *NetworkPolicy) XXX_Size() int

func (*NetworkPolicy) XXX_Unmarshal

func (m *NetworkPolicy) XXX_Unmarshal(b []byte) error

type NetworkPolicyList

type NetworkPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []NetworkPolicy `json:"items" protobuf:"bytes,2,rep,name=items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object NetworkPolicyList is a list of NetworkPolicy objects.

func (*NetworkPolicyList) DeepCopy

func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.

func (*NetworkPolicyList) DeepCopyInto

func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NetworkPolicyList) DeepCopyObject

func (in *NetworkPolicyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

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) MarshalToSizedBuffer

func (m *NetworkPolicyList) MarshalToSizedBuffer(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) Unmarshal

func (m *NetworkPolicyList) Unmarshal(dAtA []byte) error

func (*NetworkPolicyList) XXX_DiscardUnknown

func (m *NetworkPolicyList) XXX_DiscardUnknown()

func (*NetworkPolicyList) XXX_Marshal

func (m *NetworkPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkPolicyList) XXX_Merge

func (m *NetworkPolicyList) XXX_Merge(src proto.Message)

func (*NetworkPolicyList) XXX_Size

func (m *NetworkPolicyList) XXX_Size() int

func (*NetworkPolicyList) XXX_Unmarshal

func (m *NetworkPolicyList) XXX_Unmarshal(b []byte) error

type NetworkPolicyPeer

type NetworkPolicyPeer struct {
	// A list of names of AddressGroups.
	AddressGroups []string `json:"addressGroups,omitempty" protobuf:"bytes,1,rep,name=addressGroups"`
	// A list of IPBlock.
	IPBlocks []IPBlock `json:"ipBlocks,omitempty" protobuf:"bytes,2,rep,name=ipBlocks"`
}

NetworkPolicyPeer describes a peer of NetworkPolicyRules. It could be a list of names of AddressGroups and/or a list of IPBlock.

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.

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) MarshalToSizedBuffer

func (m *NetworkPolicyPeer) MarshalToSizedBuffer(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) Unmarshal

func (m *NetworkPolicyPeer) Unmarshal(dAtA []byte) error

func (*NetworkPolicyPeer) XXX_DiscardUnknown

func (m *NetworkPolicyPeer) XXX_DiscardUnknown()

func (*NetworkPolicyPeer) XXX_Marshal

func (m *NetworkPolicyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkPolicyPeer) XXX_Merge

func (m *NetworkPolicyPeer) XXX_Merge(src proto.Message)

func (*NetworkPolicyPeer) XXX_Size

func (m *NetworkPolicyPeer) XXX_Size() int

func (*NetworkPolicyPeer) XXX_Unmarshal

func (m *NetworkPolicyPeer) XXX_Unmarshal(b []byte) error

type NetworkPolicyReference added in v0.10.0

type NetworkPolicyReference struct {
	// Type of the NetworkPolicy.
	Type NetworkPolicyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=NetworkPolicyType"`
	// Namespace of the NetworkPolicy. It's empty for Antrea ClusterNetworkPolicy.
	Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"`
	// Name of the NetworkPolicy.
	Name string `json:"name,omitempty" protobuf:"bytes,3,opt,name=name"`
	// UID of the NetworkPolicy.
	UID types.UID `json:"uid,omitempty" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
}

func (*NetworkPolicyReference) DeepCopy added in v0.10.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyReference.

func (*NetworkPolicyReference) DeepCopyInto added in v0.10.0

func (in *NetworkPolicyReference) DeepCopyInto(out *NetworkPolicyReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NetworkPolicyReference) Descriptor added in v0.10.0

func (*NetworkPolicyReference) Descriptor() ([]byte, []int)

func (*NetworkPolicyReference) Marshal added in v0.10.0

func (m *NetworkPolicyReference) Marshal() (dAtA []byte, err error)

func (*NetworkPolicyReference) MarshalTo added in v0.10.0

func (m *NetworkPolicyReference) MarshalTo(dAtA []byte) (int, error)

func (*NetworkPolicyReference) MarshalToSizedBuffer added in v0.10.0

func (m *NetworkPolicyReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NetworkPolicyReference) ProtoMessage added in v0.10.0

func (*NetworkPolicyReference) ProtoMessage()

func (*NetworkPolicyReference) Reset added in v0.10.0

func (m *NetworkPolicyReference) Reset()

func (*NetworkPolicyReference) Size added in v0.10.0

func (m *NetworkPolicyReference) Size() (n int)

func (*NetworkPolicyReference) String added in v0.10.0

func (this *NetworkPolicyReference) String() string

func (*NetworkPolicyReference) ToString added in v0.10.0

func (r *NetworkPolicyReference) ToString() string

func (*NetworkPolicyReference) Unmarshal added in v0.10.0

func (m *NetworkPolicyReference) Unmarshal(dAtA []byte) error

func (*NetworkPolicyReference) XXX_DiscardUnknown added in v0.10.0

func (m *NetworkPolicyReference) XXX_DiscardUnknown()

func (*NetworkPolicyReference) XXX_Marshal added in v0.10.0

func (m *NetworkPolicyReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkPolicyReference) XXX_Merge added in v0.10.0

func (m *NetworkPolicyReference) XXX_Merge(src proto.Message)

func (*NetworkPolicyReference) XXX_Size added in v0.10.0

func (m *NetworkPolicyReference) XXX_Size() int

func (*NetworkPolicyReference) XXX_Unmarshal added in v0.10.0

func (m *NetworkPolicyReference) XXX_Unmarshal(b []byte) error

type NetworkPolicyRule

type NetworkPolicyRule struct {
	// The direction of this rule.
	// If it's set to In, From must be set and To must not be set.
	// If it's set to Out, To must be set and From must not be set.
	Direction Direction `json:"direction,omitempty" protobuf:"bytes,1,opt,name=direction"`
	// From represents sources which should be able to access the pods selected by the policy.
	From NetworkPolicyPeer `json:"from,omitempty" protobuf:"bytes,2,opt,name=from"`
	// To represents destinations which should be able to be accessed by the pods selected by the policy.
	To NetworkPolicyPeer `json:"to,omitempty" protobuf:"bytes,3,opt,name=to"`
	// Services is a list of services which should be matched.
	Services []Service `json:"services,omitempty" protobuf:"bytes,4,rep,name=services"`
	// Priority defines the priority of the Rule as compared to other rules in the
	// NetworkPolicy.
	Priority int32 `json:"priority,omitempty" protobuf:"varint,5,opt,name=priority"`
	// Action specifies the action to be applied on the rule. i.e. Allow/Drop. An empty
	// action “nil” defaults to Allow action, which would be the case for rules created for
	// K8s Network Policy.
	Action *secv1alpha1.RuleAction `` /* 136-byte string literal not displayed */
	// EnableLogging indicates whether or not to generate logs when rules are matched. Default to false.
	EnableLogging bool `json:"enableLogging" protobuf:"varint,7,opt,name=enableLogging"`
}

NetworkPolicyRule describes a particular set of traffic that is allowed.

func (*NetworkPolicyRule) DeepCopy

func (in *NetworkPolicyRule) DeepCopy() *NetworkPolicyRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyRule.

func (*NetworkPolicyRule) DeepCopyInto

func (in *NetworkPolicyRule) DeepCopyInto(out *NetworkPolicyRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NetworkPolicyRule) Descriptor

func (*NetworkPolicyRule) Descriptor() ([]byte, []int)

func (*NetworkPolicyRule) Marshal

func (m *NetworkPolicyRule) Marshal() (dAtA []byte, err error)

func (*NetworkPolicyRule) MarshalTo

func (m *NetworkPolicyRule) MarshalTo(dAtA []byte) (int, error)

func (*NetworkPolicyRule) MarshalToSizedBuffer

func (m *NetworkPolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NetworkPolicyRule) ProtoMessage

func (*NetworkPolicyRule) ProtoMessage()

func (*NetworkPolicyRule) Reset

func (m *NetworkPolicyRule) Reset()

func (*NetworkPolicyRule) Size

func (m *NetworkPolicyRule) Size() (n int)

func (*NetworkPolicyRule) String

func (this *NetworkPolicyRule) String() string

func (*NetworkPolicyRule) Unmarshal

func (m *NetworkPolicyRule) Unmarshal(dAtA []byte) error

func (*NetworkPolicyRule) XXX_DiscardUnknown

func (m *NetworkPolicyRule) XXX_DiscardUnknown()

func (*NetworkPolicyRule) XXX_Marshal

func (m *NetworkPolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkPolicyRule) XXX_Merge

func (m *NetworkPolicyRule) XXX_Merge(src proto.Message)

func (*NetworkPolicyRule) XXX_Size

func (m *NetworkPolicyRule) XXX_Size() int

func (*NetworkPolicyRule) XXX_Unmarshal

func (m *NetworkPolicyRule) XXX_Unmarshal(b []byte) error

type NetworkPolicyStats added in v0.10.0

type NetworkPolicyStats struct {
	// The reference of the NetworkPolicy.
	NetworkPolicy NetworkPolicyReference `json:"networkPolicy,omitempty" protobuf:"bytes,1,opt,name=networkPolicy"`
	// The stats of the NetworkPolicy.
	TrafficStats statsv1alpha1.TrafficStats `json:"trafficStats,omitempty" protobuf:"bytes,2,opt,name=trafficStats"`
}

NetworkPolicyStats contains the information and traffic stats of a NetworkPolicy.

func (*NetworkPolicyStats) DeepCopy added in v0.10.0

func (in *NetworkPolicyStats) DeepCopy() *NetworkPolicyStats

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyStats.

func (*NetworkPolicyStats) DeepCopyInto added in v0.10.0

func (in *NetworkPolicyStats) DeepCopyInto(out *NetworkPolicyStats)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NetworkPolicyStats) Descriptor added in v0.10.0

func (*NetworkPolicyStats) Descriptor() ([]byte, []int)

func (*NetworkPolicyStats) Marshal added in v0.10.0

func (m *NetworkPolicyStats) Marshal() (dAtA []byte, err error)

func (*NetworkPolicyStats) MarshalTo added in v0.10.0

func (m *NetworkPolicyStats) MarshalTo(dAtA []byte) (int, error)

func (*NetworkPolicyStats) MarshalToSizedBuffer added in v0.10.0

func (m *NetworkPolicyStats) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NetworkPolicyStats) ProtoMessage added in v0.10.0

func (*NetworkPolicyStats) ProtoMessage()

func (*NetworkPolicyStats) Reset added in v0.10.0

func (m *NetworkPolicyStats) Reset()

func (*NetworkPolicyStats) Size added in v0.10.0

func (m *NetworkPolicyStats) Size() (n int)

func (*NetworkPolicyStats) String added in v0.10.0

func (this *NetworkPolicyStats) String() string

func (*NetworkPolicyStats) Unmarshal added in v0.10.0

func (m *NetworkPolicyStats) Unmarshal(dAtA []byte) error

func (*NetworkPolicyStats) XXX_DiscardUnknown added in v0.10.0

func (m *NetworkPolicyStats) XXX_DiscardUnknown()

func (*NetworkPolicyStats) XXX_Marshal added in v0.10.0

func (m *NetworkPolicyStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkPolicyStats) XXX_Merge added in v0.10.0

func (m *NetworkPolicyStats) XXX_Merge(src proto.Message)

func (*NetworkPolicyStats) XXX_Size added in v0.10.0

func (m *NetworkPolicyStats) XXX_Size() int

func (*NetworkPolicyStats) XXX_Unmarshal added in v0.10.0

func (m *NetworkPolicyStats) XXX_Unmarshal(b []byte) error

type NetworkPolicyType added in v0.10.0

type NetworkPolicyType string
const (
	K8sNetworkPolicy           NetworkPolicyType = "K8sNetworkPolicy"
	AntreaClusterNetworkPolicy NetworkPolicyType = "AntreaClusterNetworkPolicy"
	AntreaNetworkPolicy        NetworkPolicyType = "AntreaNetworkPolicy"
)

type NodeStatsSummary added in v0.10.0

type NodeStatsSummary struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// The TrafficStats of K8s NetworkPolicies collected from the Node.
	NetworkPolicies []NetworkPolicyStats `json:"networkPolicies,omitempty" protobuf:"bytes,2,rep,name=networkPolicies"`
	// The TrafficStats of Antrea ClusterNetworkPolicies collected from the Node.
	AntreaClusterNetworkPolicies []NetworkPolicyStats `json:"antreaClusterNetworkPolicies,omitempty" protobuf:"bytes,3,rep,name=antreaClusterNetworkPolicies"`
	// The TrafficStats of Antrea NetworkPolicies collected from the Node.
	AntreaNetworkPolicies []NetworkPolicyStats `json:"antreaNetworkPolicies,omitempty" protobuf:"bytes,4,rep,name=antreaNetworkPolicies"`
}

NodeStatsSummary contains stats produced on a Node. It's used by the antrea-agents to report stats to the antrea-controller.

func (*NodeStatsSummary) DeepCopy added in v0.10.0

func (in *NodeStatsSummary) DeepCopy() *NodeStatsSummary

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStatsSummary.

func (*NodeStatsSummary) DeepCopyInto added in v0.10.0

func (in *NodeStatsSummary) DeepCopyInto(out *NodeStatsSummary)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeStatsSummary) DeepCopyObject added in v0.10.0

func (in *NodeStatsSummary) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*NodeStatsSummary) Descriptor added in v0.10.0

func (*NodeStatsSummary) Descriptor() ([]byte, []int)

func (*NodeStatsSummary) Marshal added in v0.10.0

func (m *NodeStatsSummary) Marshal() (dAtA []byte, err error)

func (*NodeStatsSummary) MarshalTo added in v0.10.0

func (m *NodeStatsSummary) MarshalTo(dAtA []byte) (int, error)

func (*NodeStatsSummary) MarshalToSizedBuffer added in v0.10.0

func (m *NodeStatsSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NodeStatsSummary) ProtoMessage added in v0.10.0

func (*NodeStatsSummary) ProtoMessage()

func (*NodeStatsSummary) Reset added in v0.10.0

func (m *NodeStatsSummary) Reset()

func (*NodeStatsSummary) Size added in v0.10.0

func (m *NodeStatsSummary) Size() (n int)

func (*NodeStatsSummary) String added in v0.10.0

func (this *NodeStatsSummary) String() string

func (*NodeStatsSummary) Unmarshal added in v0.10.0

func (m *NodeStatsSummary) Unmarshal(dAtA []byte) error

func (*NodeStatsSummary) XXX_DiscardUnknown added in v0.10.0

func (m *NodeStatsSummary) XXX_DiscardUnknown()

func (*NodeStatsSummary) XXX_Marshal added in v0.10.0

func (m *NodeStatsSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeStatsSummary) XXX_Merge added in v0.10.0

func (m *NodeStatsSummary) XXX_Merge(src proto.Message)

func (*NodeStatsSummary) XXX_Size added in v0.10.0

func (m *NodeStatsSummary) XXX_Size() int

func (*NodeStatsSummary) XXX_Unmarshal added in v0.10.0

func (m *NodeStatsSummary) XXX_Unmarshal(b []byte) error

type PodReference

type PodReference struct {
	// The name of this pod.
	Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
	// The namespace of this pod.
	Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"`
}

PodReference represents a Pod Reference.

func (*PodReference) DeepCopy

func (in *PodReference) DeepCopy() *PodReference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodReference.

func (*PodReference) DeepCopyInto

func (in *PodReference) DeepCopyInto(out *PodReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodReference) Descriptor

func (*PodReference) Descriptor() ([]byte, []int)

func (*PodReference) Marshal

func (m *PodReference) Marshal() (dAtA []byte, err error)

func (*PodReference) MarshalTo

func (m *PodReference) MarshalTo(dAtA []byte) (int, error)

func (*PodReference) MarshalToSizedBuffer

func (m *PodReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodReference) ProtoMessage

func (*PodReference) ProtoMessage()

func (*PodReference) Reset

func (m *PodReference) Reset()

func (*PodReference) Size

func (m *PodReference) Size() (n int)

func (*PodReference) String

func (this *PodReference) String() string

func (*PodReference) Unmarshal

func (m *PodReference) Unmarshal(dAtA []byte) error

func (*PodReference) XXX_DiscardUnknown

func (m *PodReference) XXX_DiscardUnknown()

func (*PodReference) XXX_Marshal

func (m *PodReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodReference) XXX_Merge

func (m *PodReference) XXX_Merge(src proto.Message)

func (*PodReference) XXX_Size

func (m *PodReference) XXX_Size() int

func (*PodReference) XXX_Unmarshal

func (m *PodReference) XXX_Unmarshal(b []byte) error

type Protocol

type Protocol string

Protocol defines network protocols supported for things like container ports.

const (
	// ProtocolTCP is the TCP protocol.
	ProtocolTCP Protocol = "TCP"
	// ProtocolUDP is the UDP protocol.
	ProtocolUDP Protocol = "UDP"
	// ProtocolSCTP is the SCTP protocol.
	ProtocolSCTP Protocol = "SCTP"
)

type Service

type Service struct {
	// The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
	// field defaults to TCP.
	// +optional
	Protocol *Protocol `json:"protocol,omitempty" protobuf:"bytes,1,opt,name=protocol"`
	// The port name or number on the given protocol. If not specified, this matches all port numbers.
	// +optional
	Port *intstr.IntOrString `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"`
}

Service describes a port to allow traffic on.

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Service) Descriptor

func (*Service) Descriptor() ([]byte, []int)

func (*Service) Marshal

func (m *Service) Marshal() (dAtA []byte, err error)

func (*Service) MarshalTo

func (m *Service) MarshalTo(dAtA []byte) (int, error)

func (*Service) MarshalToSizedBuffer

func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) Size

func (m *Service) Size() (n int)

func (*Service) String

func (this *Service) String() string

func (*Service) Unmarshal

func (m *Service) Unmarshal(dAtA []byte) error

func (*Service) XXX_DiscardUnknown

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal

func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Service) XXX_Merge

func (m *Service) XXX_Merge(src proto.Message)

func (*Service) XXX_Size

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal

func (m *Service) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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