vps

package
v0.0.0-...-561eda3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSudoerAsUser

func AddSudoerAsUser(client ssh.Client, user string, password string) error

func CreateConfig

func CreateConfig()

func InstallAftDirectories

func InstallAftDirectories(client ssh.Client) error

func InstallAftDockerNetworks

func InstallAftDockerNetworks(config ssh.Config) error

func InstallAptPackages

func InstallAptPackages(client ssh.Client, packages []string) error

func InstallDefaultPackages

func InstallDefaultPackages(client ssh.Client) error

func InstallDirectories

func InstallDirectories(client ssh.Client, dirs []string) error

func InstallDocker

func InstallDocker(client ssh.Client) error

func SetupServer

func SetupServer(config *ssh.Config, sudoPassword string) error

Types

type OsInfo

type OsInfo struct {
	Id              string
	IdLike          string
	Version         string
	VersionId       string
	VersionCodename string
	PlatformId      string
	PrettyName      string
}

func GetOsInfo

func GetOsInfo(client ssh.Client) (*OsInfo, error)

Jump to

Keyboard shortcuts

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