common

package
v1.0.97 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientCredentials

func ClientCredentials(org *string) runtime.ClientAuthInfoWriter

func GenerateCanonical added in v1.0.53

func GenerateCanonical(name string) string

GenerateCanonical will generate a canonical from the name passed in input

func GetPipelineName

func GetPipelineName(project, env string) string

func IsInList

func IsInList(pattern string, list []string) bool

func NewAPI

func NewAPI() *client.APIClient

func ReplaceCycloidVars

func ReplaceCycloidVars(ctx CycloidContext, text []byte) []byte

func ReplaceCycloidVarsString

func ReplaceCycloidVarsString(ctx CycloidContext, text string) string

func RequiredFlag

func RequiredFlag(withFlag func(cmd *cobra.Command) string, cmd *cobra.Command)

func RequiredPersistentFlag

func RequiredPersistentFlag(withFlag func(cmd *cobra.Command) string, cmd *cobra.Command)

func WithFlagCan added in v1.0.58

func WithFlagCan(cmd *cobra.Command) string

func WithFlagCred

func WithFlagCred(cmd *cobra.Command) string

func WithFlagEnv

func WithFlagEnv(cmd *cobra.Command) string

func WithFlagID

func WithFlagID(cmd *cobra.Command) string

func WithFlagOrg

func WithFlagOrg(cmd *cobra.Command) string

func WithFlagProject

func WithFlagProject(cmd *cobra.Command) string

func WithPersistentFlagCan added in v1.0.89

func WithPersistentFlagCan(cmd *cobra.Command) string

Types

type CycloidContext

type CycloidContext struct {
	Org     string
	Env     string
	Project string
}

Jump to

Keyboard shortcuts

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