Documentation
¶
Overview ¶
Package client provides a client for the inventory server. It handles the connection to the server and sending inventory reports
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDockerContainers ¶
GetDockerContainers returns a list of docker containers running on the host
func GetIncusContainers ¶
GetIncusContainers returns a list of incus containers running on the host
func GetListeners ¶
GetListeners returns a list of network listeners on the host It uses the go-netstat library to get the list of TCP and UDP sockets and filters them to only include those in the LISTEN state.
Types ¶
type Client ¶ added in v0.2.0
type Client struct {
// contains filtered or unexported fields
}
Client is the client for the inventory server
func NewClient ¶ added in v0.2.0
NewClient creates a new client for the inventory server `remote` is the address of the inventory server `location` is the location of the host `description` is the description of the host `services` is a list of services to report