login

package
v1.2.45-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "login",
	Short: "Log in to your Red Hat account",
	Long: fmt.Sprintf("Log in to your Red Hat account, saving the credentials to the configuration file or OS Keyring.\n"+
		"The supported mechanism is by using a token, which can be obtained at: %s\n\n"+
		"The application looks for the token in the following order, stopping when it finds it:\n"+
		fmt.Sprintf("\t1. OS Keyring via Environment variable (%s)\n", properties.KeyringEnvKey)+
		"\t2. Command-line flags\n"+
		"\t3. Environment variable (ROSA_TOKEN)\n"+
		"\t4. Environment variable (OCM_TOKEN)\n"+
		"\t5. Configuration file\n"+
		"\t6. Command-line prompt\n", uiTokenPage),
	Example: fmt.Sprintf(`  # Login to the OpenShift API with an existing token generated from %s
  rosa login --token=$OFFLINE_ACCESS_TOKEN`, uiTokenPage),
	Run:  run,
	Args: cobra.NoArgs,
}

Functions

func Call added in v1.1.0

func Call(cmd *cobra.Command, argv []string, reporter *rprtr.Object) error

func CheckAndLogIntoFedramp added in v1.2.37

func CheckAndLogIntoFedramp(hasFlag, hasAdminFlag bool, cfg *config.Config, token string,
	runtime *rosa.Runtime) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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