Documentation ¶
Overview ¶
Package host contains functionality for dealing with the machine which Bosun is running on.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host interface { GetName() string SetName(name string) error GetNameProcessor() name.Processor SetNameProcessor(np name.Processor) error }
Host is an interface which defines operations which can be performed against the machine which Bosun is running on.
GetName returns the name of the host.
SetName allows for the current host name to be overridden.
GetNameProcessor returns the name.Processor that is associated with the host.
SetNameProcessor allows for the name.Processor that is associated with the host to be overridden.
type Manager ¶
Manager is an interface for types which manage hosts
GetNameProcessor returns a name.Processor which is suitable for hosts ¶
GetHost returns the Host that represents the machine which the process is running on ¶
GetHostName returns the name of the managed host - is simply more convenient than calling manager.GetHost().GetName()
func NewManager ¶
NewManager constructs a new Manager for a host which is named by the operating system