deprecations

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 12 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.

Types

type APIDeprecation

type APIDeprecation struct {
	GroupVersionKind
	Description       string           `json:"description,omitempty"`
	IntroducedVersion Version          `json:"introduced_version,omitempty"`
	DeprecatedVersion Version          `json:"deprecated_version,omitempty"`
	RemovedVersion    Version          `json:"removed_version,omitempty"`
	Replacement       GroupVersionKind `json:"replacement,omitempty"`
}

type APIRegistry

type APIRegistry struct {
	// contains filtered or unexported fields
}

func NewAPIRegistry

func NewAPIRegistry() *APIRegistry

func (*APIRegistry) NewDeprecatedDefinitionsGen

func (r *APIRegistry) NewDeprecatedDefinitionsGen(sanitizedName, targetPackage, group, version string) generator.Generator

NewPrereleaseLifecycleGen creates a generator for the prerelease-lifecycle-generator

func (*APIRegistry) Packages

func (r *APIRegistry) Packages(context *generator.Context, arguments *args.GeneratorArgs) generator.Packages

Packages makes the package definition.

func (*APIRegistry) Registry

func (r *APIRegistry) Registry() []APIDeprecation

type GroupVersionKind

type GroupVersionKind struct {
	Group   string `json:"group,omitempty"`
	Version string `json:"version,omitempty"`
	Kind    string `json:"kind,omitempty"`
}

type Version

type Version struct {
	VersionMajor int `json:"version_major,omitempty"`
	VersionMinor int `json:"version_minor,omitempty"`
}

Jump to

Keyboard shortcuts

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