本文整理匯總了Golang中k8s/io/kubernetes/pkg/api.LocalObjectReference類的典型用法代碼示例。如果您正苦於以下問題:Golang LocalObjectReference類的具體用法?Golang LocalObjectReference怎麽用?Golang LocalObjectReference使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了LocalObjectReference類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: writePodImagePullSecret
func writePodImagePullSecret(m map[string]interface{}, item *api.LocalObjectReference) {
if x, ok := m["name"].(string); ok {
item.Name = x
}
}
示例2: deepCopy_api_LocalObjectReference
func deepCopy_api_LocalObjectReference(in api.LocalObjectReference, out *api.LocalObjectReference, c *conversion.Cloner) error {
out.Name = in.Name
return nil
}