Documentation ¶
Overview ¶
Package controlplane contains the latest (or "internal") version of the Antrea NetworkPolicy API messages. This is the API messages as represented in memory. The contract presented to clients is located in the versioned packages, which are sub-directories. The first one is "v1beta1". The messages are generated based on the stored NetworkPolicy objects, i.e. the objects defined in antrea/pkg/controller/types/networkpolicy.go.
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AddressGroup
- type AddressGroupList
- type AddressGroupPatch
- type AppliedToGroup
- type AppliedToGroupList
- type AppliedToGroupPatch
- type ClusterGroupMembers
- type Direction
- type EgressGroup
- type EgressGroupList
- type EgressGroupPatch
- type ExternalEntityReference
- type GroupAssociation
- type GroupMember
- type GroupMemberSet
- func (s GroupMemberSet) Delete(items ...*GroupMember)
- func (s GroupMemberSet) Difference(o GroupMemberSet) GroupMemberSet
- func (s GroupMemberSet) Equal(o GroupMemberSet) bool
- func (s GroupMemberSet) Has(item *GroupMember) bool
- func (s GroupMemberSet) IPDifference(o GroupMemberSet) sets.String
- func (s GroupMemberSet) Insert(items ...*GroupMember)
- func (s GroupMemberSet) IsSuperset(o GroupMemberSet) bool
- func (s GroupMemberSet) Items() []*GroupMember
- func (s GroupMemberSet) Merge(o GroupMemberSet) GroupMemberSet
- func (s GroupMemberSet) Union(o GroupMemberSet) GroupMemberSet
- type GroupReference
- type IPAddress
- type IPBlock
- type IPNet
- type NamedPort
- type NetworkPolicy
- type NetworkPolicyList
- type NetworkPolicyNodeStatus
- type NetworkPolicyPeer
- type NetworkPolicyReference
- type NetworkPolicyRule
- type NetworkPolicyStats
- type NetworkPolicyStatus
- type NetworkPolicyType
- type NodeReference
- type NodeStatsSummary
- type PaginationGetOptions
- type PodReference
- type Protocol
- type Service
- type ServiceReference
Constants ¶
const GroupName = "controlplane.antrea.io"
GroupName is the group name used in this package.
Variables ¶
var ( // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type AddressGroup ¶
type AddressGroup struct { metav1.TypeMeta metav1.ObjectMeta // GroupMembers is a list of GroupMember selected by this group. GroupMembers []GroupMember }
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.
type AddressGroupList ¶
type AddressGroupList struct { metav1.TypeMeta metav1.ListMeta Items []AddressGroup }
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.
type AddressGroupPatch ¶
type AddressGroupPatch struct { metav1.TypeMeta metav1.ObjectMeta AddedGroupMembers []GroupMember RemovedGroupMembers []GroupMember }
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.
type AppliedToGroup ¶
type AppliedToGroup struct { metav1.TypeMeta metav1.ObjectMeta // GroupMembers is a list of resources selected by this group. GroupMembers []GroupMember }
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.
type AppliedToGroupList ¶
type AppliedToGroupList struct { metav1.TypeMeta metav1.ListMeta Items []AppliedToGroup }
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.
type AppliedToGroupPatch ¶
type AppliedToGroupPatch struct { metav1.TypeMeta metav1.ObjectMeta AddedGroupMembers []GroupMember RemovedGroupMembers []GroupMember }
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.
type ClusterGroupMembers ¶
type ClusterGroupMembers struct { metav1.TypeMeta metav1.ObjectMeta EffectiveMembers []GroupMember EffectiveIPBlocks []IPNet TotalMembers int64 TotalPages int64 CurrentPage int64 }
ClusterGroupMembers is a list of GroupMember objects or ipBlocks that are currently selected by a ClusterGroup.
func (*ClusterGroupMembers) DeepCopy ¶
func (in *ClusterGroupMembers) DeepCopy() *ClusterGroupMembers
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupMembers.
func (*ClusterGroupMembers) DeepCopyInto ¶
func (in *ClusterGroupMembers) DeepCopyInto(out *ClusterGroupMembers)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterGroupMembers) DeepCopyObject ¶
func (in *ClusterGroupMembers) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EgressGroup ¶
type EgressGroup struct { metav1.TypeMeta metav1.ObjectMeta // GroupMembers is a list of GroupMember selected by this group. GroupMembers []GroupMember }
func (*EgressGroup) DeepCopy ¶
func (in *EgressGroup) DeepCopy() *EgressGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressGroup.
func (*EgressGroup) DeepCopyInto ¶
func (in *EgressGroup) DeepCopyInto(out *EgressGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EgressGroup) DeepCopyObject ¶
func (in *EgressGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EgressGroupList ¶
type EgressGroupList struct { metav1.TypeMeta metav1.ListMeta Items []EgressGroup }
EgressGroupList is a list of EgressGroup objects.
func (*EgressGroupList) DeepCopy ¶
func (in *EgressGroupList) DeepCopy() *EgressGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressGroupList.
func (*EgressGroupList) DeepCopyInto ¶
func (in *EgressGroupList) DeepCopyInto(out *EgressGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EgressGroupList) DeepCopyObject ¶
func (in *EgressGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EgressGroupPatch ¶
type EgressGroupPatch struct { metav1.TypeMeta metav1.ObjectMeta AddedGroupMembers []GroupMember RemovedGroupMembers []GroupMember }
EgressGroupPatch describes the incremental update of an EgressGroup.
func (*EgressGroupPatch) DeepCopy ¶
func (in *EgressGroupPatch) DeepCopy() *EgressGroupPatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressGroupPatch.
func (*EgressGroupPatch) DeepCopyInto ¶
func (in *EgressGroupPatch) DeepCopyInto(out *EgressGroupPatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EgressGroupPatch) DeepCopyObject ¶
func (in *EgressGroupPatch) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExternalEntityReference ¶
type ExternalEntityReference struct { // The name of this ExternalEntity. Name string // The Namespace of this ExternalEntity. Namespace string }
ExternalEntityReference represents a ExternalEntity Reference.
func (*ExternalEntityReference) DeepCopy ¶
func (in *ExternalEntityReference) DeepCopy() *ExternalEntityReference
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.
type GroupAssociation ¶
type GroupAssociation struct { metav1.TypeMeta metav1.ObjectMeta // AssociatedGroups is a list of GroupReferences that is associated with the // Pod/ExternalEntity being queried. AssociatedGroups []GroupReference }
GroupAssociation is a list of GroupReferences for responses to groupassociation queries.
func (*GroupAssociation) DeepCopy ¶
func (in *GroupAssociation) DeepCopy() *GroupAssociation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupAssociation.
func (*GroupAssociation) DeepCopyInto ¶
func (in *GroupAssociation) DeepCopyInto(out *GroupAssociation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupAssociation) DeepCopyObject ¶
func (in *GroupAssociation) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GroupMember ¶
type GroupMember struct { // Pod maintains the reference to the Pod. Pod *PodReference // ExternalEntity maintains the reference to the ExternalEntity. ExternalEntity *ExternalEntityReference // Node maintains the reference to the Node. Node *NodeReference // IP is the IP address of the Endpoints associated with the GroupMember. IPs []IPAddress // Ports is the list NamedPort of the GroupMember. Ports []NamedPort }
GroupMember represents a resource member to be populated in Groups.
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.
type GroupMemberSet ¶
type GroupMemberSet map[groupMemberKey]*GroupMember
GroupMemberSet is a set of GroupMembers. +k8s:openapi-gen=false +k8s:deepcopy-gen=false
func NewGroupMemberSet ¶
func NewGroupMemberSet(items ...*GroupMember) GroupMemberSet
NewGroupMemberSet builds a GroupMemberSet from a list of GroupMember.
func (GroupMemberSet) Delete ¶
func (s GroupMemberSet) Delete(items ...*GroupMember)
Delete removes all items from the set.
func (GroupMemberSet) Difference ¶
func (s GroupMemberSet) Difference(o GroupMemberSet) GroupMemberSet
Difference returns a set of GroupMembers that are not in o.
func (GroupMemberSet) Equal ¶
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 ¶
func (s GroupMemberSet) Has(item *GroupMember) bool
Has returns true if and only if item is contained in the set.
func (GroupMemberSet) IPDifference ¶
func (s GroupMemberSet) IPDifference(o GroupMemberSet) sets.String
IPDifference returns a String set of GroupMember IPs that are not in o.
func (GroupMemberSet) Insert ¶
func (s GroupMemberSet) Insert(items ...*GroupMember)
Insert adds items to the set.
func (GroupMemberSet) IsSuperset ¶
func (s GroupMemberSet) IsSuperset(o GroupMemberSet) bool
IsSuperset returns true if and only if s1 is a superset of s2.
func (GroupMemberSet) Items ¶
func (s GroupMemberSet) Items() []*GroupMember
Items returns the slice with contents in random order.
func (GroupMemberSet) Merge ¶ added in v1.2.1
func (s GroupMemberSet) Merge(o GroupMemberSet) GroupMemberSet
Merge merges the other set into the set. For example: s1 = {a1, a2, a3} s2 = {a1, a2, a4, a5} s1.Merge(s2) = {a1, a2, a3, a4, a5} s1 = {a1, a2, a3, a4, a5}
It should be used instead of s1.Union(s2) when constructing a new set is not required.
func (GroupMemberSet) Union ¶
func (s GroupMemberSet) Union(o GroupMemberSet) GroupMemberSet
Union returns a new set which includes items in either m or o.
type GroupReference ¶
type GroupReference struct { // Namespace of the Group. Empty for ClusterGroup. Namespace string // Name of the Group. Name string // UID of the Group. UID types.UID }
func (*GroupReference) DeepCopy ¶
func (in *GroupReference) DeepCopy() *GroupReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupReference.
func (*GroupReference) DeepCopyInto ¶
func (in *GroupReference) DeepCopyInto(out *GroupReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPAddress ¶
type IPAddress []byte
IPAddress describes a single IP address. Either an IPv4 or IPv6 address must be set.
func (IPAddress) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddress.
func (IPAddress) DeepCopyInto ¶
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 // 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 }
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock.
func (*IPBlock) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPNet ¶
IPNet describes an IP network.
func (*IPNet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPNet.
func (*IPNet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamedPort ¶
type NamedPort struct { // Port represents the Port number. Port int32 // Name represents the associated name with this Port number. Name string // Protocol for port. Must be UDP, TCP, or SCTP. Protocol Protocol }
NamedPort represents a Port with a name on Pod.
func (*NamedPort) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedPort.
func (*NamedPort) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicy ¶
type NetworkPolicy struct { metav1.TypeMeta metav1.ObjectMeta // Rules is a list of rules to be applied to the selected GroupMembers. Rules []NetworkPolicyRule // AppliedToGroups is a list of names of AppliedToGroups to which this policy applies. // Cannot be set in conjunction with any NetworkPolicyRule.AppliedToGroups in Rules. AppliedToGroups []string // Priority represents the relative priority of this NetworkPolicy as compared to // other NetworkPolicies. Priority will be unset (nil) for K8s NetworkPolicy. Priority *float64 // TierPriority represents the priority of the Tier associated with this NetworkPolicy. // The TierPriority will remain nil for K8s NetworkPolicy. TierPriority *int32 // Reference to the original NetworkPolicy that the internal NetworkPolicy is created for. SourceRef *NetworkPolicyReference }
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.
type NetworkPolicyList ¶
type NetworkPolicyList struct { metav1.TypeMeta metav1.ListMeta Items []NetworkPolicy }
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.
type NetworkPolicyNodeStatus ¶
type NetworkPolicyNodeStatus struct { // The name of the Node that produces the status. NodeName string // The generation realized by the Node. Generation int64 }
NetworkPolicyNodeStatus is the status of a NetworkPolicy on a Node.
func (*NetworkPolicyNodeStatus) DeepCopy ¶
func (in *NetworkPolicyNodeStatus) DeepCopy() *NetworkPolicyNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyNodeStatus.
func (*NetworkPolicyNodeStatus) DeepCopyInto ¶
func (in *NetworkPolicyNodeStatus) DeepCopyInto(out *NetworkPolicyNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicyPeer ¶
type NetworkPolicyPeer struct { // A list of names of AddressGroups. AddressGroups []string // A list of IPBlock. IPBlocks []IPBlock // A list of exact FQDN names or FQDN wildcard expressions. // This field can only be possibly set for NetworkPolicyPeer of egress rules. FQDNs []string // A list of ServiceReference. // This field can only be possibly set for NetworkPolicyPeer of egress rules. ToServices []ServiceReference }
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.
type NetworkPolicyReference ¶
type NetworkPolicyReference struct { // Type of the NetworkPolicy. Type NetworkPolicyType // Namespace of the NetworkPolicy. It's empty for Antrea ClusterNetworkPolicy. Namespace string // Name of the NetworkPolicy. Name string // UID of the NetworkPolicy. UID types.UID }
func (*NetworkPolicyReference) DeepCopy ¶
func (in *NetworkPolicyReference) DeepCopy() *NetworkPolicyReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyReference.
func (*NetworkPolicyReference) DeepCopyInto ¶
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) ToString ¶
func (r *NetworkPolicyReference) ToString() string
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 // From represents sources which should be able to access the GroupMembers selected by the policy. From NetworkPolicyPeer // To represents destinations which should be able to be accessed by the GroupMembers selected by the policy. To NetworkPolicyPeer // Services is a list of services which should be matched. Services []Service // Name describes the intention of this rule. // Name should be unique within the policy. Name string // Priority defines the priority of the Rule as compared to other rules in the // NetworkPolicy. Priority int32 // 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 NetworkPolicy. Action *crdv1alpha1.RuleAction // EnableLogging is used to indicate if agent should generate logs // when rules are matched. Should be default to false. EnableLogging bool // AppliedToGroups is a list of names of AppliedToGroups to which this rule applies. // Cannot be set in conjunction with NetworkPolicy.AppliedToGroups of the NetworkPolicy // that this Rule is referred to. AppliedToGroups []string }
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.
type NetworkPolicyStats ¶
type NetworkPolicyStats struct { // The reference of the NetworkPolicy. NetworkPolicy NetworkPolicyReference // The stats of the NetworkPolicy. TrafficStats statsv1alpha1.TrafficStats // The stats of the NetworkPolicy rules. It's empty for K8s NetworkPolicies as they don't have rule name to identify a rule. RuleTrafficStats []statsv1alpha1.RuleTrafficStats }
NetworkPolicyStats contains the information and traffic stats of a NetworkPolicy.
func (*NetworkPolicyStats) DeepCopy ¶
func (in *NetworkPolicyStats) DeepCopy() *NetworkPolicyStats
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyStats.
func (*NetworkPolicyStats) DeepCopyInto ¶
func (in *NetworkPolicyStats) DeepCopyInto(out *NetworkPolicyStats)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkPolicyStatus ¶
type NetworkPolicyStatus struct { metav1.TypeMeta metav1.ObjectMeta // Nodes contains statuses produced on a list of Nodes. Nodes []NetworkPolicyNodeStatus }
NetworkPolicyStatus is the status of a NetworkPolicy.
func (*NetworkPolicyStatus) DeepCopy ¶
func (in *NetworkPolicyStatus) DeepCopy() *NetworkPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyStatus.
func (*NetworkPolicyStatus) DeepCopyInto ¶
func (in *NetworkPolicyStatus) DeepCopyInto(out *NetworkPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkPolicyStatus) DeepCopyObject ¶
func (in *NetworkPolicyStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkPolicyType ¶
type NetworkPolicyType string
const ( K8sNetworkPolicy NetworkPolicyType = "K8sNetworkPolicy" AntreaClusterNetworkPolicy NetworkPolicyType = "AntreaClusterNetworkPolicy" AntreaNetworkPolicy NetworkPolicyType = "AntreaNetworkPolicy" )
type NodeReference ¶ added in v1.6.0
type NodeReference struct { // The name of this Node. Name string }
NodeReference represents a Node Reference.
func (*NodeReference) DeepCopy ¶ added in v1.6.0
func (in *NodeReference) DeepCopy() *NodeReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeReference.
func (*NodeReference) DeepCopyInto ¶ added in v1.6.0
func (in *NodeReference) DeepCopyInto(out *NodeReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeStatsSummary ¶
type NodeStatsSummary struct { metav1.TypeMeta metav1.ObjectMeta // The TrafficStats of K8s NetworkPolicies collected from the Node. NetworkPolicies []NetworkPolicyStats // The TrafficStats of Antrea ClusterNetworkPolicies collected from the Node. AntreaClusterNetworkPolicies []NetworkPolicyStats // The TrafficStats of Antrea NetworkPolicies collected from the Node. AntreaNetworkPolicies []NetworkPolicyStats }
NodeStatsSummary contains stats produced on a Node. It's used by the antrea-agents to report stats to the antrea-controller.
func (*NodeStatsSummary) DeepCopy ¶
func (in *NodeStatsSummary) DeepCopy() *NodeStatsSummary
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStatsSummary.
func (*NodeStatsSummary) DeepCopyInto ¶
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 ¶
func (in *NodeStatsSummary) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PaginationGetOptions ¶ added in v1.6.0
PaginationGetOptions is used to retrieve page number and page limit info from the request.
func (*PaginationGetOptions) DeepCopy ¶ added in v1.6.0
func (in *PaginationGetOptions) DeepCopy() *PaginationGetOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PaginationGetOptions.
func (*PaginationGetOptions) DeepCopyInto ¶ added in v1.6.0
func (in *PaginationGetOptions) DeepCopyInto(out *PaginationGetOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PaginationGetOptions) DeepCopyObject ¶ added in v1.6.0
func (in *PaginationGetOptions) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodReference ¶
type PodReference struct { // The name of this Pod. Name string // The Namespace of this Pod. Namespace string }
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.
type Protocol ¶
type Protocol string
Protocol defines network protocols supported for things like container ports.
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 // The port name or number on the given protocol. If not specified, this matches all port numbers. // +optional Port *intstr.IntOrString // EndPort defines the end of the port range, being the end included within the range. // It can only be specified when a numerical `port` is specified. // +optional EndPort *int32 }
Service describes a port to allow traffic on.
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceReference ¶
type ServiceReference struct { // The name of this Service. Name string // The Namespace of this Service. Namespace string }
ServiceReference represents reference to a v1.Service.
func (*ServiceReference) DeepCopy ¶
func (in *ServiceReference) DeepCopy() *ServiceReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.
func (*ServiceReference) DeepCopyInto ¶
func (in *ServiceReference) DeepCopyInto(out *ServiceReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.