cli

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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.

func Usage

func Usage()

Usage prints usage information describing the command line flags and behavior of programs based on Execute.

Types

This section is empty.

Jump to

Keyboard shortcuts

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