Documentation ¶
Index ¶
- Constants
- func CreateDirAsUser(directory string, username string)
- func CreateUser(username string)
- func Prepare() error
- func Run(head string, parts ...string) (string, error)
- type Config
- func (c *Config) CreateConfig()
- func (c *Config) GenerateDefault() error
- func (c *Config) GetAutostartingNodes() []*Daemon
- func (c *Config) GetConfigForNode(name string) *Daemon
- func (c *Config) ReadConfigFromFile(filepath string) error
- func (c *Config) SaveToFile(filepath string) error
- func (c *Config) Start(what string)
- type Daemon
- type InstallSource
- type Installer
- type PidFile
- type Process
- type ProcessStatus
Constants ¶
View Source
const ( Binaries = iota SourceCode )
Variables ¶
This section is empty.
Functions ¶
func CreateDirAsUser ¶
func CreateUser ¶
func CreateUser(username string)
Types ¶
type Config ¶
type Config struct {
Daemons []*Daemon `json:"daemons"`
}
func (*Config) CreateConfig ¶
func (c *Config) CreateConfig()
func (*Config) GenerateDefault ¶
func (*Config) GetAutostartingNodes ¶
func (*Config) GetConfigForNode ¶
func (*Config) ReadConfigFromFile ¶
func (*Config) SaveToFile ¶
type InstallSource ¶
type InstallSource uint8
type Process ¶
type Process struct { Name string Command string Args []string Pidfile PidFile ConfDir string Pid int Status *ProcessStatus // contains filtered or unexported fields }
func NewProcess ¶
type ProcessStatus ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.