本文整理汇总了Golang中k8s/io/kubernetes/pkg/api.DeepCopy_api_EnvVar函数的典型用法代码示例。如果您正苦于以下问题:Golang DeepCopy_api_EnvVar函数的具体用法?Golang DeepCopy_api_EnvVar怎么用?Golang DeepCopy_api_EnvVar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DeepCopy_api_EnvVar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: DeepCopy_api_DockerBuildStrategy
func DeepCopy_api_DockerBuildStrategy(in DockerBuildStrategy, out *DockerBuildStrategy, c *conversion.Cloner) error {
if in.From != nil {
in, out := in.From, &out.From
*out = new(api.ObjectReference)
if err := api.DeepCopy_api_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.LocalObjectReference)
if err := api.DeepCopy_api_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.EnvVar, len(in))
for i := range in {
if err := api.DeepCopy_api_EnvVar(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
out.ForcePull = in.ForcePull
out.DockerfilePath = in.DockerfilePath
return nil
}
示例2: DeepCopy_api_GenericWebHookEvent
func DeepCopy_api_GenericWebHookEvent(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*GenericWebHookEvent)
out := out.(*GenericWebHookEvent)
if in.Git != nil {
in, out := &in.Git, &out.Git
*out = new(GitInfo)
if err := DeepCopy_api_GitInfo(*in, *out, c); err != nil {
return err
}
} else {
out.Git = nil
}
if in.Env != nil {
in, out := &in.Env, &out.Env
*out = make([]pkg_api.EnvVar, len(*in))
for i := range *in {
if err := pkg_api.DeepCopy_api_EnvVar(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
return nil
}
}
示例3: DeepCopy_api_ExecNewPodHook
func DeepCopy_api_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.EnvVar, len(in))
for i := range in {
if err := api.DeepCopy_api_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
}
示例4: DeepCopy_api_DockerBuildStrategy
func DeepCopy_api_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(pkg_api.ObjectReference)
**out = **in
} else {
out.From = nil
}
if in.PullSecret != nil {
in, out := &in.PullSecret, &out.PullSecret
*out = new(pkg_api.LocalObjectReference)
**out = **in
} else {
out.PullSecret = nil
}
out.NoCache = in.NoCache
if in.Env != nil {
in, out := &in.Env, &out.Env
*out = make([]pkg_api.EnvVar, len(*in))
for i := range *in {
if err := pkg_api.DeepCopy_api_EnvVar(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
out.ForcePull = in.ForcePull
out.DockerfilePath = in.DockerfilePath
return nil
}
}
示例5: DeepCopy_api_CustomDeploymentStrategyParams
func DeepCopy_api_CustomDeploymentStrategyParams(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*CustomDeploymentStrategyParams)
out := out.(*CustomDeploymentStrategyParams)
out.Image = in.Image
if in.Environment != nil {
in, out := &in.Environment, &out.Environment
*out = make([]pkg_api.EnvVar, len(*in))
for i := range *in {
if err := pkg_api.DeepCopy_api_EnvVar(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Environment = nil
}
if in.Command != nil {
in, out := &in.Command, &out.Command
*out = make([]string, len(*in))
copy(*out, *in)
} else {
out.Command = nil
}
return nil
}
}
示例6: DeepCopy_api_ExecNewPodHook
func DeepCopy_api_ExecNewPodHook(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*ExecNewPodHook)
out := out.(*ExecNewPodHook)
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([]pkg_api.EnvVar, len(*in))
for i := range *in {
if err := pkg_api.DeepCopy_api_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
}
}
示例7: DeepCopy_api_SourceBuildStrategy
func DeepCopy_api_SourceBuildStrategy(in SourceBuildStrategy, out *SourceBuildStrategy, c *conversion.Cloner) error {
if err := api.DeepCopy_api_ObjectReference(in.From, &out.From, c); err != nil {
return err
}
if in.PullSecret != nil {
in, out := in.PullSecret, &out.PullSecret
*out = new(api.LocalObjectReference)
if err := api.DeepCopy_api_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.EnvVar, len(in))
for i := range in {
if err := api.DeepCopy_api_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
}
示例8: DeepCopy_api_SourceBuildStrategy
func DeepCopy_api_SourceBuildStrategy(in SourceBuildStrategy, out *SourceBuildStrategy, c *conversion.Cloner) error {
if err := api.DeepCopy_api_ObjectReference(in.From, &out.From, c); err != nil {
return err
}
if in.PullSecret != nil {
in, out := in.PullSecret, &out.PullSecret
*out = new(api.LocalObjectReference)
if err := api.DeepCopy_api_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.EnvVar, len(in))
for i := range in {
if err := api.DeepCopy_api_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.ObjectReference)
if err := api.DeepCopy_api_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_api_ImageSourcePath(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.RuntimeArtifacts = nil
}
return nil
}
示例9: DeepCopy_api_SourceBuildStrategy
func DeepCopy_api_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(pkg_api.LocalObjectReference)
**out = **in
} else {
out.PullSecret = nil
}
if in.Env != nil {
in, out := &in.Env, &out.Env
*out = make([]pkg_api.EnvVar, len(*in))
for i := range *in {
if err := pkg_api.DeepCopy_api_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(pkg_api.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
}
}
示例10: DeepCopy_api_CustomBuildStrategy
func DeepCopy_api_CustomBuildStrategy(in CustomBuildStrategy, out *CustomBuildStrategy, c *conversion.Cloner) error {
if err := api.DeepCopy_api_ObjectReference(in.From, &out.From, c); err != nil {
return err
}
if in.PullSecret != nil {
in, out := in.PullSecret, &out.PullSecret
*out = new(api.LocalObjectReference)
if err := api.DeepCopy_api_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.EnvVar, len(in))
for i := range in {
if err := api.DeepCopy_api_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_api_SecretSpec(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Secrets = nil
}
out.BuildAPIVersion = in.BuildAPIVersion
return nil
}
示例11: DeepCopy_api_CustomDeploymentStrategyParams
func DeepCopy_api_CustomDeploymentStrategyParams(in CustomDeploymentStrategyParams, out *CustomDeploymentStrategyParams, c *conversion.Cloner) error {
out.Image = in.Image
if in.Environment != nil {
in, out := in.Environment, &out.Environment
*out = make([]api.EnvVar, len(in))
for i := range in {
if err := api.DeepCopy_api_EnvVar(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Environment = nil
}
if in.Command != nil {
in, out := in.Command, &out.Command
*out = make([]string, len(in))
copy(*out, in)
} else {
out.Command = nil
}
return nil
}
示例12: DeepCopy_api_CustomBuildStrategy
func DeepCopy_api_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(pkg_api.LocalObjectReference)
**out = **in
} else {
out.PullSecret = nil
}
if in.Env != nil {
in, out := &in.Env, &out.Env
*out = make([]pkg_api.EnvVar, len(*in))
for i := range *in {
if err := pkg_api.DeepCopy_api_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
}
}
示例13: DeepCopy_api_GenericWebHookEvent
func DeepCopy_api_GenericWebHookEvent(in GenericWebHookEvent, out *GenericWebHookEvent, c *conversion.Cloner) error {
if in.Git != nil {
in, out := in.Git, &out.Git
*out = new(GitInfo)
if err := DeepCopy_api_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.EnvVar, len(in))
for i := range in {
if err := api.DeepCopy_api_EnvVar(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.Env = nil
}
return nil
}
示例14: DeepCopy_api_BuildRequest
func DeepCopy_api_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.DeepCopy_api_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_api_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.ObjectReference)
if err := api.DeepCopy_api_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.ObjectReference)
if err := api.DeepCopy_api_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_api_BinaryBuildSource(*in, *out, c); err != nil {
return err
}
} 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.EnvVar, len(in))
for i := range in {
if err := api.DeepCopy_api_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_api_BuildTriggerCause(in[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.TriggeredBy = nil
}
return nil
}
示例15: DeepCopy_api_BuildRequest
func DeepCopy_api_BuildRequest(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*BuildRequest)
out := out.(*BuildRequest)
out.TypeMeta = in.TypeMeta
if err := pkg_api.DeepCopy_api_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_api_SourceRevision(*in, *out, c); err != nil {
return err
}
} else {
out.Revision = nil
}
if in.TriggeredByImage != nil {
in, out := &in.TriggeredByImage, &out.TriggeredByImage
*out = new(pkg_api.ObjectReference)
**out = **in
} else {
out.TriggeredByImage = nil
}
if in.From != nil {
in, out := &in.From, &out.From
*out = new(pkg_api.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([]pkg_api.EnvVar, len(*in))
for i := range *in {
if err := pkg_api.DeepCopy_api_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_api_BuildTriggerCause(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.TriggeredBy = nil
}
return nil
}
}