deploy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(host string, port int, cmd string) (string, error)

Exec runs a command on the hub and returns combined output.

func Run

func Run(host string, port int, files []File) error

Run connects to the hub via SSH (root, no password) and uploads all files.

Types

type File

type File struct {
	Local  string // path on the build machine
	Remote string // absolute path on the hub
	Mode   os.FileMode
}

File describes one file to upload.

Jump to

Keyboard shortcuts

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