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
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.
Types ¶
type ResourceMetadata ¶ added in v0.55.0
type ResourceMetadata struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Properties map[string]any `json:"properties,omitempty"`
}
ResourceMetadata represents resource metadata including ID, Name, Type and Properties
func GetAllPropertiesFromResource ¶ added in v0.55.0
func GetAllPropertiesFromResource[P any](resource P) (*ResourceMetadata, error)
GetAllPropertiesFromResource extracts the resource metadata including ID, Name, Type and properties by unmarshalling the resource and extracting the required fields.
Click to show internal directories.
Click to hide internal directories.