kubernetes types 源码

  • 2022-09-18
  • 浏览 (244)

kubernetes types 代码

文件路径:/staging/src/k8s.io/code-generator/cmd/applyconfiguration-gen/generators/types.go

/*
Copyright 2021 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package generators

import "k8s.io/gengo/types"

var (
	applyConfiguration = types.Ref("k8s.io/apimachinery/pkg/runtime", "ApplyConfiguration")
	groupVersionKind   = types.Ref("k8s.io/apimachinery/pkg/runtime/schema", "GroupVersionKind")
	typeMeta           = types.Ref("k8s.io/apimachinery/pkg/apis/meta/v1", "TypeMeta")
	objectMeta         = types.Ref("k8s.io/apimachinery/pkg/apis/meta/v1", "ObjectMeta")
	rawExtension       = types.Ref("k8s.io/apimachinery/pkg/runtime", "RawExtension")
	unknown            = types.Ref("k8s.io/apimachinery/pkg/runtime", "Unknown")
	extractInto        = types.Ref("k8s.io/apimachinery/pkg/util/managedfields", "ExtractInto")
	smdNewParser       = types.Ref("sigs.k8s.io/structured-merge-diff/v4/typed", "NewParser")
	smdParser          = types.Ref("sigs.k8s.io/structured-merge-diff/v4/typed", "Parser")
	yamlObject         = types.Ref("sigs.k8s.io/structured-merge-diff/v4/typed", "YAMLObject")
	yamlUnmarshal      = types.Ref("gopkg.in/yaml.v2", "Unmarshal")
)

相关信息

kubernetes 源码目录

相关文章

kubernetes applyconfiguration 源码

kubernetes internal 源码

kubernetes jsontagutil 源码

kubernetes openapi 源码

kubernetes packages 源码

kubernetes refgraph 源码

kubernetes util 源码

0  赞