kubernetes/staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go

type Pair

type KubeTypes

func astFrom(filePath string) *doc.Package {}

func fmtRawDoc(rawDoc string) string {}

// fieldName returns the name of the field as it should appear in JSON format
// "-" indicates that this field is not part of the JSON representation
func fieldName(field *ast.Field) string {}

type bufferedLine

type buffer

func newBuffer() *buffer {}

func (b *buffer) addLine(line string, indent int) {}

func (b *buffer) flushLines(w io.Writer) error {}

func writeFuncHeader(b *buffer, structName string, indent int) {}

func writeFuncFooter(b *buffer, structName string, indent int) {}

func writeMapBody(b *buffer, kubeType []Pair, indent int) {}

// ParseDocumentationFrom gets all types' documentation and returns them as an
// array. Each type is again represented as an array (we have to use arrays as we
// need to be sure for the order of the fields). This function returns fields and
// struct definitions that have no documentation as {name, ""}.
func ParseDocumentationFrom(src string) []KubeTypes {}

// WriteSwaggerDocFunc writes a declaration of a function as a string. This function is used in
// Swagger as a documentation source for structs and theirs fields
func WriteSwaggerDocFunc(kubeTypes []KubeTypes, w io.Writer) error {}

// VerifySwaggerDocsExist writes in a io.Writer a list of structs and fields that
// are missing of documentation.
func VerifySwaggerDocsExist(kubeTypes []KubeTypes, w io.Writer) (int, error) {}