Documentation ¶
Index ¶
- Variables
- func GetHttpCodesResponses(p parser.Package, responsesMap map[string]nexus.HTTPCodesResponse) map[string]nexus.HTTPCodesResponse
- func GetHttpMethodsResponses(p parser.Package, responsesMap map[string]nexus.HTTPMethodsResponses, ...) map[string]nexus.HTTPMethodsResponses
- func GetRestApiSpecs(p parser.Package, httpMethods map[string]nexus.HTTPMethodsResponses, ...) map[string]nexus.RestAPISpec
- func ParseResponses(pkgs parser.Packages) (map[string]nexus.HTTPMethodsResponses, map[string]nexus.HTTPCodesResponse)
- func ValidateRestApiSpec(apiSpec nexus.RestAPISpec, parentsMap map[string]parser.NodeHelper, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpCodesResponsesMap = map[string]nexus.HTTPCodesResponse{ "DefaultHTTPGETResponses": nexus.DefaultHTTPGETResponses, "DefaultHTTPPUTResponses": nexus.DefaultHTTPPUTResponses, "DefaultHTTPDELETEResponses": nexus.DefaultHTTPDELETEResponses, }
View Source
var HttpMethodsResponsesMap = map[string]nexus.HTTPMethodsResponses{ "DefaultHTTPMethodsResponses": nexus.DefaultHTTPMethodsResponses, "HTTPListResponse": nexus.HTTPListResponse, }
Functions ¶
func GetHttpCodesResponses ¶
func GetHttpCodesResponses(p parser.Package, responsesMap map[string]nexus.HTTPCodesResponse) map[string]nexus.HTTPCodesResponse
GetHttpCodesResponses will extract all variables which type is HTTPCodesResponse
func GetHttpMethodsResponses ¶
func GetHttpMethodsResponses(p parser.Package, responsesMap map[string]nexus.HTTPMethodsResponses, httpCodes map[string]nexus.HTTPCodesResponse) map[string]nexus.HTTPMethodsResponses
func GetRestApiSpecs ¶
func GetRestApiSpecs(p parser.Package, httpMethods map[string]nexus.HTTPMethodsResponses, httpCodes map[string]nexus.HTTPCodesResponse, parentsMap map[string]parser.NodeHelper) map[string]nexus.RestAPISpec
func ParseResponses ¶
func ParseResponses(pkgs parser.Packages) (map[string]nexus.HTTPMethodsResponses, map[string]nexus.HTTPCodesResponse)
func ValidateRestApiSpec ¶
func ValidateRestApiSpec(apiSpec nexus.RestAPISpec, parentsMap map[string]parser.NodeHelper, crdName string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.