Documentation ¶
Index ¶
- func CheckAndFinallyCall(ctx context.Context, checkFunc func() bool, timeout, interval time.Duration, ...)
- func ConvertByteNumToResourceQuantity(byteNum int64) resource.Quantity
- func ExtractNodeIDFromNodeName(nodeName string) string
- func FormatNodeName(nodeID string) string
- func GetContainerKey(podKey, containerName string) string
- func GetContainerNameFromContainerKey(containerKey string) string
- func GetEnv(key, defaultValue string) string
- func GetPodKey(pod *corev1.Pod) string
- func GetPodKeyFromContainerKey(containerKey string) string
- func PodsEqual(pod1, pod2 *corev1.Pod) bool
- func SplitMetaNamespaceKey(key string) (namespace, name string, err error)
- func TimedTaskWithInterval(ctx context.Context, interval time.Duration, task func(context.Context))
- func TranslateContainerStatusFromTunnelToContainerStatus(container corev1.Container, data *model.ContainerStatusData) corev1.ContainerStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndFinallyCall ¶ added in v0.2.0
func ExtractNodeIDFromNodeName ¶ added in v0.2.0
func FormatNodeName ¶ added in v0.2.0
func GetContainerKey ¶ added in v0.2.0
func GetContainerNameFromContainerKey ¶ added in v0.2.0
func GetPodKeyFromContainerKey ¶ added in v0.2.0
func PodsEqual ¶
PodsEqual checks if two pods are equal according to the fields we know that are allowed to be modified after startup time.
func SplitMetaNamespaceKey ¶ added in v0.2.0
func TimedTaskWithInterval ¶
func TranslateContainerStatusFromTunnelToContainerStatus ¶ added in v0.2.0
func TranslateContainerStatusFromTunnelToContainerStatus(container corev1.Container, data *model.ContainerStatusData) corev1.ContainerStatus
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.