Documentation ¶
Index ¶
- func SpawnAgent(agent Agent, s sink.Sink) error
- type Agent
- func BuildAgent(agentConfig *conf.SpoonConfigAgent) (Agent, error)
- func NewCMDAgent(config *conf.SpoonConfigAgent) (Agent, error)
- func NewCPUAgent(config *conf.SpoonConfigAgent) (Agent, error)
- func NewDiskAgent(config *conf.SpoonConfigAgent) (Agent, error)
- func NewDockerAgent(config *conf.SpoonConfigAgent) (Agent, error)
- func NewMemAgent(config *conf.SpoonConfigAgent) (Agent, error)
- func NewMetaAgent(config *conf.SpoonConfigAgent) (Agent, error)
- func NewNetAgent(config *conf.SpoonConfigAgent) (Agent, error)
- func NewRandomAgent(config *conf.SpoonConfigAgent) (Agent, error)
- func NewTimeAgent(config *conf.SpoonConfigAgent) (Agent, error)
- func NewUpTimeAgent(config *conf.SpoonConfigAgent) (Agent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent interface { // return the config object for this agent GetConfig() conf.SpoonConfigAgent // fetch a result for this agent Tick(sink.Sink) error }
The Agent type is an object that can gather and return a result.
func BuildAgent ¶
func BuildAgent(agentConfig *conf.SpoonConfigAgent) (Agent, error)
BuildAgent will return a pointer to a constructed object that follows the Agent interface. This method will return an error if there is no constructor for the agent type or if an error occurs while constructing the object.
func NewCMDAgent ¶
func NewCMDAgent(config *conf.SpoonConfigAgent) (Agent, error)
func NewCPUAgent ¶
func NewCPUAgent(config *conf.SpoonConfigAgent) (Agent, error)
func NewDiskAgent ¶
func NewDiskAgent(config *conf.SpoonConfigAgent) (Agent, error)
func NewDockerAgent ¶
func NewDockerAgent(config *conf.SpoonConfigAgent) (Agent, error)
func NewMemAgent ¶
func NewMemAgent(config *conf.SpoonConfigAgent) (Agent, error)
func NewMetaAgent ¶
func NewMetaAgent(config *conf.SpoonConfigAgent) (Agent, error)
func NewNetAgent ¶
func NewNetAgent(config *conf.SpoonConfigAgent) (Agent, error)
func NewRandomAgent ¶
func NewRandomAgent(config *conf.SpoonConfigAgent) (Agent, error)
func NewTimeAgent ¶
func NewTimeAgent(config *conf.SpoonConfigAgent) (Agent, error)
func NewUpTimeAgent ¶
func NewUpTimeAgent(config *conf.SpoonConfigAgent) (Agent, error)
Click to show internal directories.
Click to hide internal directories.