controlplane

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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

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

GroupName is the group name used in this package.

Variables

View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind.

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
}

+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.

type AddressGroupList

type AddressGroupList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []AddressGroup
}

+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.

type AddressGroupPatch

type AddressGroupPatch struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	AddedGroupMembers   []GroupMember
	RemovedGroupMembers []GroupMember
}

+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.

type AppliedToGroup

type AppliedToGroup struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	// GroupMembers is a list of resources selected by this group.
	GroupMembers []GroupMember
}

+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.

type AppliedToGroupList

type AppliedToGroupList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []AppliedToGroup
}

+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.

type AppliedToGroupPatch

type AppliedToGroupPatch struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	AddedGroupMembers   []GroupMember
	RemovedGroupMembers []GroupMember
}

+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.

type Direction

type Direction string

Direction defines traffic direction of NetworkPolicyRule.

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

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

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 GroupMember

type GroupMember struct {
	// Pod maintains the reference to the Pod.
	Pod *PodReference
	// ExternalEntity maintains the reference to the ExternalEntity.
	ExternalEntity *ExternalEntityReference
	// 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 an 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 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) IPDifference added in v0.11.2

func (s GroupMemberSet) IPDifference(o GroupMemberSet) sets.String

IPDifference returns a String set of GroupMember IPs that are not in o.

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
	// 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

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.

type IPNet

type IPNet struct {
	IP           IPAddress
	PrefixLength int32
}

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.

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

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.

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.
	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
}

+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.

type NetworkPolicyList

type NetworkPolicyList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []NetworkPolicy
}

+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.

type NetworkPolicyNodeStatus added in v0.11.0

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 added in v0.11.0

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

func (*NetworkPolicyNodeStatus) DeepCopyInto added in v0.11.0

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
}

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 added in v0.10.0

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 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) ToString added in v0.10.0

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
	// 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 *secv1alpha1.RuleAction
	// EnableLogging is used to indicate if agent should generate logs
	// when rules are matched. Should be default to false.
	EnableLogging bool
}

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 added in v0.10.0

type NetworkPolicyStats struct {
	// The reference of the NetworkPolicy.
	NetworkPolicy NetworkPolicyReference
	// The stats of the NetworkPolicy.
	TrafficStats statsv1alpha1.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.

type NetworkPolicyStatus added in v0.11.0

type NetworkPolicyStatus struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	// Nodes contains statuses produced on a list of Nodes.
	Nodes []NetworkPolicyNodeStatus
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object NetworkPolicyStatus is the status of a NetworkPolicy.

func (*NetworkPolicyStatus) DeepCopy added in v0.11.0

func (in *NetworkPolicyStatus) DeepCopy() *NetworkPolicyStatus

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

func (*NetworkPolicyStatus) DeepCopyInto added in v0.11.0

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 added in v0.11.0

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

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

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
	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
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object 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.

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.

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
	// The port name or number on the given protocol. If not specified, this matches all port numbers.
	// +optional
	Port *intstr.IntOrString
}

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.

Directories

Path Synopsis
Package v1beta1 is the v1beta1 version of the Antrea NetworkPolicy API messages.
Package v1beta1 is the v1beta1 version of the Antrea NetworkPolicy API messages.
Package v1beta2 is the v1beta2 version of the Antrea NetworkPolicy API messages.
Package v1beta2 is the v1beta2 version of the Antrea NetworkPolicy API messages.

Jump to

Keyboard shortcuts

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