MCPcopy Create free account
hub / github.com/cozystack/talm / readUnexportedField

Function readUnexportedField

pkg/engine/engine.go:2064–2066  ·  view source on GitHub ↗
(field reflect.Value)

Source from the content-addressed store, hash-verified

2062}
2063
2064func readUnexportedField(field reflect.Value) any {
2065 return reflect.NewAt(field.Type(), unsafe.Pointer(field.UnsafeAddr())).Elem().Interface()
2066}
2067
2068// extractResourceData builds a resource map with metadata and spec fields.
2069func extractResourceData(r resource.Resource) (map[string]any, error) {

Callers 1

extractResourceDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected