utils

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ShellToUse = "sh"

Variables

This section is empty.

Functions

func FileExists

func FileExists(name string) bool

Reports whether a file exists.

func FindLagoonSyncOnEnv

func FindLagoonSyncOnEnv() (string, bool)

func HideSpinner added in v0.8.1

func HideSpinner()

func LogDebugInfo

func LogDebugInfo(message string, output interface{})

func LogError added in v0.8.0

func LogError(message string, output interface{})

func LogExecutionStep

func LogExecutionStep(message string, output interface{})

func LogFatalError

func LogFatalError(message string, output interface{})

func LogProcessStep

func LogProcessStep(message string, output interface{})

func LogWarning

func LogWarning(message string, output interface{})

func RemoteShellout added in v0.8.0

func RemoteShellout(command string, remoteUser string, remoteHost string, remotePort string, privateKeyfile string, skipSshAgent bool) (error, string)

func SetColour added in v0.7.0

func SetColour(c bool)

func SetShowSpinner added in v0.8.1

func SetShowSpinner(spin bool)

func Shellout

func Shellout(command string) (error, string, string)

func ShowSpinner added in v0.8.1

func ShowSpinner()

Types

type ApiConn added in v0.8.0

type ApiConn struct {
	// contains filtered or unexported fields
}

func (*ApiConn) GetProjectEnvironmentDeployTargets added in v0.8.0

func (r *ApiConn) GetProjectEnvironmentDeployTargets(projectName string) (*[]schema.Environment, error)

func (*ApiConn) Init added in v0.8.0

func (r *ApiConn) Init(graphqlEndpoint, sshkeyPath, sshHost, sshPort string) error

Jump to

Keyboard shortcuts

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