Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.
func New ¶
func New(ctx context.Context, proj *config.Project, lint bool, options ...CompilerOption) (*Compiler, error)
New returns a new Compiler for a given project configuration.
func (*Compiler) Build ¶
Build builds an aggregate versioned OpenAPI spec for a specific API by name in the project.
func (*Compiler) LintOutput ¶
LintOutput applies configured linting rules to the build output.
type CompilerOption ¶
CompilerOption applies a configuration option to a Compiler.
func LinterFactory ¶
func LinterFactory(f func(ctx context.Context, lc *config.Linter) (linter.Linter, error)) CompilerOption
LinterFactory configures a Compiler to use a custom factory function for instantiating Linters.
Click to show internal directories.
Click to hide internal directories.