utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForConfirmation

func AskForConfirmation() bool

func CheckErr

func CheckErr(err error)

func FileExist

func FileExist(path string) bool

func SendPackage

func SendPackage(sshConfig *sshutils.SSH, location string, hosts []string, dstDir string, before, after *string) error

func SendPackageLocal added in v1.4.0

func SendPackageLocal(location string, dstDir string, after *string) error

func SendPackageV2

func SendPackageV2(sshConfig *sshutils.SSH, location string, hosts []string, dstDir string, before, after *string) error

SendPackageV2 scp file to remote host Deprecated

func UsageErrorf

func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error

func WaitInputPasswd

func WaitInputPasswd() (string, error)

func WriteToFile

func WriteToFile(path string, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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