Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NetworkPolicyKind = networkingv1.SchemeGroupVersion.WithKind("NetworkPolicy")
)
Functions ¶
func NewNetworkPolicyPatcher ¶
func NewNetworkPolicyPatcher(upd, orig *NetworkPolicy) lifecycle.Persister
Types ¶
type NetworkPolicy ¶
type NetworkPolicy struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *networkingv1.NetworkPolicy }
func NewNetworkPolicy ¶
func NewNetworkPolicy(key client.ObjectKey) *NetworkPolicy
func NewNetworkPolicyFromObject ¶
func NewNetworkPolicyFromObject(obj *networkingv1.NetworkPolicy) *NetworkPolicy
func (*NetworkPolicy) AllowAll ¶
func (np *NetworkPolicy) AllowAll()
func (*NetworkPolicy) Copy ¶
func (np *NetworkPolicy) Copy() *NetworkPolicy
func (*NetworkPolicy) DenyAll ¶
func (np *NetworkPolicy) DenyAll()
Click to show internal directories.
Click to hide internal directories.