String returns a JSON representation of a Deployment
()
| 166 | |
| 167 | // String returns a JSON representation of a Deployment |
| 168 | func (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 |
| 178 | func (d *Deployment) Diff(other *Deployment) string { |