labels

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package labels provides utils related to object labels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractIndex added in v0.9.2

func ExtractIndex(object client.Object, labelKey string) (int, error)

ExtractIndex extracts the numeric index from the a label with labelKey.

func ExtractResourceIndexFromClusterResourceSnapshot

func ExtractResourceIndexFromClusterResourceSnapshot(snapshot client.Object) (int, error)

ExtractResourceIndexFromClusterResourceSnapshot extracts the resource index from the label of a clusterResourceSnapshot.

func ExtractResourceSnapshotIndexFromWork

func ExtractResourceSnapshotIndexFromWork(work client.Object) (int, error)

ExtractResourceSnapshotIndexFromWork extracts the resource snapshot index from the work.

Types

This section is empty.

Jump to

Keyboard shortcuts

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