本文整理匯總了Golang中k8s/io/kubernetes/pkg/runtime.Scheme.AddGeneratedConversionFuncs方法的典型用法代碼示例。如果您正苦於以下問題:Golang Scheme.AddGeneratedConversionFuncs方法的具體用法?Golang Scheme.AddGeneratedConversionFuncs怎麽用?Golang Scheme.AddGeneratedConversionFuncs使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類k8s/io/kubernetes/pkg/runtime.Scheme
的用法示例。
在下文中一共展示了Scheme.AddGeneratedConversionFuncs方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v2alpha1_Job_To_batch_Job,
Convert_batch_Job_To_v2alpha1_Job,
Convert_v2alpha1_JobCondition_To_batch_JobCondition,
Convert_batch_JobCondition_To_v2alpha1_JobCondition,
Convert_v2alpha1_JobList_To_batch_JobList,
Convert_batch_JobList_To_v2alpha1_JobList,
Convert_v2alpha1_JobSpec_To_batch_JobSpec,
Convert_batch_JobSpec_To_v2alpha1_JobSpec,
Convert_v2alpha1_JobStatus_To_batch_JobStatus,
Convert_batch_JobStatus_To_v2alpha1_JobStatus,
Convert_v2alpha1_JobTemplate_To_batch_JobTemplate,
Convert_batch_JobTemplate_To_v2alpha1_JobTemplate,
Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec,
Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec,
Convert_v2alpha1_ScheduledJob_To_batch_ScheduledJob,
Convert_batch_ScheduledJob_To_v2alpha1_ScheduledJob,
Convert_v2alpha1_ScheduledJobList_To_batch_ScheduledJobList,
Convert_batch_ScheduledJobList_To_v2alpha1_ScheduledJobList,
Convert_v2alpha1_ScheduledJobSpec_To_batch_ScheduledJobSpec,
Convert_batch_ScheduledJobSpec_To_v2alpha1_ScheduledJobSpec,
Convert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus,
Convert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus,
)
}
示例2: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1_DockerImageReference_To_api_DockerImageReference,
Convert_api_DockerImageReference_To_v1_DockerImageReference,
Convert_v1_Image_To_api_Image,
Convert_api_Image_To_v1_Image,
Convert_v1_ImageImportSpec_To_api_ImageImportSpec,
Convert_api_ImageImportSpec_To_v1_ImageImportSpec,
Convert_v1_ImageImportStatus_To_api_ImageImportStatus,
Convert_api_ImageImportStatus_To_v1_ImageImportStatus,
Convert_v1_ImageLayer_To_api_ImageLayer,
Convert_api_ImageLayer_To_v1_ImageLayer,
Convert_v1_ImageList_To_api_ImageList,
Convert_api_ImageList_To_v1_ImageList,
Convert_v1_ImageSignature_To_api_ImageSignature,
Convert_api_ImageSignature_To_v1_ImageSignature,
Convert_v1_ImageStream_To_api_ImageStream,
Convert_api_ImageStream_To_v1_ImageStream,
Convert_v1_ImageStreamImage_To_api_ImageStreamImage,
Convert_api_ImageStreamImage_To_v1_ImageStreamImage,
Convert_v1_ImageStreamImport_To_api_ImageStreamImport,
Convert_api_ImageStreamImport_To_v1_ImageStreamImport,
Convert_v1_ImageStreamImportSpec_To_api_ImageStreamImportSpec,
Convert_api_ImageStreamImportSpec_To_v1_ImageStreamImportSpec,
Convert_v1_ImageStreamImportStatus_To_api_ImageStreamImportStatus,
Convert_api_ImageStreamImportStatus_To_v1_ImageStreamImportStatus,
Convert_v1_ImageStreamList_To_api_ImageStreamList,
Convert_api_ImageStreamList_To_v1_ImageStreamList,
Convert_v1_ImageStreamMapping_To_api_ImageStreamMapping,
Convert_api_ImageStreamMapping_To_v1_ImageStreamMapping,
Convert_v1_ImageStreamSpec_To_api_ImageStreamSpec,
Convert_api_ImageStreamSpec_To_v1_ImageStreamSpec,
Convert_v1_ImageStreamStatus_To_api_ImageStreamStatus,
Convert_api_ImageStreamStatus_To_v1_ImageStreamStatus,
Convert_v1_ImageStreamTag_To_api_ImageStreamTag,
Convert_api_ImageStreamTag_To_v1_ImageStreamTag,
Convert_v1_ImageStreamTagList_To_api_ImageStreamTagList,
Convert_api_ImageStreamTagList_To_v1_ImageStreamTagList,
Convert_v1_RepositoryImportSpec_To_api_RepositoryImportSpec,
Convert_api_RepositoryImportSpec_To_v1_RepositoryImportSpec,
Convert_v1_RepositoryImportStatus_To_api_RepositoryImportStatus,
Convert_api_RepositoryImportStatus_To_v1_RepositoryImportStatus,
Convert_v1_SignatureCondition_To_api_SignatureCondition,
Convert_api_SignatureCondition_To_v1_SignatureCondition,
Convert_v1_SignatureGenericEntity_To_api_SignatureGenericEntity,
Convert_api_SignatureGenericEntity_To_v1_SignatureGenericEntity,
Convert_v1_SignatureIssuer_To_api_SignatureIssuer,
Convert_api_SignatureIssuer_To_v1_SignatureIssuer,
Convert_v1_SignatureSubject_To_api_SignatureSubject,
Convert_api_SignatureSubject_To_v1_SignatureSubject,
Convert_v1_TagEvent_To_api_TagEvent,
Convert_api_TagEvent_To_v1_TagEvent,
Convert_v1_TagEventCondition_To_api_TagEventCondition,
Convert_api_TagEventCondition_To_v1_TagEventCondition,
Convert_v1_TagImportPolicy_To_api_TagImportPolicy,
Convert_api_TagImportPolicy_To_v1_TagImportPolicy,
Convert_v1_TagReference_To_api_TagReference,
Convert_api_TagReference_To_v1_TagReference,
)
}
示例3: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1_ClusterRoleScopeRestriction_To_api_ClusterRoleScopeRestriction,
Convert_api_ClusterRoleScopeRestriction_To_v1_ClusterRoleScopeRestriction,
Convert_v1_OAuthAccessToken_To_api_OAuthAccessToken,
Convert_api_OAuthAccessToken_To_v1_OAuthAccessToken,
Convert_v1_OAuthAccessTokenList_To_api_OAuthAccessTokenList,
Convert_api_OAuthAccessTokenList_To_v1_OAuthAccessTokenList,
Convert_v1_OAuthAuthorizeToken_To_api_OAuthAuthorizeToken,
Convert_api_OAuthAuthorizeToken_To_v1_OAuthAuthorizeToken,
Convert_v1_OAuthAuthorizeTokenList_To_api_OAuthAuthorizeTokenList,
Convert_api_OAuthAuthorizeTokenList_To_v1_OAuthAuthorizeTokenList,
Convert_v1_OAuthClient_To_api_OAuthClient,
Convert_api_OAuthClient_To_v1_OAuthClient,
Convert_v1_OAuthClientAuthorization_To_api_OAuthClientAuthorization,
Convert_api_OAuthClientAuthorization_To_v1_OAuthClientAuthorization,
Convert_v1_OAuthClientAuthorizationList_To_api_OAuthClientAuthorizationList,
Convert_api_OAuthClientAuthorizationList_To_v1_OAuthClientAuthorizationList,
Convert_v1_OAuthClientList_To_api_OAuthClientList,
Convert_api_OAuthClientList_To_v1_OAuthClientList,
Convert_v1_OAuthRedirectReference_To_api_OAuthRedirectReference,
Convert_api_OAuthRedirectReference_To_v1_OAuthRedirectReference,
Convert_v1_RedirectReference_To_api_RedirectReference,
Convert_api_RedirectReference_To_v1_RedirectReference,
Convert_v1_ScopeRestriction_To_api_ScopeRestriction,
Convert_api_ScopeRestriction_To_v1_ScopeRestriction,
)
}
示例4: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1_ClusterNetwork_To_api_ClusterNetwork,
Convert_api_ClusterNetwork_To_v1_ClusterNetwork,
Convert_v1_ClusterNetworkList_To_api_ClusterNetworkList,
Convert_api_ClusterNetworkList_To_v1_ClusterNetworkList,
Convert_v1_EgressNetworkPolicy_To_api_EgressNetworkPolicy,
Convert_api_EgressNetworkPolicy_To_v1_EgressNetworkPolicy,
Convert_v1_EgressNetworkPolicyList_To_api_EgressNetworkPolicyList,
Convert_api_EgressNetworkPolicyList_To_v1_EgressNetworkPolicyList,
Convert_v1_EgressNetworkPolicyPeer_To_api_EgressNetworkPolicyPeer,
Convert_api_EgressNetworkPolicyPeer_To_v1_EgressNetworkPolicyPeer,
Convert_v1_EgressNetworkPolicyRule_To_api_EgressNetworkPolicyRule,
Convert_api_EgressNetworkPolicyRule_To_v1_EgressNetworkPolicyRule,
Convert_v1_EgressNetworkPolicySpec_To_api_EgressNetworkPolicySpec,
Convert_api_EgressNetworkPolicySpec_To_v1_EgressNetworkPolicySpec,
Convert_v1_HostSubnet_To_api_HostSubnet,
Convert_api_HostSubnet_To_v1_HostSubnet,
Convert_v1_HostSubnetList_To_api_HostSubnetList,
Convert_api_HostSubnetList_To_v1_HostSubnetList,
Convert_v1_NetNamespace_To_api_NetNamespace,
Convert_api_NetNamespace_To_v1_NetNamespace,
Convert_v1_NetNamespaceList_To_api_NetNamespaceList,
Convert_api_NetNamespaceList_To_v1_NetNamespaceList,
)
}
示例5: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1alpha1_ClusterRole_To_rbac_ClusterRole,
Convert_rbac_ClusterRole_To_v1alpha1_ClusterRole,
Convert_v1alpha1_ClusterRoleBinding_To_rbac_ClusterRoleBinding,
Convert_rbac_ClusterRoleBinding_To_v1alpha1_ClusterRoleBinding,
Convert_v1alpha1_ClusterRoleBindingBuilder_To_rbac_ClusterRoleBindingBuilder,
Convert_rbac_ClusterRoleBindingBuilder_To_v1alpha1_ClusterRoleBindingBuilder,
Convert_v1alpha1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList,
Convert_rbac_ClusterRoleBindingList_To_v1alpha1_ClusterRoleBindingList,
Convert_v1alpha1_ClusterRoleList_To_rbac_ClusterRoleList,
Convert_rbac_ClusterRoleList_To_v1alpha1_ClusterRoleList,
Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule,
Convert_rbac_PolicyRule_To_v1alpha1_PolicyRule,
Convert_v1alpha1_PolicyRuleBuilder_To_rbac_PolicyRuleBuilder,
Convert_rbac_PolicyRuleBuilder_To_v1alpha1_PolicyRuleBuilder,
Convert_v1alpha1_Role_To_rbac_Role,
Convert_rbac_Role_To_v1alpha1_Role,
Convert_v1alpha1_RoleBinding_To_rbac_RoleBinding,
Convert_rbac_RoleBinding_To_v1alpha1_RoleBinding,
Convert_v1alpha1_RoleBindingList_To_rbac_RoleBindingList,
Convert_rbac_RoleBindingList_To_v1alpha1_RoleBindingList,
Convert_v1alpha1_RoleList_To_rbac_RoleList,
Convert_rbac_RoleList_To_v1alpha1_RoleList,
Convert_v1alpha1_RoleRef_To_rbac_RoleRef,
Convert_rbac_RoleRef_To_v1alpha1_RoleRef,
Convert_v1alpha1_Subject_To_rbac_Subject,
Convert_rbac_Subject_To_v1alpha1_Subject,
)
}
示例6: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1beta1_StorageClass_To_storage_StorageClass,
Convert_storage_StorageClass_To_v1beta1_StorageClass,
Convert_v1beta1_StorageClassList_To_storage_StorageClassList,
Convert_storage_StorageClassList_To_v1beta1_StorageClassList,
)
}
示例7: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1beta1_Policy_To_abac_Policy,
Convert_abac_Policy_To_v1beta1_Policy,
Convert_v1beta1_PolicySpec_To_abac_PolicySpec,
Convert_abac_PolicySpec_To_v1beta1_PolicySpec,
)
}
示例8: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1_Parameter_To_api_Parameter,
Convert_api_Parameter_To_v1_Parameter,
Convert_v1_Template_To_api_Template,
Convert_api_Template_To_v1_Template,
Convert_v1_TemplateList_To_api_TemplateList,
Convert_api_TemplateList_To_v1_TemplateList,
)
}
示例9: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1alpha1_KubeProxyConfiguration_To_componentconfig_KubeProxyConfiguration,
Convert_componentconfig_KubeProxyConfiguration_To_v1alpha1_KubeProxyConfiguration,
Convert_v1alpha1_KubeSchedulerConfiguration_To_componentconfig_KubeSchedulerConfiguration,
Convert_componentconfig_KubeSchedulerConfiguration_To_v1alpha1_KubeSchedulerConfiguration,
Convert_v1alpha1_KubeletConfiguration_To_componentconfig_KubeletConfiguration,
Convert_componentconfig_KubeletConfiguration_To_v1alpha1_KubeletConfiguration,
Convert_v1alpha1_LeaderElectionConfiguration_To_componentconfig_LeaderElectionConfiguration,
Convert_componentconfig_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration,
)
}
示例10: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1alpha1_PetSet_To_apps_PetSet,
Convert_apps_PetSet_To_v1alpha1_PetSet,
Convert_v1alpha1_PetSetList_To_apps_PetSetList,
Convert_apps_PetSetList_To_v1alpha1_PetSetList,
Convert_v1alpha1_PetSetSpec_To_apps_PetSetSpec,
Convert_apps_PetSetSpec_To_v1alpha1_PetSetSpec,
Convert_v1alpha1_PetSetStatus_To_apps_PetSetStatus,
Convert_apps_PetSetStatus_To_v1alpha1_PetSetStatus,
)
}
示例11: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1beta1_TokenReview_To_authentication_TokenReview,
Convert_authentication_TokenReview_To_v1beta1_TokenReview,
Convert_v1beta1_TokenReviewSpec_To_authentication_TokenReviewSpec,
Convert_authentication_TokenReviewSpec_To_v1beta1_TokenReviewSpec,
Convert_v1beta1_TokenReviewStatus_To_authentication_TokenReviewStatus,
Convert_authentication_TokenReviewStatus_To_v1beta1_TokenReviewStatus,
Convert_v1beta1_UserInfo_To_authentication_UserInfo,
Convert_authentication_UserInfo_To_v1beta1_UserInfo,
)
}
示例12: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1alpha1_ImageReview_To_imagepolicy_ImageReview,
Convert_imagepolicy_ImageReview_To_v1alpha1_ImageReview,
Convert_v1alpha1_ImageReviewContainerSpec_To_imagepolicy_ImageReviewContainerSpec,
Convert_imagepolicy_ImageReviewContainerSpec_To_v1alpha1_ImageReviewContainerSpec,
Convert_v1alpha1_ImageReviewSpec_To_imagepolicy_ImageReviewSpec,
Convert_imagepolicy_ImageReviewSpec_To_v1alpha1_ImageReviewSpec,
Convert_v1alpha1_ImageReviewStatus_To_imagepolicy_ImageReviewStatus,
Convert_imagepolicy_ImageReviewStatus_To_v1alpha1_ImageReviewStatus,
)
}
示例13: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget,
Convert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget,
Convert_v1alpha1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList,
Convert_policy_PodDisruptionBudgetList_To_v1alpha1_PodDisruptionBudgetList,
Convert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec,
Convert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec,
Convert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus,
Convert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus,
)
}
示例14: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1_Project_To_api_Project,
Convert_api_Project_To_v1_Project,
Convert_v1_ProjectList_To_api_ProjectList,
Convert_api_ProjectList_To_v1_ProjectList,
Convert_v1_ProjectRequest_To_api_ProjectRequest,
Convert_api_ProjectRequest_To_v1_ProjectRequest,
Convert_v1_ProjectSpec_To_api_ProjectSpec,
Convert_api_ProjectSpec_To_v1_ProjectSpec,
Convert_v1_ProjectStatus_To_api_ProjectStatus,
Convert_api_ProjectStatus_To_v1_ProjectStatus,
)
}
示例15: RegisterConversions
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(scheme *runtime.Scheme) error {
return scheme.AddGeneratedConversionFuncs(
Convert_v1alpha1_CertificateSigningRequest_To_certificates_CertificateSigningRequest,
Convert_certificates_CertificateSigningRequest_To_v1alpha1_CertificateSigningRequest,
Convert_v1alpha1_CertificateSigningRequestCondition_To_certificates_CertificateSigningRequestCondition,
Convert_certificates_CertificateSigningRequestCondition_To_v1alpha1_CertificateSigningRequestCondition,
Convert_v1alpha1_CertificateSigningRequestList_To_certificates_CertificateSigningRequestList,
Convert_certificates_CertificateSigningRequestList_To_v1alpha1_CertificateSigningRequestList,
Convert_v1alpha1_CertificateSigningRequestSpec_To_certificates_CertificateSigningRequestSpec,
Convert_certificates_CertificateSigningRequestSpec_To_v1alpha1_CertificateSigningRequestSpec,
Convert_v1alpha1_CertificateSigningRequestStatus_To_certificates_CertificateSigningRequestStatus,
Convert_certificates_CertificateSigningRequestStatus_To_v1alpha1_CertificateSigningRequestStatus,
)
}