systemctl

package
v0.0.0-...-16b8bb0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	Start(...string) error
	Stop(...string) error
	Isolate(...string) error
	Restart(...string) error
	Reload(...string) error
	Enable(...string) error
	Disable(...string) error

	Units() []*system.Unit
	Status() (system.Status, error)
	StatusOf(string) (unit.Status, error)
	IsEnabled(string) (unit.Enable, error)
	IsActive(string) (unit.Activation, error)
}

type Response

type Response struct {
	Yield interface{}
}

type Server

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

func NewServer

func NewServer(sys Daemon) (sv *Server)

func (*Server) Disable

func (sv *Server) Disable(names []string, resp *Response) (err error)

func (*Server) Enable

func (sv *Server) Enable(names []string, resp *Response) (err error)

func (*Server) Isolate

func (sv *Server) Isolate(names []string, resp *Response) (err error)

func (*Server) Reload

func (sv *Server) Reload(names []string, resp *Response) (err error)

func (*Server) Restart

func (sv *Server) Restart(names []string, resp *Response) (err error)

func (*Server) Start

func (sv *Server) Start(names []string, resp *Response) (err error)

func (*Server) Status

func (sv *Server) Status(names []string, resp *Response) (err error)

func (*Server) StatusAll

func (sv *Server) StatusAll(names []string, resp *Response) (err error)

func (*Server) Stop

func (sv *Server) Stop(names []string, resp *Response) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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