RenderWithClientProvider takes a chart, optional values, and value overrides, and attempts to render the Go templates using the default options. This engine is client aware and so can have template functions that interact with the client. This function differs from RenderWithClient in that it lets y
(chrt ci.Charter, values common.Values, clientProvider ClientProvider)
| 102 | // functions that interact with the client. |
| 103 | // This function differs from RenderWithClient in that it lets you customize the way a dynamic client is constructed. |
| 104 | func RenderWithClientProvider(chrt ci.Charter, values common.Values, clientProvider ClientProvider) (map[string]string, error) { |
| 105 | return Engine{ |
| 106 | clientProvider: &clientProvider, |
| 107 | }.Render(chrt, values) |
| 108 | } |
| 109 | |
| 110 | // renderable is an object that can be rendered. |
| 111 | type renderable struct { |
searching dependent graphs…