rpcutil

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(mgr server.AgentManager) (*mcorpc.Agent, error)

New creates a new rpcutil agent

Types

type AgentInventoryInfoReply

type AgentInventoryInfoReply struct {
	Agent string `json:"agent"`

	agents.Metadata
}

type AgentInventoryReply

type AgentInventoryReply struct {
	Agents []AgentInventoryInfoReply `json:"agents"`
}

type CPUTimes

type CPUTimes struct {
	UserTime        int `json:"utime"`
	SystemTime      int `json:"stime"`
	ChildUserTime   int `json:"cutime"`
	ChildSystemTime int `json:"cstime"`
}

type CollectiveInfoReply

type CollectiveInfoReply struct {
	MainCollective string   `json:"main_collective"`
	Collectives    []string `json:"collectives"`
}

type DaemonStatsReply

type DaemonStatsReply struct {
	Procs       []string `json:"threads"`
	Agents      []string `json:"agents"`
	PID         int      `json:"pid"`
	Times       CPUTimes `json:"times"`
	StartTime   int64    `json:"starttime"`
	ConfigFile  string   `json:"configfile"`
	Version     string   `json:"version"`
	Total       float64  `json:"total"`
	Validated   float64  `json:"validated"`
	Unvalidated float64  `json:"unvalidated"`
	Passed      float64  `json:"passed"`
	Filtered    float64  `json:"filtered"`
	Replies     float64  `json:"replies"`
	TTLExpired  float64  `json:"ttlexpired"`
}

type GetConfigItemReply

type GetConfigItemReply struct {
	Item  string `json:"item"`
	Value string `json:"value"`
}

type GetFactReply

type GetFactReply struct {
	Fact  string      `json:"fact"`
	Value interface{} `json:"value"`
}

type GetFactsReply

type GetFactsReply struct {
	Values map[string]interface{} `json:"values"`
}

type InventoryReply

type InventoryReply struct {
	Agents         []string        `json:"agents"`
	Facts          json.RawMessage `json:"facts"`
	Classes        []string        `json:"classes"`
	Version        string          `json:"version"`
	DataPlugins    []string        `json:"data_plugins"`
	MainCollective string          `json:"main_collective"`
	Collectives    []string        `json:"collectives"`
}

type PingReply

type PingReply struct {
	Pong int64 `json:"pong"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL