mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 14:20:23 -04:00
170 lines
6.3 KiB
Go
170 lines
6.3 KiB
Go
![]() |
// +build !ignore_autogenerated
|
||
|
|
||
|
// This file was autogenerated by conversion-gen. Do not edit it manually!
|
||
|
|
||
|
package v1beta1
|
||
|
|
||
|
import (
|
||
|
compose "github.com/docker/cli/kubernetes/compose"
|
||
|
conversion "k8s.io/apimachinery/pkg/conversion"
|
||
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
localSchemeBuilder.Register(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_Owner_To_compose_Owner,
|
||
|
Convert_compose_Owner_To_v1beta1_Owner,
|
||
|
Convert_v1beta1_Stack_To_compose_Stack,
|
||
|
Convert_compose_Stack_To_v1beta1_Stack,
|
||
|
Convert_v1beta1_StackList_To_compose_StackList,
|
||
|
Convert_compose_StackList_To_v1beta1_StackList,
|
||
|
Convert_v1beta1_StackSpec_To_compose_StackSpec,
|
||
|
Convert_compose_StackSpec_To_v1beta1_StackSpec,
|
||
|
Convert_v1beta1_StackStatus_To_compose_StackStatus,
|
||
|
Convert_compose_StackStatus_To_v1beta1_StackStatus,
|
||
|
)
|
||
|
}
|
||
|
|
||
|
func autoConvert_v1beta1_Owner_To_compose_Owner(in *Owner, out *compose.Owner, s conversion.Scope) error {
|
||
|
out.ObjectMeta = in.ObjectMeta
|
||
|
out.Owner = in.Owner
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Convert_v1beta1_Owner_To_compose_Owner is an autogenerated conversion function.
|
||
|
func Convert_v1beta1_Owner_To_compose_Owner(in *Owner, out *compose.Owner, s conversion.Scope) error {
|
||
|
return autoConvert_v1beta1_Owner_To_compose_Owner(in, out, s)
|
||
|
}
|
||
|
|
||
|
func autoConvert_compose_Owner_To_v1beta1_Owner(in *compose.Owner, out *Owner, s conversion.Scope) error {
|
||
|
out.ObjectMeta = in.ObjectMeta
|
||
|
out.Owner = in.Owner
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Convert_compose_Owner_To_v1beta1_Owner is an autogenerated conversion function.
|
||
|
func Convert_compose_Owner_To_v1beta1_Owner(in *compose.Owner, out *Owner, s conversion.Scope) error {
|
||
|
return autoConvert_compose_Owner_To_v1beta1_Owner(in, out, s)
|
||
|
}
|
||
|
|
||
|
func autoConvert_v1beta1_Stack_To_compose_Stack(in *Stack, out *compose.Stack, s conversion.Scope) error {
|
||
|
out.ObjectMeta = in.ObjectMeta
|
||
|
if err := Convert_v1beta1_StackSpec_To_compose_StackSpec(&in.Spec, &out.Spec, s); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
if err := Convert_v1beta1_StackStatus_To_compose_StackStatus(&in.Status, &out.Status, s); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Convert_v1beta1_Stack_To_compose_Stack is an autogenerated conversion function.
|
||
|
func Convert_v1beta1_Stack_To_compose_Stack(in *Stack, out *compose.Stack, s conversion.Scope) error {
|
||
|
return autoConvert_v1beta1_Stack_To_compose_Stack(in, out, s)
|
||
|
}
|
||
|
|
||
|
func autoConvert_compose_Stack_To_v1beta1_Stack(in *compose.Stack, out *Stack, s conversion.Scope) error {
|
||
|
out.ObjectMeta = in.ObjectMeta
|
||
|
if err := Convert_compose_StackSpec_To_v1beta1_StackSpec(&in.Spec, &out.Spec, s); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
if err := Convert_compose_StackStatus_To_v1beta1_StackStatus(&in.Status, &out.Status, s); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Convert_compose_Stack_To_v1beta1_Stack is an autogenerated conversion function.
|
||
|
func Convert_compose_Stack_To_v1beta1_Stack(in *compose.Stack, out *Stack, s conversion.Scope) error {
|
||
|
return autoConvert_compose_Stack_To_v1beta1_Stack(in, out, s)
|
||
|
}
|
||
|
|
||
|
func autoConvert_v1beta1_StackList_To_compose_StackList(in *StackList, out *compose.StackList, s conversion.Scope) error {
|
||
|
out.ListMeta = in.ListMeta
|
||
|
if in.Items != nil {
|
||
|
in, out := &in.Items, &out.Items
|
||
|
*out = make([]compose.Stack, len(*in))
|
||
|
for i := range *in {
|
||
|
if err := Convert_v1beta1_Stack_To_compose_Stack(&(*in)[i], &(*out)[i], s); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
out.Items = nil
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Convert_v1beta1_StackList_To_compose_StackList is an autogenerated conversion function.
|
||
|
func Convert_v1beta1_StackList_To_compose_StackList(in *StackList, out *compose.StackList, s conversion.Scope) error {
|
||
|
return autoConvert_v1beta1_StackList_To_compose_StackList(in, out, s)
|
||
|
}
|
||
|
|
||
|
func autoConvert_compose_StackList_To_v1beta1_StackList(in *compose.StackList, out *StackList, s conversion.Scope) error {
|
||
|
out.ListMeta = in.ListMeta
|
||
|
if in.Items != nil {
|
||
|
in, out := &in.Items, &out.Items
|
||
|
*out = make([]Stack, len(*in))
|
||
|
for i := range *in {
|
||
|
if err := Convert_compose_Stack_To_v1beta1_Stack(&(*in)[i], &(*out)[i], s); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
out.Items = make([]Stack, 0)
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Convert_compose_StackList_To_v1beta1_StackList is an autogenerated conversion function.
|
||
|
func Convert_compose_StackList_To_v1beta1_StackList(in *compose.StackList, out *StackList, s conversion.Scope) error {
|
||
|
return autoConvert_compose_StackList_To_v1beta1_StackList(in, out, s)
|
||
|
}
|
||
|
|
||
|
func autoConvert_v1beta1_StackSpec_To_compose_StackSpec(in *StackSpec, out *compose.StackSpec, s conversion.Scope) error {
|
||
|
out.ComposeFile = in.ComposeFile
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func Convert_compose_StackSpec_To_v1beta1_StackSpec(in *compose.StackSpec, out *StackSpec, s conversion.Scope) error {
|
||
|
return autoConvert_compose_StackSpec_To_v1beta1_StackSpec(in, out, s)
|
||
|
}
|
||
|
|
||
|
// Convert_v1beta1_StackSpec_To_compose_StackSpec is an autogenerated conversion function.
|
||
|
func Convert_v1beta1_StackSpec_To_compose_StackSpec(in *StackSpec, out *compose.StackSpec, s conversion.Scope) error {
|
||
|
return autoConvert_v1beta1_StackSpec_To_compose_StackSpec(in, out, s)
|
||
|
}
|
||
|
|
||
|
func autoConvert_compose_StackSpec_To_v1beta1_StackSpec(in *compose.StackSpec, out *StackSpec, s conversion.Scope) error {
|
||
|
out.ComposeFile = in.ComposeFile
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func autoConvert_v1beta1_StackStatus_To_compose_StackStatus(in *StackStatus, out *compose.StackStatus, s conversion.Scope) error {
|
||
|
out.Phase = compose.StackPhase(in.Phase)
|
||
|
out.Message = in.Message
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Convert_v1beta1_StackStatus_To_compose_StackStatus is an autogenerated conversion function.
|
||
|
func Convert_v1beta1_StackStatus_To_compose_StackStatus(in *StackStatus, out *compose.StackStatus, s conversion.Scope) error {
|
||
|
return autoConvert_v1beta1_StackStatus_To_compose_StackStatus(in, out, s)
|
||
|
}
|
||
|
|
||
|
func autoConvert_compose_StackStatus_To_v1beta1_StackStatus(in *compose.StackStatus, out *StackStatus, s conversion.Scope) error {
|
||
|
out.Phase = StackPhase(in.Phase)
|
||
|
out.Message = in.Message
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Convert_compose_StackStatus_To_v1beta1_StackStatus is an autogenerated conversion function.
|
||
|
func Convert_compose_StackStatus_To_v1beta1_StackStatus(in *compose.StackStatus, out *StackStatus, s conversion.Scope) error {
|
||
|
return autoConvert_compose_StackStatus_To_v1beta1_StackStatus(in, out, s)
|
||
|
}
|