genmd

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ExitCodeOk = iota
	ExitCodeFailedReadTemplate
	ExitCodeFailedParseTemplate
	ExitCodeFailedExecuteTemplate
	ExitCodeFailedWriteResult
	ExitCodeFailedHandleFields
	ExitCodeFailedHandleParams
)

Variables

This section is empty.

Functions

func GenerateMarkdown

func GenerateMarkdown(docs *CompiledDocs)

func MarkdownParams

func MarkdownParams(obj interface{}, paramDocs map[string][]string) string

func UngroupedActions

func UngroupedActions(groups []common.GroupsEntry) []string

UngroupedActions filter grouped actions from all actions

Types

type CompiledDocs

type CompiledDocs struct {
	Actions    map[string]common.DocEntry
	Schedulers map[string]common.DocEntry
	Params     map[string][]string
	Config     map[string]common.DocEntry
	Groups     []common.GroupsEntry
	Extra      map[string]common.DocEntry
}

type DocEntry

type DocEntry common.DocEntry

func (DocEntry) String

func (doc DocEntry) String() string

type DocEntryWithParams

type DocEntryWithParams struct {
	DocEntry
	Params string
}

func (DocEntryWithParams) String

func (doc DocEntryWithParams) String() string

type DocNode

type DocNode interface {
	WriteTo(io.Writer)
	AddChild(DocNode)
	Children() []DocNode
}

func NewDocNode

func NewDocNode(doc fmt.Stringer) DocNode

func NewFoldedDocNode

func NewFoldedDocNode(foldStr string, doc fmt.Stringer) DocNode

type DocNodeStruct

type DocNodeStruct struct {
	// contains filtered or unexported fields
}

func (*DocNodeStruct) AddChild

func (node *DocNodeStruct) AddChild(child DocNode)

func (*DocNodeStruct) Children

func (node *DocNodeStruct) Children() []DocNode

func (*DocNodeStruct) WriteTo

func (node *DocNodeStruct) WriteTo(writer io.Writer)

type EmptyDocEntry

type EmptyDocEntry struct{}

func (EmptyDocEntry) String

func (doc EmptyDocEntry) String() string

type FoldedDocNode

type FoldedDocNode struct {
	Name string
	DocNode
}

func (*FoldedDocNode) WriteTo

func (node *FoldedDocNode) WriteTo(writer io.Writer)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL