const objectMetaSchemaRef …
const listMetaSchemaRef …
const typeMetaType …
const objectMetaType …
const definitionPrefix …
const v3DefinitionPrefix …
var swaggerPartialObjectMetadataDescriptions …
var swaggerPartialObjectMetadataListDescriptions …
var nameToken …
var namespaceToken …
func refForOpenAPIVersion(schemaRef string, v2 bool) string { … }
var definitions …
var definitionsV3 …
var buildDefinitions …
var namer …
type Options …
func generateBuilder(crd *apiextensionsv1.CustomResourceDefinition, version string, opts Options) (*builder, error) { … }
func BuildOpenAPIV3(crd *apiextensionsv1.CustomResourceDefinition, version string, opts Options) (*spec3.OpenAPI, error) { … }
func BuildOpenAPIV2(crd *apiextensionsv1.CustomResourceDefinition, version string, opts Options) (*spec.Swagger, error) { … }
var _ …
type CRDCanonicalTypeNamer …
func (c *CRDCanonicalTypeNamer) OpenAPICanonicalTypeName() string { … }
type builder …
func subresource(path string) string { … }
func (b *builder) descriptionFor(path, operationVerb string) string { … }
func (b *builder) buildRoute(root, path, httpMethod, actionVerb, operationVerb string, sample interface{ … }
func (b *builder) buildKubeNative(crd *apiextensionsv1.CustomResourceDefinition, schema *structuralschema.Structural, opts Options, crdPreserveUnknownFields bool) (ret *spec.Schema) { … }
func addEmbeddedProperties(s *spec.Schema, opts Options) { … }
func getDefinition(name string, v2 bool) spec.Schema { … }
func withDescription(s spec.Schema, desc string) spec.Schema { … }
func generateBuildDefinitionsFunc() { … }
func addTypeMetaProperties(s *spec.Schema, v2 bool) { … }
func (b *builder) buildListSchema(crd *apiextensionsv1.CustomResourceDefinition, opts Options) *spec.Schema { … }
func (b *builder) getOpenAPIConfig() *common.Config { … }
func (b *builder) getOpenAPIV3Config() *common.OpenAPIV3Config { … }
func newBuilder(crd *apiextensionsv1.CustomResourceDefinition, version string, schema *structuralschema.Structural, opts Options) *builder { … }
func buildSelectableFields(crd *apiextensionsv1.CustomResourceDefinition, version string) any { … }