cmd

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddCmd = &cobra.Command{
	Use:   "add",
	Short: "add components to the IdP",
}

AddCmd represents the add command

View Source
var HashCmd = &cobra.Command{
	Use:   "hash",
	Short: "hashes a password for use with example user store",
	RunE: func(cmd *cobra.Command, args []string) error {
		fmt.Print("Enter Password: ")
		bytePassword, err := terminal.ReadPassword(int(syscall.Stdin))
		if err != nil {
			return err
		}
		hashedPassword, err := hashPassword(bytePassword)
		if err != nil {
			return err
		}
		fmt.Println()
		fmt.Println(string(hashedPassword))
		return nil
	},
}

HashCmd represents the hash command

Functions

func ClusterCmd

func ClusterCmd() *cobra.Command

ClusterCmd represents the cluster command

func ServeCmd

func ServeCmd(indentityProvider *idp.IDP) *cobra.Command

ServeCmd represents the serve command

Types

This section is empty.

Jump to

Keyboard shortcuts

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