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) }
type DistroFunc ¶
Click to show internal directories.
Click to hide internal directories.