Documentation ¶
Index ¶
- func AddScope(database *db.CredentialStore, clientName string, scopeNames ...string)
- func ChooseClient(database *db.CredentialStore) (string, error)
- func ConfirmDelete(database *db.CredentialStore, connection string)
- func Contains(arr []string, needle string) bool
- func Doctor(database *db.CredentialStore, port int)
- func Info(database *db.CredentialStore, name string, showSecrets bool)
- func InteractiveSetup(database *db.CredentialStore, clientName string, defaultPort int)
- func ListAll(database *db.CredentialStore, showSecrets bool)
- func MaskString(input string) string
- func RemoveScope(database *db.CredentialStore, clientName string, scopeNames ...string)
- func UpdateSecret(database *db.CredentialStore, clientName string, clientSecret string)
- func ValidateClientNameCmdArgs(cmd *cobra.Command, args []string) error
- func ValidateName(val interface{}) error
- func ValidateScopeCmdArgs(cmd *cobra.Command, args []string) error
- func ValidateSecretCmdArgs(cmd *cobra.Command, args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddScope ¶
func AddScope(database *db.CredentialStore, clientName string, scopeNames ...string)
func ChooseClient ¶
func ChooseClient(database *db.CredentialStore) (string, error)
func ConfirmDelete ¶
func ConfirmDelete(database *db.CredentialStore, connection string)
func Doctor ¶
func Doctor(database *db.CredentialStore, port int)
func InteractiveSetup ¶
func InteractiveSetup(database *db.CredentialStore, clientName string, defaultPort int)
func ListAll ¶
func ListAll(database *db.CredentialStore, showSecrets bool)
func MaskString ¶
func RemoveScope ¶
func RemoveScope(database *db.CredentialStore, clientName string, scopeNames ...string)
func UpdateSecret ¶
func UpdateSecret(database *db.CredentialStore, clientName string, clientSecret string)
func ValidateName ¶
func ValidateName(val interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.