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, maxDepth int, 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,
maxDepth int,
writer io.Writer,
) error
}
func NewGenerator ¶
func NewGenerator() Generator
type TemplateContext ¶
Click to show internal directories.
Click to hide internal directories.