idp

package
v1.2.29-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 16 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,
}

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 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) 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
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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