- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ParseDocumentationFrom (0.18 sec)
-
cmd/genswaggertypedocs/swagger_type_docs.go
} else { file, err := os.Create(*functionDest) if err != nil { klog.Fatalf("Couldn't open %v: %v", *functionDest, err) } defer file.Close() funcOut = file } docsForTypes := kruntime.ParseDocumentationFrom(*typeSrc) if *verify { rc, err := kruntime.VerifySwaggerDocsExist(docsForTypes, funcOut) if err != nil { fmt.Fprintf(os.Stderr, "Error in verification process: %s\n", err) } os.Exit(rc) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 16 11:54:27 UTC 2020 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go
b.addLine(s, indent+2) } } // 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 { var docForTypes []KubeTypes
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 03 07:33:58 UTC 2017 - 7K bytes - Viewed (0) -
cmd/fieldnamedocscheck/field_name_docs_check.go
type kubeTypesMap map[string]kruntime.Pair func main() { flag.Parse() if *typeSrc == "" { klog.Fatalf("Please define -s flag as it is the api type file") } docsForTypes := kruntime.ParseDocumentationFrom(*typeSrc) rc := false for _, ks := range docsForTypes { typesMap := make(kubeTypesMap) for _, p := range ks[1:] { // skip the field with no tag name if p.Name != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 18:32:08 UTC 2024 - 2.7K bytes - Viewed (0)