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 []v1.ParamSpec) string
- func ColorStatus(status string) string
- func Condition(c v1.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 *v1.PipelineTask) string
- func Param(params []v1.Param, paramSpec []v1.ParamSpec) string
- func ParentCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func PipelineRefExists(spec v1.PipelineRunSpec) string
- func RemoveLastAppliedConfig(annotations map[string]string) map[string]string
- func Result(value v1.ParamValue) string
- func TaskRefExists(spec v1.TaskRunSpec) string
- func Timeout(t *metav1.Duration) string
- func Workspace(ws v1.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 v1.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 *v1.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 PipelineRefExists ¶ added in v0.30.0
func PipelineRefExists(spec v1.PipelineRunSpec) string
Check if PipelineRef exists on a PipelineRunSpec. Returns empty string if not present.
func RemoveLastAppliedConfig ¶ added in v0.25.0
func Result ¶ added in v0.12.0
func Result(value v1.ParamValue) string
Result will format a given result value
func TaskRefExists ¶ added in v0.30.0
func TaskRefExists(spec v1.TaskRunSpec) string
Check if TaskRef exists on a TaskRunSpec. Returns empty string if not present.
func Workspace ¶ added in v0.12.0
func Workspace(ws v1.WorkspaceBinding) string