MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / Data

Method Data

internal/controller/runtime/patch.go:107–107  ·  view source on GitHub ↗

Data returns the JSON representation of patch.

(client.Object)

Source from the content-addressed store, hash-verified

105
106// Data returns the JSON representation of patch.
107func (patch *JSON6902) Data(client.Object) ([]byte, error) { return json.Marshal(*patch) }
108
109// IsEmpty returns true when patch has no operations.
110func (patch *JSON6902) IsEmpty() bool { return len(*patch) == 0 }

Callers 2

BytesMethod · 0.95
ApplyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected