installers.lang.python #
python
To get started
import incubaid.herolib.installers.something.python as python_installer
heroscript:='
!!python.configure name:'test'
password: '1234'
port: 7701
!!python.start name:'test' reset:1
'
python_installer.play(heroscript=heroscript)!
//or we can call the default and do a start with reset
//mut installer:= python_installer.get()!
//installer.start(reset:true)!
example heroscript
!!python.configure
homedir: '/home/user/python'
username: 'admin'
password: 'secretpassword'
title: 'Some Title'
host: 'localhost'
port: 8888
Constants #
const version = '0.8.11'
fn get #
fn get(args ArgsGet) !&PythonInstaller
fn heroscript_dumps #
fn heroscript_dumps(obj PythonInstaller) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !PythonInstaller
fn new #
fn new(args ArgsGet) !&PythonInstaller
fn play #
fn play(mut plbook PlayBook) !
fn switch #
fn switch(name string)
switch instance to be used for python
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string = 'default'
}
///////FACTORY
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
reset bool
}
////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////# LIVE CYCLE MANAGEMENT FOR INSTALLERS /////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////
struct PythonInstaller #
@[heap]
struct PythonInstaller {
pub mut:
name string = 'default'
}
THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
fn (PythonInstaller) destroy #
fn (mut self PythonInstaller) destroy() !
fn (PythonInstaller) install #
fn (mut self PythonInstaller) install(args InstallArgs) !