utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanPortForwardToRelease

func CanPortForwardToRelease(release *types.Release) bool

check if service is port-forwardable/teleportable or not.

func CheckIfPortOpened

func CheckIfPortOpened(port int, terminateOnError bool) bool

Check if supplied port is open. takes a bool param to either kill the cli on error or return false. this is so as to reuse the fn for checking teleport connection status.

func CheckLocalGitOrDie

func CheckLocalGitOrDie()

check if Local Git Repo exists

func CompareGitUrl

func CompareGitUrl(remoteGitUrl string) bool

compare passed URL with local git repo url

func GetBlockPort

func GetBlockPort(blockName string) int

set ports for catalog services. TODO : remove these once, catalog ports are available in run config

func GetLatestSuccessfulRelease

func GetLatestSuccessfulRelease(releases map[string]*types.Release) *types.Release

Gets the latest successful release from any service

func InfoMessage

func InfoMessage(message string)

func NoteMessage

func NoteMessage(message string)

func StartSpinner

func StartSpinner(message ...string)

func StopSpinner

func StopSpinner()

func SuccessMessage

func SuccessMessage(message string)

func TerminateWithCustomError

func TerminateWithCustomError(message string)

func TerminateWithError

func TerminateWithError(err error)

func WarningMessage

func WarningMessage(message string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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