ubuntu

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *ssh.Client) distro.Distro

Types

type Ubuntu

type Ubuntu struct {
	Client *ssh.Client
}

func (*Ubuntu) Build

func (u *Ubuntu) Build(app spec.Application, prog spec.Program) (bool, error)

func (*Ubuntu) CronDisable

func (u *Ubuntu) CronDisable(app spec.Application, job spec.Job) error

func (*Ubuntu) CronEnable

func (u *Ubuntu) CronEnable(app spec.Application, job spec.Job) error

func (*Ubuntu) CronStatus

func (u *Ubuntu) CronStatus(app spec.Application, job spec.Job, tw *tabwriter.Writer) error

func (*Ubuntu) Detect

func (u *Ubuntu) Detect() (bool, error)

func (*Ubuntu) Df added in v0.11.0

func (u *Ubuntu) Df() error

func (*Ubuntu) ExtractTar

func (u *Ubuntu) ExtractTar(name, dir string) error

func (*Ubuntu) Forward added in v0.10.0

func (u *Ubuntu) Forward(app spec.Application, port string) error

func (*Ubuntu) InstallDocker

func (u *Ubuntu) InstallDocker() error

func (*Ubuntu) Log added in v0.9.0

func (u *Ubuntu) Log(app spec.Application, prog spec.Program, no int) error

func (*Ubuntu) MkdirAll

func (u *Ubuntu) MkdirAll(name string) error

func (*Ubuntu) Prune

func (u *Ubuntu) Prune(name string, n int) error

func (*Ubuntu) ReadFile added in v0.9.0

func (u *Ubuntu) ReadFile(name string) ([]byte, error)

func (*Ubuntu) Reload added in v0.12.0

func (u *Ubuntu) Reload(app spec.Application, prog spec.Program, no int, rebuilt bool) error

func (*Ubuntu) ReloadAll added in v0.12.0

func (u *Ubuntu) ReloadAll(app spec.Application, prog spec.Program, rebuilt bool) error

func (*Ubuntu) Remove

func (u *Ubuntu) Remove(name string) error

func (*Ubuntu) Restart

func (u *Ubuntu) Restart(app spec.Application, prog spec.Program, no int) error

func (*Ubuntu) RestartAll

func (u *Ubuntu) RestartAll(app spec.Application, prog spec.Program) error

func (*Ubuntu) Run

func (u *Ubuntu) Run(app spec.Application, prog spec.Program) error

func (*Ubuntu) Scale

func (u *Ubuntu) Scale(app spec.Application, prog spec.Program, n int) error

func (*Ubuntu) Signal added in v0.12.0

func (u *Ubuntu) Signal(app spec.Application, prog spec.Program, no int, signal string) error

func (*Ubuntu) Status

func (u *Ubuntu) Status(app spec.Application, prog spec.Program, tw *tabwriter.Writer) error
func (u *Ubuntu) Symlink(oldname, newname string) error

func (*Ubuntu) Top added in v0.12.0

func (u *Ubuntu) Top() error

func (*Ubuntu) Touch

func (u *Ubuntu) Touch(name string) error

func (*Ubuntu) UpdateCurrent added in v0.12.0

func (u *Ubuntu) UpdateCurrent(app spec.Application, relDir string) error

func (*Ubuntu) WriteFile added in v0.9.0

func (u *Ubuntu) WriteFile(name string, data []byte) error

Jump to

Keyboard shortcuts

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