mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
132 lines
3.4 KiB
Go
132 lines
3.4 KiB
Go
//go:build !ignore_autogenerated
|
|
// +build !ignore_autogenerated
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// Code generated by deepcopy-gen. DO NOT EDIT.
|
|
|
|
package template
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Position) DeepCopyInto(out *Position) {
|
|
*out = *in
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Position.
|
|
func (in *Position) DeepCopy() *Position {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Position)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *QueryTemplate) DeepCopyInto(out *QueryTemplate) {
|
|
*out = *in
|
|
if in.Variables != nil {
|
|
in, out := &in.Variables, &out.Variables
|
|
*out = make([]TemplateVariable, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
if in.Targets != nil {
|
|
in, out := &in.Targets, &out.Targets
|
|
*out = make([]Target, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryTemplate.
|
|
func (in *QueryTemplate) DeepCopy() *QueryTemplate {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(QueryTemplate)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *Target) DeepCopyInto(out *Target) {
|
|
*out = *in
|
|
if in.Variables != nil {
|
|
in, out := &in.Variables, &out.Variables
|
|
*out = make(map[string][]VariableReplacement, len(*in))
|
|
for key, val := range *in {
|
|
var outVal []VariableReplacement
|
|
if val == nil {
|
|
(*out)[key] = nil
|
|
} else {
|
|
in, out := &val, &outVal
|
|
*out = make([]VariableReplacement, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
(*out)[key] = outVal
|
|
}
|
|
}
|
|
in.Properties.DeepCopyInto(&out.Properties)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
|
|
func (in *Target) DeepCopy() *Target {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(Target)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TemplateVariable) DeepCopyInto(out *TemplateVariable) {
|
|
*out = *in
|
|
if in.DefaultValues != nil {
|
|
in, out := &in.DefaultValues, &out.DefaultValues
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
in.ValueListDefinition.DeepCopyInto(&out.ValueListDefinition)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateVariable.
|
|
func (in *TemplateVariable) DeepCopy() *TemplateVariable {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TemplateVariable)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *VariableReplacement) DeepCopyInto(out *VariableReplacement) {
|
|
*out = *in
|
|
if in.Position != nil {
|
|
in, out := &in.Position, &out.Position
|
|
*out = new(Position)
|
|
**out = **in
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VariableReplacement.
|
|
func (in *VariableReplacement) DeepCopy() *VariableReplacement {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(VariableReplacement)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|