Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateLegacy ¶ added in v0.16.0
MigrateLegacy moves dir/ssd.yaml into dir/.ssd/ssd.yaml and seeds dir/.ssd/.gitignore. Returns the new path on success.
Refuses to overwrite an existing .ssd/ssd.yaml — the caller should resolve the conflict (delete one or merge by hand) before retrying. Refuses when there is no legacy file to migrate.
func TargetPath ¶ added in v0.16.0
TargetPath returns the path init will write to in dir.
Preferred: <dir>/.ssd/ssd.yaml (new layout, keeps repo root clean). Legacy: <dir>/ssd.yaml when it already exists, to avoid surprising
existing projects with a new .ssd/ directory.
Types ¶
type Options ¶
type Options struct {
Server string // Required: SSH host name
Runtime string // Optional: "compose" (default) or "k3s"
Stack string // Optional: stack path (e.g., /dockge/stacks/myapp)
Service string // Optional: service name (default: "app")
Domain string // Optional: domain for Traefik routing
Path string // Optional: path prefix for Traefik routing (e.g., /api)
Port int // Optional: container port
Force bool // Optional: overwrite existing ssd.yaml
}
Options holds configuration for init command