Documentation ¶
Index ¶
- Variables
- func Age(t *metav1.Time, c clockwork.Clock) string
- func AutoStepName(stepName string) string
- func CheckParamDefaultValue(param string, paramSpec []v1beta1.ParamSpec) string
- func ColorStatus(status string) string
- func Condition(c v1beta1.Conditions) string
- func DecorateAttr(attrString, message string) string
- func Duration(t1, t2 *metav1.Time) string
- func FormatAddress(addressURL string) string
- func FormatDesc(desc string) string
- func Param(params []v1beta1.Param, paramSpec []v1beta1.ParamSpec) string
- func Result(value string) string
- func TaskConditions(conditions []v1beta1.PipelineTaskCondition) string
- func Timeout(t *metav1.Duration) string
- func Workspace(ws v1beta1.WorkspaceBinding) string
- type Color
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AutoStepName ¶ added in v0.7.0
AutoStepName when our stepName is empty return a generated name as generated on pipeLine
func CheckParamDefaultValue ¶ added in v0.10.0
CheckParamDefaultValue returns param's value if defined, if not then checks for default value If default value is not defined then returns param's type
func ColorStatus ¶ added in v0.7.0
ColorStatus Get a status coloured
func Condition ¶
func Condition(c v1beta1.Conditions) string
Condition returns a human readable text based on the status of the Condition
func DecorateAttr ¶ added in v0.7.0
DecorateAttr decorate strings with a color or an emoji, respecting the user preference if no colour needed.
func FormatAddress ¶ added in v0.13.0
func FormatDesc ¶ added in v0.9.0
If description is longer than 20 char then it will return initial 20 chars suffixed by ...
func Param ¶ added in v0.10.0
Param returns params with their values. If user value is not defined then returns default value, if default value is not defined then returns param's type
func TaskConditions ¶ added in v0.10.0
func TaskConditions(conditions []v1beta1.PipelineTaskCondition) string
TaskConditions formats a list of conditions
func Workspace ¶ added in v0.12.0
func Workspace(ws v1beta1.WorkspaceBinding) string