コード例 #1
0
func autoConvert_v1_RouterShard_To_api_RouterShard(in *RouterShard, out *route_api.RouterShard, s conversion.Scope) error {
	if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
		defaulting.(func(*RouterShard))(in)
	}
	out.ShardName = in.ShardName
	out.DNSSuffix = in.DNSSuffix
	return nil
}
コード例 #2
0
func autoConvert_v1_RouterShard_To_api_RouterShard(in *RouterShard, out *api.RouterShard, s conversion.Scope) error {
	out.ShardName = in.ShardName
	out.DNSSuffix = in.DNSSuffix
	return nil
}