本文整理汇总了Golang中k8s/io/kubernetes/pkg/api/v1.DeepCopy_v1_EnvVar函数的典型用法代码示例。如果您正苦于以下问题:Golang DeepCopy_v1_EnvVar函数的具体用法?Golang DeepCopy_v1_EnvVar怎么用?Golang DeepCopy_v1_EnvVar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DeepCopy_v1_EnvVar函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: DeepCopy_v1_DockerBuildStrategy
func DeepCopy_v1_DockerBuildStrategy(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*DockerBuildStrategy)
out := out.(*DockerBuildStrategy)
if in.From != nil {
in, out := &in.From, &out.From
*out = new(api_v1.ObjectReference)
**out = **in
} else {
out.From = nil
}
if in.PullSecret != nil {
in, out := &in.PullSecret, &out.PullSecret
*out = new(api_v1.LocalObjectReference)
**out = **in
} else {
out.PullSecret = nil
}
out.NoCache = in.NoCache
if in.Env != nil {
in, out := &in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(*in))
for i := range *in {
if err := api_v1.DeepCopy_v1_EnvVar(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
out.ForcePull = in.ForcePull
out.DockerfilePath = in.DockerfilePath
return nil
}
}
开发者ID:rootfs,项目名称:origin,代码行数:35,代码来源:zz_generated.deepcopy.go
示例2: DeepCopy_v1_ExecNewPodHook
func DeepCopy_v1_ExecNewPodHook(in ExecNewPodHook, out *ExecNewPodHook, c *conversion.Cloner) error {
if in.Command != nil {
in, out := in.Command, &out.Command
*out = make([]string, len(in))
copy(*out, in)
} else {
out.Command = nil
}
if in.Env != nil {
in, out := in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(in))
for i := range in {
if err := api_v1.DeepCopy_v1_EnvVar(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
out.ContainerName = in.ContainerName
if in.Volumes != nil {
in, out := in.Volumes, &out.Volumes
*out = make([]string, len(in))
copy(*out, in)
} else {
out.Volumes = nil
}
return nil
}
开发者ID:legionus,项目名称:origin,代码行数:29,代码来源:deep_copy_generated.go
示例3: DeepCopy_v1_GenericWebHookEvent
func DeepCopy_v1_GenericWebHookEvent(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*GenericWebHookEvent)
out := out.(*GenericWebHookEvent)
out.Type = in.Type
if in.Git != nil {
in, out := &in.Git, &out.Git
*out = new(GitInfo)
if err := DeepCopy_v1_GitInfo(*in, *out, c); err != nil {
return err
}
} else {
out.Git = nil
}
if in.Env != nil {
in, out := &in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(*in))
for i := range *in {
if err := api_v1.DeepCopy_v1_EnvVar(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
return nil
}
}
开发者ID:rootfs,项目名称:origin,代码行数:28,代码来源:zz_generated.deepcopy.go
示例4: DeepCopy_v1_SourceBuildStrategy
func DeepCopy_v1_SourceBuildStrategy(in SourceBuildStrategy, out *SourceBuildStrategy, c *conversion.Cloner) error {
if err := api_v1.DeepCopy_v1_ObjectReference(in.From, &out.From, c); err != nil {
return err
}
if in.PullSecret != nil {
in, out := in.PullSecret, &out.PullSecret
*out = new(api_v1.LocalObjectReference)
if err := api_v1.DeepCopy_v1_LocalObjectReference(*in, *out, c); err != nil {
return err
}
} else {
out.PullSecret = nil
}
if in.Env != nil {
in, out := in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(in))
for i := range in {
if err := api_v1.DeepCopy_v1_EnvVar(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
out.Scripts = in.Scripts
out.Incremental = in.Incremental
out.ForcePull = in.ForcePull
return nil
}
开发者ID:jdnieto,项目名称:origin,代码行数:29,代码来源:deep_copy_generated.go
示例5: DeepCopy_v1_DockerBuildStrategy
func DeepCopy_v1_DockerBuildStrategy(in DockerBuildStrategy, out *DockerBuildStrategy, c *conversion.Cloner) error {
if in.From != nil {
in, out := in.From, &out.From
*out = new(api_v1.ObjectReference)
if err := api_v1.DeepCopy_v1_ObjectReference(*in, *out, c); err != nil {
return err
}
} else {
out.From = nil
}
if in.PullSecret != nil {
in, out := in.PullSecret, &out.PullSecret
*out = new(api_v1.LocalObjectReference)
if err := api_v1.DeepCopy_v1_LocalObjectReference(*in, *out, c); err != nil {
return err
}
} else {
out.PullSecret = nil
}
out.NoCache = in.NoCache
if in.Env != nil {
in, out := in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(in))
for i := range in {
if err := api_v1.DeepCopy_v1_EnvVar(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
out.ForcePull = in.ForcePull
out.DockerfilePath = in.DockerfilePath
return nil
}
开发者ID:jdnieto,项目名称:origin,代码行数:35,代码来源:deep_copy_generated.go
示例6: DeepCopy_v1_SourceBuildStrategy
func DeepCopy_v1_SourceBuildStrategy(in SourceBuildStrategy, out *SourceBuildStrategy, c *conversion.Cloner) error {
if err := api_v1.DeepCopy_v1_ObjectReference(in.From, &out.From, c); err != nil {
return err
}
if in.PullSecret != nil {
in, out := in.PullSecret, &out.PullSecret
*out = new(api_v1.LocalObjectReference)
if err := api_v1.DeepCopy_v1_LocalObjectReference(*in, *out, c); err != nil {
return err
}
} else {
out.PullSecret = nil
}
if in.Env != nil {
in, out := in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(in))
for i := range in {
if err := api_v1.DeepCopy_v1_EnvVar(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
out.Scripts = in.Scripts
if in.Incremental != nil {
in, out := in.Incremental, &out.Incremental
*out = new(bool)
**out = *in
} else {
out.Incremental = nil
}
out.ForcePull = in.ForcePull
if in.RuntimeImage != nil {
in, out := in.RuntimeImage, &out.RuntimeImage
*out = new(api_v1.ObjectReference)
if err := api_v1.DeepCopy_v1_ObjectReference(*in, *out, c); err != nil {
return err
}
} else {
out.RuntimeImage = nil
}
if in.RuntimeArtifacts != nil {
in, out := in.RuntimeArtifacts, &out.RuntimeArtifacts
*out = make([]ImageSourcePath, len(in))
for i := range in {
if err := DeepCopy_v1_ImageSourcePath(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.RuntimeArtifacts = nil
}
return nil
}
开发者ID:abhgupta,项目名称:origin,代码行数:55,代码来源:deep_copy_generated.go
示例7: DeepCopy_v1_SourceBuildStrategy
func DeepCopy_v1_SourceBuildStrategy(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*SourceBuildStrategy)
out := out.(*SourceBuildStrategy)
out.From = in.From
if in.PullSecret != nil {
in, out := &in.PullSecret, &out.PullSecret
*out = new(api_v1.LocalObjectReference)
**out = **in
} else {
out.PullSecret = nil
}
if in.Env != nil {
in, out := &in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(*in))
for i := range *in {
if err := api_v1.DeepCopy_v1_EnvVar(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
out.Scripts = in.Scripts
if in.Incremental != nil {
in, out := &in.Incremental, &out.Incremental
*out = new(bool)
**out = **in
} else {
out.Incremental = nil
}
out.ForcePull = in.ForcePull
if in.RuntimeImage != nil {
in, out := &in.RuntimeImage, &out.RuntimeImage
*out = new(api_v1.ObjectReference)
**out = **in
} else {
out.RuntimeImage = nil
}
if in.RuntimeArtifacts != nil {
in, out := &in.RuntimeArtifacts, &out.RuntimeArtifacts
*out = make([]ImageSourcePath, len(*in))
for i := range *in {
(*out)[i] = (*in)[i]
}
} else {
out.RuntimeArtifacts = nil
}
return nil
}
}
开发者ID:rootfs,项目名称:origin,代码行数:51,代码来源:zz_generated.deepcopy.go
示例8: DeepCopy_v1_CustomBuildStrategy
func DeepCopy_v1_CustomBuildStrategy(in CustomBuildStrategy, out *CustomBuildStrategy, c *conversion.Cloner) error {
if err := api_v1.DeepCopy_v1_ObjectReference(in.From, &out.From, c); err != nil {
return err
}
if in.PullSecret != nil {
in, out := in.PullSecret, &out.PullSecret
*out = new(api_v1.LocalObjectReference)
if err := api_v1.DeepCopy_v1_LocalObjectReference(*in, *out, c); err != nil {
return err
}
} else {
out.PullSecret = nil
}
if in.Env != nil {
in, out := in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(in))
for i := range in {
if err := api_v1.DeepCopy_v1_EnvVar(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
out.ExposeDockerSocket = in.ExposeDockerSocket
out.ForcePull = in.ForcePull
if in.Secrets != nil {
in, out := in.Secrets, &out.Secrets
*out = make([]SecretSpec, len(in))
for i := range in {
if err := DeepCopy_v1_SecretSpec(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Secrets = nil
}
out.BuildAPIVersion = in.BuildAPIVersion
return nil
}
开发者ID:jdnieto,项目名称:origin,代码行数:40,代码来源:deep_copy_generated.go
示例9: DeepCopy_v1_CustomBuildStrategy
func DeepCopy_v1_CustomBuildStrategy(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*CustomBuildStrategy)
out := out.(*CustomBuildStrategy)
out.From = in.From
if in.PullSecret != nil {
in, out := &in.PullSecret, &out.PullSecret
*out = new(api_v1.LocalObjectReference)
**out = **in
} else {
out.PullSecret = nil
}
if in.Env != nil {
in, out := &in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(*in))
for i := range *in {
if err := api_v1.DeepCopy_v1_EnvVar(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
out.ExposeDockerSocket = in.ExposeDockerSocket
out.ForcePull = in.ForcePull
if in.Secrets != nil {
in, out := &in.Secrets, &out.Secrets
*out = make([]SecretSpec, len(*in))
for i := range *in {
(*out)[i] = (*in)[i]
}
} else {
out.Secrets = nil
}
out.BuildAPIVersion = in.BuildAPIVersion
return nil
}
}
开发者ID:rootfs,项目名称:origin,代码行数:38,代码来源:zz_generated.deepcopy.go
示例10: DeepCopy_v1_BuildRequest
func DeepCopy_v1_BuildRequest(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*BuildRequest)
out := out.(*BuildRequest)
out.TypeMeta = in.TypeMeta
if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err
}
if in.Revision != nil {
in, out := &in.Revision, &out.Revision
*out = new(SourceRevision)
if err := DeepCopy_v1_SourceRevision(*in, *out, c); err != nil {
return err
}
} else {
out.Revision = nil
}
if in.TriggeredByImage != nil {
in, out := &in.TriggeredByImage, &out.TriggeredByImage
*out = new(api_v1.ObjectReference)
**out = **in
} else {
out.TriggeredByImage = nil
}
if in.From != nil {
in, out := &in.From, &out.From
*out = new(api_v1.ObjectReference)
**out = **in
} else {
out.From = nil
}
if in.Binary != nil {
in, out := &in.Binary, &out.Binary
*out = new(BinaryBuildSource)
**out = **in
} else {
out.Binary = nil
}
if in.LastVersion != nil {
in, out := &in.LastVersion, &out.LastVersion
*out = new(int64)
**out = **in
} else {
out.LastVersion = nil
}
if in.Env != nil {
in, out := &in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(*in))
for i := range *in {
if err := api_v1.DeepCopy_v1_EnvVar(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
if in.TriggeredBy != nil {
in, out := &in.TriggeredBy, &out.TriggeredBy
*out = make([]BuildTriggerCause, len(*in))
for i := range *in {
if err := DeepCopy_v1_BuildTriggerCause(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.TriggeredBy = nil
}
return nil
}
}
开发者ID:rootfs,项目名称:origin,代码行数:70,代码来源:zz_generated.deepcopy.go
示例11: DeepCopy_v1_BuildRequest
func DeepCopy_v1_BuildRequest(in BuildRequest, out *BuildRequest, 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 in.Revision != nil {
in, out := in.Revision, &out.Revision
*out = new(SourceRevision)
if err := DeepCopy_v1_SourceRevision(*in, *out, c); err != nil {
return err
}
} else {
out.Revision = nil
}
if in.TriggeredByImage != nil {
in, out := in.TriggeredByImage, &out.TriggeredByImage
*out = new(api_v1.ObjectReference)
if err := api_v1.DeepCopy_v1_ObjectReference(*in, *out, c); err != nil {
return err
}
} else {
out.TriggeredByImage = nil
}
if in.From != nil {
in, out := in.From, &out.From
*out = new(api_v1.ObjectReference)
if err := api_v1.DeepCopy_v1_ObjectReference(*in, *out, c); err != nil {
return err
}
} else {
out.From = nil
}
if in.Binary != nil {
in, out := in.Binary, &out.Binary
*out = new(BinaryBuildSource)
if err := DeepCopy_v1_BinaryBuildSource(*in, *out, c); err != nil {
return err
}
} else {
out.Binary = nil
}
if in.LastVersion != nil {
in, out := in.LastVersion, &out.LastVersion
*out = new(int)
**out = *in
} else {
out.LastVersion = nil
}
if in.Env != nil {
in, out := in.Env, &out.Env
*out = make([]api_v1.EnvVar, len(in))
for i := range in {
if err := api_v1.DeepCopy_v1_EnvVar(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
return nil
}
开发者ID:RomainVabre,项目名称:origin,代码行数:63,代码来源:deep_copy_generated.go
注:本文中的k8s/io/kubernetes/pkg/api/v1.DeepCopy_v1_EnvVar函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论