Documentation
¶
Overview ¶
Package util implements utility methods
Package util implements utility methods ¶
Package util implements utility methods
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDocs ¶
GenerateDocs is a wrapper around the Hugo binary in the container and instructs the binary to generate the site
func GetAPIDoc ¶
GetAPIDoc performs an HTTP request to a specified URL to retrieve the OpenAPI document
func GetEnvKey ¶
GetEnvKey tries to get the specified key from the OS environment and returns either the value or the fallback that was provided
func WriteSwaggerToDisk ¶
func WriteSwaggerToDisk(name string, apidoc string, svchost string, swaggerStore string, hugoStore string) error
WriteSwaggerToDisk takes a swagger document and writes both its content as well as a hugo template to disk to enable the static site to be updated with the new API
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.