Documentation ¶
Overview ¶
Package cli contains methods useful for implementing administrative command line utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyseHistory ¶
func AnalyseHistory(c sgrpc.AdminClient, args ...string)
AnalyseHistory prints a summary analysis of a client's history. args[0] must be a client id.
func BlacklistClient ¶
func BlacklistClient(c sgrpc.AdminClient, args ...string)
BlacklistClient blacklists a client id, forcing any client(s) using it to rekey. args[0] must be a client id.
func Execute ¶
func Execute(conn *grpc.ClientConn, args ...string)
Execute examines command line flags and executes one of the standard command line actions, as summarized by Usage. It requires a grpc connection to an admin server and the command line parameters to interpret.
func ListClients ¶
func ListClients(c sgrpc.AdminClient, args ...string)
ListClients prints a list of all clients in the fleetspeak system.
func ListContacts ¶
func ListContacts(c sgrpc.AdminClient, args ...string)
ListContacts prints a list contacts that the system has recorded for a client. args[0] must be a client id. If present, args[1] limits to the most recent args[1] contacts.
Types ¶
This section is empty.