Documentation ¶
Index ¶
- Variables
- func NewNetworkPolicyPatcher(upd, orig *NetworkPolicy) lifecycle.Persister
- type NetworkPolicy
- func (np *NetworkPolicy) AllowAll()
- func (np *NetworkPolicy) Copy() *NetworkPolicy
- func (np *NetworkPolicy) Delete(ctx context.Context, cl client.Client, opts ...lifecycle.DeleteOption) (bool, error)
- func (np *NetworkPolicy) DenyAll()
- func (np *NetworkPolicy) LabelAnnotateFrom(ctx context.Context, from metav1.Object)
- func (np *NetworkPolicy) Load(ctx context.Context, cl client.Client) (bool, error)
- func (np *NetworkPolicy) Owned(ctx context.Context, owner lifecycle.TypedObject) error
- func (np *NetworkPolicy) Persist(ctx context.Context, cl client.Client) error
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 { 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) Delete ¶
func (np *NetworkPolicy) Delete(ctx context.Context, cl client.Client, opts ...lifecycle.DeleteOption) (bool, error)
func (*NetworkPolicy) DenyAll ¶
func (np *NetworkPolicy) DenyAll()
func (*NetworkPolicy) LabelAnnotateFrom ¶
func (np *NetworkPolicy) LabelAnnotateFrom(ctx context.Context, from metav1.Object)
func (*NetworkPolicy) Owned ¶
func (np *NetworkPolicy) Owned(ctx context.Context, owner lifecycle.TypedObject) error
Click to show internal directories.
Click to hide internal directories.