importer

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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