package v2
import "k8s.io/kubectl/pkg/explain/v2"
Index ¶
- func NewGenerator() *generator
- func PrintModelDescription( fieldsPath []string, w io.Writer, client openapi.Client, gvr schema.GroupVersionResource, recursive bool, outputFormat string, ) error
- type TemplateContext
Functions ¶
func NewGenerator ¶
func NewGenerator() *generator
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 TemplateContext ¶
type TemplateContext struct { GVR schema.GroupVersionResource Document map[string]interface{} Recursive bool FieldPath []string }
Source Files ¶
explain.go generator.go
- Version
- v0.26.0-alpha.3
- Published
- Nov 2, 2022
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 1 hour ago –
Tools for package owners.