MCPcopy Create free account
hub / github.com/cozystack/cozystack / GetUnstructured

Method GetUnstructured

pkg/lineage/lineage.go:37–43  ·  view source on GitHub ↗
(ctx context.Context, client dynamic.Interface, mapper meta.RESTMapper)

Source from the content-addressed store, hash-verified

35}
36
37func (o ObjectID) GetUnstructured(ctx context.Context, client dynamic.Interface, mapper meta.RESTMapper) (*unstructured.Unstructured, error) {
38 u, err := getUnstructuredObject(ctx, client, mapper, o.APIVersion, o.Kind, o.Namespace, o.Name)
39 if err != nil {
40 return nil, err
41 }
42 return u, nil
43}
44
45func WalkOwnershipGraph(
46 ctx context.Context,

Callers 1

getOwnerMethod · 0.80

Calls 1

getUnstructuredObjectFunction · 0.85

Tested by

no test coverage detected