Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCObjectMeta ¶
func NewGRPCObjectMeta(in *ObjectMeta) *metav1grpc.ObjectMeta
NewGRPCObjectMeta 基于 *ObjectMeta 创建 *metav1grpc.ObjectMeta
Types ¶
type ObjectMeta ¶
type ObjectMeta struct { // 对象名 Name string `json:"name,omitempty" yaml:"name,omitempty"` // 对象全局唯一 ID UID UID `json:"uid,omitempty" yaml:"uid,omitempty"` // 注解 Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"` // 对象所有者用户名列表 Owners []string `json:"owners,omitempty" yaml:"owners,omitempty"` }
ObjectMeta 对象元信息
func NewObjectMetaFromGRPC ¶
func NewObjectMetaFromGRPC(in *metav1grpc.ObjectMeta) *ObjectMeta
NewObjectMetaFromGRPC 基于 *metav1grpc.ObjectMeta 创建 *ObjectMeta
Click to show internal directories.
Click to hide internal directories.