1
0
mirror of https://github.com/rancher/types.git synced 2025-08-29 09:02:45 +00:00

generated changes

This commit is contained in:
Daishan Peng 2018-02-15 15:59:15 -07:00 committed by Darren Shepherd
parent 7932d4fcec
commit 7f49e582af
3 changed files with 50 additions and 3 deletions

View File

@ -21,6 +21,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
in.(*App).DeepCopyInto(out.(*App))
return nil
}, InType: reflect.TypeOf(&App{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AppCondition).DeepCopyInto(out.(*AppCondition))
return nil
}, InType: reflect.TypeOf(&AppCondition{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AppList).DeepCopyInto(out.(*AppList))
return nil
@ -166,6 +170,22 @@ func (in *App) DeepCopyObject() runtime.Object {
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AppCondition) DeepCopyInto(out *AppCondition) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppCondition.
func (in *AppCondition) DeepCopy() *AppCondition {
if in == nil {
return nil
}
out := new(AppCondition)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AppList) DeepCopyInto(out *AppList) {
*out = *in
@ -250,6 +270,11 @@ func (in *AppStatus) DeepCopyInto(out *AppStatus) {
*out = make([]ReleaseInfo, len(*in))
copy(*out, *in)
}
if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions
*out = make([]AppCondition, len(*in))
copy(*out, *in)
}
return
}

View File

@ -0,0 +1,20 @@
package client
const (
AppConditionType = "appCondition"
AppConditionFieldLastTransitionTime = "lastTransitionTime"
AppConditionFieldLastUpdateTime = "lastUpdateTime"
AppConditionFieldMessage = "message"
AppConditionFieldReason = "reason"
AppConditionFieldStatus = "status"
AppConditionFieldType = "type"
)
type AppCondition struct {
LastTransitionTime string `json:"lastTransitionTime,omitempty"`
LastUpdateTime string `json:"lastUpdateTime,omitempty"`
Message string `json:"message,omitempty"`
Reason string `json:"reason,omitempty"`
Status string `json:"status,omitempty"`
Type string `json:"type,omitempty"`
}

View File

@ -1,10 +1,12 @@
package client
const (
AppStatusType = "appStatus"
AppStatusFieldReleases = "releases"
AppStatusType = "appStatus"
AppStatusFieldConditions = "conditions"
AppStatusFieldReleases = "releases"
)
type AppStatus struct {
Releases []ReleaseInfo `json:"releases,omitempty"`
Conditions []AppCondition `json:"conditions,omitempty"`
Releases []ReleaseInfo `json:"releases,omitempty"`
}