Documentation
¶
Overview ¶
Package pid manages PID files for Podplane background processes.
Index ¶
- type PIDFile
- func (p *PIDFile) Clean() error
- func (p *PIDFile) ClearData()
- func (p *PIDFile) FilePath() string
- func (p *PIDFile) GetData(key string) string
- func (p *PIDFile) IsRunning() (bool, error)
- func (p *PIDFile) Kill() error
- func (p *PIDFile) PID() int
- func (p *PIDFile) SetData(key, value string)
- func (p *PIDFile) SetPID(pid int) error
- func (p *PIDFile) Write() error
- type PIDFileData
- type PIDOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PIDFile ¶
type PIDFile struct {
// contains filtered or unexported fields
}
PIDFile represents a process PID file
func Init ¶
func Init(opts PIDOptions) (PIDFile, error)
Init checks if a PID file exists on disk, and if so unmarshals the PID file into the PIDFile struct, or otherwises returns an empty PIDFile
type PIDFileData ¶
PIDFileData represents the data structure of the PID file
type PIDOptions ¶
PIDOptions holds config
Click to show internal directories.
Click to hide internal directories.