Documentation ¶
Index ¶
- Variables
- func GetCPULoad() (info *load.AvgStat)
- func GetDiskInfo() (diskInfoList []repo.DiskInfo)
- func GetHostName() string
- func GetMemInfo() (memInfoList []repo.MemInfo)
- func GetNetworkInfo() (networkList []repo.Network)
- func GetNodeState() (nodeStatus *repo.NodeState)
- func GetProgressInfo() (progressInfo repo.ProgressInfo)
- func GetRuntimeInfo() (runTimeInfo repo.RunTimeInfo)
- type PeckerServer
Constants ¶
This section is empty.
Variables ¶
var ProviderSet = wire.NewSet(NewPeckerServer)
Functions ¶
func GetCPULoad ¶
GetCPULoad retrieves the CPU load information.
No parameters. Returns *load.AvgStat.
func GetDiskInfo ¶
GetDiskInfo retrieves disk information and returns a list of repo.DiskInfo.
No parameters. Returns a slice of repo.DiskInfo.
func GetHostName ¶
func GetHostName() string
GetHostName returns the hostname of the host machine.
No parameters. Returns a string.
func GetMemInfo ¶
GetMemInfo retrieves memory information and returns a list of MemInfo.
No parameters. Returns a list of MemInfo.
func GetNetworkInfo ¶
GetNetworkInfo retrieves network information.
No parameters. Returns a slice of repo.Network.
func GetNodeState ¶
GetNodeState returns the node status including progress, disk information, memory information, and network information.
Returns a pointer to repo.NodeState.
func GetProgressInfo ¶
func GetProgressInfo() (progressInfo repo.ProgressInfo)
GetProgressInfo retrieves progress information.
No parameters. Returns a repo.ProgressInfo struct.
func GetRuntimeInfo ¶
func GetRuntimeInfo() (runTimeInfo repo.RunTimeInfo)
GetRuntimeInfo retrieves the runtime information.
Returns a RunTimeInfo struct.
Types ¶
type PeckerServer ¶
type PeckerServer struct {
// contains filtered or unexported fields
}
func NewPeckerServer ¶
func NewPeckerServer( conf *conf.ServerConf, peckService *service.PeckService, registrar registry.Registrar, nodeRepository repo.NodeRepository, ) *PeckerServer
NewPeckerServer create pecker server
func (*PeckerServer) Init ¶
func (s *PeckerServer) Init() error
func (*PeckerServer) ReportNodeTask ¶
func (s *PeckerServer) ReportNodeTask()
ReportNodeTask generates a function comment for the given function body in a markdown code block with the correct language syntax.
No parameters. No return value.
func (*PeckerServer) Stop ¶
func (s *PeckerServer) Stop() error