Documentation
¶
Index ¶
- type AppInfo
- func (a *AppInfo) SetCpuArch(cpu string) *AppInfo
- func (a *AppInfo) SetIP(ip string) *AppInfo
- func (a *AppInfo) SetIpWithFirstAvaliable(exclude []string) *AppInfo
- func (a *AppInfo) SetIpWithNic(ethName string) *AppInfo
- func (a *AppInfo) SetMAC(mac string) *AppInfo
- func (a *AppInfo) SetName(sname, aname, mname string) *AppInfo
- func (a *AppInfo) SetRunID(runid string) *AppInfo
- func (a *AppInfo) SetSystem(i *utilsEnv.System) *AppInfo
- func (a *AppInfo) SetVersion(v *utilsVersion.Version) *AppInfo
- type AppName
- type ProcessRuntime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶
type AppInfo struct {
Name AppName `json:"name"`
RunID string `json:"run_id"`
ServerIP string `json:"server_ip"`
ServerMAC string `json:"server_mac"`
System *utilsEnv.System `json:"system"`
Version *utilsVersion.Version `json:"version"`
Runtime *ProcessRuntime `json:"runtime"`
}
func NewAppInfo ¶
func NewAppInfo() *AppInfo
func (*AppInfo) SetCpuArch ¶
func (*AppInfo) SetIpWithFirstAvaliable ¶
func (*AppInfo) SetIpWithNic ¶
func (*AppInfo) SetVersion ¶
func (a *AppInfo) SetVersion(v *utilsVersion.Version) *AppInfo
type AppName ¶
type ProcessRuntime ¶
type ProcessRuntime struct {
PID int `json:"pid"`
UID int `json:"uid"`
GID int `json:"gid"`
WD string `json:"wd"`
Envs []string `json:"envs"`
}
func GetRuntime ¶
func GetRuntime() *ProcessRuntime
Click to show internal directories.
Click to hide internal directories.