Documentation
¶
Index ¶
- Variables
- func SetActiveAgent(a *Agent)
- type Agent
- func (b *Agent) GetArch() shared.AgentArch
- func (b *Agent) GetCaps() uint32
- func (b *Agent) GetColor() uint32
- func (b *Agent) GetDomain() string
- func (b *Agent) GetExtIp() string
- func (b *Agent) GetFirst() time.Time
- func (b *Agent) GetHostname() string
- func (b *Agent) GetId() uint32
- func (b *Agent) GetIdHex() string
- func (b *Agent) GetIntIp() string
- func (b *Agent) GetIsPrivileged() bool
- func (b *Agent) GetJitter() uint8
- func (b *Agent) GetLast() time.Time
- func (b *Agent) GetListenerId() int64
- func (b *Agent) GetNote() string
- func (b *Agent) GetOs() shared.AgentOs
- func (b *Agent) GetOsMeta() string
- func (b *Agent) GetPid() uint64
- func (b *Agent) GetProcessName() string
- func (b *Agent) GetSleep() uint32
- func (b *Agent) GetUsername() string
- func (b *Agent) IsDead(delta time.Duration) bool
- func (b *Agent) IsDelayed(delta time.Duration) bool
- func (b *Agent) SetArch(arch shared.AgentArch)
- func (b *Agent) SetCaps(caps uint32)
- func (b *Agent) SetColor(color uint32)
- func (b *Agent) SetDomain(data string)
- func (b *Agent) SetExtIp(data string)
- func (b *Agent) SetFirst(t time.Time)
- func (b *Agent) SetHostname(data string)
- func (b *Agent) SetId(id uint32)
- func (b *Agent) SetIntIp(data string)
- func (b *Agent) SetIsPrivileged(flag bool)
- func (b *Agent) SetJitter(jitter uint8)
- func (b *Agent) SetLast(t time.Time)
- func (b *Agent) SetListenerId(id int64)
- func (b *Agent) SetNote(data string)
- func (b *Agent) SetOs(os shared.AgentOs)
- func (b *Agent) SetOsMeta(data string)
- func (b *Agent) SetPid(pid uint64)
- func (b *Agent) SetProcessName(data string)
- func (b *Agent) SetSleep(sleep uint32)
- func (b *Agent) SetUsername(data string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Agents = &agentsMapper{ sorted: &agents{ agents: make([]*Agent, 0), }, }
agents storage in runtime
Functions ¶
func SetActiveAgent ¶
func SetActiveAgent(a *Agent)
SetActiveAgent sets active agent for which tasks are polling
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
agent information
func GetActiveAgent ¶
func GetActiveAgent() *Agent
GetActiveAgent returns active agent for which tasks are polling
func (*Agent) GetHostname ¶
func (*Agent) GetIsPrivileged ¶
func (*Agent) GetListenerId ¶
func (*Agent) GetProcessName ¶
func (*Agent) GetUsername ¶
func (*Agent) SetHostname ¶
func (*Agent) SetIsPrivileged ¶
func (*Agent) SetListenerId ¶
func (*Agent) SetProcessName ¶
func (*Agent) SetUsername ¶
Click to show internal directories.
Click to hide internal directories.