Documentation ¶
Index ¶
- type Chapter
- type ChapterData
- type ChapterMetadata
- type FieldCategoryData
- type FieldData
- type KWebsite
- type OperationData
- type ParameterData
- type Part
- type PartIndex
- type ResponseData
- type Section
- func (o Section) AddContent(s string) error
- func (o Section) AddDefinitionIndexEntry(d string) error
- func (o Section) AddFieldCategory(name string) error
- func (o Section) AddOperation(operation *kubernetes.ActionInfo, linkends kubernetes.LinkEnds) error
- func (o Section) AddProperty(name string, property *kubernetes.Property, linkend []string, indent int, ...) error
- func (o Section) AddTypeDefinition(typ string, description string) error
- func (o Section) EndProperty() error
- func (o Section) EndPropertyList() error
- func (o Section) StartPropertyList() error
- type SectionData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chapter ¶
type Chapter struct {
// contains filtered or unexported fields
}
Chapter of a KWebsite output implements the outputs.Chapter interface
func (Chapter) AddSection ¶
AddSection adds a section to the chapter
func (Chapter) SetAPIVersion ¶
SetAPIVersion writes the APIVersion for a chapter
func (Chapter) SetGoImport ¶
SetGoImport writes the Go import for a chapter
type ChapterData ¶
type ChapterData struct { ApiVersion string Version string Import string Kind string Metadata ChapterMetadata ChapterName string Sections []SectionData }
type ChapterMetadata ¶
type FieldCategoryData ¶
type KWebsite ¶
KWebsite output implements the Output interface
func NewKWebsite ¶
NewKWebsite returns a new KWebsite
func (*KWebsite) LinkEnd ¶
LinkEnd returns a link to a section in a part/chapter s is an array containing partname / chaptername
type OperationData ¶
type OperationData struct { Verb string Title string RequestMethod string RequestPath string Parameters []ParameterData Responses []ResponseData }
type ParameterData ¶
type Part ¶
type Part struct {
// contains filtered or unexported fields
}
Part of a KWebsite output implements the outputs.Part interface
func (Part) AddChapter ¶
func (o Part) AddChapter(i int, name string, gv string, version *kubernetes.APIVersion, description string, importPrefix string) (outputs.Chapter, error)
AddChapter adds a chapter to the Part
type ResponseData ¶
type Section ¶
type Section struct {
// contains filtered or unexported fields
}
Section of a Hugo output implements the outputs.Section interface
func (Section) AddContent ¶
AddContent adds content to a section
func (Section) AddDefinitionIndexEntry ¶
func (Section) AddFieldCategory ¶
func (Section) AddOperation ¶
func (o Section) AddOperation(operation *kubernetes.ActionInfo, linkends kubernetes.LinkEnds) error
AddOperation adds an operation
func (Section) AddProperty ¶
func (o Section) AddProperty(name string, property *kubernetes.Property, linkend []string, indent int, defname string, shortName string) error
AddProperty adds a property to the section
func (Section) AddTypeDefinition ¶
AddTypeDefinition adds the definition of a type to a section
func (Section) EndPropertyList ¶
EndPropertyList ends the list of properties
func (Section) StartPropertyList ¶
StartPropertyList starts the list of properties
type SectionData ¶
type SectionData struct { Name string Description string Fields []FieldData FieldCategories []FieldCategoryData Operations []OperationData }