MCPcopy Index your code
hub / github.com/redspread/spread / String

Method String

pkg/deploy/deployment.go:168–175  ·  view source on GitHub ↗

String returns a JSON representation of a Deployment

()

Source from the content-addressed store, hash-verified

166
167// String returns a JSON representation of a Deployment
168func (d *Deployment) String() string {
169 output, err := json.MarshalIndent(d.objects, "", "\t")
170 if err != nil {
171 panic(err)
172 }
173
174 return string(output)
175}
176
177// Diff returns the difference between the textual representation of two deployments
178func (d *Deployment) Diff(other *Deployment) string {

Callers 1

DiffMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected