common

package
v0.0.0-...-f974911 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeResource            = "resource"
	TypeResourceShort       = "rsc"
	TypeStage               = "stage"
	TypeStageShort          = "stg"
	TypeWorkflow            = "workflow"
	TypeWorkflowShort       = "wf"
	TypeWorkflowRun         = "workflowrun"
	TypeWorkflowRunShort    = "wfr"
	TypeWorkflowTrigger     = "workflowtrigger"
	TypeWorkflowTrigerShort = "wft"
	TypeStgTemplate         = "template"
	TypeStgTemplateShort    = "tpl"
	TypeIntegration         = "itg"
	TypeIntegrationShort    = "integration"

	ContextTenant  = "tenant"
	ContextProject = "project"

	LabelTemplateKind = "stage.cyclone.dev/template-kind"
)

Variables

This section is empty.

Functions

func Equal

func Equal(v1, v2 string) bool

func ExecNamespace

func ExecNamespace(tenant string) string

func GetFlagValue

func GetFlagValue(cmd *cobra.Command, name string) string

func MetaNamespace

func MetaNamespace(tenant string) string

func PrefixMatch

func PrefixMatch(origin, prefix string) bool

func ReadableDuration

func ReadableDuration(input int) (result string)

func TermSize

func TermSize() (uint, uint)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL