internal

package
v0.0.0-...-16a1fe3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Windows string = "\\"
	AnyUnix string = "/"
)

Variables

View Source
var (
	Delimiter string = setDelimiter()

	Auth       goph.Auth
	Client     *goph.Client
	Ip         string
	User       string
	Port       int
	PrivateKey string
	Pass       bool
	Sftpc      *sftp.Client
	Save       bool
	AliasName  string

	ClearServer     bool
	RemoveAliasName string
	ShowServer      bool

	PrefixDir  string = ".sshctl"
	ConfigFile string = "config"
	Symbol     string = " "
	HomePath   string = strings.Join([]string{os.Getenv("HOME"), PrefixDir}, Delimiter)
	ConfigPath string = strings.Join([]string{os.Getenv("HOME"), PrefixDir, ConfigFile}, Delimiter)

	AuthTypeMap map[AuthType]string = map[AuthType]string{
		Username: "Username",
		SSHkey:   "SSHkey",
	}
)

Functions

func ReadFile

func ReadFile(path string) ([]string, error)

Types

type AuthType

type AuthType int
const (
	Username AuthType = iota // 0
	SSHkey                   // 1
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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