Files
kubesphere/pkg/apis/notification/v2beta1/zz_generated.deepcopy.go
2021-04-08 17:05:04 +08:00

1225 lines
33 KiB
Go
Generated

// +build !ignore_autogenerated
/*
Copyright 2020 The KubeSphere Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by controller-gen. DO NOT EDIT.
package v2beta1
import (
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *BasicAuth) DeepCopyInto(out *BasicAuth) {
*out = *in
if in.Password != nil {
in, out := &in.Password, &out.Password
*out = new(SecretKeySelector)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicAuth.
func (in *BasicAuth) DeepCopy() *BasicAuth {
if in == nil {
return nil
}
out := new(BasicAuth)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ClientCertificate) DeepCopyInto(out *ClientCertificate) {
*out = *in
if in.Cert != nil {
in, out := &in.Cert, &out.Cert
*out = new(SecretKeySelector)
**out = **in
}
if in.Key != nil {
in, out := &in.Key, &out.Key
*out = new(SecretKeySelector)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientCertificate.
func (in *ClientCertificate) DeepCopy() *ClientCertificate {
if in == nil {
return nil
}
out := new(ClientCertificate)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Config) DeepCopyInto(out *Config) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (in *Config) DeepCopy() *Config {
if in == nil {
return nil
}
out := new(Config)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *Config) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ConfigList) DeepCopyInto(out *ConfigList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Config, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigList.
func (in *ConfigList) DeepCopy() *ConfigList {
if in == nil {
return nil
}
out := new(ConfigList)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *ConfigList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec) {
*out = *in
if in.DingTalk != nil {
in, out := &in.DingTalk, &out.DingTalk
*out = new(DingTalkConfig)
(*in).DeepCopyInto(*out)
}
if in.Email != nil {
in, out := &in.Email, &out.Email
*out = new(EmailConfig)
(*in).DeepCopyInto(*out)
}
if in.Slack != nil {
in, out := &in.Slack, &out.Slack
*out = new(SlackConfig)
(*in).DeepCopyInto(*out)
}
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
*out = new(WebhookConfig)
(*in).DeepCopyInto(*out)
}
if in.Wechat != nil {
in, out := &in.Wechat, &out.Wechat
*out = new(WechatConfig)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSpec.
func (in *ConfigSpec) DeepCopy() *ConfigSpec {
if in == nil {
return nil
}
out := new(ConfigSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigStatus.
func (in *ConfigStatus) DeepCopy() *ConfigStatus {
if in == nil {
return nil
}
out := new(ConfigStatus)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DingTalkApplicationConfig) DeepCopyInto(out *DingTalkApplicationConfig) {
*out = *in
if in.AppKey != nil {
in, out := &in.AppKey, &out.AppKey
*out = new(SecretKeySelector)
**out = **in
}
if in.AppSecret != nil {
in, out := &in.AppSecret, &out.AppSecret
*out = new(SecretKeySelector)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkApplicationConfig.
func (in *DingTalkApplicationConfig) DeepCopy() *DingTalkApplicationConfig {
if in == nil {
return nil
}
out := new(DingTalkApplicationConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DingTalkChatBot) DeepCopyInto(out *DingTalkChatBot) {
*out = *in
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
*out = new(SecretKeySelector)
**out = **in
}
if in.Keywords != nil {
in, out := &in.Keywords, &out.Keywords
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.Secret != nil {
in, out := &in.Secret, &out.Secret
*out = new(SecretKeySelector)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkChatBot.
func (in *DingTalkChatBot) DeepCopy() *DingTalkChatBot {
if in == nil {
return nil
}
out := new(DingTalkChatBot)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DingTalkConfig) DeepCopyInto(out *DingTalkConfig) {
*out = *in
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.Conversation != nil {
in, out := &in.Conversation, &out.Conversation
*out = new(DingTalkApplicationConfig)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkConfig.
func (in *DingTalkConfig) DeepCopy() *DingTalkConfig {
if in == nil {
return nil
}
out := new(DingTalkConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DingTalkConversation) DeepCopyInto(out *DingTalkConversation) {
*out = *in
if in.ChatIDs != nil {
in, out := &in.ChatIDs, &out.ChatIDs
*out = make([]string, len(*in))
copy(*out, *in)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkConversation.
func (in *DingTalkConversation) DeepCopy() *DingTalkConversation {
if in == nil {
return nil
}
out := new(DingTalkConversation)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DingTalkOptions) DeepCopyInto(out *DingTalkOptions) {
*out = *in
if in.NotificationTimeout != nil {
in, out := &in.NotificationTimeout, &out.NotificationTimeout
*out = new(int32)
**out = **in
}
if in.ChatBotThrottle != nil {
in, out := &in.ChatBotThrottle, &out.ChatBotThrottle
*out = new(Throttle)
**out = **in
}
if in.ConversationThrottle != nil {
in, out := &in.ConversationThrottle, &out.ConversationThrottle
*out = new(Throttle)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkOptions.
func (in *DingTalkOptions) DeepCopy() *DingTalkOptions {
if in == nil {
return nil
}
out := new(DingTalkOptions)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DingTalkReceiver) DeepCopyInto(out *DingTalkReceiver) {
*out = *in
if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled
*out = new(bool)
**out = **in
}
if in.DingTalkConfigSelector != nil {
in, out := &in.DingTalkConfigSelector, &out.DingTalkConfigSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.AlertSelector != nil {
in, out := &in.AlertSelector, &out.AlertSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.ChatBot != nil {
in, out := &in.ChatBot, &out.ChatBot
*out = new(DingTalkChatBot)
(*in).DeepCopyInto(*out)
}
if in.Conversation != nil {
in, out := &in.Conversation, &out.Conversation
*out = new(DingTalkConversation)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkReceiver.
func (in *DingTalkReceiver) DeepCopy() *DingTalkReceiver {
if in == nil {
return nil
}
out := new(DingTalkReceiver)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EmailConfig) DeepCopyInto(out *EmailConfig) {
*out = *in
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
out.SmartHost = in.SmartHost
if in.Hello != nil {
in, out := &in.Hello, &out.Hello
*out = new(string)
**out = **in
}
if in.AuthUsername != nil {
in, out := &in.AuthUsername, &out.AuthUsername
*out = new(string)
**out = **in
}
if in.AuthIdentify != nil {
in, out := &in.AuthIdentify, &out.AuthIdentify
*out = new(string)
**out = **in
}
if in.AuthPassword != nil {
in, out := &in.AuthPassword, &out.AuthPassword
*out = new(SecretKeySelector)
**out = **in
}
if in.AuthSecret != nil {
in, out := &in.AuthSecret, &out.AuthSecret
*out = new(SecretKeySelector)
**out = **in
}
if in.RequireTLS != nil {
in, out := &in.RequireTLS, &out.RequireTLS
*out = new(bool)
**out = **in
}
if in.TLS != nil {
in, out := &in.TLS, &out.TLS
*out = new(TLSConfig)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailConfig.
func (in *EmailConfig) DeepCopy() *EmailConfig {
if in == nil {
return nil
}
out := new(EmailConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EmailOptions) DeepCopyInto(out *EmailOptions) {
*out = *in
if in.NotificationTimeout != nil {
in, out := &in.NotificationTimeout, &out.NotificationTimeout
*out = new(int32)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailOptions.
func (in *EmailOptions) DeepCopy() *EmailOptions {
if in == nil {
return nil
}
out := new(EmailOptions)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EmailReceiver) DeepCopyInto(out *EmailReceiver) {
*out = *in
if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled
*out = new(bool)
**out = **in
}
if in.To != nil {
in, out := &in.To, &out.To
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.EmailConfigSelector != nil {
in, out := &in.EmailConfigSelector, &out.EmailConfigSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.AlertSelector != nil {
in, out := &in.AlertSelector, &out.AlertSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailReceiver.
func (in *EmailReceiver) DeepCopy() *EmailReceiver {
if in == nil {
return nil
}
out := new(EmailReceiver)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *GlobalOptions) DeepCopyInto(out *GlobalOptions) {
*out = *in
if in.TemplateFiles != nil {
in, out := &in.TemplateFiles, &out.TemplateFiles
*out = make([]string, len(*in))
copy(*out, *in)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalOptions.
func (in *GlobalOptions) DeepCopy() *GlobalOptions {
if in == nil {
return nil
}
out := new(GlobalOptions)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *HTTPClientConfig) DeepCopyInto(out *HTTPClientConfig) {
*out = *in
if in.BasicAuth != nil {
in, out := &in.BasicAuth, &out.BasicAuth
*out = new(BasicAuth)
(*in).DeepCopyInto(*out)
}
if in.BearerToken != nil {
in, out := &in.BearerToken, &out.BearerToken
*out = new(SecretKeySelector)
**out = **in
}
if in.TLSConfig != nil {
in, out := &in.TLSConfig, &out.TLSConfig
*out = new(TLSConfig)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPClientConfig.
func (in *HTTPClientConfig) DeepCopy() *HTTPClientConfig {
if in == nil {
return nil
}
out := new(HTTPClientConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *HostPort) DeepCopyInto(out *HostPort) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPort.
func (in *HostPort) DeepCopy() *HostPort {
if in == nil {
return nil
}
out := new(HostPort)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NotificationManager) DeepCopyInto(out *NotificationManager) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationManager.
func (in *NotificationManager) DeepCopy() *NotificationManager {
if in == nil {
return nil
}
out := new(NotificationManager)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *NotificationManager) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NotificationManagerList) DeepCopyInto(out *NotificationManagerList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]NotificationManager, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationManagerList.
func (in *NotificationManagerList) DeepCopy() *NotificationManagerList {
if in == nil {
return nil
}
out := new(NotificationManagerList)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *NotificationManagerList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NotificationManagerSpec) DeepCopyInto(out *NotificationManagerSpec) {
*out = *in
in.Resources.DeepCopyInto(&out.Resources)
if in.Image != nil {
in, out := &in.Image, &out.Image
*out = new(string)
**out = **in
}
if in.ImagePullPolicy != nil {
in, out := &in.ImagePullPolicy, &out.ImagePullPolicy
*out = new(v1.PullPolicy)
**out = **in
}
if in.Replicas != nil {
in, out := &in.Replicas, &out.Replicas
*out = new(int32)
**out = **in
}
if in.NodeSelector != nil {
in, out := &in.NodeSelector, &out.NodeSelector
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.Affinity != nil {
in, out := &in.Affinity, &out.Affinity
*out = new(v1.Affinity)
(*in).DeepCopyInto(*out)
}
if in.Tolerations != nil {
in, out := &in.Tolerations, &out.Tolerations
*out = make([]v1.Toleration, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.DefaultConfigSelector != nil {
in, out := &in.DefaultConfigSelector, &out.DefaultConfigSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.Receivers != nil {
in, out := &in.Receivers, &out.Receivers
*out = new(ReceiversSpec)
(*in).DeepCopyInto(*out)
}
if in.Volumes != nil {
in, out := &in.Volumes, &out.Volumes
*out = make([]v1.Volume, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.VolumeMounts != nil {
in, out := &in.VolumeMounts, &out.VolumeMounts
*out = make([]v1.VolumeMount, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.Args != nil {
in, out := &in.Args, &out.Args
*out = make([]string, len(*in))
copy(*out, *in)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationManagerSpec.
func (in *NotificationManagerSpec) DeepCopy() *NotificationManagerSpec {
if in == nil {
return nil
}
out := new(NotificationManagerSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NotificationManagerStatus) DeepCopyInto(out *NotificationManagerStatus) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationManagerStatus.
func (in *NotificationManagerStatus) DeepCopy() *NotificationManagerStatus {
if in == nil {
return nil
}
out := new(NotificationManagerStatus)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Options) DeepCopyInto(out *Options) {
*out = *in
if in.Global != nil {
in, out := &in.Global, &out.Global
*out = new(GlobalOptions)
(*in).DeepCopyInto(*out)
}
if in.Email != nil {
in, out := &in.Email, &out.Email
*out = new(EmailOptions)
(*in).DeepCopyInto(*out)
}
if in.Wechat != nil {
in, out := &in.Wechat, &out.Wechat
*out = new(WechatOptions)
(*in).DeepCopyInto(*out)
}
if in.Slack != nil {
in, out := &in.Slack, &out.Slack
*out = new(SlackOptions)
(*in).DeepCopyInto(*out)
}
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
*out = new(WebhookOptions)
(*in).DeepCopyInto(*out)
}
if in.DingTalk != nil {
in, out := &in.DingTalk, &out.DingTalk
*out = new(DingTalkOptions)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Options.
func (in *Options) DeepCopy() *Options {
if in == nil {
return nil
}
out := new(Options)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Receiver) DeepCopyInto(out *Receiver) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Receiver.
func (in *Receiver) DeepCopy() *Receiver {
if in == nil {
return nil
}
out := new(Receiver)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *Receiver) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ReceiverList) DeepCopyInto(out *ReceiverList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Receiver, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverList.
func (in *ReceiverList) DeepCopy() *ReceiverList {
if in == nil {
return nil
}
out := new(ReceiverList)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *ReceiverList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ReceiverSpec) DeepCopyInto(out *ReceiverSpec) {
*out = *in
if in.DingTalk != nil {
in, out := &in.DingTalk, &out.DingTalk
*out = new(DingTalkReceiver)
(*in).DeepCopyInto(*out)
}
if in.Email != nil {
in, out := &in.Email, &out.Email
*out = new(EmailReceiver)
(*in).DeepCopyInto(*out)
}
if in.Slack != nil {
in, out := &in.Slack, &out.Slack
*out = new(SlackReceiver)
(*in).DeepCopyInto(*out)
}
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
*out = new(WebhookReceiver)
(*in).DeepCopyInto(*out)
}
if in.Wechat != nil {
in, out := &in.Wechat, &out.Wechat
*out = new(WechatReceiver)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverSpec.
func (in *ReceiverSpec) DeepCopy() *ReceiverSpec {
if in == nil {
return nil
}
out := new(ReceiverSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ReceiverStatus) DeepCopyInto(out *ReceiverStatus) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverStatus.
func (in *ReceiverStatus) DeepCopy() *ReceiverStatus {
if in == nil {
return nil
}
out := new(ReceiverStatus)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ReceiversSpec) DeepCopyInto(out *ReceiversSpec) {
*out = *in
if in.GlobalReceiverSelector != nil {
in, out := &in.GlobalReceiverSelector, &out.GlobalReceiverSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.TenantReceiverSelector != nil {
in, out := &in.TenantReceiverSelector, &out.TenantReceiverSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.Options != nil {
in, out := &in.Options, &out.Options
*out = new(Options)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiversSpec.
func (in *ReceiversSpec) DeepCopy() *ReceiversSpec {
if in == nil {
return nil
}
out := new(ReceiversSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretKeySelector.
func (in *SecretKeySelector) DeepCopy() *SecretKeySelector {
if in == nil {
return nil
}
out := new(SecretKeySelector)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServiceReference) DeepCopyInto(out *ServiceReference) {
*out = *in
if in.Path != nil {
in, out := &in.Path, &out.Path
*out = new(string)
**out = **in
}
if in.Port != nil {
in, out := &in.Port, &out.Port
*out = new(int32)
**out = **in
}
if in.Scheme != nil {
in, out := &in.Scheme, &out.Scheme
*out = new(string)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.
func (in *ServiceReference) DeepCopy() *ServiceReference {
if in == nil {
return nil
}
out := new(ServiceReference)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *SlackConfig) DeepCopyInto(out *SlackConfig) {
*out = *in
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.SlackTokenSecret != nil {
in, out := &in.SlackTokenSecret, &out.SlackTokenSecret
*out = new(SecretKeySelector)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackConfig.
func (in *SlackConfig) DeepCopy() *SlackConfig {
if in == nil {
return nil
}
out := new(SlackConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *SlackOptions) DeepCopyInto(out *SlackOptions) {
*out = *in
if in.NotificationTimeout != nil {
in, out := &in.NotificationTimeout, &out.NotificationTimeout
*out = new(int32)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackOptions.
func (in *SlackOptions) DeepCopy() *SlackOptions {
if in == nil {
return nil
}
out := new(SlackOptions)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *SlackReceiver) DeepCopyInto(out *SlackReceiver) {
*out = *in
if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled
*out = new(bool)
**out = **in
}
if in.SlackConfigSelector != nil {
in, out := &in.SlackConfigSelector, &out.SlackConfigSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.AlertSelector != nil {
in, out := &in.AlertSelector, &out.AlertSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.Channels != nil {
in, out := &in.Channels, &out.Channels
*out = make([]string, len(*in))
copy(*out, *in)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackReceiver.
func (in *SlackReceiver) DeepCopy() *SlackReceiver {
if in == nil {
return nil
}
out := new(SlackReceiver)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TLSConfig) DeepCopyInto(out *TLSConfig) {
*out = *in
if in.RootCA != nil {
in, out := &in.RootCA, &out.RootCA
*out = new(SecretKeySelector)
**out = **in
}
if in.ClientCertificate != nil {
in, out := &in.ClientCertificate, &out.ClientCertificate
*out = new(ClientCertificate)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig.
func (in *TLSConfig) DeepCopy() *TLSConfig {
if in == nil {
return nil
}
out := new(TLSConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Throttle) DeepCopyInto(out *Throttle) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Throttle.
func (in *Throttle) DeepCopy() *Throttle {
if in == nil {
return nil
}
out := new(Throttle)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *WebhookConfig) DeepCopyInto(out *WebhookConfig) {
*out = *in
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookConfig.
func (in *WebhookConfig) DeepCopy() *WebhookConfig {
if in == nil {
return nil
}
out := new(WebhookConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *WebhookOptions) DeepCopyInto(out *WebhookOptions) {
*out = *in
if in.NotificationTimeout != nil {
in, out := &in.NotificationTimeout, &out.NotificationTimeout
*out = new(int32)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookOptions.
func (in *WebhookOptions) DeepCopy() *WebhookOptions {
if in == nil {
return nil
}
out := new(WebhookOptions)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *WebhookReceiver) DeepCopyInto(out *WebhookReceiver) {
*out = *in
if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled
*out = new(bool)
**out = **in
}
if in.WebhookConfigSelector != nil {
in, out := &in.WebhookConfigSelector, &out.WebhookConfigSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.AlertSelector != nil {
in, out := &in.AlertSelector, &out.AlertSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.URL != nil {
in, out := &in.URL, &out.URL
*out = new(string)
**out = **in
}
if in.Service != nil {
in, out := &in.Service, &out.Service
*out = new(ServiceReference)
(*in).DeepCopyInto(*out)
}
if in.HTTPConfig != nil {
in, out := &in.HTTPConfig, &out.HTTPConfig
*out = new(HTTPClientConfig)
(*in).DeepCopyInto(*out)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookReceiver.
func (in *WebhookReceiver) DeepCopy() *WebhookReceiver {
if in == nil {
return nil
}
out := new(WebhookReceiver)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *WechatConfig) DeepCopyInto(out *WechatConfig) {
*out = *in
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.WechatApiSecret != nil {
in, out := &in.WechatApiSecret, &out.WechatApiSecret
*out = new(SecretKeySelector)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WechatConfig.
func (in *WechatConfig) DeepCopy() *WechatConfig {
if in == nil {
return nil
}
out := new(WechatConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *WechatOptions) DeepCopyInto(out *WechatOptions) {
*out = *in
if in.NotificationTimeout != nil {
in, out := &in.NotificationTimeout, &out.NotificationTimeout
*out = new(int32)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WechatOptions.
func (in *WechatOptions) DeepCopy() *WechatOptions {
if in == nil {
return nil
}
out := new(WechatOptions)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *WechatReceiver) DeepCopyInto(out *WechatReceiver) {
*out = *in
if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled
*out = new(bool)
**out = **in
}
if in.WechatConfigSelector != nil {
in, out := &in.WechatConfigSelector, &out.WechatConfigSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.AlertSelector != nil {
in, out := &in.AlertSelector, &out.AlertSelector
*out = new(metav1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.ToUser != nil {
in, out := &in.ToUser, &out.ToUser
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.ToParty != nil {
in, out := &in.ToParty, &out.ToParty
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.ToTag != nil {
in, out := &in.ToTag, &out.ToTag
*out = make([]string, len(*in))
copy(*out, *in)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WechatReceiver.
func (in *WechatReceiver) DeepCopy() *WechatReceiver {
if in == nil {
return nil
}
out := new(WechatReceiver)
in.DeepCopyInto(out)
return out
}