github.com/rancher/types@v0.0.0-20220328215343-4370ff10ecd5/apis/management.cattle.io/v3/compose_types.go (about) 1 package v3 2 3 import ( 4 "github.com/rancher/norman/condition" 5 v1 "k8s.io/api/core/v1" 6 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 7 ) 8 9 type ComposeConfig struct { 10 metav1.TypeMeta `json:",inline"` 11 // Standard object’s metadata. More info: 12 // https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#metadata 13 metav1.ObjectMeta `json:"metadata,omitempty"` 14 // Specification of the desired behavior of the the cluster. More info: 15 // https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#spec-and-status 16 Spec ComposeSpec `json:"spec,omitempty"` 17 Status ComposeStatus `json:"status,omitempty"` 18 } 19 20 type ComposeSpec struct { 21 RancherCompose string `json:"rancherCompose,omitempty"` 22 } 23 24 type ComposeStatus struct { 25 Conditions []ComposeCondition `json:"conditions,omitempty"` 26 } 27 28 var ( 29 ComposeConditionExecuted condition.Cond = "Executed" 30 ) 31 32 type ComposeCondition struct { 33 // Type of cluster condition. 34 Type string `json:"type"` 35 // Status of the condition, one of True, False, Unknown. 36 Status v1.ConditionStatus `json:"status"` 37 // The last time this condition was updated. 38 LastUpdateTime string `json:"lastUpdateTime,omitempty"` 39 // Last time the condition transitioned from one status to another. 40 LastTransitionTime string `json:"lastTransitionTime,omitempty"` 41 // The reason for the condition's last transition. 42 Reason string `json:"reason,omitempty"` 43 // Human-readable message indicating details about last transition 44 Message string `json:"message,omitempty"` 45 }