cli

package
v0.0.0-...-ab54ecc Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
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

func QueryAutoResponsesCmd() *cobra.Command

QueryAutoResponsesCmd returns the command for executing a AutoResponses query.

func QueryCmd

func QueryCmd() *cobra.Command

QueryCmd returns the command with sub-commands for specific quarantine module queries.

func QueryIsQuarantinedCmd

func QueryIsQuarantinedCmd() *cobra.Command

QueryIsQuarantinedCmd returns the command for executing an IsQuarantined query.

func QueryQuarantinedFundsCmd

func QueryQuarantinedFundsCmd() *cobra.Command

QueryQuarantinedFundsCmd returns the command for executing a QuarantinedFunds query.

func TxAcceptCmd

func TxAcceptCmd() *cobra.Command

TxAcceptCmd returns the command for executing an Accept Tx.

func TxCmd

func TxCmd() *cobra.Command

TxCmd returns the command with sub-commands for specific quarantine module Tx interaction.

func TxDeclineCmd

func TxDeclineCmd() *cobra.Command

TxDeclineCmd returns the command for executing a Decline Tx.

func TxOptInCmd

func TxOptInCmd() *cobra.Command

TxOptInCmd returns the command for executing an OptIn Tx.

func TxOptOutCmd

func TxOptOutCmd() *cobra.Command

TxOptOutCmd returns the command for executing an OptOut Tx.

func TxUpdateAutoResponsesCmd

func TxUpdateAutoResponsesCmd() *cobra.Command

TxUpdateAutoResponsesCmd returns the command for executing an UpdateAutoResponses Tx.

Types

This section is empty.

Jump to

Keyboard shortcuts

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