Documentation ¶
Index ¶
- Constants
- Variables
- func ColorConditionStatus(condStatus string) string
- func ConditionStatus(cond *metav1.Condition) string
- func EmptyString(str string) string
- func ExportResource(obj Object, format OutputFormat, scheme *runtime.Scheme) (string, error)
- func FindCondition(conditions []metav1.Condition, ct string) *metav1.Condition
- func Labels(labelMap map[string]string) string
- func OutputResource(obj Object, format OutputFormat, scheme *runtime.Scheme) (string, error)
- func OutputResources(objList []Object, format OutputFormat, scheme *runtime.Scheme) (string, error)
- func ResourceDiff(left, right Object, scheme *runtime.Scheme) (string, bool, error)
- func ResourceStatus(name string, condition *metav1.Condition) string
- func Sboldf(format string, a ...interface{}) string
- func Serrorf(format string, a ...interface{}) string
- func Sfaintf(format string, a ...interface{}) string
- func Sinfof(format string, a ...interface{}) string
- func SortByNamespaceAndName(s interface{})
- func Ssuccessf(format string, a ...interface{}) string
- func Swarnf(format string, a ...interface{}) string
- func TimestampSince(timestamp metav1.Time, now time.Time) string
- type Object
- type OutputFormat
Constants ¶
View Source
const ( OutputFormatJson = "json" OutputFormatYaml = "yaml" OutputFormatYml = "yml" )
Variables ¶
Functions ¶
func ColorConditionStatus ¶ added in v0.8.0
func ConditionStatus ¶
func EmptyString ¶
func ExportResource ¶
func OutputResource ¶
func OutputResources ¶ added in v0.6.0
func ResourceDiff ¶
ResourceDiff returns the results of diffing left and right as an pretty printed string. It will display all the lines of both the sequences that are being compared. When the left is different from right it will prepend a " - |" before the line. When the right is different from left it will prepend a " + |" before the line. When the right and left are equal it will prepend a " |" before the line.
func SortByNamespaceAndName ¶
func SortByNamespaceAndName(s interface{})
Types ¶
type Object ¶
type Object interface { client.Object metav1.ObjectMetaAccessor schema.ObjectKind }
type OutputFormat ¶
type OutputFormat string
Click to show internal directories.
Click to hide internal directories.