Documentation
¶
Index ¶
- Constants
- Variables
- func InstallConfig(name string, config []byte) error
- type Code
- type Config
- type Conn
- type Instance
- func (i *Instance) Goal() (string, error)
- func (i *Instance) Name() (string, error)
- func (i *Instance) Pid() (int32, error)
- func (i *Instance) Processes() ([]Process, error)
- func (i *Instance) Restart() error
- func (i *Instance) RestartAsync() error
- func (i *Instance) Start() error
- func (i *Instance) StartAsync() error
- func (i *Instance) State() (string, error)
- func (i *Instance) Stop() error
- func (i *Instance) StopAsync() error
- type Job
- func (j *Job) Author() (string, error)
- func (j *Job) Description() (string, error)
- func (j *Job) Instance(name string) (*Instance, error)
- func (j *Job) Instances() ([]*Instance, error)
- func (j *Job) Name() (string, error)
- func (j *Job) Pid() (int32, error)
- func (j *Job) Pids() ([]int32, error)
- func (j *Job) Restart() (*Instance, error)
- func (j *Job) Start() (*Instance, error)
- func (j *Job) StartAsync() (*Instance, error)
- func (j *Job) StartWithOptions(env []string, wait bool) (*Instance, error)
- func (j *Job) Stop() error
- func (j *Job) Version() (string, error)
- type Process
- type Script
Constants ¶
View Source
const BusName = "com.ubuntu.Upstart"
Variables ¶
View Source
var InitDir = "/etc/init"
Functions ¶
func InstallConfig ¶
Types ¶
type Config ¶
type Config struct { Name string Type string Console string Directory string Description string Emits []string Env map[string]string Exec string Expect string Instance string KillSignal []string KillTimeout int Limit []string Manual bool Nice int OomScore int PostStart Code PostStop Code PreStart Code PreStop Code ReloadSignal string Respawn bool Script Script SetGid string SetUid string StartOn string StopOn string Umask int Usage string Version string }
func DaemonConfig ¶
func TaskConfig ¶
func (*Config) Foreground ¶
func (c *Config) Foreground()
func (*Config) UpdateDefaults ¶
func (c *Config) UpdateDefaults()
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) RestartAsync ¶
func (*Instance) StartAsync ¶
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func (*Job) Description ¶
func (*Job) StartAsync ¶
func (*Job) StartWithOptions ¶
Click to show internal directories.
Click to hide internal directories.