Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmbedGoTmpl = template.Must(template.New("embed.go").Parse(`
// Code generated by Vervet. DO NOT EDIT.
package {{ .Package }}
import "embed"
// Embed compiled OpenAPI specs in Go projects.
{{ range .VersionSpecFiles -}}
//go:embed {{ . }}
{{ end }}
// Versions contains OpenAPI specs for each distinct release version.
var Versions embed.FS
`[1:]))
Functions ¶
func ResourceSpecFiles ¶
func ResourceSpecFiles(rcConfig *config.ResourceSet) ([]string, error)
ResourceSpecFiles returns all matching spec files for a config.Resource.
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
A Compiler checks and builds versioned API resource inputs into aggregated OpenAPI versioned outputs, as determined by an API project configuration.
type CompilerOption ¶
CompilerOption applies a configuration option to a Compiler.
Click to show internal directories.
Click to hide internal directories.