1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 04:49:37 +00:00

generate code

This commit is contained in:
Aiwantaozi 2019-06-10 11:10:41 +08:00 committed by Alena Prokharchyk
parent be1c347b32
commit 87e5761cad
5 changed files with 55 additions and 11 deletions

View File

@ -3413,6 +3413,22 @@ func (in *GroupMemberList) DeepCopyObject() runtime.Object {
return nil
}
// 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
return
}
// 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 *HealthCheck) DeepCopyInto(out *HealthCheck) {
*out = *in
@ -5360,22 +5376,22 @@ func (in *Notification) DeepCopyInto(out *Notification) {
if in.SlackConfig != nil {
in, out := &in.SlackConfig, &out.SlackConfig
*out = new(SlackConfig)
**out = **in
(*in).DeepCopyInto(*out)
}
if in.PagerdutyConfig != nil {
in, out := &in.PagerdutyConfig, &out.PagerdutyConfig
*out = new(PagerdutyConfig)
**out = **in
(*in).DeepCopyInto(*out)
}
if in.WebhookConfig != nil {
in, out := &in.WebhookConfig, &out.WebhookConfig
*out = new(WebhookConfig)
**out = **in
(*in).DeepCopyInto(*out)
}
if in.WechatConfig != nil {
in, out := &in.WechatConfig, &out.WechatConfig
*out = new(WechatConfig)
**out = **in
(*in).DeepCopyInto(*out)
}
return
}
@ -5463,22 +5479,22 @@ func (in *NotifierSpec) DeepCopyInto(out *NotifierSpec) {
if in.SlackConfig != nil {
in, out := &in.SlackConfig, &out.SlackConfig
*out = new(SlackConfig)
**out = **in
(*in).DeepCopyInto(*out)
}
if in.PagerdutyConfig != nil {
in, out := &in.PagerdutyConfig, &out.PagerdutyConfig
*out = new(PagerdutyConfig)
**out = **in
(*in).DeepCopyInto(*out)
}
if in.WebhookConfig != nil {
in, out := &in.WebhookConfig, &out.WebhookConfig
*out = new(WebhookConfig)
**out = **in
(*in).DeepCopyInto(*out)
}
if in.WechatConfig != nil {
in, out := &in.WechatConfig, &out.WechatConfig
*out = new(WechatConfig)
**out = **in
(*in).DeepCopyInto(*out)
}
return
}
@ -5608,6 +5624,11 @@ func (in *OpenstackCloudProvider) DeepCopy() *OpenstackCloudProvider {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PagerdutyConfig) DeepCopyInto(out *PagerdutyConfig) {
*out = *in
if in.HTTPClientConfig != nil {
in, out := &in.HTTPClientConfig, &out.HTTPClientConfig
*out = new(HTTPClientConfig)
**out = **in
}
return
}
@ -7778,6 +7799,11 @@ func (in *SettingList) DeepCopyObject() runtime.Object {
// 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.HTTPClientConfig != nil {
in, out := &in.HTTPClientConfig, &out.HTTPClientConfig
*out = new(HTTPClientConfig)
**out = **in
}
return
}
@ -8741,6 +8767,11 @@ func (in *WeaveNetworkProvider) DeepCopy() *WeaveNetworkProvider {
// 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.HTTPClientConfig != nil {
in, out := &in.HTTPClientConfig, &out.HTTPClientConfig
*out = new(HTTPClientConfig)
**out = **in
}
return
}
@ -8757,6 +8788,11 @@ func (in *WebhookConfig) DeepCopy() *WebhookConfig {
// 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.HTTPClientConfig != nil {
in, out := &in.HTTPClientConfig, &out.HTTPClientConfig
*out = new(HTTPClientConfig)
**out = **in
}
return
}

View File

@ -2,9 +2,11 @@ package client
const (
PagerdutyConfigType = "pagerdutyConfig"
PagerdutyConfigFieldProxyURL = "proxyUrl"
PagerdutyConfigFieldServiceKey = "serviceKey"
)
type PagerdutyConfig struct {
ProxyURL string `json:"proxyUrl,omitempty" yaml:"proxyUrl,omitempty"`
ServiceKey string `json:"serviceKey,omitempty" yaml:"serviceKey,omitempty"`
}

View File

@ -3,10 +3,12 @@ package client
const (
SlackConfigType = "slackConfig"
SlackConfigFieldDefaultRecipient = "defaultRecipient"
SlackConfigFieldProxyURL = "proxyUrl"
SlackConfigFieldURL = "url"
)
type SlackConfig struct {
DefaultRecipient string `json:"defaultRecipient,omitempty" yaml:"defaultRecipient,omitempty"`
ProxyURL string `json:"proxyUrl,omitempty" yaml:"proxyUrl,omitempty"`
URL string `json:"url,omitempty" yaml:"url,omitempty"`
}

View File

@ -1,10 +1,12 @@
package client
const (
WebhookConfigType = "webhookConfig"
WebhookConfigFieldURL = "url"
WebhookConfigType = "webhookConfig"
WebhookConfigFieldProxyURL = "proxyUrl"
WebhookConfigFieldURL = "url"
)
type WebhookConfig struct {
URL string `json:"url,omitempty" yaml:"url,omitempty"`
ProxyURL string `json:"proxyUrl,omitempty" yaml:"proxyUrl,omitempty"`
URL string `json:"url,omitempty" yaml:"url,omitempty"`
}

View File

@ -5,6 +5,7 @@ const (
WechatConfigFieldAgent = "agent"
WechatConfigFieldCorp = "corp"
WechatConfigFieldDefaultRecipient = "defaultRecipient"
WechatConfigFieldProxyURL = "proxyUrl"
WechatConfigFieldRecipientType = "recipientType"
WechatConfigFieldSecret = "secret"
)
@ -13,6 +14,7 @@ type WechatConfig struct {
Agent string `json:"agent,omitempty" yaml:"agent,omitempty"`
Corp string `json:"corp,omitempty" yaml:"corp,omitempty"`
DefaultRecipient string `json:"defaultRecipient,omitempty" yaml:"defaultRecipient,omitempty"`
ProxyURL string `json:"proxyUrl,omitempty" yaml:"proxyUrl,omitempty"`
RecipientType string `json:"recipientType,omitempty" yaml:"recipientType,omitempty"`
Secret string `json:"secret,omitempty" yaml:"secret,omitempty"`
}