datasourceutil

package
v1.49.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOneResultForLabelSelector added in v1.46.0

func GetOneResultForLabelSelector[T any](resourceName string, items []*T, labelSelector string) (*T, diag.Diagnostic)

GetOneResultForLabelSelector verifies that only one item is returned for a label selector. If none or >1 are returned it returns an error diag.Diagnostic.

func ListID added in v1.49.0

func ListID[T any](ids []T) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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