runner

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProcessName

func GetProcessName(s string) string

Types

type Bare

type Bare struct {
}

func (*Bare) Close

func (t *Bare) Close()

func (*Bare) Restart

func (t *Bare) Restart(nodes ...string) error

func (*Bare) Start

func (t *Bare) Start(nodes ...string) error

func (*Bare) Status

func (t *Bare) Status() error

func (*Bare) Stop

func (t *Bare) Stop(nodes ...string) error

type Runner

type Runner interface {
	Start(nodes ...string) error
	Stop(nodes ...string) error
	Restart(nodes ...string) error
	Status() error
	Close()
}

type Systemd

type Systemd struct {
	// contains filtered or unexported fields
}

func (*Systemd) Close

func (sd *Systemd) Close()

func (*Systemd) Disable

func (sd *Systemd) Disable(names ...string) error

func (*Systemd) GenerateUnit

func (sd *Systemd) GenerateUnit(name string) error

func (*Systemd) Restart

func (sd *Systemd) Restart(nodes ...string) error

Restart restarts currencly running nodes.

func (*Systemd) Start

func (sd *Systemd) Start(nodes ...string) error

func (*Systemd) Status

func (sd *Systemd) Status() error

func (*Systemd) Stop

func (sd *Systemd) Stop(nodes ...string) error

Jump to

Keyboard shortcuts

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