Documentation
¶
Index ¶
- func GetGV(group kubernetes.APIGroup, version kubernetes.APIVersion) string
- type Chapter
- type LinkEnds
- type Part
- type Section
- type TOC
- func (o *TOC) AddOtherResources(spec *kubernetes.Spec)
- func (o *TOC) OutputChapter(i int, chapter *Chapter, outputPart outputs.Part) error
- func (o *TOC) OutputDocument(output outputs.Output) error
- func (o *TOC) OutputDocumentedDefinitions()
- func (o *TOC) OutputPart(i int, part *Part, output outputs.Output) error
- func (o *TOC) OutputProperties(defname string, definition spec.Schema, outputSection outputs.Section, ...) error
- func (o *TOC) OutputSection(i int, section *Section, outputChapter outputs.Chapter) error
- func (o *TOC) PopulateAssociates(thespec *kubernetes.Spec) error
- func (o *TOC) ToDocbook(w io.Writer) error
- func (o *TOC) ToHugo(dir string) error
- func (o *TOC) ToMarkdown(w io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGV ¶
func GetGV(group kubernetes.APIGroup, version kubernetes.APIVersion) string
GetGV returns the group/version for a resource and version (used for apiVersion:)
Types ¶
type Chapter ¶
type Chapter struct {
Name string `yaml:"name"`
Group *kubernetes.APIGroup `yaml:"group"`
Version *kubernetes.APIVersion `yaml:"version"`
Key kubernetes.Key `yaml:"key"`
Sections []*Section
}
Chapter contains a definition of a main resource and its associated resources and definitions
type LinkEnds ¶
type LinkEnds map[kubernetes.Key][]string
LinkEnds maps definition key to a link-end
type TOC ¶
type TOC struct {
Parts []*Part `yaml:"parts"`
Definitions *spec.Definitions
LinkEnds LinkEnds
DocumentedDefinitions map[kubernetes.Key][]string
}
TOC is the table of contents of the documentation
func (*TOC) AddOtherResources ¶
func (o *TOC) AddOtherResources(spec *kubernetes.Spec)
AddOtherResources adds not documented and not replaced resources to a new Part
func (*TOC) OutputChapter ¶
OutputChapter outputs a chapter of the part
func (*TOC) OutputDocument ¶
OutputDocument outputs contents using output
func (*TOC) OutputDocumentedDefinitions ¶
func (o *TOC) OutputDocumentedDefinitions()
OutputDocumentedDefinitions outputs the list of definitions and on which properties they are defined
func (*TOC) OutputPart ¶
OutputPart outputs a Part
func (*TOC) OutputProperties ¶
func (o *TOC) OutputProperties(defname string, definition spec.Schema, outputSection outputs.Section, prefix []string, apiVersion *string) error
OutputProperties outputs the properties of a definition
func (*TOC) OutputSection ¶
OutputSection outputs a section of the chapter
func (*TOC) PopulateAssociates ¶
func (o *TOC) PopulateAssociates(thespec *kubernetes.Spec) error
PopulateAssociates adds sections to the chapters found in the spec
func (*TOC) ToMarkdown ¶
ToMarkdown writes a Markdown representation of the TOC