Documentation ¶
Index ¶
- Constants
- Variables
- func CreateHTPasswdUser(username, password string) *cmv1.HTPasswdUserBuilder
- func GenerateIdpName(idpType string, idps []IdentityProvider) string
- func GetIdpPasswordFromPrompt(cmd *cobra.Command, r *rosa.Runtime, passwordKey, defaultPassword string) string
- func GetIdpUserNameFromPrompt(cmd *cobra.Command, r *rosa.Runtime, usernameKey, defaultUsername string) string
- func GetUserDetails(cmd *cobra.Command, r *rosa.Runtime, ...) (string, string)
- func UsernameValidator(val interface{}) error
- func ValidateIdpName(idpName interface{}) error
- type IdentityProvider
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,
}
Functions ¶
func CreateHTPasswdUser ¶ added in v1.1.12
func CreateHTPasswdUser(username, password string) *cmv1.HTPasswdUserBuilder
func GenerateIdpName ¶
func GenerateIdpName(idpType string, idps []IdentityProvider) string
func GetIdpPasswordFromPrompt ¶ added in v1.2.29
func GetIdpUserNameFromPrompt ¶ added in v1.2.29
func GetUserDetails ¶ added in v1.2.24
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
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.