common

package
v1.0.50-rc.4-rc Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 11 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 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 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

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