rpcutil

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 18 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 {
	ChildSystemTime int `json:"cstime"`
	ChildUserTime   int `json:"cutime"`
	SystemTime      int `json:"stime"`
	UserTime        int `json:"utime"`
}

type CollectiveInfoReply

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

type DaemonStatsReply

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

type GetConfigItemReply

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

type GetConfigItemRequest added in v0.20.0

type GetConfigItemRequest struct {
	Item string `json:"item"`
}

type GetConfigItemResponse added in v0.20.0

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

type GetDataRequest added in v0.20.0

type GetDataRequest struct {
	Query  string `json:"query"`
	Source string `json:"source"`
}

type GetFactReply

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

type GetFactsReply

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

type InventoryReply

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

type MachineState added in v0.19.0

type MachineState struct {
	Name    string `json:"name" yaml:"name"`
	State   string `json:"state" yaml:"state"`
	Version string `json:"version" yaml:"version"`
}

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