provision

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provision

func Provision(server, email string) error

Provision sets up a server with Docker, Traefik, and required infrastructure. All operations are idempotent and safe to run multiple times.

Steps performed: 1. Install Docker if not present 2. Create traefik_web network 3. Create /stacks/traefik directory 4. Create acme.json with mode 600 5. Write Traefik compose.yaml with atomic write 6. Start Traefik with docker compose up -d

server: SSH host from ~/.ssh/config email: email for Let's Encrypt certificate registration

Types

type RemoteClient

type RemoteClient interface {
	SSH(ctx context.Context, command string) (string, error)
	SSHInteractive(ctx context.Context, command string) error
}

RemoteClient defines the interface for remote operations needed by provision

Jump to

Keyboard shortcuts

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