resourceutil

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BasicProperties = []string{"application", "environment", "status", "connections"}

BasicProperties is a list of common properties that are expected to be present in all resources

Functions

func GetConnectionNameandSourceIDs added in v0.49.0

func GetConnectionNameandSourceIDs[P any](resource P) (map[string]string, error)

GetConnectionNameandSourceIDs extracts the connected resource IDs from the resource's properties. It returns a map where the keys are connection names and the values are the corresponding connected resource's IDs.

func GetPropertiesFromResource

func GetPropertiesFromResource[P any](resource P) (map[string]any, error)

GetPropertiesFromResource extracts the "properties" field from the resource by serializing it to JSON and deserializing just the "properties" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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