load

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempDir

func CreateTempDir(client *ssh.Client) (string, error)

CreateTempDir 创建临时目录

func Execute added in v1.0.2

func Execute(flag *Flag) error

Execute 执行load命令

func ExecuteCommand

func ExecuteCommand(client *ssh.Client, cmd string, sudoPassword string) (string, error)

ExecuteCommand 执行命令

func GetDockerPath added in v1.2.2

func GetDockerPath(client *ssh.Client, sudoPassword string) (string, error)

GetDockerPath 获取Docker路径

func GetSSHClient

func GetSSHClient(protocol string, host string, port int, username string, password string) (*ssh.Client, error)

GetSSHClient 获取SSH客户端

func LoadImage

func LoadImage(client *ssh.Client, filePath string, password string, dockerPath string) (string, bool, error)

LoadImage 载入镜像

func UploadBySCP added in v1.2.2

func UploadBySCP(client *ssh.Client, localPath string, remotePath string) error

func UploadFile

func UploadFile(client *ssh.Client, localPath string, remotePath string) error

UploadFile 上传文件

Types

type Flag added in v1.0.2

type Flag struct {
	InputFile  string
	Host       string
	Port       int
	Username   string
	Password   string
	Protocol   string
	Remove     bool
	DockerPath string
}

Jump to

Keyboard shortcuts

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