emptypartialschemas

package
v0.0.0-...-8203151 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNameSystem

func DefaultNameSystem() string

DefaultNameSystem returns the default name system for ordering the types to be processed by the generators in this package.

func NameSystems

func NameSystems() namer.NameSystems

NameSystems returns the name system used by the generators in this package.

func NewGenFeatureGatedPartialSchemas

func NewGenFeatureGatedPartialSchemas(sanitizedName, targetPackage string, crdInfoTracker *generatorResultGatherer, groupName string) gengogenerator.Generator

func NewGenerator

func NewGenerator(opts Options) generation.Generator

NewGenerator builds a new empty-partial-schemas generator.

func ReadCustomResourceDefinitionV1

func ReadCustomResourceDefinitionV1(objBytes []byte) (*apiextensionsv1.CustomResourceDefinition, error)

func ReadCustomResourceDefinitionV1OrDie

func ReadCustomResourceDefinitionV1OrDie(objBytes []byte) *apiextensionsv1.CustomResourceDefinition

func WriteSpecOnlyCustomResourceDefinitionV1

func WriteSpecOnlyCustomResourceDefinitionV1(obj *apiextensionsv1.CustomResourceDefinition) ([]byte, error)

Types

type CRDInfo

type CRDInfo struct {
	CRDName                  string
	TopLevelFeatureGates     []string
	GroupName                string
	Version                  string
	PluralName               string
	KindName                 string
	Scope                    string
	HasStatus                bool
	FeatureGates             []string
	ShortNames               []string
	Category                 string
	ApprovedPRNumber         string
	FilenameRunLevel         string
	FilenameOperatorName     string
	FilenameOperatorOrdering string
	Capability               string
	PrinterColumns           []apiextensionsv1.CustomResourceColumnDefinition
	Annotations              map[string]string
	Labels                   map[string]string
}

type CustomArgs

type CustomArgs struct {
	BoundingDirs []string // Only deal with types rooted under these dirs.
}

CustomArgs is used tby the go2idl framework to pass args specific to this generator.

type Options

type Options struct {
	// Disabled indicates whether the empty-partial-schemas generator is enabled or not.
	// This default to false as the empty-partial-schemas generator is enabled by default.
	Disabled bool

	// OutputFileBaseName is the base name of the output file.
	// When omitted, DefaultOutputFileBaseName is used.
	// The current value of DefaultOutputFileBaseName is "MISSING".
	OutputFileBaseName string

	// Verify determines whether the generator should verify the content instead
	// of updating the generated file.
	Verify bool
}

Options contains the configuration required for the compatibility generator.

Jump to

Keyboard shortcuts

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