本文整理汇总了Golang中k8s/io/kubernetes/pkg/apis/policy.PodDisruptionBudgetList.ListMeta方法的典型用法代码示例。如果您正苦于以下问题:Golang PodDisruptionBudgetList.ListMeta方法的具体用法?Golang PodDisruptionBudgetList.ListMeta怎么用?Golang PodDisruptionBudgetList.ListMeta使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类k8s/io/kubernetes/pkg/apis/policy.PodDisruptionBudgetList
的用法示例。
在下文中一共展示了PodDisruptionBudgetList.ListMeta方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: autoConvert_v1alpha1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList
func autoConvert_v1alpha1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList(in *PodDisruptionBudgetList, out *policy.PodDisruptionBudgetList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]policy.PodDisruptionBudget, len(*in))
for i := range *in {
if err := Convert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(&(*in)[i], &(*out)[i], s); err != nil {
return err
}
}
} else {
out.Items = nil
}
return nil
}
示例2: autoConvert_v1beta1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList
func autoConvert_v1beta1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList(in *PodDisruptionBudgetList, out *policy.PodDisruptionBudgetList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]policy.PodDisruptionBudget)(unsafe.Pointer(&in.Items))
return nil
}