Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent manages the data necessary to run tasks on a host.
type Options ¶
type Options struct {
HostID string
HostSecret string
StatusPort int
LogPrefix string
LogkeeperURL string
S3BaseURL string
WorkingDirectory string
HeartbeatInterval time.Duration
AgentSleepInterval time.Duration
MaxAgentSleepInterval time.Duration
Cleanup bool
S3Opts pail.S3Options
}
Options contains startup options for the Agent.
type StatsCollector ¶
type StatsCollector struct {
Cmds []string
// indicates the sampling frequency
Interval time.Duration
// contains filtered or unexported fields
}
StatsCollector samples machine statistics and logs them back to the API server at regular intervals.
func NewSimpleStatsCollector ¶
func NewSimpleStatsCollector(logger client.LoggerProducer, jpm jasper.Manager, interval time.Duration, cmds ...string) *StatsCollector
NewSimpleStatsCollector creates a StatsCollector that runs the given commands at the given interval and sends the results to the given logger.
Click to show internal directories.
Click to hide internal directories.