check

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapePath added in v0.5.1

func EscapePath(str string) (escapeStr string)

EscapePath escapes characters (`\`, `;`, ` `).

func ExistServer

func ExistServer(inputServer []string, nameList []string) bool

ExistServer returns true if inputServer exists in nameList.

func ParseScpPath added in v0.5.1

func ParseScpPath(arg string) (isRemote bool, path string)

ParseScpPath parses remote or local path string. Path string has a `:` delimiter. A prefix of path string is a scp location. A scp location is `local (l)` or `remote (r)`.

arg examples:

Local path:
    local:/tmp/a.txt
    l:/tmp/a.txt
    /tmp/a.txt
Remote path:
    remote:/tmp/a.txt
    r:/tmp/a.txt

func TypeError added in v0.6.13

func TypeError(isFromInRemote, isFromInLocal, isToRemote bool, countHosts int)

TypeError validates from-remote, from-local, to-remote and host-counts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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