github.com/verrazzano/verrazzano@v1.7.0/tools/vz/pkg/analysis/internal/util/cluster/rancher/common.go (about)

     1  // Copyright (c) 2023, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  package rancher
     5  
     6  import (
     7  	corev1 "k8s.io/api/core/v1"
     8  )
     9  
    10  type cattleStatus struct {
    11  	Conditions []cattleCondition `json:"conditions,omitempty"`
    12  }
    13  type cattleCondition struct {
    14  	Status  corev1.ConditionStatus `json:"status"`
    15  	Type    string                 `json:"type"`
    16  	Reason  string                 `json:"reason,omitempty"`
    17  	Message string                 `json:"message,omitempty"`
    18  }