本文整理匯總了Golang中k8s/io/kubernetes/pkg/api/unversioned.DeepCopy_unversioned_Time函數的典型用法代碼示例。如果您正苦於以下問題:Golang DeepCopy_unversioned_Time函數的具體用法?Golang DeepCopy_unversioned_Time怎麽用?Golang DeepCopy_unversioned_Time使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了DeepCopy_unversioned_Time函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: DeepCopy_v2alpha1_JobStatus
func DeepCopy_v2alpha1_JobStatus(in JobStatus, out *JobStatus, c *conversion.Cloner) error {
if in.Conditions != nil {
in, out := in.Conditions, &out.Conditions
*out = make([]JobCondition, len(in))
for i := range in {
if err := DeepCopy_v2alpha1_JobCondition(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Conditions = nil
}
if in.StartTime != nil {
in, out := in.StartTime, &out.StartTime
*out = new(unversioned.Time)
if err := unversioned.DeepCopy_unversioned_Time(*in, *out, c); err != nil {
return err
}
} else {
out.StartTime = nil
}
if in.CompletionTime != nil {
in, out := in.CompletionTime, &out.CompletionTime
*out = new(unversioned.Time)
if err := unversioned.DeepCopy_unversioned_Time(*in, *out, c); err != nil {
return err
}
} else {
out.CompletionTime = nil
}
out.Active = in.Active
out.Succeeded = in.Succeeded
out.Failed = in.Failed
return nil
}
示例2: DeepCopy_api_SignatureCondition
func DeepCopy_api_SignatureCondition(in SignatureCondition, out *SignatureCondition, c *conversion.Cloner) error {
out.Type = in.Type
out.Status = in.Status
if err := unversioned.DeepCopy_unversioned_Time(in.LastProbeTime, &out.LastProbeTime, c); err != nil {
return err
}
if err := unversioned.DeepCopy_unversioned_Time(in.LastTransitionTime, &out.LastTransitionTime, c); err != nil {
return err
}
out.Reason = in.Reason
out.Message = in.Message
return nil
}
示例3: DeepCopy_v1beta1_HorizontalPodAutoscalerStatus
func DeepCopy_v1beta1_HorizontalPodAutoscalerStatus(in HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, c *conversion.Cloner) error {
if in.ObservedGeneration != nil {
in, out := in.ObservedGeneration, &out.ObservedGeneration
*out = new(int64)
**out = *in
} else {
out.ObservedGeneration = nil
}
if in.LastScaleTime != nil {
in, out := in.LastScaleTime, &out.LastScaleTime
*out = new(unversioned.Time)
if err := unversioned.DeepCopy_unversioned_Time(*in, *out, c); err != nil {
return err
}
} else {
out.LastScaleTime = nil
}
out.CurrentReplicas = in.CurrentReplicas
out.DesiredReplicas = in.DesiredReplicas
if in.CurrentCPUUtilizationPercentage != nil {
in, out := in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage
*out = new(int32)
**out = *in
} else {
out.CurrentCPUUtilizationPercentage = nil
}
return nil
}
示例4: DeepCopy_api_ClusterPolicyBinding
func DeepCopy_api_ClusterPolicyBinding(in ClusterPolicyBinding, out *ClusterPolicyBinding, c *conversion.Cloner) error {
if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
return err
}
if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err
}
if err := unversioned.DeepCopy_unversioned_Time(in.LastModified, &out.LastModified, c); err != nil {
return err
}
if err := api.DeepCopy_api_ObjectReference(in.PolicyRef, &out.PolicyRef, c); err != nil {
return err
}
if in.RoleBindings != nil {
in, out := in.RoleBindings, &out.RoleBindings
*out = make(map[string]*ClusterRoleBinding)
for key, val := range in {
if newVal, err := c.DeepCopy(val); err != nil {
return err
} else {
(*out)[key] = newVal.(*ClusterRoleBinding)
}
}
} else {
out.RoleBindings = nil
}
return nil
}
示例5: DeepCopy_api_Policy
func DeepCopy_api_Policy(in Policy, out *Policy, c *conversion.Cloner) error {
if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
return err
}
if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err
}
if err := unversioned.DeepCopy_unversioned_Time(in.LastModified, &out.LastModified, c); err != nil {
return err
}
if in.Roles != nil {
in, out := in.Roles, &out.Roles
*out = make(map[string]*Role)
for key, val := range in {
if newVal, err := c.DeepCopy(val); err != nil {
return err
} else {
(*out)[key] = newVal.(*Role)
}
}
} else {
out.Roles = nil
}
return nil
}
示例6: DeepCopy_v1_ClusterPolicyBinding
func DeepCopy_v1_ClusterPolicyBinding(in ClusterPolicyBinding, out *ClusterPolicyBinding, c *conversion.Cloner) error {
if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
return err
}
if err := api_v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err
}
if err := unversioned.DeepCopy_unversioned_Time(in.LastModified, &out.LastModified, c); err != nil {
return err
}
if err := api_v1.DeepCopy_v1_ObjectReference(in.PolicyRef, &out.PolicyRef, c); err != nil {
return err
}
if in.RoleBindings != nil {
in, out := in.RoleBindings, &out.RoleBindings
*out = make([]NamedClusterRoleBinding, len(in))
for i := range in {
if err := DeepCopy_v1_NamedClusterRoleBinding(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.RoleBindings = nil
}
return nil
}
示例7: DeepCopy_api_DockerV1CompatibilityImage
func DeepCopy_api_DockerV1CompatibilityImage(in DockerV1CompatibilityImage, out *DockerV1CompatibilityImage, c *conversion.Cloner) error {
out.ID = in.ID
out.Parent = in.Parent
out.Comment = in.Comment
if err := unversioned.DeepCopy_unversioned_Time(in.Created, &out.Created, c); err != nil {
return err
}
out.Container = in.Container
if err := DeepCopy_api_DockerConfig(in.ContainerConfig, &out.ContainerConfig, c); err != nil {
return err
}
out.DockerVersion = in.DockerVersion
out.Author = in.Author
if in.Config != nil {
in, out := in.Config, &out.Config
*out = new(DockerConfig)
if err := DeepCopy_api_DockerConfig(*in, *out, c); err != nil {
return err
}
} else {
out.Config = nil
}
out.Architecture = in.Architecture
out.Size = in.Size
return nil
}
示例8: DeepCopy_api_ImageSignature
func DeepCopy_api_ImageSignature(in ImageSignature, out *ImageSignature, c *conversion.Cloner) error {
out.Type = in.Type
if in.Content != nil {
in, out := in.Content, &out.Content
*out = make([]byte, len(in))
copy(*out, in)
} else {
out.Content = nil
}
if in.Conditions != nil {
in, out := in.Conditions, &out.Conditions
*out = make([]SignatureCondition, len(in))
for i := range in {
if err := DeepCopy_api_SignatureCondition(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Conditions = nil
}
out.ImageIdentity = in.ImageIdentity
if in.SignedClaims != nil {
in, out := in.SignedClaims, &out.SignedClaims
*out = make(map[string]string)
for key, val := range in {
(*out)[key] = val
}
} else {
out.SignedClaims = nil
}
if in.Created != nil {
in, out := in.Created, &out.Created
*out = new(unversioned.Time)
if err := unversioned.DeepCopy_unversioned_Time(*in, *out, c); err != nil {
return err
}
} else {
out.Created = nil
}
if in.IssuedBy != nil {
in, out := in.IssuedBy, &out.IssuedBy
*out = new(SignatureIssuer)
if err := DeepCopy_api_SignatureIssuer(*in, *out, c); err != nil {
return err
}
} else {
out.IssuedBy = nil
}
if in.IssuedTo != nil {
in, out := in.IssuedTo, &out.IssuedTo
*out = new(SignatureSubject)
if err := DeepCopy_api_SignatureSubject(*in, *out, c); err != nil {
return err
}
} else {
out.IssuedTo = nil
}
return nil
}
示例9: DeepCopy_v1alpha1_CertificateSigningRequestCondition
func DeepCopy_v1alpha1_CertificateSigningRequestCondition(in CertificateSigningRequestCondition, out *CertificateSigningRequestCondition, c *conversion.Cloner) error {
out.Type = in.Type
out.Reason = in.Reason
out.Message = in.Message
if err := unversioned.DeepCopy_unversioned_Time(in.LastUpdateTime, &out.LastUpdateTime, c); err != nil {
return err
}
return nil
}
示例10: DeepCopy_api_TagEvent
func DeepCopy_api_TagEvent(in TagEvent, out *TagEvent, c *conversion.Cloner) error {
if err := unversioned.DeepCopy_unversioned_Time(in.Created, &out.Created, c); err != nil {
return err
}
out.DockerImageReference = in.DockerImageReference
out.Image = in.Image
out.Generation = in.Generation
return nil
}
示例11: DeepCopy_api_DockerConfigHistory
func DeepCopy_api_DockerConfigHistory(in DockerConfigHistory, out *DockerConfigHistory, c *conversion.Cloner) error {
if err := unversioned.DeepCopy_unversioned_Time(in.Created, &out.Created, c); err != nil {
return err
}
out.Author = in.Author
out.CreatedBy = in.CreatedBy
out.Comment = in.Comment
out.EmptyLayer = in.EmptyLayer
return nil
}
示例12: DeepCopy_api_TagEventCondition
func DeepCopy_api_TagEventCondition(in TagEventCondition, out *TagEventCondition, c *conversion.Cloner) error {
out.Type = in.Type
out.Status = in.Status
if err := unversioned.DeepCopy_unversioned_Time(in.LastTransitionTime, &out.LastTransitionTime, c); err != nil {
return err
}
out.Reason = in.Reason
out.Message = in.Message
out.Generation = in.Generation
return nil
}
示例13: DeepCopy_api_DockerImageConfig
func DeepCopy_api_DockerImageConfig(in DockerImageConfig, out *DockerImageConfig, c *conversion.Cloner) error {
out.ID = in.ID
out.Parent = in.Parent
out.Comment = in.Comment
if err := unversioned.DeepCopy_unversioned_Time(in.Created, &out.Created, c); err != nil {
return err
}
out.Container = in.Container
if err := DeepCopy_api_DockerConfig(in.ContainerConfig, &out.ContainerConfig, c); err != nil {
return err
}
out.DockerVersion = in.DockerVersion
out.Author = in.Author
if in.Config != nil {
in, out := in.Config, &out.Config
*out = new(DockerConfig)
if err := DeepCopy_api_DockerConfig(*in, *out, c); err != nil {
return err
}
} else {
out.Config = nil
}
out.Architecture = in.Architecture
out.Size = in.Size
if in.RootFS != nil {
in, out := in.RootFS, &out.RootFS
*out = new(DockerConfigRootFS)
if err := DeepCopy_api_DockerConfigRootFS(*in, *out, c); err != nil {
return err
}
} else {
out.RootFS = nil
}
if in.History != nil {
in, out := in.History, &out.History
*out = make([]DockerConfigHistory, len(in))
for i := range in {
if err := DeepCopy_api_DockerConfigHistory(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.History = nil
}
out.OSVersion = in.OSVersion
if in.OSFeatures != nil {
in, out := in.OSFeatures, &out.OSFeatures
*out = make([]string, len(in))
copy(*out, in)
} else {
out.OSFeatures = nil
}
return nil
}
示例14: DeepCopy_api_BuildStatus
func DeepCopy_api_BuildStatus(in BuildStatus, out *BuildStatus, c *conversion.Cloner) error {
out.Phase = in.Phase
out.Cancelled = in.Cancelled
out.Reason = in.Reason
out.Message = in.Message
if in.StartTimestamp != nil {
in, out := in.StartTimestamp, &out.StartTimestamp
*out = new(unversioned.Time)
if err := unversioned.DeepCopy_unversioned_Time(*in, *out, c); err != nil {
return err
}
} else {
out.StartTimestamp = nil
}
if in.CompletionTimestamp != nil {
in, out := in.CompletionTimestamp, &out.CompletionTimestamp
*out = new(unversioned.Time)
if err := unversioned.DeepCopy_unversioned_Time(*in, *out, c); err != nil {
return err
}
} else {
out.CompletionTimestamp = nil
}
out.Duration = in.Duration
out.OutputDockerImageReference = in.OutputDockerImageReference
if in.Config != nil {
in, out := in.Config, &out.Config
*out = new(api.ObjectReference)
if err := api.DeepCopy_api_ObjectReference(*in, *out, c); err != nil {
return err
}
} else {
out.Config = nil
}
return nil
}
示例15: DeepCopy_v1_DeploymentLogOptions
func DeepCopy_v1_DeploymentLogOptions(in DeploymentLogOptions, out *DeploymentLogOptions, c *conversion.Cloner) error {
if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
return err
}
out.Container = in.Container
out.Follow = in.Follow
out.Previous = in.Previous
if in.SinceSeconds != nil {
in, out := in.SinceSeconds, &out.SinceSeconds
*out = new(int64)
**out = *in
} else {
out.SinceSeconds = nil
}
if in.SinceTime != nil {
in, out := in.SinceTime, &out.SinceTime
*out = new(unversioned.Time)
if err := unversioned.DeepCopy_unversioned_Time(*in, *out, c); err != nil {
return err
}
} else {
out.SinceTime = nil
}
out.Timestamps = in.Timestamps
if in.TailLines != nil {
in, out := in.TailLines, &out.TailLines
*out = new(int64)
**out = *in
} else {
out.TailLines = nil
}
if in.LimitBytes != nil {
in, out := in.LimitBytes, &out.LimitBytes
*out = new(int64)
**out = *in
} else {
out.LimitBytes = nil
}
out.NoWait = in.NoWait
if in.Version != nil {
in, out := in.Version, &out.Version
*out = new(int64)
**out = *in
} else {
out.Version = nil
}
return nil
}