generator

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRDContainsValidation added in v0.5.2

func CRDContainsValidation(crd *apiextensions.CustomResourceDefinition) bool

func GetSpec

func GetSpec(opts *GenOpts) (string, error)

func GetSpecs added in v0.5.2

func GetSpecs(opts *GenOpts) ([]string, error)

GetSpecs retrieves specifications from the given GenOpts and returns a list of temporary file paths for the generated OpenAPI specs. It returns an error if there is any issue in fetching and generating the specs. Parameters: - opts: a GenOpts struct that contains the options and parameters required for generating the specs Returns: - []string: a list of temporary file paths for the generated OpenAPI specs - error: an error message if any error occurs.

Types

type GenOpts

type GenOpts struct {
	// the spec file path
	Spec string
}

GenOpts the options for the generator

Directories

Path Synopsis
assets

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL