package
0.0.0-20200507155645-0e2b5c99c75c
Repository: https://github.com/teserakt-io/c2.git
Documentation: pkg.go.dev
# Functions
NewAttachCommand creates a new command allowing to attach a client to a topic.
NewCompletionCommand returns the cobra command used to generate the autocompletion.
NewCountCommand creates a new command allowing to count clients, topics, clients for topics or topics for clients.
NewDetachCommand creates a new command allowing to detach a client from a topic.
NewEventsCommand creates a new command allowing to subscribe to C2 server event stream events will get printed on the command output (stdout by default).
NewInteractiveCommand returns a command enabling interactive mode.
NewNewC2KeyCommand returns a new command to change the C2 keys, and send the new public key to all clients.
NewProtectMessageCommand returns a new command to protect a given message with a topic key.
NewRootCommand creates and configure a new cli root command.
NewUnprotectMessageCommand returns a new command to unprotect a given message with a topic key.
# Constants
DefaultPrompt is the default prompt to be displayed in interactive mode.
# Variables
BlacklistedCobraCommands defines a list of cobra command names to be filtered out when running in interactive mode.
# Structs
CompletionCommand defines a custom Command to deal with auto completion.