Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadHostID ¶ added in v0.20.0
LoadHostID loads hostID
func NewAgent ¶ added in v0.16.0
NewAgent creates a new instance of agent.Agent from its configuration conf.
func RemoveIDFile ¶ added in v0.20.0
RemoveIDFile removes idfile
Types ¶
type Context ¶ added in v0.19.0
type Context struct {
// contains filtered or unexported fields
}
Context context object
func Prepare ¶ added in v0.8.0
Prepare sets up API and registers the host data to the Mackerel server. Use returned values to call Run().
func (*Context) UpdateHostSpecs ¶ added in v0.19.0
func (c *Context) UpdateHostSpecs()
UpdateHostSpecs updates the host information that is already registered on Mackerel.
Click to show internal directories.
Click to hide internal directories.