codegenerator

package module
v0.31.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 0 Imported by: 108

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.
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