Documentation
¶
Index ¶
- Variables
- func Age(t *metav1.Time, c clockwork.Clock) string
- func AutoStepName(stepName string) string
- func BaseCompletion(target string, args []string) ([]string, cobra.ShellCompDirective)
- 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 FindVersion(version map[string]string) string
- func FormatAddress(addressURL string) string
- func FormatDesc(desc string) string
- func GetObjectsWithKubectl(obj string) []string
- func GetTaskRefName(task *v1beta1.PipelineTask) string
- func Param(params []v1beta1.Param, paramSpec []v1beta1.ParamSpec) string
- func ParentCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- 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 BaseCompletion ¶ added in v0.16.0
func BaseCompletion(target string, args []string) ([]string, cobra.ShellCompDirective)
BaseCompletion return a completion for a kubernetes object using Kubectl
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 FindVersion ¶ added in v0.18.0
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 GetObjectsWithKubectl ¶ added in v0.16.0
GetObjectsWithKubectl return completions with kubectl, we are doing this with kubectl since we have caching and without it completion is way too slow
func GetTaskRefName ¶ added in v0.17.0
func GetTaskRefName(task *v1beta1.PipelineTask) string
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 ParentCompletion ¶ added in v0.16.0
func ParentCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
ParentCompletion do completion of command to the Parent
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