Documentation ¶
Index ¶
- func Check(ctx context.Context, c client.Client, obj runtime.Object, f CheckFn) bool
- func ContainsString(slice []string, s string) bool
- func Create(ctx context.Context, c client.Client, obj runtime.Object, f CreateFn) error
- func DutyOfCNI(metaOld metav1.Object, metaNew metav1.Object) bool
- func EnvNamespace() string
- func GetNodeIP(node corev1.Node) net.IP
- func GetNodeName() string
- func IsDeletionCandidate(obj metav1.Object, finalizer string) bool
- func NeedToAddFinalizer(obj metav1.Object, finalizer string) bool
- func RemoveString(slice []string, s string) (result []string)
- type CheckFn
- type CreateFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func EnvNamespace ¶ added in v1.1.0
func EnvNamespace() string
func GetNodeName ¶ added in v1.1.0
func GetNodeName() string
func IsDeletionCandidate ¶ added in v1.1.0
IsDeletionCandidate checks if object is candidate to be deleted
func NeedToAddFinalizer ¶ added in v1.1.0
NeedToAddFinalizer checks if need to add finalizer to object
func RemoveString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.