Documentation ¶
Index ¶
- func GetTargetUID(target string) string
- func IsAppPod(pod *corev1.Pod) bool
- func IsAppPodShouldList(ctx context.Context, client client.Client, pod *corev1.Pod) bool
- func IsCsiNode(pod *corev1.Pod) bool
- func IsJuiceCustSecret(secret *corev1.Secret) bool
- func IsJuiceSecret(secret *corev1.Secret) bool
- func IsSysPod(pod *corev1.Pod) bool
- func IsUpgradeJob(job *batchv1.Job) bool
- func LabelSelectorOfMount(pv corev1.PersistentVolume) labels.Selector
- type LogPipe
- type TimeOrderedIndexes
- func (i *TimeOrderedIndexes[T]) AddIndex(resource *T, metaGetter func(*T) metav1.ObjectMeta, ...)
- func (i *TimeOrderedIndexes[T]) Debug() []types.NamespacedName
- func (i *TimeOrderedIndexes[T]) Iterate(ctx context.Context, descend bool) <-chan types.NamespacedName
- func (i *TimeOrderedIndexes[T]) Length() int
- func (i *TimeOrderedIndexes[T]) RemoveIndex(name types.NamespacedName)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTargetUID ¶
func IsAppPodShouldList ¶
func IsJuiceCustSecret ¶
func IsJuiceSecret ¶
func IsUpgradeJob ¶
func LabelSelectorOfMount ¶
func LabelSelectorOfMount(pv corev1.PersistentVolume) labels.Selector
Types ¶
type TimeOrderedIndexes ¶
type TimeOrderedIndexes[T k8sResource] struct { sync.RWMutex // contains filtered or unexported fields }
func NewTimeIndexes ¶
func NewTimeIndexes[T k8sResource]() *TimeOrderedIndexes[T]
func (*TimeOrderedIndexes[T]) AddIndex ¶
func (i *TimeOrderedIndexes[T]) AddIndex(resource *T, metaGetter func(*T) metav1.ObjectMeta, resourceGetter func(types.NamespacedName) (*T, error))
func (*TimeOrderedIndexes[T]) Debug ¶
func (i *TimeOrderedIndexes[T]) Debug() []types.NamespacedName
func (*TimeOrderedIndexes[T]) Iterate ¶
func (i *TimeOrderedIndexes[T]) Iterate(ctx context.Context, descend bool) <-chan types.NamespacedName
func (*TimeOrderedIndexes[T]) Length ¶
func (i *TimeOrderedIndexes[T]) Length() int
func (*TimeOrderedIndexes[T]) RemoveIndex ¶
func (i *TimeOrderedIndexes[T]) RemoveIndex(name types.NamespacedName)
Click to show internal directories.
Click to hide internal directories.