codegenerator

package module
v0.33.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 0 Imported by: 114

README

code-generator

Golang code-generators used to implement Kubernetes-style API types.

Purpose

These code-generators can be used

  • in the context of CustomResourceDefinition to build native, versioned clients, informers and other helpers
  • in the context of User-provider API Servers to build conversions between internal and versioned types, defaulters, protobuf codecs, internal and versioned clients and informers.

Resources

Usage

The examples above are dated. The current recommended script to use is kube_codegen.sh.

Compatibility

HEAD of this repo will match HEAD of k8s.io/apiserver, k8s.io/apimachinery, and k8s.io/client-go.

Where does it come from?

code-generator is synced from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/code-generator. Code changes are made in that location, merged into k8s.io/kubernetes and later synced here.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
applyconfiguration-gen
applyconfiguration-gen is a tool for auto-generating apply builder functions.
applyconfiguration-gen is a tool for auto-generating apply builder functions.
client-gen
client-gen makes the individual typed clients using gengo.
client-gen makes the individual typed clients using gengo.
client-gen/generators
Package generators has the generators for the client-gen utility.
Package generators has the generators for the client-gen utility.
conversion-gen
conversion-gen is a tool for auto-generating functions that convert between internal and external types.
conversion-gen is a tool for auto-generating functions that convert between internal and external types.
deepcopy-gen
deepcopy-gen is a tool for auto-generating DeepCopy functions.
deepcopy-gen is a tool for auto-generating DeepCopy functions.
deepcopy-gen/output_tests/aliases
This is a test package.
This is a test package.
deepcopy-gen/output_tests/builtins
This is a test package.
This is a test package.
deepcopy-gen/output_tests/interfaces
This is a test package.
This is a test package.
deepcopy-gen/output_tests/maps
This is a test package.
This is a test package.
deepcopy-gen/output_tests/pointer
This is a test package.
This is a test package.
deepcopy-gen/output_tests/slices
This is a test package.
This is a test package.
deepcopy-gen/output_tests/structs
This is a test package.
This is a test package.
deepcopy-gen/output_tests/wholepkg
This is a test package.
This is a test package.
defaulter-gen
defaulter-gen is a tool for auto-generating Defaulter functions.
defaulter-gen is a tool for auto-generating Defaulter functions.
defaulter-gen/output_tests/empty
This is a test package.
This is a test package.
defaulter-gen/output_tests/marker
This is a test package.
This is a test package.
defaulter-gen/output_tests/pointer
This is a test package.
This is a test package.
defaulter-gen/output_tests/slices
This is a test package.
This is a test package.
defaulter-gen/output_tests/wholepkg
This is a test package.
This is a test package.
go-to-protobuf
go-to-protobuf generates a Protobuf IDL from a Go struct, respecting any existing IDL tags on the Go struct.
go-to-protobuf generates a Protobuf IDL from a Go struct, respecting any existing IDL tags on the Go struct.
go-to-protobuf/protobuf
go-to-protobuf generates a Protobuf IDL from a Go struct, respecting any existing IDL tags on the Go struct.
go-to-protobuf generates a Protobuf IDL from a Go struct, respecting any existing IDL tags on the Go struct.
go-to-protobuf/protoc-gen-gogo
Package main defines the protoc-gen-gogo binary we use to generate our proto go files, as well as takes dependencies on the correct gogo/protobuf packages for godeps.
Package main defines the protoc-gen-gogo binary we use to generate our proto go files, as well as takes dependencies on the correct gogo/protobuf packages for godeps.
prerelease-lifecycle-gen
prerelease-lifecycle-gen is a tool for auto-generating api-status.csv files.
prerelease-lifecycle-gen is a tool for auto-generating api-status.csv files.
validation-gen
validation-gen is a tool for auto-generating Validation functions.
validation-gen is a tool for auto-generating Validation functions.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
validation-gen/output_tests/cross_pkg
This is a test package.
This is a test package.
This is a test package.
validation-gen/output_tests/maps/keys
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
validation-gen/output_tests/no_generation
Package nogeneration is a test package.
Package nogeneration is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
validation-gen/output_tests/pointers
This is a test package.
This is a test package.
validation-gen/output_tests/primitives
This is a test package.
This is a test package.
validation-gen/output_tests/public_private
Package publicprivate is a test package.
Package publicprivate is a test package.
validation-gen/output_tests/recursive
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
This is a test package.
validation-gen/output_tests/tags/opaque
This is a test package.
This is a test package.
This is a test package.
validation-gen/output_tests/tags/subfield/deep
Package subfield contains test types for testing subfield field validation tags.
Package subfield contains test types for testing subfield field validation tags.
validation-gen/output_tests/tags/subfield/nonincluded
Package nonincluded contains test types for testing subfield field validation tags.
Package nonincluded contains test types for testing subfield field validation tags.
validation-gen/output_tests/tags/subfield/shallow
Package subfield contains test types for testing subfield field validation tags.
Package subfield contains test types for testing subfield field validation tags.
This is a test package.
This is a test package.
validation-gen/output_tests/type_args
This is a test package.
This is a test package.
validation-gen/output_tests/typedefs
This is a test package.
This is a test package.
This is a test package.
This is a test package.
validation-gen/output_tests/update_validations/primitive_pointers
Package primitivepointers is a test package.
Package primitivepointers is a test package.
This is a test package.
validation-gen/testscheme
Package testscheme provides a scheme implementation and test utilities useful for writing output_tests for validation-gen.
Package testscheme provides a scheme implementation and test utilities useful for writing output_tests for validation-gen.
examples module
pkg
third_party
forked/golang/reflect
This package is copied from Go library reflect/type.go.
This package is copied from Go library reflect/type.go.

Jump to

Keyboard shortcuts

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