utils

package
v0.0.0-...-50e51bf Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SSHParams = []string{
	"-o",
	"UserKnownHostsFile=/dev/null",
	"-o",
	"StrictHostKeyChecking=no",
	"-o",
	"LogLevel=ERROR",
	"-o",
	"ForwardAgent=yes",
}

Functions

func FindFileBasename

func FindFileBasename(extensions ...string) (string, error)

func FormatDuration

func FormatDuration(ns int64) string

func FormatSize

func FormatSize(bytes int) string

func GetHFileFromDownloads

func GetHFileFromDownloads(basefilename string)

func GetName

func GetName(i int) string

func Run

func Run(servers []*models.Server, params ...string) error

func Send

func Send(destServer *models.Server, path string, input interface{}, output interface{}, private ...bool) error

func SendAll

func SendAll(servers []*models.Server, path string, input interface{}, outputs interface{}, private ...bool) error

func Upload

func Upload(srcFile, destFile string, servers ...*models.Server) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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