idp

package
v1.2.47-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterAdminUsername = "cluster-admin"
View Source
const HTPasswdIDPName = "htpasswd"

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "idp",
	Short: "Add IDP for cluster",
	Long:  "Add an Identity providers to determine how users log into the cluster.",
	Example: `  # Add a GitHub identity provider to a cluster named "mycluster"
  rosa create idp --type=github --cluster=mycluster

  # Add an identity provider following interactive prompts
  rosa create idp --cluster=mycluster --interactive`,
	Run:  run,
	Args: cobra.NoArgs,
}

Functions

func GenerateIdpName

func GenerateIdpName(idpType string, idps []IdentityProvider) string

func GetIdpPasswordFromPrompt added in v1.2.29

func GetIdpPasswordFromPrompt(cmd *cobra.Command, r *rosa.Runtime,
	passwordKey, defaultPassword string) string

func GetIdpUserNameFromPrompt added in v1.2.29

func GetIdpUserNameFromPrompt(cmd *cobra.Command, r *rosa.Runtime,
	usernameKey, defaultUsername string, acceptClusterAdmin bool) string

func GetUserDetails added in v1.2.24

func GetUserDetails(cmd *cobra.Command, r *rosa.Runtime,
	usernameKey, passwordKey, defaultUsername, defaultPassword string) (string, string)

func UsernameValidator added in v1.2.24

func UsernameValidator(val interface{}) error

func ValidateIdpName added in v1.2.25

func ValidateIdpName(idpName interface{}) error

Types

type IdentityProvider

type IdentityProvider interface {
	Name() string
}

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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