networkingv1

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

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 {
	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) Load

func (np *NetworkPolicy) Load(ctx context.Context, cl client.Client) (bool, error)

func (*NetworkPolicy) Owned

func (np *NetworkPolicy) Owned(ctx context.Context, owner lifecycle.TypedObject) error

func (*NetworkPolicy) Persist

func (np *NetworkPolicy) Persist(ctx context.Context, cl client.Client) error

Jump to

Keyboard shortcuts

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