Documentation
¶
Index ¶
- func Check(ctx context.Context, c client.Client, obj client.Object, f CheckFn) bool
- func ContainsString(slice []string, s string) bool
- func Create(ctx context.Context, c client.Client, obj client.Object, f CreateFn) error
- func DiffMaps(old, new map[string]string) (add, del map[string]string)
- func DutyOfCNI(metaOld metav1.Object, metaNew metav1.Object) bool
- func EnvDaemonsetName() string
- func EnvNamespace() string
- func GetNodeIP(node corev1.Node) net.IP
- func GetNodeName() string
- func GetSecret() string
- func IsDeletionCandidate(obj metav1.Object, finalizer string) bool
- func NeedToAddFinalizer(obj metav1.Object, finalizer string) bool
- func NodeReady(obj runtime.Object) bool
- func RemoveString(slice []string, s string) (result []string)
- func TerminalSize(w io.Writer) (int, int, error)
- type CheckFn
- type CreateFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func EnvDaemonsetName ¶ added in v0.6.0
func EnvDaemonsetName() string
func EnvNamespace ¶ added in v0.5.0
func EnvNamespace() string
func GetNodeName ¶ added in v0.4.4
func GetNodeName() string
func IsDeletionCandidate ¶ added in v0.4.4
IsDeletionCandidate checks if object is candidate to be deleted
func NeedToAddFinalizer ¶ added in v0.4.4
NeedToAddFinalizer checks if need to add finalizer to object
func RemoveString ¶
func TerminalSize ¶ added in v0.6.0
TerminalSize returns the current width and height of the user's terminal. If it isn't a terminal, nil is returned. On error, zero values are returned for width and height. Usually w must be the stdout of the process. Stderr won't work.
Types ¶
Click to show internal directories.
Click to hide internal directories.