tos

package
v0.1.1-experimental.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// acceptTosPromptErrTextFormat is the error prompt text for accepting the
	// terms of use.
	//nolint:lll
	AcceptTosPromptErrTextFormat = `` /* 177-byte string literal not displayed */

	//nolint:lll
	DeclinedErrorString = "you have to accept Terms and Conditions in order to continue"
)

Variables

This section is empty.

Functions

func BuildErrorPromptText

func BuildErrorPromptText(tosLink string) string

BuildErrorPromptText builds the prompt text for accepting the terms of use.

func BuildTosPromptText

func BuildTosPromptText(appName, tosLink string) string

BuildTosPromptText builds the prompt text for accepting the terms of use.

func VerifyTosAcceptedOrPrompt

func VerifyTosAcceptedOrPrompt(
	appName, tosLink string,
	clientCtx client.Context,
	cmd *cobra.Command,
) error

VerifyTosAcceptedOrPrompt checks if Tos was accepted before or asks to accept.

Types

This section is empty.

Jump to

Keyboard shortcuts

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