Print the object inside the writer w.
(obj runtime.Object, w io.Writer)
| 234 | |
| 235 | // Print the object inside the writer w. |
| 236 | func (p *Printer) Print(obj runtime.Object, w io.Writer) error { |
| 237 | if obj == nil { |
| 238 | return nil |
| 239 | } |
| 240 | data, err := yaml.Marshal(obj) |
| 241 | if err != nil { |
| 242 | return err |
| 243 | } |
| 244 | _, err = w.Write(data) |
| 245 | return err |
| 246 | |
| 247 | } |
| 248 | |
| 249 | // DiffVersion gets the proper version of objects, and aggregate them into a directory. |
| 250 | type DiffVersion struct { |