package scheme
import "k8s.io/metrics/pkg/client/custom_metrics/scheme"
Index ¶
Constants ¶
GroupName is the group name use in this package.
Variables ¶
var Codecs = serializer.NewCodecFactory(Scheme)
Codecs provides access to encoding and decoding for the scheme.
var ParameterCodec = runtime.NewParameterCodec(Scheme)
ParameterCodec handles versioning of objects that are converted to query parameters.
Scheme is the runtime.Scheme to which all custom metrics api types are registered.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func AddToScheme ¶
AddToScheme adds all types of this clientset into the given scheme. This allows composition of clientsets, like in:
import ( "k8s.io/client-go/kubernetes" clientsetscheme "k8s.io/client-go/kubernetes/scheme" aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" ) kclientset, _ := kubernetes.NewForConfig(c) aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
After this, RawExtensions in Kubernetes types will serialize kube-aggregator types correctly.
Source Files ¶
register.go
- Version
- v0.33.1 (latest)
- Published
- May 15, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 1 day ago –
Tools for package owners.