Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StackResult ¶
type StackResult struct {
Stack string
Files []string // filenames downloaded; nil means the stack was skipped
Secrets map[string]string // key/value pairs parsed from remote .env (nil if none found)
Skipped bool // true when the local dir already exists and force=false
}
StackResult describes the outcome of importing one stack directory.
func ImportFromHost ¶
func ImportFromHost(ctx context.Context, host *inventory.Host, destDir string, force bool) ([]StackResult, error)
ImportFromHost connects to host via SSH/SFTP, lists stack directories under host.ComposeDir, and downloads compose files into destDir/<stack>/. Directories that already exist locally are skipped unless force is true.
Click to show internal directories.
Click to hide internal directories.