Best Syzkaller code snippet using stats.Copy
zz_generated.deepcopy.go
Source:zz_generated.deepcopy.go
1//go:build !ignore_autogenerated2// +build !ignore_autogenerated3/*4Copyright AppsCode Inc. and Contributors5Licensed under the Apache License, Version 2.0 (the "License");6you may not use this file except in compliance with the License.7You may obtain a copy of the License at8 http://www.apache.org/licenses/LICENSE-2.09Unless required by applicable law or agreed to in writing, software10distributed under the License is distributed on an "AS IS" BASIS,11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12See the License for the specific language governing permissions and13limitations under the License.14*/15// Code generated by deepcopy-gen. DO NOT EDIT.16package v1alpha117import (18 runtime "k8s.io/apimachinery/pkg/runtime"19)20// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.21func (in *ElasticsearchClusterHealth) DeepCopyInto(out *ElasticsearchClusterHealth) {22 *out = *in23 if in.ActivePrimaryShards != nil {24 in, out := &in.ActivePrimaryShards, &out.ActivePrimaryShards25 *out = new(float64)26 **out = **in27 }28 if in.ActiveShards != nil {29 in, out := &in.ActiveShards, &out.ActiveShards30 *out = new(float64)31 **out = **in32 }33 if in.ActiveShardsPercentAsNumber != nil {34 in, out := &in.ActiveShardsPercentAsNumber, &out.ActiveShardsPercentAsNumber35 *out = new(float64)36 **out = **in37 }38 if in.DelayedUnassignedShards != nil {39 in, out := &in.DelayedUnassignedShards, &out.DelayedUnassignedShards40 *out = new(float64)41 **out = **in42 }43 if in.InitializingShards != nil {44 in, out := &in.InitializingShards, &out.InitializingShards45 *out = new(float64)46 **out = **in47 }48 if in.NumberOfDataNodes != nil {49 in, out := &in.NumberOfDataNodes, &out.NumberOfDataNodes50 *out = new(float64)51 **out = **in52 }53 if in.NumberOfInFlightFetch != nil {54 in, out := &in.NumberOfInFlightFetch, &out.NumberOfInFlightFetch55 *out = new(float64)56 **out = **in57 }58 if in.NumberOfNodes != nil {59 in, out := &in.NumberOfNodes, &out.NumberOfNodes60 *out = new(float64)61 **out = **in62 }63 if in.NumberOfPendingTasks != nil {64 in, out := &in.NumberOfPendingTasks, &out.NumberOfPendingTasks65 *out = new(float64)66 **out = **in67 }68 if in.RelocatingShards != nil {69 in, out := &in.RelocatingShards, &out.RelocatingShards70 *out = new(float64)71 **out = **in72 }73 if in.UnassignedShards != nil {74 in, out := &in.UnassignedShards, &out.UnassignedShards75 *out = new(float64)76 **out = **in77 }78 if in.TaskMaxWaitingInQueueMilliSeconds != nil {79 in, out := &in.TaskMaxWaitingInQueueMilliSeconds, &out.TaskMaxWaitingInQueueMilliSeconds80 *out = new(float64)81 **out = **in82 }83 return84}85// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchClusterHealth.86func (in *ElasticsearchClusterHealth) DeepCopy() *ElasticsearchClusterHealth {87 if in == nil {88 return nil89 }90 out := new(ElasticsearchClusterHealth)91 in.DeepCopyInto(out)92 return out93}94// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.95func (in *ElasticsearchIndexSpec) DeepCopyInto(out *ElasticsearchIndexSpec) {96 *out = *in97 if in.IndexName != nil {98 in, out := &in.IndexName, &out.IndexName99 *out = new(string)100 **out = **in101 }102 if in.PrimaryStoreSizeBytes != nil {103 in, out := &in.PrimaryStoreSizeBytes, &out.PrimaryStoreSizeBytes104 *out = new(string)105 **out = **in106 }107 if in.TotalStoreSizeBytes != nil {108 in, out := &in.TotalStoreSizeBytes, &out.TotalStoreSizeBytes109 *out = new(string)110 **out = **in111 }112 return113}114// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchIndexSpec.115func (in *ElasticsearchIndexSpec) DeepCopy() *ElasticsearchIndexSpec {116 if in == nil {117 return nil118 }119 out := new(ElasticsearchIndexSpec)120 in.DeepCopyInto(out)121 return out122}123// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.124func (in *ElasticsearchInsight) DeepCopyInto(out *ElasticsearchInsight) {125 *out = *in126 out.TypeMeta = in.TypeMeta127 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)128 in.Spec.DeepCopyInto(&out.Spec)129 in.Status.DeepCopyInto(&out.Status)130 return131}132// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchInsight.133func (in *ElasticsearchInsight) DeepCopy() *ElasticsearchInsight {134 if in == nil {135 return nil136 }137 out := new(ElasticsearchInsight)138 in.DeepCopyInto(out)139 return out140}141// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.142func (in *ElasticsearchInsight) DeepCopyObject() runtime.Object {143 if c := in.DeepCopy(); c != nil {144 return c145 }146 return nil147}148// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.149func (in *ElasticsearchInsightList) DeepCopyInto(out *ElasticsearchInsightList) {150 *out = *in151 out.TypeMeta = in.TypeMeta152 in.ListMeta.DeepCopyInto(&out.ListMeta)153 if in.Items != nil {154 in, out := &in.Items, &out.Items155 *out = make([]ElasticsearchInsight, len(*in))156 for i := range *in {157 (*in)[i].DeepCopyInto(&(*out)[i])158 }159 }160 return161}162// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchInsightList.163func (in *ElasticsearchInsightList) DeepCopy() *ElasticsearchInsightList {164 if in == nil {165 return nil166 }167 out := new(ElasticsearchInsightList)168 in.DeepCopyInto(out)169 return out170}171// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.172func (in *ElasticsearchInsightList) DeepCopyObject() runtime.Object {173 if c := in.DeepCopy(); c != nil {174 return c175 }176 return nil177}178// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.179func (in *ElasticsearchInsightSpec) DeepCopyInto(out *ElasticsearchInsightSpec) {180 *out = *in181 in.ClusterHealth.DeepCopyInto(&out.ClusterHealth)182 return183}184// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchInsightSpec.185func (in *ElasticsearchInsightSpec) DeepCopy() *ElasticsearchInsightSpec {186 if in == nil {187 return nil188 }189 out := new(ElasticsearchInsightSpec)190 in.DeepCopyInto(out)191 return out192}193// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.194func (in *ElasticsearchNodesStatSpec) DeepCopyInto(out *ElasticsearchNodesStatSpec) {195 *out = *in196 if in.Timestamp != nil {197 in, out := &in.Timestamp, &out.Timestamp198 *out = (*in).DeepCopy()199 }200 if in.Roles != nil {201 in, out := &in.Roles, &out.Roles202 *out = make([]string, len(*in))203 copy(*out, *in)204 }205 if in.Indices != nil {206 in, out := &in.Indices, &out.Indices207 *out = new(NodesStatsIndex)208 (*in).DeepCopyInto(*out)209 }210 if in.OS != nil {211 in, out := &in.OS, &out.OS212 *out = new(NodesStatsNodeOS)213 (*in).DeepCopyInto(*out)214 }215 return216}217// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchNodesStatSpec.218func (in *ElasticsearchNodesStatSpec) DeepCopy() *ElasticsearchNodesStatSpec {219 if in == nil {220 return nil221 }222 out := new(ElasticsearchNodesStatSpec)223 in.DeepCopyInto(out)224 return out225}226// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.227func (in *ElasticsearchNodesStats) DeepCopyInto(out *ElasticsearchNodesStats) {228 *out = *in229 out.TypeMeta = in.TypeMeta230 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)231 in.Spec.DeepCopyInto(&out.Spec)232 out.Status = in.Status233 return234}235// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchNodesStats.236func (in *ElasticsearchNodesStats) DeepCopy() *ElasticsearchNodesStats {237 if in == nil {238 return nil239 }240 out := new(ElasticsearchNodesStats)241 in.DeepCopyInto(out)242 return out243}244// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.245func (in *ElasticsearchNodesStats) DeepCopyObject() runtime.Object {246 if c := in.DeepCopy(); c != nil {247 return c248 }249 return nil250}251// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.252func (in *ElasticsearchNodesStatsList) DeepCopyInto(out *ElasticsearchNodesStatsList) {253 *out = *in254 out.TypeMeta = in.TypeMeta255 in.ListMeta.DeepCopyInto(&out.ListMeta)256 if in.Items != nil {257 in, out := &in.Items, &out.Items258 *out = make([]ElasticsearchNodesStats, len(*in))259 for i := range *in {260 (*in)[i].DeepCopyInto(&(*out)[i])261 }262 }263 return264}265// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchNodesStatsList.266func (in *ElasticsearchNodesStatsList) DeepCopy() *ElasticsearchNodesStatsList {267 if in == nil {268 return nil269 }270 out := new(ElasticsearchNodesStatsList)271 in.DeepCopyInto(out)272 return out273}274// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.275func (in *ElasticsearchNodesStatsList) DeepCopyObject() runtime.Object {276 if c := in.DeepCopy(); c != nil {277 return c278 }279 return nil280}281// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.282func (in *ElasticsearchNodesStatsSpec) DeepCopyInto(out *ElasticsearchNodesStatsSpec) {283 *out = *in284 if in.Nodes != nil {285 in, out := &in.Nodes, &out.Nodes286 *out = make([]ElasticsearchNodesStatSpec, len(*in))287 for i := range *in {288 (*in)[i].DeepCopyInto(&(*out)[i])289 }290 }291 return292}293// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchNodesStatsSpec.294func (in *ElasticsearchNodesStatsSpec) DeepCopy() *ElasticsearchNodesStatsSpec {295 if in == nil {296 return nil297 }298 out := new(ElasticsearchNodesStatsSpec)299 in.DeepCopyInto(out)300 return out301}302// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.303func (in *ElasticsearchNodesStatsStatus) DeepCopyInto(out *ElasticsearchNodesStatsStatus) {304 *out = *in305 return306}307// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchNodesStatsStatus.308func (in *ElasticsearchNodesStatsStatus) DeepCopy() *ElasticsearchNodesStatsStatus {309 if in == nil {310 return nil311 }312 out := new(ElasticsearchNodesStatsStatus)313 in.DeepCopyInto(out)314 return out315}316// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.317func (in *ElasticsearchSchemaOverview) DeepCopyInto(out *ElasticsearchSchemaOverview) {318 *out = *in319 out.TypeMeta = in.TypeMeta320 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)321 in.Spec.DeepCopyInto(&out.Spec)322 return323}324// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchSchemaOverview.325func (in *ElasticsearchSchemaOverview) DeepCopy() *ElasticsearchSchemaOverview {326 if in == nil {327 return nil328 }329 out := new(ElasticsearchSchemaOverview)330 in.DeepCopyInto(out)331 return out332}333// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.334func (in *ElasticsearchSchemaOverview) DeepCopyObject() runtime.Object {335 if c := in.DeepCopy(); c != nil {336 return c337 }338 return nil339}340// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.341func (in *ElasticsearchSchemaOverviewList) DeepCopyInto(out *ElasticsearchSchemaOverviewList) {342 *out = *in343 out.TypeMeta = in.TypeMeta344 in.ListMeta.DeepCopyInto(&out.ListMeta)345 if in.Items != nil {346 in, out := &in.Items, &out.Items347 *out = make([]ElasticsearchSchemaOverview, len(*in))348 for i := range *in {349 (*in)[i].DeepCopyInto(&(*out)[i])350 }351 }352 return353}354// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchSchemaOverviewList.355func (in *ElasticsearchSchemaOverviewList) DeepCopy() *ElasticsearchSchemaOverviewList {356 if in == nil {357 return nil358 }359 out := new(ElasticsearchSchemaOverviewList)360 in.DeepCopyInto(out)361 return out362}363// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.364func (in *ElasticsearchSchemaOverviewList) DeepCopyObject() runtime.Object {365 if c := in.DeepCopy(); c != nil {366 return c367 }368 return nil369}370// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.371func (in *ElasticsearchSchemaOverviewSpec) DeepCopyInto(out *ElasticsearchSchemaOverviewSpec) {372 *out = *in373 if in.Indices != nil {374 in, out := &in.Indices, &out.Indices375 *out = make([]ElasticsearchIndexSpec, len(*in))376 for i := range *in {377 (*in)[i].DeepCopyInto(&(*out)[i])378 }379 }380 return381}382// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticsearchSchemaOverviewSpec.383func (in *ElasticsearchSchemaOverviewSpec) DeepCopy() *ElasticsearchSchemaOverviewSpec {384 if in == nil {385 return nil386 }387 out := new(ElasticsearchSchemaOverviewSpec)388 in.DeepCopyInto(out)389 return out390}391// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.392func (in *GenericDatabaseSpec) DeepCopyInto(out *GenericDatabaseSpec) {393 *out = *in394 if in.DatabaseName != nil {395 in, out := &in.DatabaseName, &out.DatabaseName396 *out = new(string)397 **out = **in398 }399 if in.TableName != nil {400 in, out := &in.TableName, &out.TableName401 *out = new(string)402 **out = **in403 }404 if in.TableSizeBytes != nil {405 in, out := &in.TableSizeBytes, &out.TableSizeBytes406 *out = new(string)407 **out = **in408 }409 return410}411// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericDatabaseSpec.412func (in *GenericDatabaseSpec) DeepCopy() *GenericDatabaseSpec {413 if in == nil {414 return nil415 }416 out := new(GenericDatabaseSpec)417 in.DeepCopyInto(out)418 return out419}420// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.421func (in *GenericSchemaOverviewSpec) DeepCopyInto(out *GenericSchemaOverviewSpec) {422 *out = *in423 if in.Databases != nil {424 in, out := &in.Databases, &out.Databases425 *out = make([]GenericDatabaseSpec, len(*in))426 for i := range *in {427 (*in)[i].DeepCopyInto(&(*out)[i])428 }429 }430 return431}432// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericSchemaOverviewSpec.433func (in *GenericSchemaOverviewSpec) DeepCopy() *GenericSchemaOverviewSpec {434 if in == nil {435 return nil436 }437 out := new(GenericSchemaOverviewSpec)438 in.DeepCopyInto(out)439 return out440}441// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.442func (in *MariaDBInsight) DeepCopyInto(out *MariaDBInsight) {443 *out = *in444 out.TypeMeta = in.TypeMeta445 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)446 in.Spec.DeepCopyInto(&out.Spec)447 in.Status.DeepCopyInto(&out.Status)448 return449}450// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBInsight.451func (in *MariaDBInsight) DeepCopy() *MariaDBInsight {452 if in == nil {453 return nil454 }455 out := new(MariaDBInsight)456 in.DeepCopyInto(out)457 return out458}459// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.460func (in *MariaDBInsight) DeepCopyObject() runtime.Object {461 if c := in.DeepCopy(); c != nil {462 return c463 }464 return nil465}466// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.467func (in *MariaDBInsightList) DeepCopyInto(out *MariaDBInsightList) {468 *out = *in469 out.TypeMeta = in.TypeMeta470 in.ListMeta.DeepCopyInto(&out.ListMeta)471 if in.Items != nil {472 in, out := &in.Items, &out.Items473 *out = make([]MariaDBInsight, len(*in))474 for i := range *in {475 (*in)[i].DeepCopyInto(&(*out)[i])476 }477 }478 return479}480// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBInsightList.481func (in *MariaDBInsightList) DeepCopy() *MariaDBInsightList {482 if in == nil {483 return nil484 }485 out := new(MariaDBInsightList)486 in.DeepCopyInto(out)487 return out488}489// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.490func (in *MariaDBInsightList) DeepCopyObject() runtime.Object {491 if c := in.DeepCopy(); c != nil {492 return c493 }494 return nil495}496// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.497func (in *MariaDBInsightSpec) DeepCopyInto(out *MariaDBInsightSpec) {498 *out = *in499 if in.MaxConnections != nil {500 in, out := &in.MaxConnections, &out.MaxConnections501 *out = new(int32)502 **out = **in503 }504 if in.MaxUsedConnections != nil {505 in, out := &in.MaxUsedConnections, &out.MaxUsedConnections506 *out = new(int32)507 **out = **in508 }509 if in.Questions != nil {510 in, out := &in.Questions, &out.Questions511 *out = new(int32)512 **out = **in513 }514 if in.LongQueryTimeThresholdSeconds != nil {515 in, out := &in.LongQueryTimeThresholdSeconds, &out.LongQueryTimeThresholdSeconds516 *out = new(float64)517 **out = **in518 }519 if in.NumberOfSlowQueries != nil {520 in, out := &in.NumberOfSlowQueries, &out.NumberOfSlowQueries521 *out = new(int32)522 **out = **in523 }524 if in.AbortedClients != nil {525 in, out := &in.AbortedClients, &out.AbortedClients526 *out = new(int32)527 **out = **in528 }529 if in.AbortedConnections != nil {530 in, out := &in.AbortedConnections, &out.AbortedConnections531 *out = new(int32)532 **out = **in533 }534 if in.ThreadsCached != nil {535 in, out := &in.ThreadsCached, &out.ThreadsCached536 *out = new(int32)537 **out = **in538 }539 if in.ThreadsConnected != nil {540 in, out := &in.ThreadsConnected, &out.ThreadsConnected541 *out = new(int32)542 **out = **in543 }544 if in.ThreadsCreated != nil {545 in, out := &in.ThreadsCreated, &out.ThreadsCreated546 *out = new(int32)547 **out = **in548 }549 if in.ThreadsRunning != nil {550 in, out := &in.ThreadsRunning, &out.ThreadsRunning551 *out = new(int32)552 **out = **in553 }554 return555}556// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBInsightSpec.557func (in *MariaDBInsightSpec) DeepCopy() *MariaDBInsightSpec {558 if in == nil {559 return nil560 }561 out := new(MariaDBInsightSpec)562 in.DeepCopyInto(out)563 return out564}565// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.566func (in *MariaDBQueries) DeepCopyInto(out *MariaDBQueries) {567 *out = *in568 out.TypeMeta = in.TypeMeta569 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)570 in.Spec.DeepCopyInto(&out.Spec)571 return572}573// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBQueries.574func (in *MariaDBQueries) DeepCopy() *MariaDBQueries {575 if in == nil {576 return nil577 }578 out := new(MariaDBQueries)579 in.DeepCopyInto(out)580 return out581}582// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.583func (in *MariaDBQueries) DeepCopyObject() runtime.Object {584 if c := in.DeepCopy(); c != nil {585 return c586 }587 return nil588}589// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.590func (in *MariaDBQueriesList) DeepCopyInto(out *MariaDBQueriesList) {591 *out = *in592 out.TypeMeta = in.TypeMeta593 in.ListMeta.DeepCopyInto(&out.ListMeta)594 if in.Items != nil {595 in, out := &in.Items, &out.Items596 *out = make([]MariaDBQueries, len(*in))597 for i := range *in {598 (*in)[i].DeepCopyInto(&(*out)[i])599 }600 }601 return602}603// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBQueriesList.604func (in *MariaDBQueriesList) DeepCopy() *MariaDBQueriesList {605 if in == nil {606 return nil607 }608 out := new(MariaDBQueriesList)609 in.DeepCopyInto(out)610 return out611}612// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.613func (in *MariaDBQueriesList) DeepCopyObject() runtime.Object {614 if c := in.DeepCopy(); c != nil {615 return c616 }617 return nil618}619// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.620func (in *MariaDBQueriesSpec) DeepCopyInto(out *MariaDBQueriesSpec) {621 *out = *in622 if in.Queries != nil {623 in, out := &in.Queries, &out.Queries624 *out = make([]MariaDBQuerySpec, len(*in))625 for i := range *in {626 (*in)[i].DeepCopyInto(&(*out)[i])627 }628 }629 return630}631// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBQueriesSpec.632func (in *MariaDBQueriesSpec) DeepCopy() *MariaDBQueriesSpec {633 if in == nil {634 return nil635 }636 out := new(MariaDBQueriesSpec)637 in.DeepCopyInto(out)638 return out639}640// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.641func (in *MariaDBQuerySpec) DeepCopyInto(out *MariaDBQuerySpec) {642 *out = *in643 if in.StartTime != nil {644 in, out := &in.StartTime, &out.StartTime645 *out = (*in).DeepCopy()646 }647 if in.RowsSent != nil {648 in, out := &in.RowsSent, &out.RowsSent649 *out = new(int64)650 **out = **in651 }652 if in.RowsExamined != nil {653 in, out := &in.RowsExamined, &out.RowsExamined654 *out = new(int64)655 **out = **in656 }657 if in.LastInsertId != nil {658 in, out := &in.LastInsertId, &out.LastInsertId659 *out = new(int64)660 **out = **in661 }662 if in.InsertId != nil {663 in, out := &in.InsertId, &out.InsertId664 *out = new(int64)665 **out = **in666 }667 if in.ServerId != nil {668 in, out := &in.ServerId, &out.ServerId669 *out = new(int64)670 **out = **in671 }672 if in.ThreadId != nil {673 in, out := &in.ThreadId, &out.ThreadId674 *out = new(int64)675 **out = **in676 }677 if in.RowsAffected != nil {678 in, out := &in.RowsAffected, &out.RowsAffected679 *out = new(int64)680 **out = **in681 }682 return683}684// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBQuerySpec.685func (in *MariaDBQuerySpec) DeepCopy() *MariaDBQuerySpec {686 if in == nil {687 return nil688 }689 out := new(MariaDBQuerySpec)690 in.DeepCopyInto(out)691 return out692}693// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.694func (in *MariaDBSchemaOverview) DeepCopyInto(out *MariaDBSchemaOverview) {695 *out = *in696 out.TypeMeta = in.TypeMeta697 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)698 in.Spec.DeepCopyInto(&out.Spec)699 return700}701// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBSchemaOverview.702func (in *MariaDBSchemaOverview) DeepCopy() *MariaDBSchemaOverview {703 if in == nil {704 return nil705 }706 out := new(MariaDBSchemaOverview)707 in.DeepCopyInto(out)708 return out709}710// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.711func (in *MariaDBSchemaOverview) DeepCopyObject() runtime.Object {712 if c := in.DeepCopy(); c != nil {713 return c714 }715 return nil716}717// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.718func (in *MariaDBSchemaOverviewList) DeepCopyInto(out *MariaDBSchemaOverviewList) {719 *out = *in720 out.TypeMeta = in.TypeMeta721 in.ListMeta.DeepCopyInto(&out.ListMeta)722 if in.Items != nil {723 in, out := &in.Items, &out.Items724 *out = make([]MariaDBSchemaOverview, len(*in))725 for i := range *in {726 (*in)[i].DeepCopyInto(&(*out)[i])727 }728 }729 return730}731// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MariaDBSchemaOverviewList.732func (in *MariaDBSchemaOverviewList) DeepCopy() *MariaDBSchemaOverviewList {733 if in == nil {734 return nil735 }736 out := new(MariaDBSchemaOverviewList)737 in.DeepCopyInto(out)738 return out739}740// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.741func (in *MariaDBSchemaOverviewList) DeepCopyObject() runtime.Object {742 if c := in.DeepCopy(); c != nil {743 return c744 }745 return nil746}747// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.748func (in *MongoDBCollectionSpec) DeepCopyInto(out *MongoDBCollectionSpec) {749 *out = *in750 if in.TotalSize != nil {751 in, out := &in.TotalSize, &out.TotalSize752 *out = make([]int32, len(*in))753 copy(*out, *in)754 }755 return756}757// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBCollectionSpec.758func (in *MongoDBCollectionSpec) DeepCopy() *MongoDBCollectionSpec {759 if in == nil {760 return nil761 }762 out := new(MongoDBCollectionSpec)763 in.DeepCopyInto(out)764 return out765}766// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.767func (in *MongoDBConnectionsInfo) DeepCopyInto(out *MongoDBConnectionsInfo) {768 *out = *in769 if in.CurrentConnections != nil {770 in, out := &in.CurrentConnections, &out.CurrentConnections771 *out = new(int32)772 **out = **in773 }774 if in.TotalConnections != nil {775 in, out := &in.TotalConnections, &out.TotalConnections776 *out = new(int32)777 **out = **in778 }779 if in.AvailableConnections != nil {780 in, out := &in.AvailableConnections, &out.AvailableConnections781 *out = new(int32)782 **out = **in783 }784 if in.ActiveConnections != nil {785 in, out := &in.ActiveConnections, &out.ActiveConnections786 *out = new(int32)787 **out = **in788 }789 return790}791// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBConnectionsInfo.792func (in *MongoDBConnectionsInfo) DeepCopy() *MongoDBConnectionsInfo {793 if in == nil {794 return nil795 }796 out := new(MongoDBConnectionsInfo)797 in.DeepCopyInto(out)798 return out799}800// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.801func (in *MongoDBDatabaseStats) DeepCopyInto(out *MongoDBDatabaseStats) {802 *out = *in803 if in.TotalCollections != nil {804 in, out := &in.TotalCollections, &out.TotalCollections805 *out = new(int32)806 **out = **in807 }808 if in.DataSize != nil {809 in, out := &in.DataSize, &out.DataSize810 *out = new(int64)811 **out = **in812 }813 if in.TotalIndexes != nil {814 in, out := &in.TotalIndexes, &out.TotalIndexes815 *out = new(int32)816 **out = **in817 }818 if in.IndexSize != nil {819 in, out := &in.IndexSize, &out.IndexSize820 *out = new(int64)821 **out = **in822 }823 return824}825// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBDatabaseStats.826func (in *MongoDBDatabaseStats) DeepCopy() *MongoDBDatabaseStats {827 if in == nil {828 return nil829 }830 out := new(MongoDBDatabaseStats)831 in.DeepCopyInto(out)832 return out833}834// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.835func (in *MongoDBInsight) DeepCopyInto(out *MongoDBInsight) {836 *out = *in837 out.TypeMeta = in.TypeMeta838 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)839 in.Spec.DeepCopyInto(&out.Spec)840 in.Status.DeepCopyInto(&out.Status)841 return842}843// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBInsight.844func (in *MongoDBInsight) DeepCopy() *MongoDBInsight {845 if in == nil {846 return nil847 }848 out := new(MongoDBInsight)849 in.DeepCopyInto(out)850 return out851}852// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.853func (in *MongoDBInsight) DeepCopyObject() runtime.Object {854 if c := in.DeepCopy(); c != nil {855 return c856 }857 return nil858}859// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.860func (in *MongoDBInsightList) DeepCopyInto(out *MongoDBInsightList) {861 *out = *in862 out.TypeMeta = in.TypeMeta863 in.ListMeta.DeepCopyInto(&out.ListMeta)864 if in.Items != nil {865 in, out := &in.Items, &out.Items866 *out = make([]MongoDBInsight, len(*in))867 for i := range *in {868 (*in)[i].DeepCopyInto(&(*out)[i])869 }870 }871 return872}873// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBInsightList.874func (in *MongoDBInsightList) DeepCopy() *MongoDBInsightList {875 if in == nil {876 return nil877 }878 out := new(MongoDBInsightList)879 in.DeepCopyInto(out)880 return out881}882// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.883func (in *MongoDBInsightList) DeepCopyObject() runtime.Object {884 if c := in.DeepCopy(); c != nil {885 return c886 }887 return nil888}889// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.890func (in *MongoDBInsightSpec) DeepCopyInto(out *MongoDBInsightSpec) {891 *out = *in892 if in.Connections != nil {893 in, out := &in.Connections, &out.Connections894 *out = new(MongoDBConnectionsInfo)895 (*in).DeepCopyInto(*out)896 }897 if in.DBStats != nil {898 in, out := &in.DBStats, &out.DBStats899 *out = new(MongoDBDatabaseStats)900 (*in).DeepCopyInto(*out)901 }902 if in.ShardsInfo != nil {903 in, out := &in.ShardsInfo, &out.ShardsInfo904 *out = new(MongoDBShardsInfo)905 (*in).DeepCopyInto(*out)906 }907 if in.ReplicaSetInfo != nil {908 in, out := &in.ReplicaSetInfo, &out.ReplicaSetInfo909 *out = new(MongoDBReplicaSetInfo)910 (*in).DeepCopyInto(*out)911 }912 return913}914// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBInsightSpec.915func (in *MongoDBInsightSpec) DeepCopy() *MongoDBInsightSpec {916 if in == nil {917 return nil918 }919 out := new(MongoDBInsightSpec)920 in.DeepCopyInto(out)921 return out922}923// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.924func (in *MongoDBQueries) DeepCopyInto(out *MongoDBQueries) {925 *out = *in926 out.TypeMeta = in.TypeMeta927 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)928 in.Spec.DeepCopyInto(&out.Spec)929 return930}931// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBQueries.932func (in *MongoDBQueries) DeepCopy() *MongoDBQueries {933 if in == nil {934 return nil935 }936 out := new(MongoDBQueries)937 in.DeepCopyInto(out)938 return out939}940// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.941func (in *MongoDBQueries) DeepCopyObject() runtime.Object {942 if c := in.DeepCopy(); c != nil {943 return c944 }945 return nil946}947// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.948func (in *MongoDBQueriesList) DeepCopyInto(out *MongoDBQueriesList) {949 *out = *in950 out.TypeMeta = in.TypeMeta951 in.ListMeta.DeepCopyInto(&out.ListMeta)952 if in.Items != nil {953 in, out := &in.Items, &out.Items954 *out = make([]MongoDBQueries, len(*in))955 for i := range *in {956 (*in)[i].DeepCopyInto(&(*out)[i])957 }958 }959 return960}961// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBQueriesList.962func (in *MongoDBQueriesList) DeepCopy() *MongoDBQueriesList {963 if in == nil {964 return nil965 }966 out := new(MongoDBQueriesList)967 in.DeepCopyInto(out)968 return out969}970// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.971func (in *MongoDBQueriesList) DeepCopyObject() runtime.Object {972 if c := in.DeepCopy(); c != nil {973 return c974 }975 return nil976}977// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.978func (in *MongoDBQueriesSpec) DeepCopyInto(out *MongoDBQueriesSpec) {979 *out = *in980 if in.Queries != nil {981 in, out := &in.Queries, &out.Queries982 *out = make([]MongoDBQuerySpec, len(*in))983 for i := range *in {984 (*in)[i].DeepCopyInto(&(*out)[i])985 }986 }987 return988}989// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBQueriesSpec.990func (in *MongoDBQueriesSpec) DeepCopy() *MongoDBQueriesSpec {991 if in == nil {992 return nil993 }994 out := new(MongoDBQueriesSpec)995 in.DeepCopyInto(out)996 return out997}998// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.999func (in *MongoDBQuerySpec) DeepCopyInto(out *MongoDBQuerySpec) {1000 *out = *in1001 if in.Count != nil {1002 in, out := &in.Count, &out.Count1003 *out = new(int64)1004 **out = **in1005 }1006 if in.AvgExecutionTimeMilliSeconds != nil {1007 in, out := &in.AvgExecutionTimeMilliSeconds, &out.AvgExecutionTimeMilliSeconds1008 *out = new(int64)1009 **out = **in1010 }1011 if in.MinExecutionTimeMilliSeconds != nil {1012 in, out := &in.MinExecutionTimeMilliSeconds, &out.MinExecutionTimeMilliSeconds1013 *out = new(int64)1014 **out = **in1015 }1016 if in.MaxExecutionTimeMilliSeconds != nil {1017 in, out := &in.MaxExecutionTimeMilliSeconds, &out.MaxExecutionTimeMilliSeconds1018 *out = new(int64)1019 **out = **in1020 }1021 return1022}1023// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBQuerySpec.1024func (in *MongoDBQuerySpec) DeepCopy() *MongoDBQuerySpec {1025 if in == nil {1026 return nil1027 }1028 out := new(MongoDBQuerySpec)1029 in.DeepCopyInto(out)1030 return out1031}1032// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1033func (in *MongoDBReplicaSetInfo) DeepCopyInto(out *MongoDBReplicaSetInfo) {1034 *out = *in1035 if in.NumberOfReplicas != nil {1036 in, out := &in.NumberOfReplicas, &out.NumberOfReplicas1037 *out = new(int32)1038 **out = **in1039 }1040 return1041}1042// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBReplicaSetInfo.1043func (in *MongoDBReplicaSetInfo) DeepCopy() *MongoDBReplicaSetInfo {1044 if in == nil {1045 return nil1046 }1047 out := new(MongoDBReplicaSetInfo)1048 in.DeepCopyInto(out)1049 return out1050}1051// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1052func (in *MongoDBSchemaOverview) DeepCopyInto(out *MongoDBSchemaOverview) {1053 *out = *in1054 out.TypeMeta = in.TypeMeta1055 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)1056 in.Spec.DeepCopyInto(&out.Spec)1057 return1058}1059// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBSchemaOverview.1060func (in *MongoDBSchemaOverview) DeepCopy() *MongoDBSchemaOverview {1061 if in == nil {1062 return nil1063 }1064 out := new(MongoDBSchemaOverview)1065 in.DeepCopyInto(out)1066 return out1067}1068// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.1069func (in *MongoDBSchemaOverview) DeepCopyObject() runtime.Object {1070 if c := in.DeepCopy(); c != nil {1071 return c1072 }1073 return nil1074}1075// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1076func (in *MongoDBSchemaOverviewList) DeepCopyInto(out *MongoDBSchemaOverviewList) {1077 *out = *in1078 out.TypeMeta = in.TypeMeta1079 in.ListMeta.DeepCopyInto(&out.ListMeta)1080 if in.Items != nil {1081 in, out := &in.Items, &out.Items1082 *out = make([]MongoDBSchemaOverview, len(*in))1083 for i := range *in {1084 (*in)[i].DeepCopyInto(&(*out)[i])1085 }1086 }1087 return1088}1089// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBSchemaOverviewList.1090func (in *MongoDBSchemaOverviewList) DeepCopy() *MongoDBSchemaOverviewList {1091 if in == nil {1092 return nil1093 }1094 out := new(MongoDBSchemaOverviewList)1095 in.DeepCopyInto(out)1096 return out1097}1098// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.1099func (in *MongoDBSchemaOverviewList) DeepCopyObject() runtime.Object {1100 if c := in.DeepCopy(); c != nil {1101 return c1102 }1103 return nil1104}1105// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1106func (in *MongoDBSchemaOverviewSpec) DeepCopyInto(out *MongoDBSchemaOverviewSpec) {1107 *out = *in1108 if in.Collections != nil {1109 in, out := &in.Collections, &out.Collections1110 *out = make([]MongoDBCollectionSpec, len(*in))1111 for i := range *in {1112 (*in)[i].DeepCopyInto(&(*out)[i])1113 }1114 }1115 return1116}1117// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBSchemaOverviewSpec.1118func (in *MongoDBSchemaOverviewSpec) DeepCopy() *MongoDBSchemaOverviewSpec {1119 if in == nil {1120 return nil1121 }1122 out := new(MongoDBSchemaOverviewSpec)1123 in.DeepCopyInto(out)1124 return out1125}1126// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1127func (in *MongoDBShardsInfo) DeepCopyInto(out *MongoDBShardsInfo) {1128 *out = *in1129 if in.NumberOfShards != nil {1130 in, out := &in.NumberOfShards, &out.NumberOfShards1131 *out = new(int32)1132 **out = **in1133 }1134 if in.ReplicasPerShards != nil {1135 in, out := &in.ReplicasPerShards, &out.ReplicasPerShards1136 *out = new(int32)1137 **out = **in1138 }1139 if in.NumberOfChunks != nil {1140 in, out := &in.NumberOfChunks, &out.NumberOfChunks1141 *out = new(int32)1142 **out = **in1143 }1144 if in.BalancerEnabled != nil {1145 in, out := &in.BalancerEnabled, &out.BalancerEnabled1146 *out = new(bool)1147 **out = **in1148 }1149 if in.ChunksBalanced != nil {1150 in, out := &in.ChunksBalanced, &out.ChunksBalanced1151 *out = new(bool)1152 **out = **in1153 }1154 return1155}1156// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBShardsInfo.1157func (in *MongoDBShardsInfo) DeepCopy() *MongoDBShardsInfo {1158 if in == nil {1159 return nil1160 }1161 out := new(MongoDBShardsInfo)1162 in.DeepCopyInto(out)1163 return out1164}1165// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1166func (in *MySQLInsight) DeepCopyInto(out *MySQLInsight) {1167 *out = *in1168 out.TypeMeta = in.TypeMeta1169 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)1170 in.Spec.DeepCopyInto(&out.Spec)1171 in.Status.DeepCopyInto(&out.Status)1172 return1173}1174// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLInsight.1175func (in *MySQLInsight) DeepCopy() *MySQLInsight {1176 if in == nil {1177 return nil1178 }1179 out := new(MySQLInsight)1180 in.DeepCopyInto(out)1181 return out1182}1183// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.1184func (in *MySQLInsight) DeepCopyObject() runtime.Object {1185 if c := in.DeepCopy(); c != nil {1186 return c1187 }1188 return nil1189}1190// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1191func (in *MySQLInsightList) DeepCopyInto(out *MySQLInsightList) {1192 *out = *in1193 out.TypeMeta = in.TypeMeta1194 in.ListMeta.DeepCopyInto(&out.ListMeta)1195 if in.Items != nil {1196 in, out := &in.Items, &out.Items1197 *out = make([]MySQLInsight, len(*in))1198 for i := range *in {1199 (*in)[i].DeepCopyInto(&(*out)[i])1200 }1201 }1202 return1203}1204// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLInsightList.1205func (in *MySQLInsightList) DeepCopy() *MySQLInsightList {1206 if in == nil {1207 return nil1208 }1209 out := new(MySQLInsightList)1210 in.DeepCopyInto(out)1211 return out1212}1213// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.1214func (in *MySQLInsightList) DeepCopyObject() runtime.Object {1215 if c := in.DeepCopy(); c != nil {1216 return c1217 }1218 return nil1219}1220// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1221func (in *MySQLInsightSpec) DeepCopyInto(out *MySQLInsightSpec) {1222 *out = *in1223 if in.MaxConnections != nil {1224 in, out := &in.MaxConnections, &out.MaxConnections1225 *out = new(int32)1226 **out = **in1227 }1228 if in.MaxUsedConnections != nil {1229 in, out := &in.MaxUsedConnections, &out.MaxUsedConnections1230 *out = new(int32)1231 **out = **in1232 }1233 if in.Questions != nil {1234 in, out := &in.Questions, &out.Questions1235 *out = new(int32)1236 **out = **in1237 }1238 if in.LongQueryTimeThresholdSeconds != nil {1239 in, out := &in.LongQueryTimeThresholdSeconds, &out.LongQueryTimeThresholdSeconds1240 *out = new(float64)1241 **out = **in1242 }1243 if in.NumberOfSlowQueries != nil {1244 in, out := &in.NumberOfSlowQueries, &out.NumberOfSlowQueries1245 *out = new(int32)1246 **out = **in1247 }1248 if in.AbortedClients != nil {1249 in, out := &in.AbortedClients, &out.AbortedClients1250 *out = new(int32)1251 **out = **in1252 }1253 if in.AbortedConnections != nil {1254 in, out := &in.AbortedConnections, &out.AbortedConnections1255 *out = new(int32)1256 **out = **in1257 }1258 if in.ThreadsCached != nil {1259 in, out := &in.ThreadsCached, &out.ThreadsCached1260 *out = new(int32)1261 **out = **in1262 }1263 if in.ThreadsConnected != nil {1264 in, out := &in.ThreadsConnected, &out.ThreadsConnected1265 *out = new(int32)1266 **out = **in1267 }1268 if in.ThreadsCreated != nil {1269 in, out := &in.ThreadsCreated, &out.ThreadsCreated1270 *out = new(int32)1271 **out = **in1272 }1273 if in.ThreadsRunning != nil {1274 in, out := &in.ThreadsRunning, &out.ThreadsRunning1275 *out = new(int32)1276 **out = **in1277 }1278 return1279}1280// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLInsightSpec.1281func (in *MySQLInsightSpec) DeepCopy() *MySQLInsightSpec {1282 if in == nil {1283 return nil1284 }1285 out := new(MySQLInsightSpec)1286 in.DeepCopyInto(out)1287 return out1288}1289// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1290func (in *MySQLQueries) DeepCopyInto(out *MySQLQueries) {1291 *out = *in1292 out.TypeMeta = in.TypeMeta1293 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)1294 in.Spec.DeepCopyInto(&out.Spec)1295 return1296}1297// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLQueries.1298func (in *MySQLQueries) DeepCopy() *MySQLQueries {1299 if in == nil {1300 return nil1301 }1302 out := new(MySQLQueries)1303 in.DeepCopyInto(out)1304 return out1305}1306// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.1307func (in *MySQLQueries) DeepCopyObject() runtime.Object {1308 if c := in.DeepCopy(); c != nil {1309 return c1310 }1311 return nil1312}1313// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1314func (in *MySQLQueriesList) DeepCopyInto(out *MySQLQueriesList) {1315 *out = *in1316 out.TypeMeta = in.TypeMeta1317 in.ListMeta.DeepCopyInto(&out.ListMeta)1318 if in.Items != nil {1319 in, out := &in.Items, &out.Items1320 *out = make([]MySQLQueries, len(*in))1321 for i := range *in {1322 (*in)[i].DeepCopyInto(&(*out)[i])1323 }1324 }1325 return1326}1327// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLQueriesList.1328func (in *MySQLQueriesList) DeepCopy() *MySQLQueriesList {1329 if in == nil {1330 return nil1331 }1332 out := new(MySQLQueriesList)1333 in.DeepCopyInto(out)1334 return out1335}1336// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.1337func (in *MySQLQueriesList) DeepCopyObject() runtime.Object {1338 if c := in.DeepCopy(); c != nil {1339 return c1340 }1341 return nil1342}1343// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1344func (in *MySQLQueriesSpec) DeepCopyInto(out *MySQLQueriesSpec) {1345 *out = *in1346 if in.Queries != nil {1347 in, out := &in.Queries, &out.Queries1348 *out = make([]MySQLQuerySpec, len(*in))1349 for i := range *in {1350 (*in)[i].DeepCopyInto(&(*out)[i])1351 }1352 }1353 return1354}1355// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLQueriesSpec.1356func (in *MySQLQueriesSpec) DeepCopy() *MySQLQueriesSpec {1357 if in == nil {1358 return nil1359 }1360 out := new(MySQLQueriesSpec)1361 in.DeepCopyInto(out)1362 return out1363}1364// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1365func (in *MySQLQuerySpec) DeepCopyInto(out *MySQLQuerySpec) {1366 *out = *in1367 if in.StartTime != nil {1368 in, out := &in.StartTime, &out.StartTime1369 *out = (*in).DeepCopy()1370 }1371 if in.RowsSent != nil {1372 in, out := &in.RowsSent, &out.RowsSent1373 *out = new(int64)1374 **out = **in1375 }1376 if in.RowsExamined != nil {1377 in, out := &in.RowsExamined, &out.RowsExamined1378 *out = new(int64)1379 **out = **in1380 }1381 if in.LastInsertId != nil {1382 in, out := &in.LastInsertId, &out.LastInsertId1383 *out = new(int64)1384 **out = **in1385 }1386 if in.InsertId != nil {1387 in, out := &in.InsertId, &out.InsertId1388 *out = new(int64)1389 **out = **in1390 }1391 if in.ServerId != nil {1392 in, out := &in.ServerId, &out.ServerId1393 *out = new(int64)1394 **out = **in1395 }1396 if in.ThreadId != nil {1397 in, out := &in.ThreadId, &out.ThreadId1398 *out = new(int64)1399 **out = **in1400 }1401 return1402}1403// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLQuerySpec.1404func (in *MySQLQuerySpec) DeepCopy() *MySQLQuerySpec {1405 if in == nil {1406 return nil1407 }1408 out := new(MySQLQuerySpec)1409 in.DeepCopyInto(out)1410 return out1411}1412// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1413func (in *MySQLSchemaOverview) DeepCopyInto(out *MySQLSchemaOverview) {1414 *out = *in1415 out.TypeMeta = in.TypeMeta1416 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)1417 in.Spec.DeepCopyInto(&out.Spec)1418 return1419}1420// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSchemaOverview.1421func (in *MySQLSchemaOverview) DeepCopy() *MySQLSchemaOverview {1422 if in == nil {1423 return nil1424 }1425 out := new(MySQLSchemaOverview)1426 in.DeepCopyInto(out)1427 return out1428}1429// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.1430func (in *MySQLSchemaOverview) DeepCopyObject() runtime.Object {1431 if c := in.DeepCopy(); c != nil {1432 return c1433 }1434 return nil1435}1436// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1437func (in *MySQLSchemaOverviewList) DeepCopyInto(out *MySQLSchemaOverviewList) {1438 *out = *in1439 out.TypeMeta = in.TypeMeta1440 in.ListMeta.DeepCopyInto(&out.ListMeta)1441 if in.Items != nil {1442 in, out := &in.Items, &out.Items1443 *out = make([]MySQLSchemaOverview, len(*in))1444 for i := range *in {1445 (*in)[i].DeepCopyInto(&(*out)[i])1446 }1447 }1448 return1449}1450// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLSchemaOverviewList.1451func (in *MySQLSchemaOverviewList) DeepCopy() *MySQLSchemaOverviewList {1452 if in == nil {1453 return nil1454 }1455 out := new(MySQLSchemaOverviewList)1456 in.DeepCopyInto(out)1457 return out1458}1459// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.1460func (in *MySQLSchemaOverviewList) DeepCopyObject() runtime.Object {1461 if c := in.DeepCopy(); c != nil {1462 return c1463 }1464 return nil1465}1466// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1467func (in *NodesStatsCompletionFields) DeepCopyInto(out *NodesStatsCompletionFields) {1468 *out = *in1469 return1470}1471// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsCompletionFields.1472func (in *NodesStatsCompletionFields) DeepCopy() *NodesStatsCompletionFields {1473 if in == nil {1474 return nil1475 }1476 out := new(NodesStatsCompletionFields)1477 in.DeepCopyInto(out)1478 return out1479}1480// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1481func (in *NodesStatsCompletionStats) DeepCopyInto(out *NodesStatsCompletionStats) {1482 *out = *in1483 if in.Fields != nil {1484 in, out := &in.Fields, &out.Fields1485 *out = new(NodesStatsCompletionFields)1486 **out = **in1487 }1488 return1489}1490// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsCompletionStats.1491func (in *NodesStatsCompletionStats) DeepCopy() *NodesStatsCompletionStats {1492 if in == nil {1493 return nil1494 }1495 out := new(NodesStatsCompletionStats)1496 in.DeepCopyInto(out)1497 return out1498}1499// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1500func (in *NodesStatsDocsStats) DeepCopyInto(out *NodesStatsDocsStats) {1501 *out = *in1502 return1503}1504// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsDocsStats.1505func (in *NodesStatsDocsStats) DeepCopy() *NodesStatsDocsStats {1506 if in == nil {1507 return nil1508 }1509 out := new(NodesStatsDocsStats)1510 in.DeepCopyInto(out)1511 return out1512}1513// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1514func (in *NodesStatsFieldDataFields) DeepCopyInto(out *NodesStatsFieldDataFields) {1515 *out = *in1516 return1517}1518// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsFieldDataFields.1519func (in *NodesStatsFieldDataFields) DeepCopy() *NodesStatsFieldDataFields {1520 if in == nil {1521 return nil1522 }1523 out := new(NodesStatsFieldDataFields)1524 in.DeepCopyInto(out)1525 return out1526}1527// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1528func (in *NodesStatsFielddataStats) DeepCopyInto(out *NodesStatsFielddataStats) {1529 *out = *in1530 if in.Fields != nil {1531 in, out := &in.Fields, &out.Fields1532 *out = new(NodesStatsFieldDataFields)1533 **out = **in1534 }1535 return1536}1537// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsFielddataStats.1538func (in *NodesStatsFielddataStats) DeepCopy() *NodesStatsFielddataStats {1539 if in == nil {1540 return nil1541 }1542 out := new(NodesStatsFielddataStats)1543 in.DeepCopyInto(out)1544 return out1545}1546// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1547func (in *NodesStatsFlushStats) DeepCopyInto(out *NodesStatsFlushStats) {1548 *out = *in1549 return1550}1551// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsFlushStats.1552func (in *NodesStatsFlushStats) DeepCopy() *NodesStatsFlushStats {1553 if in == nil {1554 return nil1555 }1556 out := new(NodesStatsFlushStats)1557 in.DeepCopyInto(out)1558 return out1559}1560// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1561func (in *NodesStatsGetStats) DeepCopyInto(out *NodesStatsGetStats) {1562 *out = *in1563 return1564}1565// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsGetStats.1566func (in *NodesStatsGetStats) DeepCopy() *NodesStatsGetStats {1567 if in == nil {1568 return nil1569 }1570 out := new(NodesStatsGetStats)1571 in.DeepCopyInto(out)1572 return out1573}1574// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1575func (in *NodesStatsIndex) DeepCopyInto(out *NodesStatsIndex) {1576 *out = *in1577 if in.Docs != nil {1578 in, out := &in.Docs, &out.Docs1579 *out = new(NodesStatsDocsStats)1580 **out = **in1581 }1582 if in.Shards != nil {1583 in, out := &in.Shards, &out.Shards1584 *out = new(NodesStatsShardCountStats)1585 **out = **in1586 }1587 if in.Store != nil {1588 in, out := &in.Store, &out.Store1589 *out = new(NodesStatsStoreStats)1590 **out = **in1591 }1592 if in.Indexing != nil {1593 in, out := &in.Indexing, &out.Indexing1594 *out = new(NodesStatsIndexingStats)1595 (*in).DeepCopyInto(*out)1596 }1597 if in.Get != nil {1598 in, out := &in.Get, &out.Get1599 *out = new(NodesStatsGetStats)1600 **out = **in1601 }1602 if in.Search != nil {1603 in, out := &in.Search, &out.Search1604 *out = new(NodesStatsSearchStats)1605 (*in).DeepCopyInto(*out)1606 }1607 if in.Merges != nil {1608 in, out := &in.Merges, &out.Merges1609 *out = new(NodesStatsMergeStats)1610 **out = **in1611 }1612 if in.Refresh != nil {1613 in, out := &in.Refresh, &out.Refresh1614 *out = new(NodesStatsRefreshStats)1615 **out = **in1616 }1617 if in.Flush != nil {1618 in, out := &in.Flush, &out.Flush1619 *out = new(NodesStatsFlushStats)1620 **out = **in1621 }1622 if in.Warmer != nil {1623 in, out := &in.Warmer, &out.Warmer1624 *out = new(NodesStatsWarmerStats)1625 **out = **in1626 }1627 if in.QueryCache != nil {1628 in, out := &in.QueryCache, &out.QueryCache1629 *out = new(NodesStatsQueryCacheStats)1630 **out = **in1631 }1632 if in.Fielddata != nil {1633 in, out := &in.Fielddata, &out.Fielddata1634 *out = new(NodesStatsFielddataStats)1635 (*in).DeepCopyInto(*out)1636 }1637 if in.Completion != nil {1638 in, out := &in.Completion, &out.Completion1639 *out = new(NodesStatsCompletionStats)1640 (*in).DeepCopyInto(*out)1641 }1642 if in.Segments != nil {1643 in, out := &in.Segments, &out.Segments1644 *out = new(NodesStatsSegmentsStats)1645 **out = **in1646 }1647 if in.Translog != nil {1648 in, out := &in.Translog, &out.Translog1649 *out = new(NodesStatsTranslogStats)1650 **out = **in1651 }1652 if in.RequestCache != nil {1653 in, out := &in.RequestCache, &out.RequestCache1654 *out = new(NodesStatsRequestCacheStats)1655 **out = **in1656 }1657 out.Recovery = in.Recovery1658 if in.IndicesLevel != nil {1659 in, out := &in.IndicesLevel, &out.IndicesLevel1660 *out = make(map[string]NodesStatsIndex, len(*in))1661 for key, val := range *in {1662 (*out)[key] = *val.DeepCopy()1663 }1664 }1665 if in.ShardsLevel != nil {1666 in, out := &in.ShardsLevel, &out.ShardsLevel1667 *out = make(map[string]NodesStatsIndex, len(*in))1668 for key, val := range *in {1669 (*out)[key] = *val.DeepCopy()1670 }1671 }1672 return1673}1674// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsIndex.1675func (in *NodesStatsIndex) DeepCopy() *NodesStatsIndex {1676 if in == nil {1677 return nil1678 }1679 out := new(NodesStatsIndex)1680 in.DeepCopyInto(out)1681 return out1682}1683// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1684func (in *NodesStatsIndexingStats) DeepCopyInto(out *NodesStatsIndexingStats) {1685 *out = *in1686 if in.Types != nil {1687 in, out := &in.Types, &out.Types1688 *out = make(map[string]NodesStatsIndexingStats, len(*in))1689 for key, val := range *in {1690 (*out)[key] = *val.DeepCopy()1691 }1692 }1693 return1694}1695// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsIndexingStats.1696func (in *NodesStatsIndexingStats) DeepCopy() *NodesStatsIndexingStats {1697 if in == nil {1698 return nil1699 }1700 out := new(NodesStatsIndexingStats)1701 in.DeepCopyInto(out)1702 return out1703}1704// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1705func (in *NodesStatsMergeStats) DeepCopyInto(out *NodesStatsMergeStats) {1706 *out = *in1707 return1708}1709// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsMergeStats.1710func (in *NodesStatsMergeStats) DeepCopy() *NodesStatsMergeStats {1711 if in == nil {1712 return nil1713 }1714 out := new(NodesStatsMergeStats)1715 in.DeepCopyInto(out)1716 return out1717}1718// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1719func (in *NodesStatsNodeOS) DeepCopyInto(out *NodesStatsNodeOS) {1720 *out = *in1721 if in.CPU != nil {1722 in, out := &in.CPU, &out.CPU1723 *out = new(NodesStatsNodeOSCPU)1724 (*in).DeepCopyInto(*out)1725 }1726 if in.Mem != nil {1727 in, out := &in.Mem, &out.Mem1728 *out = new(NodesStatsNodeOSMem)1729 **out = **in1730 }1731 if in.Swap != nil {1732 in, out := &in.Swap, &out.Swap1733 *out = new(NodesStatsNodeOSSwap)1734 **out = **in1735 }1736 return1737}1738// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsNodeOS.1739func (in *NodesStatsNodeOS) DeepCopy() *NodesStatsNodeOS {1740 if in == nil {1741 return nil1742 }1743 out := new(NodesStatsNodeOS)1744 in.DeepCopyInto(out)1745 return out1746}1747// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1748func (in *NodesStatsNodeOSCPU) DeepCopyInto(out *NodesStatsNodeOSCPU) {1749 *out = *in1750 if in.LoadAverage != nil {1751 in, out := &in.LoadAverage, &out.LoadAverage1752 *out = make(map[string]float64, len(*in))1753 for key, val := range *in {1754 (*out)[key] = val1755 }1756 }1757 return1758}1759// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsNodeOSCPU.1760func (in *NodesStatsNodeOSCPU) DeepCopy() *NodesStatsNodeOSCPU {1761 if in == nil {1762 return nil1763 }1764 out := new(NodesStatsNodeOSCPU)1765 in.DeepCopyInto(out)1766 return out1767}1768// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1769func (in *NodesStatsNodeOSMem) DeepCopyInto(out *NodesStatsNodeOSMem) {1770 *out = *in1771 return1772}1773// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsNodeOSMem.1774func (in *NodesStatsNodeOSMem) DeepCopy() *NodesStatsNodeOSMem {1775 if in == nil {1776 return nil1777 }1778 out := new(NodesStatsNodeOSMem)1779 in.DeepCopyInto(out)1780 return out1781}1782// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1783func (in *NodesStatsNodeOSSwap) DeepCopyInto(out *NodesStatsNodeOSSwap) {1784 *out = *in1785 return1786}1787// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsNodeOSSwap.1788func (in *NodesStatsNodeOSSwap) DeepCopy() *NodesStatsNodeOSSwap {1789 if in == nil {1790 return nil1791 }1792 out := new(NodesStatsNodeOSSwap)1793 in.DeepCopyInto(out)1794 return out1795}1796// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1797func (in *NodesStatsQueryCacheStats) DeepCopyInto(out *NodesStatsQueryCacheStats) {1798 *out = *in1799 return1800}1801// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsQueryCacheStats.1802func (in *NodesStatsQueryCacheStats) DeepCopy() *NodesStatsQueryCacheStats {1803 if in == nil {1804 return nil1805 }1806 out := new(NodesStatsQueryCacheStats)1807 in.DeepCopyInto(out)1808 return out1809}1810// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1811func (in *NodesStatsRecoveryStats) DeepCopyInto(out *NodesStatsRecoveryStats) {1812 *out = *in1813 return1814}1815// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsRecoveryStats.1816func (in *NodesStatsRecoveryStats) DeepCopy() *NodesStatsRecoveryStats {1817 if in == nil {1818 return nil1819 }1820 out := new(NodesStatsRecoveryStats)1821 in.DeepCopyInto(out)1822 return out1823}1824// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1825func (in *NodesStatsRefreshStats) DeepCopyInto(out *NodesStatsRefreshStats) {1826 *out = *in1827 return1828}1829// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsRefreshStats.1830func (in *NodesStatsRefreshStats) DeepCopy() *NodesStatsRefreshStats {1831 if in == nil {1832 return nil1833 }1834 out := new(NodesStatsRefreshStats)1835 in.DeepCopyInto(out)1836 return out1837}1838// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1839func (in *NodesStatsRequestCacheStats) DeepCopyInto(out *NodesStatsRequestCacheStats) {1840 *out = *in1841 return1842}1843// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsRequestCacheStats.1844func (in *NodesStatsRequestCacheStats) DeepCopy() *NodesStatsRequestCacheStats {1845 if in == nil {1846 return nil1847 }1848 out := new(NodesStatsRequestCacheStats)1849 in.DeepCopyInto(out)1850 return out1851}1852// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1853func (in *NodesStatsSearchStats) DeepCopyInto(out *NodesStatsSearchStats) {1854 *out = *in1855 if in.Groups != nil {1856 in, out := &in.Groups, &out.Groups1857 *out = make(map[string]NodesStatsSearchStats, len(*in))1858 for key, val := range *in {1859 (*out)[key] = *val.DeepCopy()1860 }1861 }1862 return1863}1864// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsSearchStats.1865func (in *NodesStatsSearchStats) DeepCopy() *NodesStatsSearchStats {1866 if in == nil {1867 return nil1868 }1869 out := new(NodesStatsSearchStats)1870 in.DeepCopyInto(out)1871 return out1872}1873// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1874func (in *NodesStatsSegmentsStats) DeepCopyInto(out *NodesStatsSegmentsStats) {1875 *out = *in1876 return1877}1878// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsSegmentsStats.1879func (in *NodesStatsSegmentsStats) DeepCopy() *NodesStatsSegmentsStats {1880 if in == nil {1881 return nil1882 }1883 out := new(NodesStatsSegmentsStats)1884 in.DeepCopyInto(out)1885 return out1886}1887// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1888func (in *NodesStatsShardCountStats) DeepCopyInto(out *NodesStatsShardCountStats) {1889 *out = *in1890 return1891}1892// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsShardCountStats.1893func (in *NodesStatsShardCountStats) DeepCopy() *NodesStatsShardCountStats {1894 if in == nil {1895 return nil1896 }1897 out := new(NodesStatsShardCountStats)1898 in.DeepCopyInto(out)1899 return out1900}1901// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1902func (in *NodesStatsStoreStats) DeepCopyInto(out *NodesStatsStoreStats) {1903 *out = *in1904 return1905}1906// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsStoreStats.1907func (in *NodesStatsStoreStats) DeepCopy() *NodesStatsStoreStats {1908 if in == nil {1909 return nil1910 }1911 out := new(NodesStatsStoreStats)1912 in.DeepCopyInto(out)1913 return out1914}1915// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1916func (in *NodesStatsTranslogStats) DeepCopyInto(out *NodesStatsTranslogStats) {1917 *out = *in1918 return1919}1920// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsTranslogStats.1921func (in *NodesStatsTranslogStats) DeepCopy() *NodesStatsTranslogStats {1922 if in == nil {1923 return nil1924 }1925 out := new(NodesStatsTranslogStats)1926 in.DeepCopyInto(out)1927 return out1928}1929// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1930func (in *NodesStatsWarmerStats) DeepCopyInto(out *NodesStatsWarmerStats) {1931 *out = *in1932 return1933}1934// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesStatsWarmerStats.1935func (in *NodesStatsWarmerStats) DeepCopy() *NodesStatsWarmerStats {1936 if in == nil {1937 return nil1938 }1939 out := new(NodesStatsWarmerStats)1940 in.DeepCopyInto(out)1941 return out1942}1943// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1944func (in *PGSetting) DeepCopyInto(out *PGSetting) {1945 *out = *in1946 return1947}1948// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PGSetting.1949func (in *PGSetting) DeepCopy() *PGSetting {1950 if in == nil {1951 return nil1952 }1953 out := new(PGSetting)1954 in.DeepCopyInto(out)1955 return out1956}1957// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1958func (in *PostgresConnectionInfo) DeepCopyInto(out *PostgresConnectionInfo) {1959 *out = *in1960 if in.MaxConnections != nil {1961 in, out := &in.MaxConnections, &out.MaxConnections1962 *out = new(int64)1963 **out = **in1964 }1965 if in.ActiveConnections != nil {1966 in, out := &in.ActiveConnections, &out.ActiveConnections1967 *out = new(int64)1968 **out = **in1969 }1970 return1971}1972// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresConnectionInfo.1973func (in *PostgresConnectionInfo) DeepCopy() *PostgresConnectionInfo {1974 if in == nil {1975 return nil1976 }1977 out := new(PostgresConnectionInfo)1978 in.DeepCopyInto(out)1979 return out1980}1981// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.1982func (in *PostgresInsight) DeepCopyInto(out *PostgresInsight) {1983 *out = *in1984 out.TypeMeta = in.TypeMeta1985 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)1986 in.Spec.DeepCopyInto(&out.Spec)1987 in.Status.DeepCopyInto(&out.Status)1988 return1989}1990// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresInsight.1991func (in *PostgresInsight) DeepCopy() *PostgresInsight {1992 if in == nil {1993 return nil1994 }1995 out := new(PostgresInsight)1996 in.DeepCopyInto(out)1997 return out1998}1999// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2000func (in *PostgresInsight) DeepCopyObject() runtime.Object {2001 if c := in.DeepCopy(); c != nil {2002 return c2003 }2004 return nil2005}2006// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2007func (in *PostgresInsightList) DeepCopyInto(out *PostgresInsightList) {2008 *out = *in2009 out.TypeMeta = in.TypeMeta2010 in.ListMeta.DeepCopyInto(&out.ListMeta)2011 if in.Items != nil {2012 in, out := &in.Items, &out.Items2013 *out = make([]PostgresInsight, len(*in))2014 for i := range *in {2015 (*in)[i].DeepCopyInto(&(*out)[i])2016 }2017 }2018 return2019}2020// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresInsightList.2021func (in *PostgresInsightList) DeepCopy() *PostgresInsightList {2022 if in == nil {2023 return nil2024 }2025 out := new(PostgresInsightList)2026 in.DeepCopyInto(out)2027 return out2028}2029// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2030func (in *PostgresInsightList) DeepCopyObject() runtime.Object {2031 if c := in.DeepCopy(); c != nil {2032 return c2033 }2034 return nil2035}2036// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2037func (in *PostgresInsightSpec) DeepCopyInto(out *PostgresInsightSpec) {2038 *out = *in2039 if in.ReplicationStatus != nil {2040 in, out := &in.ReplicationStatus, &out.ReplicationStatus2041 *out = make([]PostgresReplicationStatus, len(*in))2042 for i := range *in {2043 (*in)[i].DeepCopyInto(&(*out)[i])2044 }2045 }2046 in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo)2047 in.VacuumInfo.DeepCopyInto(&out.VacuumInfo)2048 return2049}2050// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresInsightSpec.2051func (in *PostgresInsightSpec) DeepCopy() *PostgresInsightSpec {2052 if in == nil {2053 return nil2054 }2055 out := new(PostgresInsightSpec)2056 in.DeepCopyInto(out)2057 return out2058}2059// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2060func (in *PostgresQueries) DeepCopyInto(out *PostgresQueries) {2061 *out = *in2062 out.TypeMeta = in.TypeMeta2063 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)2064 in.Spec.DeepCopyInto(&out.Spec)2065 return2066}2067// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresQueries.2068func (in *PostgresQueries) DeepCopy() *PostgresQueries {2069 if in == nil {2070 return nil2071 }2072 out := new(PostgresQueries)2073 in.DeepCopyInto(out)2074 return out2075}2076// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2077func (in *PostgresQueries) DeepCopyObject() runtime.Object {2078 if c := in.DeepCopy(); c != nil {2079 return c2080 }2081 return nil2082}2083// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2084func (in *PostgresQueriesList) DeepCopyInto(out *PostgresQueriesList) {2085 *out = *in2086 out.TypeMeta = in.TypeMeta2087 in.ListMeta.DeepCopyInto(&out.ListMeta)2088 if in.Items != nil {2089 in, out := &in.Items, &out.Items2090 *out = make([]PostgresQueries, len(*in))2091 for i := range *in {2092 (*in)[i].DeepCopyInto(&(*out)[i])2093 }2094 }2095 return2096}2097// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresQueriesList.2098func (in *PostgresQueriesList) DeepCopy() *PostgresQueriesList {2099 if in == nil {2100 return nil2101 }2102 out := new(PostgresQueriesList)2103 in.DeepCopyInto(out)2104 return out2105}2106// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2107func (in *PostgresQueriesList) DeepCopyObject() runtime.Object {2108 if c := in.DeepCopy(); c != nil {2109 return c2110 }2111 return nil2112}2113// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2114func (in *PostgresQueriesSpec) DeepCopyInto(out *PostgresQueriesSpec) {2115 *out = *in2116 if in.Queries != nil {2117 in, out := &in.Queries, &out.Queries2118 *out = make([]PostgresQuerySpec, len(*in))2119 for i := range *in {2120 (*in)[i].DeepCopyInto(&(*out)[i])2121 }2122 }2123 return2124}2125// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresQueriesSpec.2126func (in *PostgresQueriesSpec) DeepCopy() *PostgresQueriesSpec {2127 if in == nil {2128 return nil2129 }2130 out := new(PostgresQueriesSpec)2131 in.DeepCopyInto(out)2132 return out2133}2134// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2135func (in *PostgresQuerySpec) DeepCopyInto(out *PostgresQuerySpec) {2136 *out = *in2137 if in.Calls != nil {2138 in, out := &in.Calls, &out.Calls2139 *out = new(int64)2140 **out = **in2141 }2142 if in.Rows != nil {2143 in, out := &in.Rows, &out.Rows2144 *out = new(int64)2145 **out = **in2146 }2147 if in.TotalTimeMilliSeconds != nil {2148 in, out := &in.TotalTimeMilliSeconds, &out.TotalTimeMilliSeconds2149 *out = new(float64)2150 **out = **in2151 }2152 if in.MinTimeMilliSeconds != nil {2153 in, out := &in.MinTimeMilliSeconds, &out.MinTimeMilliSeconds2154 *out = new(float64)2155 **out = **in2156 }2157 if in.MaxTimeMilliSeconds != nil {2158 in, out := &in.MaxTimeMilliSeconds, &out.MaxTimeMilliSeconds2159 *out = new(float64)2160 **out = **in2161 }2162 if in.SharedBlksHit != nil {2163 in, out := &in.SharedBlksHit, &out.SharedBlksHit2164 *out = new(int64)2165 **out = **in2166 }2167 if in.SharedBlksRead != nil {2168 in, out := &in.SharedBlksRead, &out.SharedBlksRead2169 *out = new(int64)2170 **out = **in2171 }2172 if in.SharedBlksDirtied != nil {2173 in, out := &in.SharedBlksDirtied, &out.SharedBlksDirtied2174 *out = new(int64)2175 **out = **in2176 }2177 if in.SharedBlksWritten != nil {2178 in, out := &in.SharedBlksWritten, &out.SharedBlksWritten2179 *out = new(int64)2180 **out = **in2181 }2182 if in.LocalBlksHit != nil {2183 in, out := &in.LocalBlksHit, &out.LocalBlksHit2184 *out = new(int64)2185 **out = **in2186 }2187 if in.LocalBlksRead != nil {2188 in, out := &in.LocalBlksRead, &out.LocalBlksRead2189 *out = new(int64)2190 **out = **in2191 }2192 if in.LocalBlksDirtied != nil {2193 in, out := &in.LocalBlksDirtied, &out.LocalBlksDirtied2194 *out = new(int64)2195 **out = **in2196 }2197 if in.LocalBlksWritten != nil {2198 in, out := &in.LocalBlksWritten, &out.LocalBlksWritten2199 *out = new(int64)2200 **out = **in2201 }2202 if in.TempBlksRead != nil {2203 in, out := &in.TempBlksRead, &out.TempBlksRead2204 *out = new(int64)2205 **out = **in2206 }2207 if in.TempBlksWritten != nil {2208 in, out := &in.TempBlksWritten, &out.TempBlksWritten2209 *out = new(int64)2210 **out = **in2211 }2212 if in.BlkReadTimeMilliSeconds != nil {2213 in, out := &in.BlkReadTimeMilliSeconds, &out.BlkReadTimeMilliSeconds2214 *out = new(float64)2215 **out = **in2216 }2217 if in.BlkWriteTime != nil {2218 in, out := &in.BlkWriteTime, &out.BlkWriteTime2219 *out = new(float64)2220 **out = **in2221 }2222 if in.BufferHitPercentage != nil {2223 in, out := &in.BufferHitPercentage, &out.BufferHitPercentage2224 *out = new(float64)2225 **out = **in2226 }2227 if in.LocalBufferHitPercentage != nil {2228 in, out := &in.LocalBufferHitPercentage, &out.LocalBufferHitPercentage2229 *out = new(float64)2230 **out = **in2231 }2232 return2233}2234// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresQuerySpec.2235func (in *PostgresQuerySpec) DeepCopy() *PostgresQuerySpec {2236 if in == nil {2237 return nil2238 }2239 out := new(PostgresQuerySpec)2240 in.DeepCopyInto(out)2241 return out2242}2243// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2244func (in *PostgresReplicationStatus) DeepCopyInto(out *PostgresReplicationStatus) {2245 *out = *in2246 if in.WriteLag != nil {2247 in, out := &in.WriteLag, &out.WriteLag2248 *out = new(int64)2249 **out = **in2250 }2251 if in.FlushLag != nil {2252 in, out := &in.FlushLag, &out.FlushLag2253 *out = new(int64)2254 **out = **in2255 }2256 if in.ReplayLag != nil {2257 in, out := &in.ReplayLag, &out.ReplayLag2258 *out = new(int64)2259 **out = **in2260 }2261 return2262}2263// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresReplicationStatus.2264func (in *PostgresReplicationStatus) DeepCopy() *PostgresReplicationStatus {2265 if in == nil {2266 return nil2267 }2268 out := new(PostgresReplicationStatus)2269 in.DeepCopyInto(out)2270 return out2271}2272// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2273func (in *PostgresSchemaOverview) DeepCopyInto(out *PostgresSchemaOverview) {2274 *out = *in2275 out.TypeMeta = in.TypeMeta2276 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)2277 in.Spec.DeepCopyInto(&out.Spec)2278 return2279}2280// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSchemaOverview.2281func (in *PostgresSchemaOverview) DeepCopy() *PostgresSchemaOverview {2282 if in == nil {2283 return nil2284 }2285 out := new(PostgresSchemaOverview)2286 in.DeepCopyInto(out)2287 return out2288}2289// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2290func (in *PostgresSchemaOverview) DeepCopyObject() runtime.Object {2291 if c := in.DeepCopy(); c != nil {2292 return c2293 }2294 return nil2295}2296// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2297func (in *PostgresSchemaOverviewList) DeepCopyInto(out *PostgresSchemaOverviewList) {2298 *out = *in2299 out.TypeMeta = in.TypeMeta2300 in.ListMeta.DeepCopyInto(&out.ListMeta)2301 if in.Items != nil {2302 in, out := &in.Items, &out.Items2303 *out = make([]PostgresSchemaOverview, len(*in))2304 for i := range *in {2305 (*in)[i].DeepCopyInto(&(*out)[i])2306 }2307 }2308 return2309}2310// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSchemaOverviewList.2311func (in *PostgresSchemaOverviewList) DeepCopy() *PostgresSchemaOverviewList {2312 if in == nil {2313 return nil2314 }2315 out := new(PostgresSchemaOverviewList)2316 in.DeepCopyInto(out)2317 return out2318}2319// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2320func (in *PostgresSchemaOverviewList) DeepCopyObject() runtime.Object {2321 if c := in.DeepCopy(); c != nil {2322 return c2323 }2324 return nil2325}2326// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2327func (in *PostgresSettings) DeepCopyInto(out *PostgresSettings) {2328 *out = *in2329 out.TypeMeta = in.TypeMeta2330 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)2331 in.Spec.DeepCopyInto(&out.Spec)2332 return2333}2334// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSettings.2335func (in *PostgresSettings) DeepCopy() *PostgresSettings {2336 if in == nil {2337 return nil2338 }2339 out := new(PostgresSettings)2340 in.DeepCopyInto(out)2341 return out2342}2343// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2344func (in *PostgresSettings) DeepCopyObject() runtime.Object {2345 if c := in.DeepCopy(); c != nil {2346 return c2347 }2348 return nil2349}2350// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2351func (in *PostgresSettingsList) DeepCopyInto(out *PostgresSettingsList) {2352 *out = *in2353 out.TypeMeta = in.TypeMeta2354 in.ListMeta.DeepCopyInto(&out.ListMeta)2355 if in.Items != nil {2356 in, out := &in.Items, &out.Items2357 *out = make([]PostgresSettings, len(*in))2358 for i := range *in {2359 (*in)[i].DeepCopyInto(&(*out)[i])2360 }2361 }2362 return2363}2364// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSettingsList.2365func (in *PostgresSettingsList) DeepCopy() *PostgresSettingsList {2366 if in == nil {2367 return nil2368 }2369 out := new(PostgresSettingsList)2370 in.DeepCopyInto(out)2371 return out2372}2373// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2374func (in *PostgresSettingsList) DeepCopyObject() runtime.Object {2375 if c := in.DeepCopy(); c != nil {2376 return c2377 }2378 return nil2379}2380// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2381func (in *PostgresSettingsSpec) DeepCopyInto(out *PostgresSettingsSpec) {2382 *out = *in2383 if in.Settings != nil {2384 in, out := &in.Settings, &out.Settings2385 *out = make([]PGSetting, len(*in))2386 copy(*out, *in)2387 }2388 return2389}2390// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSettingsSpec.2391func (in *PostgresSettingsSpec) DeepCopy() *PostgresSettingsSpec {2392 if in == nil {2393 return nil2394 }2395 out := new(PostgresSettingsSpec)2396 in.DeepCopyInto(out)2397 return out2398}2399// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2400func (in *PostgresVacuumInfo) DeepCopyInto(out *PostgresVacuumInfo) {2401 *out = *in2402 if in.ActiveVacuumProcess != nil {2403 in, out := &in.ActiveVacuumProcess, &out.ActiveVacuumProcess2404 *out = new(int64)2405 **out = **in2406 }2407 return2408}2409// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresVacuumInfo.2410func (in *PostgresVacuumInfo) DeepCopy() *PostgresVacuumInfo {2411 if in == nil {2412 return nil2413 }2414 out := new(PostgresVacuumInfo)2415 in.DeepCopyInto(out)2416 return out2417}2418// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2419func (in *RedisDatabaseSpec) DeepCopyInto(out *RedisDatabaseSpec) {2420 *out = *in2421 if in.Expires != nil {2422 in, out := &in.Expires, &out.Expires2423 *out = (*in).DeepCopy()2424 }2425 return2426}2427// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisDatabaseSpec.2428func (in *RedisDatabaseSpec) DeepCopy() *RedisDatabaseSpec {2429 if in == nil {2430 return nil2431 }2432 out := new(RedisDatabaseSpec)2433 in.DeepCopyInto(out)2434 return out2435}2436// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2437func (in *RedisInsight) DeepCopyInto(out *RedisInsight) {2438 *out = *in2439 out.TypeMeta = in.TypeMeta2440 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)2441 in.Spec.DeepCopyInto(&out.Spec)2442 in.Status.DeepCopyInto(&out.Status)2443 return2444}2445// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisInsight.2446func (in *RedisInsight) DeepCopy() *RedisInsight {2447 if in == nil {2448 return nil2449 }2450 out := new(RedisInsight)2451 in.DeepCopyInto(out)2452 return out2453}2454// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2455func (in *RedisInsight) DeepCopyObject() runtime.Object {2456 if c := in.DeepCopy(); c != nil {2457 return c2458 }2459 return nil2460}2461// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2462func (in *RedisInsightList) DeepCopyInto(out *RedisInsightList) {2463 *out = *in2464 out.TypeMeta = in.TypeMeta2465 in.ListMeta.DeepCopyInto(&out.ListMeta)2466 if in.Items != nil {2467 in, out := &in.Items, &out.Items2468 *out = make([]RedisInsight, len(*in))2469 for i := range *in {2470 (*in)[i].DeepCopyInto(&(*out)[i])2471 }2472 }2473 return2474}2475// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisInsightList.2476func (in *RedisInsightList) DeepCopy() *RedisInsightList {2477 if in == nil {2478 return nil2479 }2480 out := new(RedisInsightList)2481 in.DeepCopyInto(out)2482 return out2483}2484// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2485func (in *RedisInsightList) DeepCopyObject() runtime.Object {2486 if c := in.DeepCopy(); c != nil {2487 return c2488 }2489 return nil2490}2491// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2492func (in *RedisInsightSpec) DeepCopyInto(out *RedisInsightSpec) {2493 *out = *in2494 if in.MaxClients != nil {2495 in, out := &in.MaxClients, &out.MaxClients2496 *out = new(int64)2497 **out = **in2498 }2499 if in.ConnectedClients != nil {2500 in, out := &in.ConnectedClients, &out.ConnectedClients2501 *out = new(int64)2502 **out = **in2503 }2504 if in.BlockedClients != nil {2505 in, out := &in.BlockedClients, &out.BlockedClients2506 *out = new(int64)2507 **out = **in2508 }2509 if in.TotalKeys != nil {2510 in, out := &in.TotalKeys, &out.TotalKeys2511 *out = new(int64)2512 **out = **in2513 }2514 if in.ExpiredKeys != nil {2515 in, out := &in.ExpiredKeys, &out.ExpiredKeys2516 *out = new(int64)2517 **out = **in2518 }2519 if in.EvictedKeys != nil {2520 in, out := &in.EvictedKeys, &out.EvictedKeys2521 *out = new(int64)2522 **out = **in2523 }2524 if in.ReceivedConnections != nil {2525 in, out := &in.ReceivedConnections, &out.ReceivedConnections2526 *out = new(int64)2527 **out = **in2528 }2529 if in.RejectedConnections != nil {2530 in, out := &in.RejectedConnections, &out.RejectedConnections2531 *out = new(int64)2532 **out = **in2533 }2534 if in.SlowLogThresholdMicroSeconds != nil {2535 in, out := &in.SlowLogThresholdMicroSeconds, &out.SlowLogThresholdMicroSeconds2536 *out = new(int64)2537 **out = **in2538 }2539 if in.SlowLogMaxLen != nil {2540 in, out := &in.SlowLogMaxLen, &out.SlowLogMaxLen2541 *out = new(int64)2542 **out = **in2543 }2544 return2545}2546// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisInsightSpec.2547func (in *RedisInsightSpec) DeepCopy() *RedisInsightSpec {2548 if in == nil {2549 return nil2550 }2551 out := new(RedisInsightSpec)2552 in.DeepCopyInto(out)2553 return out2554}2555// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2556func (in *RedisQueries) DeepCopyInto(out *RedisQueries) {2557 *out = *in2558 out.TypeMeta = in.TypeMeta2559 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)2560 in.Spec.DeepCopyInto(&out.Spec)2561 return2562}2563// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisQueries.2564func (in *RedisQueries) DeepCopy() *RedisQueries {2565 if in == nil {2566 return nil2567 }2568 out := new(RedisQueries)2569 in.DeepCopyInto(out)2570 return out2571}2572// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2573func (in *RedisQueries) DeepCopyObject() runtime.Object {2574 if c := in.DeepCopy(); c != nil {2575 return c2576 }2577 return nil2578}2579// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2580func (in *RedisQueriesList) DeepCopyInto(out *RedisQueriesList) {2581 *out = *in2582 out.TypeMeta = in.TypeMeta2583 in.ListMeta.DeepCopyInto(&out.ListMeta)2584 if in.Items != nil {2585 in, out := &in.Items, &out.Items2586 *out = make([]RedisQueries, len(*in))2587 for i := range *in {2588 (*in)[i].DeepCopyInto(&(*out)[i])2589 }2590 }2591 return2592}2593// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisQueriesList.2594func (in *RedisQueriesList) DeepCopy() *RedisQueriesList {2595 if in == nil {2596 return nil2597 }2598 out := new(RedisQueriesList)2599 in.DeepCopyInto(out)2600 return out2601}2602// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2603func (in *RedisQueriesList) DeepCopyObject() runtime.Object {2604 if c := in.DeepCopy(); c != nil {2605 return c2606 }2607 return nil2608}2609// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2610func (in *RedisQueriesSpec) DeepCopyInto(out *RedisQueriesSpec) {2611 *out = *in2612 if in.Queries != nil {2613 in, out := &in.Queries, &out.Queries2614 *out = make([]RedisQuerySpec, len(*in))2615 for i := range *in {2616 (*in)[i].DeepCopyInto(&(*out)[i])2617 }2618 }2619 return2620}2621// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisQueriesSpec.2622func (in *RedisQueriesSpec) DeepCopy() *RedisQueriesSpec {2623 if in == nil {2624 return nil2625 }2626 out := new(RedisQueriesSpec)2627 in.DeepCopyInto(out)2628 return out2629}2630// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2631func (in *RedisQuerySpec) DeepCopyInto(out *RedisQuerySpec) {2632 *out = *in2633 if in.QueryTimestamp != nil {2634 in, out := &in.QueryTimestamp, &out.QueryTimestamp2635 *out = (*in).DeepCopy()2636 }2637 if in.ExecTimeMicroSeconds != nil {2638 in, out := &in.ExecTimeMicroSeconds, &out.ExecTimeMicroSeconds2639 *out = new(int64)2640 **out = **in2641 }2642 if in.Args != nil {2643 in, out := &in.Args, &out.Args2644 *out = make([]string, len(*in))2645 copy(*out, *in)2646 }2647 return2648}2649// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisQuerySpec.2650func (in *RedisQuerySpec) DeepCopy() *RedisQuerySpec {2651 if in == nil {2652 return nil2653 }2654 out := new(RedisQuerySpec)2655 in.DeepCopyInto(out)2656 return out2657}2658// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2659func (in *RedisSchemaOverview) DeepCopyInto(out *RedisSchemaOverview) {2660 *out = *in2661 out.TypeMeta = in.TypeMeta2662 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)2663 in.Spec.DeepCopyInto(&out.Spec)2664 return2665}2666// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSchemaOverview.2667func (in *RedisSchemaOverview) DeepCopy() *RedisSchemaOverview {2668 if in == nil {2669 return nil2670 }2671 out := new(RedisSchemaOverview)2672 in.DeepCopyInto(out)2673 return out2674}2675// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2676func (in *RedisSchemaOverview) DeepCopyObject() runtime.Object {2677 if c := in.DeepCopy(); c != nil {2678 return c2679 }2680 return nil2681}2682// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2683func (in *RedisSchemaOverviewList) DeepCopyInto(out *RedisSchemaOverviewList) {2684 *out = *in2685 out.TypeMeta = in.TypeMeta2686 in.ListMeta.DeepCopyInto(&out.ListMeta)2687 if in.Items != nil {2688 in, out := &in.Items, &out.Items2689 *out = make([]RedisSchemaOverview, len(*in))2690 for i := range *in {2691 (*in)[i].DeepCopyInto(&(*out)[i])2692 }2693 }2694 return2695}2696// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSchemaOverviewList.2697func (in *RedisSchemaOverviewList) DeepCopy() *RedisSchemaOverviewList {2698 if in == nil {2699 return nil2700 }2701 out := new(RedisSchemaOverviewList)2702 in.DeepCopyInto(out)2703 return out2704}2705// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.2706func (in *RedisSchemaOverviewList) DeepCopyObject() runtime.Object {2707 if c := in.DeepCopy(); c != nil {2708 return c2709 }2710 return nil2711}2712// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.2713func (in *RedisSchemaOverviewSpec) DeepCopyInto(out *RedisSchemaOverviewSpec) {2714 *out = *in2715 if in.Databases != nil {2716 in, out := &in.Databases, &out.Databases2717 *out = make([]RedisDatabaseSpec, len(*in))2718 for i := range *in {2719 (*in)[i].DeepCopyInto(&(*out)[i])2720 }2721 }2722 return2723}2724// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSchemaOverviewSpec.2725func (in *RedisSchemaOverviewSpec) DeepCopy() *RedisSchemaOverviewSpec {2726 if in == nil {2727 return nil2728 }2729 out := new(RedisSchemaOverviewSpec)2730 in.DeepCopyInto(out)2731 return out2732}...
query_stats.go
Source:query_stats.go
...37)38type QueryStatsParam struct {39 Table string40}41type QueryStatsCopyService struct {42 queryStatsTopQueryTemplate *template.Template43 Spanner *spanner.Client44 BQ *bigquery.Client45}46// NewQueryStatsCopyService is QueryStatsCopyServiceãçæãã47func NewQueryStatsCopyService(ctx context.Context, bq *bigquery.Client) (*QueryStatsCopyService, error) {48 return NewQueryStatsCopyServiceWithSpannerClient(ctx, bq, nil)49}50// NewQueryStatsCopyServiceWithSpannerClient is Statsãåå¾ãããSpanner DBã1ã¤ãããªãã®ã§ããã°ãSpanner Clientãè¨å®ãã¦ãQueryStatsCopyServiceãä½æãã51func NewQueryStatsCopyServiceWithSpannerClient(ctx context.Context, bq *bigquery.Client, spannerClient *spanner.Client) (*QueryStatsCopyService, error) {52 tmpl, err := template.New("getQueryStatsTopQuery").Parse(queryStatsTopMinute)53 if err != nil {54 return nil, err55 }56 return &QueryStatsCopyService{57 queryStatsTopQueryTemplate: tmpl,58 Spanner: spannerClient,59 BQ: bq,60 }, nil61}62type Database struct {63 ProjectID string64 Instance string65 Database string66}67// ToSpannerDatabaseName is Spanner Database Name ã¨ãã¦æå®ã§ããå½¢å¼ã®æååãè¿ã68func (d *Database) ToSpannerDatabaseName() string {69 return fmt.Sprintf("projects/%s/instances/%s/databases/%s", d.ProjectID, d.Instance, d.Database)70}71// SplitDatabaseName is projects/{PROJECT_ID}/instances/{INSTANCE}/databases/{DB} å½¢å¼ã®æååãstructã«ãã¦è¿ã72func SplitDatabaseName(database string) (*Database, error) {73 l := strings.Split(database, "/")74 if len(l) < 6 {75 return nil, fmt.Errorf("invalid argument. The expected format is projects/{PROJECT_ID}/instances/{INSTANCE}/databases/{DB}. but get %s", database)76 }77 return &Database{78 ProjectID: l[1],79 Instance: l[3],80 Database: l[5],81 }, nil82}83var _ bigquery.ValueSaver = &QueryStat{}84type QueryStat struct {85 IntervalEnd time.Time `spanner:"interval_end"` // End of the time interval that the included query executions occurred in.86 Text string // SQL query text, truncated to approximately 64KB.87 TextTruncated bool `spanner:"text_truncated"` // Whether or not the query text was truncated.88 TextFingerprint int64 `spanner:"text_fingerprint"` // Hash of the query text.89 ExecuteCount int64 `spanner:"execution_count"` // Number of times Cloud Spanner saw the query during the interval.90 AvgLatencySeconds float64 `spanner:"avg_latency_seconds"` // Average length of time, in seconds, for each query execution within the database. This average excludes the encoding and transmission time for the result set as well as overhead.91 AvgRows float64 `spanner:"avg_rows"` // Average number of rows that the query returned.92 AvgBytes float64 `spanner:"avg_bytes"` // Average number of data bytes that the query returned, excluding transmission encoding overhead.93 AvgRowsScanned float64 `spanner:"avg_rows_scanned"` // Average number of rows that the query scanned, excluding deleted values.94 AvgCPUSeconds float64 `spanner:"avg_cpu_seconds"` // Average number of seconds of CPU time Cloud Spanner spent on all operations to execute the query.95}96// Save is bigquery.ValueSaver interface97func (s *QueryStat) Save() (map[string]bigquery.Value, string, error) {98 insertID, err := s.InsertID()99 if err != nil {100 return nil, "", xerrors.Errorf("failed InsertID() : %w", err)101 }102 return map[string]bigquery.Value{103 "interval_end": s.IntervalEnd,104 "text": s.Text,105 "text_truncated": s.TextTruncated,106 "text_fingerprint": s.TextFingerprint,107 "execution_count": s.ExecuteCount,108 "avg_latency_seconds": s.AvgLatencySeconds,109 "avg_rows": s.AvgRows,110 "avg_bytes": s.AvgBytes,111 "avg_rows_scanned": s.AvgRowsScanned,112 "avg_cpu_seconds": s.AvgCPUSeconds,113 }, insertID, nil114}115// InsertID is åããã¼ã¿ãBigQueryã«ãªãã¹ãå
¥ããªãããã«ãã¼ã¿ããInsertIDãä½æãã116func (s *QueryStat) InsertID() (string, error) {117 if s.IntervalEnd.IsZero() {118 return "", xerrors.New("IntervalEnd is required.")119 }120 if s.TextFingerprint == 0 {121 return "", xerrors.New("TextFingerprint is required.")122 }123 return fmt.Sprintf("GCPBOX_SpannerQueryStat-_-%v-_-%v", s.IntervalEnd.Unix(), s.TextFingerprint), nil124}125func (s *QueryStatsCopyService) Close() error {126 if s.Spanner != nil {127 s.Spanner.Close()128 }129 if s.BQ != nil {130 return s.BQ.Close()131 }132 return nil133}134// GetQueryStats is SpannerããQueryStatsãåå¾ãã135func (s *QueryStatsCopyService) GetQueryStats(ctx context.Context, table QueryStatsTopTable, intervalEnd time.Time) ([]*QueryStat, error) {136 if s.Spanner == nil {137 return nil, ErrRequiredSpannerClient138 }139 return s.GetQueryStatsWithSpannerClient(ctx, table, s.Spanner, intervalEnd)140}141// GetQueryStatsWithSpannerClient is æå®ããSpannerClientãå©ç¨ãã¦ãSpannerããQueryStatsãåå¾ãã142func (s *QueryStatsCopyService) GetQueryStatsWithSpannerClient(ctx context.Context, table QueryStatsTopTable, spannerClient *spanner.Client, intervalEnd time.Time) ([]*QueryStat, error) {143 if spannerClient == nil {144 return nil, ErrRequiredSpannerClient145 }146 var tpl bytes.Buffer147 if err := s.queryStatsTopQueryTemplate.Execute(&tpl, QueryStatsParam{Table: string(table)}); err != nil {148 return nil, err149 }150 statement := spanner.NewStatement(tpl.String())151 statement.Params = map[string]interface{}{152 "IntervalEnd": intervalEnd.Format("2006-01-02 15:04:05"),153 }154 iter := spannerClient.Single().Query(ctx, statement)155 defer iter.Stop()156 rets := []*QueryStat{}157 for {158 row, err := iter.Next()159 if err == iterator.Done {160 break161 }162 if err != nil {163 return nil, xerrors.Errorf(": %w", err)164 }165 var result QueryStat166 if err := row.ToStruct(&result); err != nil {167 return nil, xerrors.Errorf(": %w", err)168 }169 rets = append(rets, &result)170 }171 return rets, nil172}173// QueryStatsBigQueryTableSchema is BigQuery Table Schema174var QueryStatsBigQueryTableSchema = bigquery.Schema{175 {Name: "interval_end", Required: true, Type: bigquery.TimestampFieldType},176 {Name: "text", Required: true, Type: bigquery.StringFieldType},177 {Name: "text_truncated", Required: true, Type: bigquery.BooleanFieldType},178 {Name: "text_fingerprint", Required: true, Type: bigquery.IntegerFieldType},179 {Name: "execution_count", Required: true, Type: bigquery.IntegerFieldType},180 {Name: "avg_latency_seconds", Required: true, Type: bigquery.FloatFieldType},181 {Name: "avg_rows", Required: true, Type: bigquery.FloatFieldType},182 {Name: "avg_bytes", Required: true, Type: bigquery.FloatFieldType},183 {Name: "avg_rows_scanned", Required: true, Type: bigquery.FloatFieldType},184 {Name: "avg_cpu_seconds", Required: true, Type: bigquery.FloatFieldType},185}186// ToBigQuery is QueryStatsãBigQueryã«StreamingInsertã§Insertãã187func (s *QueryStatsCopyService) CreateTable(ctx context.Context, dataset *bigquery.Dataset, table string) error {188 return s.BQ.Dataset(dataset.DatasetID).Table(table).Create(ctx, &bigquery.TableMetadata{189 Name: table,190 Schema: QueryStatsBigQueryTableSchema,191 TimePartitioning: &bigquery.TimePartitioning{192 Type: bigquery.DayPartitioningType,193 },194 })195}196// Copy is SpannerããQuery Statsãå¼ã£å¼µã£ã¦ãã¦ãBigQueryã«Copyãã¦ãã197func (s *QueryStatsCopyService) Copy(ctx context.Context, dataset *bigquery.Dataset, bigQueryTable string, queryStatsTable QueryStatsTopTable, intervalEnd time.Time) (int, error) {198 if s.Spanner == nil {199 return 0, ErrRequiredSpannerClient200 }201 return s.CopyWithSpannerClient(ctx, dataset, bigQueryTable, queryStatsTable, s.Spanner, intervalEnd)202}203// CopyWithSpannerClient is SpannerããQuery Statsãå¼ã£å¼µã£ã¦ãã¦ãBigQueryã«Copyãã¦ãã204func (s *QueryStatsCopyService) CopyWithSpannerClient(ctx context.Context, dataset *bigquery.Dataset, bigQueryTable string, queryStatsTable QueryStatsTopTable, spannerClient *spanner.Client, intervalEnd time.Time) (int, error) {205 if spannerClient == nil {206 return 0, ErrRequiredSpannerClient207 }208 var tpl bytes.Buffer209 if err := s.queryStatsTopQueryTemplate.Execute(&tpl, QueryStatsParam{Table: string(queryStatsTable)}); err != nil {210 return 0, err211 }212 statement := spanner.NewStatement(tpl.String())213 statement.Params = map[string]interface{}{214 "IntervalEnd": intervalEnd.Format("2006-01-02 15:04:05"),215 }216 iter := spannerClient.Single().Query(ctx, statement)217 defer iter.Stop()218 var insertCount int...
couchdb.go
Source:couchdb.go
...33 } `json:"couchdb"`34 HttpdRequestMethods struct {35 Put metaData `json:"PUT"`36 Get metaData `json:"GET"`37 Copy metaData `json:"COPY"`38 Delete metaData `json:"DELETE"`39 Post metaData `json:"POST"`40 Head metaData `json:"HEAD"`41 } `json:"httpd_request_methods"`42 HttpdStatusCodes struct {43 Status200 metaData `json:"200"`44 Status201 metaData `json:"201"`45 Status202 metaData `json:"202"`46 Status301 metaData `json:"301"`47 Status304 metaData `json:"304"`48 Status400 metaData `json:"400"`49 Status401 metaData `json:"401"`50 Status403 metaData `json:"403"`51 Status404 metaData `json:"404"`52 Status405 metaData `json:"405"`53 Status409 metaData `json:"409"`54 Status412 metaData `json:"412"`55 Status500 metaData `json:"500"`56 } `json:"httpd_status_codes"`57 Httpd struct {58 ClientsRequestingChanges metaData `json:"clients_requesting_changes"`59 TemporaryViewReads metaData `json:"temporary_view_reads"`60 Requests metaData `json:"requests"`61 BulkRequests metaData `json:"bulk_requests"`62 ViewReads metaData `json:"view_reads"`63 } `json:"httpd"`64}65type CouchDB struct {66 HOSTs []string `toml:"hosts"`67}68func (*CouchDB) Description() string {69 return "Read CouchDB Stats from one or more servers"70}71func (*CouchDB) SampleConfig() string {72 return `73 ## Works with CouchDB stats endpoints out of the box74 ## Multiple HOSTs from which to read CouchDB stats:75 hosts = ["http://localhost:8086/_stats"]76`77}78func (c *CouchDB) Gather(accumulator telegraf.Accumulator) error {79 errorChannel := make(chan error, len(c.HOSTs))80 var wg sync.WaitGroup81 for _, u := range c.HOSTs {82 wg.Add(1)83 go func(host string) {84 defer wg.Done()85 if err := c.fetchAndInsertData(accumulator, host); err != nil {86 errorChannel <- fmt.Errorf("[host=%s]: %s", host, err)87 }88 }(u)89 }90 wg.Wait()91 close(errorChannel)92 // If there weren't any errors, we can return nil now.93 if len(errorChannel) == 0 {94 return nil95 }96 // There were errors, so join them all together as one big error.97 errorStrings := make([]string, 0, len(errorChannel))98 for err := range errorChannel {99 errorStrings = append(errorStrings, err.Error())100 }101 return errors.New(strings.Join(errorStrings, "\n"))102}103var tr = &http.Transport{104 ResponseHeaderTimeout: time.Duration(3 * time.Second),105}106var client = &http.Client{107 Transport: tr,108 Timeout: time.Duration(4 * time.Second),109}110func (c *CouchDB) fetchAndInsertData(accumulator telegraf.Accumulator, host string) error {111 response, error := client.Get(host)112 if error != nil {113 return error114 }115 defer response.Body.Close()116 var stats Stats117 decoder := json.NewDecoder(response.Body)118 decoder.Decode(&stats)119 fields := map[string]interface{}{}120 // CouchDB meta stats:121 c.MapCopy(fields, c.generateFields("couchdb_auth_cache_misses", stats.Couchdb.AuthCacheMisses))122 c.MapCopy(fields, c.generateFields("couchdb_database_writes", stats.Couchdb.DatabaseWrites))123 c.MapCopy(fields, c.generateFields("couchdb_open_databases", stats.Couchdb.OpenDatabases))124 c.MapCopy(fields, c.generateFields("couchdb_auth_cache_hits", stats.Couchdb.AuthCacheHits))125 c.MapCopy(fields, c.generateFields("couchdb_request_time", stats.Couchdb.RequestTime))126 c.MapCopy(fields, c.generateFields("couchdb_database_reads", stats.Couchdb.DatabaseReads))127 c.MapCopy(fields, c.generateFields("couchdb_open_os_files", stats.Couchdb.OpenOsFiles))128 // http request methods stats:129 c.MapCopy(fields, c.generateFields("httpd_request_methods_put", stats.HttpdRequestMethods.Put))130 c.MapCopy(fields, c.generateFields("httpd_request_methods_get", stats.HttpdRequestMethods.Get))131 c.MapCopy(fields, c.generateFields("httpd_request_methods_copy", stats.HttpdRequestMethods.Copy))132 c.MapCopy(fields, c.generateFields("httpd_request_methods_delete", stats.HttpdRequestMethods.Delete))133 c.MapCopy(fields, c.generateFields("httpd_request_methods_post", stats.HttpdRequestMethods.Post))134 c.MapCopy(fields, c.generateFields("httpd_request_methods_head", stats.HttpdRequestMethods.Head))135 // status code stats:136 c.MapCopy(fields, c.generateFields("httpd_status_codes_200", stats.HttpdStatusCodes.Status200))137 c.MapCopy(fields, c.generateFields("httpd_status_codes_201", stats.HttpdStatusCodes.Status201))138 c.MapCopy(fields, c.generateFields("httpd_status_codes_202", stats.HttpdStatusCodes.Status202))139 c.MapCopy(fields, c.generateFields("httpd_status_codes_301", stats.HttpdStatusCodes.Status301))140 c.MapCopy(fields, c.generateFields("httpd_status_codes_304", stats.HttpdStatusCodes.Status304))141 c.MapCopy(fields, c.generateFields("httpd_status_codes_400", stats.HttpdStatusCodes.Status400))142 c.MapCopy(fields, c.generateFields("httpd_status_codes_401", stats.HttpdStatusCodes.Status401))143 c.MapCopy(fields, c.generateFields("httpd_status_codes_403", stats.HttpdStatusCodes.Status403))144 c.MapCopy(fields, c.generateFields("httpd_status_codes_404", stats.HttpdStatusCodes.Status404))145 c.MapCopy(fields, c.generateFields("httpd_status_codes_405", stats.HttpdStatusCodes.Status405))146 c.MapCopy(fields, c.generateFields("httpd_status_codes_409", stats.HttpdStatusCodes.Status409))147 c.MapCopy(fields, c.generateFields("httpd_status_codes_412", stats.HttpdStatusCodes.Status412))148 c.MapCopy(fields, c.generateFields("httpd_status_codes_500", stats.HttpdStatusCodes.Status500))149 // httpd stats:150 c.MapCopy(fields, c.generateFields("httpd_clients_requesting_changes", stats.Httpd.ClientsRequestingChanges))151 c.MapCopy(fields, c.generateFields("httpd_temporary_view_reads", stats.Httpd.TemporaryViewReads))152 c.MapCopy(fields, c.generateFields("httpd_requests", stats.Httpd.Requests))153 c.MapCopy(fields, c.generateFields("httpd_bulk_requests", stats.Httpd.BulkRequests))154 c.MapCopy(fields, c.generateFields("httpd_view_reads", stats.Httpd.ViewReads))155 tags := map[string]string{156 "server": host,157 }158 accumulator.AddFields("couchdb", fields, tags)159 return nil160}161func (*CouchDB) MapCopy(dst, src interface{}) {162 dv, sv := reflect.ValueOf(dst), reflect.ValueOf(src)163 for _, k := range sv.MapKeys() {164 dv.SetMapIndex(k, sv.MapIndex(k))165 }166}167func (*CouchDB) safeCheck(value interface{}) interface{} {168 if value == nil {169 return 0.0170 }171 return value172}173func (c *CouchDB) generateFields(prefix string, obj metaData) map[string]interface{} {174 fields := map[string]interface{}{175 prefix + "_current": c.safeCheck(obj.Current),...
Copy
Using AI Code Generation
1import (2func main() {3 src, err := os.Open("1.go")4 if err != nil {5 log.Fatal(err)6 }7 defer src.Close()8 dst, err := os.Create("2.go")9 if err != nil {10 log.Fatal(err)11 }12 defer dst.Close()13 n, err := io.Copy(dst, src)14 if err != nil {15 log.Fatal(err)16 }17 fmt.Printf("Copied %d bytes.\n", n)18}
Copy
Using AI Code Generation
1import (2func main() {3 srcFile, err := os.Open("src.txt")4 if err != nil {5 fmt.Println(err)6 }7 defer srcFile.Close()8 dstFile, err := os.Create("dst.txt")9 if err != nil {10 fmt.Println(err)11 }12 defer dstFile.Close()13 bytesWritten, err := io.Copy(dstFile, srcFile)14 if err != nil {15 fmt.Println(err)16 }17 fmt.Println("Bytes copied:", bytesWritten)18}
Copy
Using AI Code Generation
1import (2func main() {3 src, err := os.Open("1.go")4 if err != nil {5 fmt.Println("Error while opening source file", err)6 }7 defer src.Close()8 dst, err := os.Create("2.go")9 if err != nil {10 fmt.Println("Error while opening destination file", err)11 }12 defer dst.Close()13 bytes, err := io.Copy(dst, src)14 if err != nil {15 fmt.Println("Error while copying file", err)16 }17 fmt.Printf("Copied %d bytes from source to destination", bytes)18}
Copy
Using AI Code Generation
1import (2func main() {3 src, err := os.Open("1.go")4 if err != nil {5 fmt.Println("Error in opening file")6 }7 defer src.Close()8 dst, err := os.Create("2.go")9 if err != nil {10 fmt.Println("Error in creating file")11 }12 defer dst.Close()13 n, err := io.Copy(dst, src)14 if err != nil {15 fmt.Println("Error in copying the file")16 }17 fmt.Println("Number of bytes copied", n)18}
Copy
Using AI Code Generation
1import (2func main() {3 src, err := os.Open("source.txt")4 if err != nil {5 fmt.Println(err)6 }7 defer src.Close()8 dst, err := os.OpenFile("destination.txt", os.O_WRONLY|os.O_CREATE, 0644)9 if err != nil {10 fmt.Println(err)11 }12 defer dst.Close()13 n, err := io.Copy(dst, src)14 if err != nil {15 fmt.Println(err)16 }17 fmt.Println("Copied", n, "bytes")18}
Copy
Using AI Code Generation
1import (2func main() {3 from, err := os.Open("from.txt")4 if err != nil {5 fmt.Println(err)6 }7 defer from.Close()8 stat, err := from.Stat()9 if err != nil {10 fmt.Println(err)11 }12 to, err := os.OpenFile("to.txt", os.O_RDWR|os.O_CREATE, stat.Mode())13 if err != nil {14 fmt.Println(err)15 }16 defer to.Close()17 _, err = io.Copy(to, from)18 if err != nil {19 fmt.Println(err)20 }21 err = to.Sync()22 if err != nil {23 fmt.Println(err)24 }25 bytes, err := ioutil.ReadFile("to.txt")26 if err != nil {27 fmt.Println(err)28 }29 fmt.Println("Contents of file:", string(bytes))30}
Copy
Using AI Code Generation
1import (2func main() {3 f1, err := os.Open("file1.txt")4 if err != nil {5 fmt.Println(err)6 }7 defer f1.Close()8 f2, err := os.Create("file2.txt")9 if err != nil {10 fmt.Println(err)11 }12 defer f2.Close()13 bytes, err := io.Copy(f2, f1)14 if err != nil {15 fmt.Println(err)16 }17 fmt.Println("Copied", bytes, "bytes.")18}
Copy
Using AI Code Generation
1import (2func main() {3 src, err := os.Open("C:\\Users\\sande\\Desktop\\test.txt")4 if err != nil {5 log.Fatal(err)6 }7 defer src.Close()8 dst, err := os.Create("C:\\Users\\sande\\Desktop\\test1.txt")9 if err != nil {10 log.Fatal(err)11 }12 defer dst.Close()13 nBytes, err := io.Copy(dst, src)14 if err != nil {15 log.Fatal(err)16 }17 fmt.Printf("Copied %d bytes.", nBytes)18}
Copy
Using AI Code Generation
1import (2func main() {3 data, err := ioutil.ReadFile("1.go")4 if err != nil {5 fmt.Println(err)6 }7 err = ioutil.WriteFile("2.go", data, 0644)8 if err != nil {9 fmt.Println(err)10 }11 err = os.Link("2.go", "3.go")12 if err != nil {13 fmt.Println(err)14 }15 err = os.Remove("3.go")16 if err != nil {17 fmt.Println(err)18 }19}
Copy
Using AI Code Generation
1import (2func main() {3 src, err := os.Open("C:/Users/HP/Desktop/GoLang/Assignment 1/1.txt")4 if err != nil {5 fmt.Println(err)6 }7 defer src.Close()8 dst, err := os.Create("C:/Users/HP/Desktop/GoLang/Assignment 1/2.txt")9 if err != nil {10 fmt.Println(err)11 }12 defer dst.Close()13 _, err = io.Copy(dst, src)14 if err != nil {15 fmt.Println(err)16 }17 fmt.Println("File copied successfully")18}
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!