ksctl

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 11 Imported by: 0

README

ksctl

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressInfo

type AddressInfo struct {
	Host     string `json:"host"`
	Port     int64  `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type ClientConfig

type ClientConfig struct {
	Host     string
	Port     int64
	Username string
	Password string

	LastResult string
	// contains filtered or unexported fields
}

func (*ClientConfig) CreateClient

func (cf *ClientConfig) CreateClient(host string, port int64, username, password string)

func (*ClientConfig) Download

func (cf *ClientConfig) Download(srcPath, dstPath string)

func (*ClientConfig) RunShell

func (cf *ClientConfig) RunShell(shell string) string

func (*ClientConfig) Upload

func (cf *ClientConfig) Upload(srcPath, dstPath string)

type JsonConfigInfo

type JsonConfigInfo struct {
	Address      *AddressInfo `json:"address"`
	DownloadPath *PathInfo    `json:"download_path"`
	UploadPath   *PathInfo    `json:"upload_path"`
	Name         string       `json:"name"`
}

type PathInfo

type PathInfo struct {
	DstPath string `json:"dst_path"`
	SrcPath string `json:"src_path"`
}

Jump to

Keyboard shortcuts

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