fleetspeak

package
v0.0.0-...-6e31670 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package fleetspeak provides administrative functionality for Fleetspeak.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseClients

func ParseClients(clients []*fsspb.Client) []string

ParseClients returns human-readable client details.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents an Fleetspeak admin client.

func New

func New(addr, certFile string) (*Client, error)

New creates a new Client.

func (*Client) Close

func (c *Client) Close() error

Close terminates the Fleetspeak admin connection.

func (*Client) InsertMessage

func (c *Client) InsertMessage(ctx context.Context, req *spb.SensorRequest, id []byte) error

InsertMessage inserts a message into the Fleetspeak system to be delivered to a sensor, where the sensor is identified by the id.

func (*Client) ListClients

func (c *Client) ListClients(ctx context.Context) ([]*fsspb.Client, error)

ListClients returns a list of clients from Fleetspeak.

Jump to

Keyboard shortcuts

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