vps

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDBScript

func GenerateDBScript(password string) string

func GenerateDeployScript

func GenerateDeployScript(cfg DeployScriptConfig) string

func GenerateSetupScript

func GenerateSetupScript(cfg SetupConfig) string

func New

func New(opts ...Option) (infra.Provisioner, error)

func WrapScript

func WrapScript(script string) string

Types

type DeployScriptConfig

type DeployScriptConfig struct {
	RegistryURL   string
	RegistryUser  string
	RegistryToken string
	ImageName     string
	DatabaseURL   string
	EncryptionKey string
	HashSalt      string
}

type Option

type Option func(*provisioner)

func WithHost

func WithHost(host string) Option

func WithPort

func WithPort(port string) Option

func WithPrivateKey

func WithPrivateKey(key []byte) Option

func WithUser

func WithUser(user string) Option

type SetupConfig

type SetupConfig struct {
	SSHPort string
	Domain  string
	Host    string
}

Jump to

Keyboard shortcuts

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