Documentation ¶
Index ¶
- Constants
- func ParseAutoResponseArg(arg string) (quarantine.AutoResponse, bool)
- func ParseAutoResponseUpdatesFromArgs(args []string, startIndex int) ([]*quarantine.AutoResponseUpdate, error)
- func QueryAutoResponsesCmd() *cobra.Command
- func QueryCmd() *cobra.Command
- func QueryIsQuarantinedCmd() *cobra.Command
- func QueryQuarantinedFundsCmd() *cobra.Command
- func TxAcceptCmd() *cobra.Command
- func TxCmd() *cobra.Command
- func TxDeclineCmd() *cobra.Command
- func TxOptInCmd() *cobra.Command
- func TxOptOutCmd() *cobra.Command
- func TxUpdateAutoResponsesCmd() *cobra.Command
Constants ¶
const (
// FlagPermanent is the flag indicating a permanent accept/decline.
FlagPermanent = "permanent"
)
Variables ¶
This section is empty.
Functions ¶
func ParseAutoResponseArg ¶
func ParseAutoResponseArg(arg string) (quarantine.AutoResponse, bool)
ParseAutoResponseArg converts the provided arg to an AutoResponse enum entry. The bool return value is true if parsing was successful.
func ParseAutoResponseUpdatesFromArgs ¶
func ParseAutoResponseUpdatesFromArgs(args []string, startIndex int) ([]*quarantine.AutoResponseUpdate, error)
ParseAutoResponseUpdatesFromArgs parses the args to extract the desired AutoResponseUpdate entries. The args should be the entire args list. Parsing of the auto-response updates args will start at startIndex.
func QueryAutoResponsesCmd ¶
QueryAutoResponsesCmd returns the command for executing a AutoResponses query.
func QueryCmd ¶
QueryCmd returns the command with sub-commands for specific quarantine module queries.
func QueryIsQuarantinedCmd ¶
QueryIsQuarantinedCmd returns the command for executing an IsQuarantined query.
func QueryQuarantinedFundsCmd ¶
QueryQuarantinedFundsCmd returns the command for executing a QuarantinedFunds query.
func TxAcceptCmd ¶
TxAcceptCmd returns the command for executing an Accept Tx.
func TxCmd ¶
TxCmd returns the command with sub-commands for specific quarantine module Tx interaction.
func TxDeclineCmd ¶
TxDeclineCmd returns the command for executing a Decline Tx.
func TxOptInCmd ¶
TxOptInCmd returns the command for executing an OptIn Tx.
func TxOptOutCmd ¶
TxOptOutCmd returns the command for executing an OptOut Tx.
func TxUpdateAutoResponsesCmd ¶
TxUpdateAutoResponsesCmd returns the command for executing an UpdateAutoResponses Tx.
Types ¶
This section is empty.