m8s-apimechnariy
2024-05-31 18:24:28   0  举报             
     
         
 k8s
    作者其他创作
 大纲/内容
 parameterCodec
    runtime
  GroupResource
  WithVersion(version string) GroupVersionResourceEmpty() boolString() string
  ObjectCreater
  base64Serializer
  EncoderDecoderidentifier Identifier
  CacheableObject
  GroupVersioner
  serializer
  Framer
  NewFrameReader(r io.ReadCloser) io.ReadCloserNewFrameWriter(w io.Writer) io.Writer
  CodecFactory
  scheme    *runtime.Schemeuniversal runtime.Decoderaccepts   []runtime.SerializerInfolegacySerializer runtime.Serializer
  ObjectKind
  SetGroupVersionKind(kind GroupVersionKind)GroupVersionKind() GroupVersionKind
  k8s包中大量使用默认全局变量的方式:比如 schema.interfaces文件中定义了ObjectKind接口和实现该接口的struct:emptyObjectKind.然后定义全局变量:var EmptyObjectKind = emptyObjectKind{}其他包则可以直接使用该变量做为ObjectKind的默认实现
  ObjectDefaulter
  Default(in Object)
  GroupKind
  Empty() boolWithVersion(version string) GroupVersionKindString() string
  StreamSerializerInfo
  MediaType stringMediaTypeType stringMediaTypeSubType stringEncodesAsText bool......
  ObjectTyper
  Object
  GetObjectKind() schema.ObjectKindDeepCopyObject() Object
  multiGroupVersioner
  GroupVersions
  type GroupVersions []GroupVersion
  ObjectConvertor
  clientNegotiator
  ResourceVersioner
  Unstructured
  ObjectNewEmptyInstance() UnstructuredUnstructuredContent() map[string]interface{}SetUnstructuredContent(map[string]interface{})IsList() boolEachListItem(func(Object) error) errorEachListItemWithAlloc(func(Object) error) error
  GroupVersion
  codec
  encoder   runtime.Encoderdecoder   runtime.Decoderconvertor runtime.ObjectConvertorcreater   runtime.ObjectCreatertyper     runtime.ObjectTyperdefaulter runtime.ObjectDefaulterencodeVersion runtime.GroupVersionerdecodeVersion runtime.GroupVersioneridentifier runtime.IdentifieroriginalSchemeName string
  Scheme
  Decoder
  ClientNegotiator
  Codec
  type Codec Serializer
  TypeMeta
  APIVersion stringKind string
  GroupVersionKind
  Empty() boolGroupKind() GroupKindGroupVersion() GroupVersionString() string
  Schema
  ObjectVersioner
  StorageSerializer
  NegotiatedSerializer
  runtime.interfaces
  SerializerInfo
  MediaType stringMediaTypeType stringMediaTypeSubType stringEncodesAsText boolSerializer Serializer......
  GroupVersionResource
  Empty() boolGroupResource() GroupResourceGroupVersion() GroupVersionString() string
  Serializer
  EncoderDecoder
  Encoder
  ParameterCodec
  Namer
  internalGroupVersioner
     收藏 
     
 
 
 
 
  0 条评论
 下一页