utils

package
v0.0.0-...-68fc048 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CNDev             = "cndev"
	ArgoPort          = "9091"
	GogsPort          = "9092"
	ArgoNamespace     = "argocd"
	ManagedBy         = "managed-by"
	PartOf            = "part-of"
	ArgoCD            = "argocd"
	Gogs              = "gogs"
	ArgoCDServerLabel = "app.kubernetes.io/name=argocd-server"
	GogsLabel         = "app.kubernetes.io/name=gogs"
	StringYes         = "Yes"
	StringNo          = "No"
)

Variables

View Source
var (
	// used for color coding the terminal print
	Red     = color.FgRed.Render
	Green   = color.FgGreen.Render
	Yellow  = color.FgYellow.Render
	Blue    = color.FgBlue.Render
	Magenta = color.FgMagenta.Render
)
View Source
var (
	ArgoCD_URL            string
	DefaultGogsNs         string
	PFApps                []Apps
	ArgoCDAdminSecretName string
	AppVersion            string
)

Functions

This section is empty.

Types

type Apps

type Apps struct {
	Name        string
	DefaultNs   string
	DefaultPort string
	Label       string
	PodPort     string
}

func GetAppSpec

func GetAppSpec(appName string) (bool, Apps)

GetAppSpec returns true if the app present in the list and the App struct for the specified app from the list

Jump to

Keyboard shortcuts

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