Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintModelDescription ¶
func PrintModelDescription( fieldsPath []string, w io.Writer, client openapi.Client, gvr schema.GroupVersionResource, recursive bool, outputFormat string, ) error
PrintModelDescription prints the description of a specific model or dot path. If recursive, all components nested within the fields of the schema will be printed.
Types ¶
type Generator ¶
type Generator interface { AddTemplate(name string, contents string) error Render( templateName string, document map[string]interface{}, gvr schema.GroupVersionResource, fieldSelector []string, recursive bool, writer io.Writer, ) error }
func NewGenerator ¶
func NewGenerator() Generator
type TemplateContext ¶
type TemplateContext struct { GVR schema.GroupVersionResource Document map[string]interface{} Recursive bool FieldPath []string }
Click to show internal directories.
Click to hide internal directories.