Documentation ¶
Overview ¶
Package docs generates docs from CRD specs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load() (*extv1.CustomResourceDefinition, error)
Load parses CRD document from Yaml spec
func LoadTemplates ¶
LoadTemplates would load all templates from `./templates`
Types ¶
type Atomic ¶
Atomic is a base type
func (*Atomic) ExplainFormat ¶
ExplainFormat returns a human readable explanation for a known format, i.e. date-time
type ObjectOrAtomic ¶
type ObjectOrAtomic struct { // ObjectRef if set, represents a reference to an object key ObjectRef *string // Atomic if set, represents an atomic type Atomic *Atomic }
ObjectOrAtomic represents either an object reference or an atomic value
type Property ¶
type Property struct { ID string Description string Required bool ObjectOrAtomic Map *ObjectOrAtomic }
Property is an Object property, that may be either an atomic value, reference to an object or a map
Click to show internal directories.
Click to hide internal directories.