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

Method Bytes

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

Bytes returns the JSON representation of patch.

()

Source from the content-addressed store, hash-verified

102
103// Bytes returns the JSON representation of patch.
104func (patch *JSON6902) Bytes() ([]byte, error) { return patch.Data(nil) }
105
106// Data returns the JSON representation of patch.
107func (patch *JSON6902) Data(client.Object) ([]byte, error) { return json.Marshal(*patch) }

Callers 6

adoptObjectMethod · 0.45
releaseObjectMethod · 0.45
TestJSON6902Function · 0.45
TestMerge7386Function · 0.45
TestMerge7386EquivalenceFunction · 0.45
GetTimelineMethod · 0.45

Calls 1

DataMethod · 0.95

Tested by 3

TestJSON6902Function · 0.36
TestMerge7386Function · 0.36
TestMerge7386EquivalenceFunction · 0.36