distro

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DistroFuncs = []DistroFunc{}
View Source
var ErrBadDistribution = errors.New("distro: unsupported distribution")

Functions

This section is empty.

Types

type Distro

type Distro interface {
	InstallDocker() error

	MkdirAll(name string) error
	Remove(name string) error
	Symlink(oldname, newname string) error
	Touch(name string) error
	Prune(name string, n int) error
	ReadFile(name string) ([]byte, error)
	WriteFile(name string, data []byte) error

	ExtractTar(name, dir string) error

	UpdateCurrent(app spec.Application, relDir string) error

	Build(app spec.Application, prog spec.Program) (bool, error)
	Restart(app spec.Application, prog spec.Program, no int) error
	RestartAll(app spec.Application, prog spec.Program) error
	Status(app spec.Application, prog spec.Program, tw *tabwriter.Writer) error
	Scale(app spec.Application, prog spec.Program, n int) error
	Log(app spec.Application, prog spec.Program, no int) error
	Signal(app spec.Application, prog spec.Program, no int, signal string) error
	Reload(app spec.Application, prog spec.Program, no int, rebuilt bool) error
	ReloadAll(app spec.Application, prog spec.Program, rebuilt bool) error

	CronEnable(app spec.Application, job spec.Job) error
	CronDisable(app spec.Application, job spec.Job) error
	CronStatus(app spec.Application, job spec.Job, tw *tabwriter.Writer) error

	Run(app spec.Application, prog spec.Program) error

	Forward(app spec.Application, port string) error

	Df() error
	Top() error

	Detect() (bool, error)
}

func New

func New(c *ssh.Client) (Distro, error)

type DistroFunc

type DistroFunc func(c *ssh.Client) Distro

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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