Documentation ¶
Index ¶
- func Always() sdk.NeedsAuthentication
- func ForCommand(command ...string) sdk.NeedsAuthentication
- func IfAll(rules ...sdk.NeedsAuthentication) sdk.NeedsAuthentication
- func IfAny(rules ...sdk.NeedsAuthentication) sdk.NeedsAuthentication
- func NotForExactArgs(argsToSkip ...string) sdk.NeedsAuthentication
- func NotForHelp() sdk.NeedsAuthentication
- func NotForHelpOrVersion() sdk.NeedsAuthentication
- func NotForVersion() sdk.NeedsAuthentication
- func NotWhenContainsArgs(argsSequence ...string) sdk.NeedsAuthentication
- func NotWithoutArgs() sdk.NeedsAuthentication
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Always ¶
func Always() sdk.NeedsAuthentication
Always returns a NeedsAuthentication rule to always require authentication.
func ForCommand ¶
func ForCommand(command ...string) sdk.NeedsAuthentication
ForCommand returns a NeedsAuthentication rule to require authentication for certain (sub)command, e.g. ["account"] or ["account", "list"].
func IfAll ¶
func IfAll(rules ...sdk.NeedsAuthentication) sdk.NeedsAuthentication
IfAll returns a NeedsAuthentication that opts in to the authentication requirement only if all the specified rules opt in to the authentication requirement.
func IfAny ¶
func IfAny(rules ...sdk.NeedsAuthentication) sdk.NeedsAuthentication
IfAny returns a NeedsAuthentication rule that only opts in to the authentication requirement if at least one specified rule opts in to the authentication requirement.
func NotForExactArgs ¶
func NotForExactArgs(argsToSkip ...string) sdk.NeedsAuthentication
NotForExactArgs returns a NeedsAuthentication rule to opt out of authentication when the command-line args are an exact match with the passed in args.
func NotForHelp ¶
func NotForHelp() sdk.NeedsAuthentication
func NotForHelpOrVersion ¶
func NotForHelpOrVersion() sdk.NeedsAuthentication
func NotForVersion ¶
func NotForVersion() sdk.NeedsAuthentication
func NotWhenContainsArgs ¶
func NotWhenContainsArgs(argsSequence ...string) sdk.NeedsAuthentication
NotWhenContainsArgs returns a NeedsAuthentication rule to not require authentication when the exact sequence of argsToSkip is present somewhere in the command-line args.
func NotWithoutArgs ¶
func NotWithoutArgs() sdk.NeedsAuthentication
Types ¶
This section is empty.