Documentation
¶
Index ¶
- Variables
- func Create(program *Program) error
- func Delete(id string) (err error)
- func InitService()
- func Initialize()
- func LoadFromFolder()
- func Reload(id string) (err error)
- func Save(id string) (err error)
- func ShutdownService()
- func StartViaService(p *Program)
- type FileData
- type Program
- func (p *Program) CopyFrom(s *Program)
- func (p *Program) Create() (err error)
- func (p *Program) CreateFolder(name string) error
- func (p *Program) DataToMap() map[string]interface{}
- func (p *Program) DeleteItem(name string) error
- func (p *Program) Destroy() (err error)
- func (p *Program) Edit(data map[string]apufferi.Variable, overrideUser bool) (err error)
- func (p *Program) Execute(command string) (err error)
- func (p *Program) GetData() map[string]apufferi.Variable
- func (p *Program) GetEnvironment() envs.Environment
- func (p *Program) GetItem(name string) (*FileData, error)
- func (p *Program) GetNetwork() string
- func (p *Program) Id() string
- func (p *Program) Install() (err error)
- func (p *Program) IsAutoStart() (isAutoStart bool)
- func (p *Program) IsEnabled() (isEnabled bool)
- func (p *Program) IsRunning() (isRunning bool, err error)
- func (p *Program) Kill() (err error)
- func (p *Program) OpenFile(name string) (io.WriteCloser, error)
- func (p *Program) Save(file string) (err error)
- func (p *Program) SetAutoStart(isAutoStart bool) (err error)
- func (p *Program) SetEnabled(isEnabled bool) (err error)
- func (p *Program) SetEnvironment(environment envs.Environment) (err error)
- func (p *Program) Start() (err error)
- func (p *Program) Stop() (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ServerFolder string
)
Functions ¶
func InitService ¶
func InitService()
func Initialize ¶
func Initialize()
func LoadFromFolder ¶
func LoadFromFolder()
func ShutdownService ¶
func ShutdownService()
func StartViaService ¶
func StartViaService(p *Program)
Types ¶
type Program ¶
type Program struct {
apufferi.Server
CrashCounter int
Environment envs.Environment
}
func CreateProgram ¶
func CreateProgram() *Program
func GetFromCache ¶
func (*Program) Create ¶
Creates any files needed for the program. This includes creating the environment.
func (*Program) CreateFolder ¶
func (*Program) DeleteItem ¶
func (*Program) Destroy ¶
Destroys the server. This will delete the server, environment, and any files related to it.
func (*Program) Execute ¶
Sends a command to the process If the program supports input, this will send the arguments to that.
func (*Program) GetEnvironment ¶
func (p *Program) GetEnvironment() envs.Environment
func (*Program) GetNetwork ¶
func (*Program) IsAutoStart ¶
func (*Program) SetAutoStart ¶
func (*Program) SetEnabled ¶
func (*Program) SetEnvironment ¶
func (p *Program) SetEnvironment(environment envs.Environment) (err error)
Click to show internal directories.
Click to hide internal directories.