oses

package
v0.0.0-...-2f32780 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OS

type OS interface {
	Prerun() error

	EnsureSystem() error
	EnsureUser(username string, password string) error
	EnsureDocker(username string) error
	DockerCronPruneSystem() error
	DockerStopAll() error
	DockerBuildRunner(dockerfile string) error
	DockerStartRunner(name string, token string, labels string, orgrepo string, path string) error

	Exec(command string) error

	// Hetzner specific
	HetznerInstallimage(installimage string) error
}

func GetOS

func GetOS(ctx context.Context, logger *slog.Logger, remote *ssh.Client) (OS, *ssh.RemoteInfo, error)

Directories

Path Synopsis
Autogenerated file - DO NOT EDIT
Autogenerated file - DO NOT EDIT

Jump to

Keyboard shortcuts

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